1 2010-12-10 Jack Howarth <howarth@bromo.med.uc.edu>
2 Iain Sandoe <iains@gcc.gnu.org>
5 * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
7 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
9 * config/rs6000/rs6000.c
10 (rs6000_darwin64_record_arg_advance_recurse): Name register increment
11 explicitly. (rs6000_darwin64_record_arg_recurse): Make sure we split
12 long doubles when we run out of regs. Also flag that this requires
13 stack and therefore cannot be returned by value.
14 (rs6000_darwin64_record_arg): Update comment.
15 (rs6000_function_value): Likewise.
17 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
19 * c-parser.c (c_parser_objc_class_definition): Recognize
20 Objective-C 2.0 class extensions.
22 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
24 * config/darwin.c: Remove c-tree.h and c-lang.h
25 * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
27 2010-12-10 Joern Rennecke <amylaar@spamcop.net>
30 * doc/tm.texi: Regenerate.
31 * target.def: Fix "preferred" spelling. Refer to rclass by its
33 * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
36 2010-12-09 Paul Koning <ni1d@arrl.net>
38 * config/pdp11/pdp11-protos.h (output_move_double,
39 output_move_quad): Delete.
40 (output_move_multiple, pdp11_expand_operands): New functions.
41 (pdp11_action, pdp11_partorder): New enums.
42 * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
44 (adddi3, subdi3, negdi2): New patterns.
45 (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
47 (neghi2, negqi2): Use PDPint iterator.
48 * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
49 output_move_quad): Delete.
50 (pdp11_expand_operands, output_move_multiple): New functions.
52 2010-12-09 Joseph Myers <joseph@codesourcery.com>
54 * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
55 * config.gcc (vax-*-linux*): Don't use svr4.h.
57 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
59 * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
61 2010-12-09 Joseph Myers <joseph@codesourcery.com>
63 * doc/extend.texi (Attribute Syntax): Correct description of
64 attributes in pointer declarators.
66 2010-12-09 Joseph Myers <joseph@codesourcery.com>
68 * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
69 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
70 mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
72 2010-12-09 Joseph Myers <joseph@codesourcery.com>
74 * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
75 WCHAR_TYPE_SIZE): Define.
76 * config.gcc (mep-*-*): Don't use svr4.h.
78 2010-12-09 Joseph Myers <joseph@codesourcery.com>
80 * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
81 WCHAR_TYPE_SIZE): Define.
82 * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
83 WCHAR_TYPE_SIZE): Don't define.
84 * config.gcc (mcore-*-elf): Don't use svr4.h.
86 2010-12-09 Joseph Myers <joseph@codesourcery.com>
88 * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
89 m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
91 2010-12-09 Joseph Myers <joseph@codesourcery.com>
93 * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
94 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
95 * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
97 2010-12-09 Joseph Myers <joseph@codesourcery.com>
99 * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
101 2010-12-09 Joseph Myers <joseph@codesourcery.com>
103 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
104 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
107 2010-12-09 Joseph Myers <joseph@codesourcery.com>
109 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
110 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
111 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
112 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
113 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
115 2010-12-09 Joseph Myers <joseph@codesourcery.com>
117 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
118 WCHAR_TYPE_SIZE): Define.
119 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
121 2010-12-09 Joseph Myers <joseph@codesourcery.com>
123 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
124 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
125 * config.gcc (fr30-*-elf): Don't use svr4.h.
127 2010-12-09 Joseph Myers <joseph@codesourcery.com>
129 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
130 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
132 2010-12-09 Richard Guenther <rguenther@suse.de>
135 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
138 2010-12-09 Joseph Myers <joseph@codesourcery.com>
140 * config/i386/netware.h (TARGET_POSIX_IO): Define.
141 * config/i386/nto.h (TARGET_POSIX_IO): Define.
142 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
143 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
144 * config/openbsd.h (TARGET_POSIX_IO): Define.
145 * config/rtems.h (TARGET_POSIX_IO): Define.
146 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
147 * config/sol2.h (TARGET_POSIX_IO): Define.
148 * config/svr4.h (TARGET_POSIX_IO): Don't define.
149 * config/vxworksae.h (TARGET_POSIX_IO): Define.
151 2010-12-09 Joseph Myers <joseph@codesourcery.com>
153 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
154 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
156 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
158 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
160 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
162 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
164 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
166 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
167 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
169 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
171 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
173 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
175 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
178 2010-12-09 Joseph Myers <joseph@codesourcery.com>
180 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
182 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
184 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
185 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
186 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
188 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
189 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
191 2010-12-09 Martin Jambor <mjambor@suse.cz>
193 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
194 zero is the first phi parameter.
196 2010-12-09 Martin Jambor <mjambor@suse.cz>
198 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
199 * ipa-prop.c (ipa_modify_call_arguments): Use it.
200 * tree-sra.c (splice_param_accesses): Test that all accesses have the
201 same alias reference type.
202 (turn_representatives_into_adjustments): Set alias_ptr_type of the
205 2010-12-09 Martin Jambor <mjambor@suse.cz>
208 * tree-sra.c (splice_param_accesses): Check that there are not
209 multiple ADDRESSABLE types.
211 2010-12-09 Joseph Myers <joseph@codesourcery.com>
213 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
214 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
215 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
216 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
217 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
218 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
219 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
220 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
221 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
222 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
223 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
224 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
225 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
226 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
227 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
228 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
229 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
230 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
231 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
232 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
233 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
234 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
235 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
236 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
237 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
239 2010-12-09 Joseph Myers <joseph@codesourcery.com>
241 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
242 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
243 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
245 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
247 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
248 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
250 2010-12-09 Joseph Myers <joseph@codesourcery.com>
252 * config/alpha/freebsd.h (LINK_SPEC): Don't use
254 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
255 * config/arm/freebsd.h (LINK_SPEC): Likewise.
256 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
257 * config/bfin/linux.h (LINK_SPEC): Likewise.
258 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
259 * config/frv/linux.h (LINK_SPEC): Likewise.
260 * config/i386/freebsd.h (LINK_SPEC): Likewise.
261 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
262 * config/i386/linux.h (LINK_SPEC): Likewise.
263 * config/i386/linux64.h (LINK_SPEC): Likewise.
264 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
265 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
266 * config/ia64/linux.h (LINK_SPEC): Likewise.
267 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
268 * config/m32r/linux.h (LINK_SPEC): Likewise.
269 * config/m68k/linux.h (LINK_SPEC): Likewise.
270 * config/microblaze/linux.h (LINK_SPEC): Likewise.
271 * config/mips/linux.h (LINK_SPEC): Likewise.
272 * config/mips/linux64.h (LINK_SPEC): Likewise.
273 * config/mips/openbsd.h (LINK_SPEC): Likewise.
274 * config/mn10300/linux.h (LINK_SPEC): Likewise.
275 * config/netbsd-elf.h (LINK_SPEC): Likewise.
276 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
277 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
278 LINK_OS_LINUX_SPEC64): Likewise.
279 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
280 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
282 * config/s390/linux.h (LINK_SPEC): Likewise.
283 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
284 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
285 * config/sparc/linux.h (LINK_SPEC): Likewise.
286 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
287 LINK_SPEC): Likewise.
288 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
289 * config/vax/linux.h (LINK_SPEC): Likewise.
290 * config/xtensa/linux.h (LINK_SPEC): Likewise.
292 2010-12-09 Joseph Myers <joseph@codesourcery.com>
294 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
295 * config/frv/frv.h (ASM_SPEC): Likewise.
296 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
297 * config/i386/sol2.h (ASM_SPEC): Likewise.
298 * config/m68k/linux.h (ASM_SPEC): Likewise.
299 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
300 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
301 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
302 * config/sol2.h (ASM_SPEC): Likewise.
303 * config/sparc/linux.h (ASM_SPEC): Likewise.
304 * config/sparc/linux64.h (ASM_SPEC): Likewise.
305 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
306 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
307 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
309 2010-12-09 Richard Guenther <rguenther@suse.de>
311 * reginfo.c (struct subregs_of_mode_node): Remove.
312 (subregs_of_mode): Likewise.
313 (som_hash): Likewise.
315 (invalid_mode_changes): New bitmap.
316 (record_subregs_of_mode): Get subregs_of_mode argument.
317 Fill in invalid_mode_changes bitmap.
318 (find_subregs_of_mode): Get subregs_of_mode argument and pass
320 (init_subregs_of_mode): Adjust.
321 (finish_subregs_of_mode): Likewise.
322 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
324 2010-12-09 Richard Guenther <rguenther@suse.de>
326 * ira.c (ira): Do not call finish_subregs_of_mode.
327 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
329 2010-12-09 Richard Guenther <rguenther@suse.de>
331 * rtl.h (invalid_mode_change_p): Adjust prototype.
332 * reginfo.c (invalid_mode_change_p): Remove from argument.
333 * ira-costs.c (print_allocno_costs): Adjust callers.
334 (find_costs_and_classes): Likewise.
336 2010-12-09 Jakub Jelinek <jakub@redhat.com>
338 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
339 locg and stocg even in comment.
340 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
343 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
345 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
347 * config/rs6000/altivec.md (VI_scalar): New mode attr.
348 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
349 vector mode for operand 0, put operand 1 into UNSPEC.
351 2010-12-09 Yao Qi <yao@codesourcery.com>
353 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
354 PREFERRED_RENAME_CLASS.
356 2010-12-08 Ian Lance Taylor <iant@google.com>
358 * doc/sourcebuild.texi (Front End): Remove reference to
359 snapshot-README and snapshot-index.html.
361 2010-12-08 Ian Lance Taylor <iant@google.com>
363 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
364 to update_web_docs_svn.
365 (Front End): Likewise.
367 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
369 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
370 x86_64-*-darwin* to with_cpu:-core2.
371 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
372 with movd for darwin assembler.
373 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
374 (*vec_concatv2di_rex64_sse): Ditto.
376 2010-12-08 Richard Guenther <rguenther@suse.de>
377 Sebastian Pop <sebastian.pop@amd.com>
379 PR tree-optimization/45230
380 PR tree-optimization/45231
381 PR tree-optimization/45370
382 * sese.c (rename_uses): Returns a bool. Call
383 recompute_tree_invariant_for_addr_expr only on the RHS of a
385 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
386 rename_uses returns true.
387 * tree-ssa-copy.c (replace_exp): Add a comment about calling
388 fold_stmt_inplace after replace_exp.
390 2010-12-08 Mike Stump <mikestump@comcast.net>
393 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
394 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
395 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
396 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
397 * collect2.c (post_ld_pass): Add.
399 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
400 (main): Likewise. Call process_args.
402 2010-12-08 Jakub Jelinek <jakub@redhat.com>
405 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
408 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
411 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
412 into a 16-bit instruction.
414 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
417 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
418 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
419 instruction, but do optimize if y is 0.5 or 1./3. since that
420 changes an expensive call into a cheaper one.
422 2010-12-08 Richard Guenther <rguenther@suse.de>
424 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
425 instead of a division to divide by BITS_PER_UNIT.
427 2010-12-08 Richard Guenther <rguenther@suse.de>
429 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
430 when checking is enabled.
432 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
435 * haifa-sched.c (sched_create_recovery_edges): Update
437 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
438 after deleting an empty block.
439 (tidy_control_flow): Also verify dominators.
440 (sel_remove_bb): Update dominator info after removing a block.
441 (sel_redirect_edge_and_branch_force): Assert that no unreachable
442 blocks will be created. Update dominator info.
443 (sel_redirect_edge_and_branch): Update dominator info when
444 basic blocks do not become unreachable.
445 (sel_remove_loop_preheader): Update dominator info.
447 2010-12-07 Richard Guenther <rguenther@suse.de>
449 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
450 Reset alignment information.
451 (bump_vector_ptr): Likewise.
453 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
457 * config/pa/pa.c (pa_function_section): New function.
458 (TARGET_ASM_FUNCTION_SECTION): Define.
460 2010-12-07 Ian Lance Taylor <iant@google.com>
461 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
464 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
466 * configure: Rebuild.
468 2010-12-07 Paul Koning <ni1d@arrl.net>
470 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
471 values with sign rather than as unsigned.
473 2010-12-07 Paul Koning <ni1d@arrl.net>
475 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
476 (pdp11_function_section): New function.
478 2010-12-07 Joseph Myers <joseph@codesourcery.com>
480 * config/mcore/mcore.c Don't include assert.h.
481 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
482 * config/spu/spu.c: Don't include assert.h.
483 (spu_sms_res_mii): Use gcc_assert.
485 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
487 PR tree-optimization/42327
488 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
489 instead of using integer_minus_one_node.
491 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
494 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
495 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
497 2010-12-07 Richard Guenther <rguenther@suse.de>
499 PR tree-optimization/46832
500 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
501 that the call has a lhs.
503 2010-12-07 Yao Qi <yao@codesourcery.com>
505 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
506 * regrename.c (struct du_head): Add new element length.
507 (sort_du_head, get_element, merge, merge_sort_comparison):
508 New functions of merge sort implementation to du_head list.
509 (regrename_optimize): Sort du_head linked list by length.
510 Iterate registers in a preferred-register-first order.
511 Move some code to ...
512 (check_new_reg_p): here. New function.
513 (create_new_chain): Initialize length.
514 (scan_rtx_reg): Increase length for non-debug insns.
515 * target.def: New hook preferred_rename_class.
516 * targhook.c (default_preferred_rename_class): New.
517 * targhook.h: Declare it.
518 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
519 * doc/tm.texi: Regenerate.
521 2010-12-07 Jakub Jelinek <jakub@redhat.com>
524 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
525 instead of BUILTINS_LOCATION.
526 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
528 (create_parallel_loop): Add LOC argument, use it for OMP clauses
529 and GIMPLE_*OMP* statements.
530 (gen_parallel_loop): Determine locus for the parallel loop, pass it
531 to create_loop_fn and create_parallel_loop.
532 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
533 set_curr_insn_source_location (UNKNOWN_LOCATION).
535 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
536 Richard Guenther <rguenther@suse.de>
539 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
540 (bfin_reorder_loops): Change type of index to intptr_t.
542 2010-12-07 Richard Guenther <rguenther@suse.de>
544 PR tree-optimization/46726
545 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
547 2010-12-07 Richard Guenther <rguenther@suse.de>
549 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
552 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
554 * c-parser.c (c_parser_typeof_specifier): Removed special
555 treatment of objc_volatilized attribute for Objective-C.
557 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
559 * ira.c (update_equiv_regs): Prohibit move insns if
560 pressure-sensitive scheduling was done.
562 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
564 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
565 of c_process_expr_stmt() for the iterating and collection
566 expressions of an Objective-C fast enumeration loop.
568 2010-12-06 Jakub Jelinek <jakub@redhat.com>
571 * dwarf2out.c (modified_type_die): If both is_const_type and
572 is_volatile_type is set, start with DW_TAG_const_type or
573 DW_TAG_volatile_type depending on where we get qualified type
574 in the recursive call.
577 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
578 as a store into that register.
580 PR tree-optimization/46528
582 * profile.c (branch_prob): Make sure last is never set to a debug
586 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
589 PR rtl-optimization/46777
590 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
591 also barrier after tablejump.
593 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
594 Richard Henderson <rth@redhat.com>
597 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
599 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
601 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
602 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
604 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
607 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
608 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
609 (int12_operand, int_2word_operand, uint16_operand): Likewise.
610 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
611 (uint5_operand, uint4_operand): Likewise.
612 * config/frv/frv.h (IN_RANGE_P): Delete.
613 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
614 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
615 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
616 (CONST_OK_FOR_P): Likewise.
617 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
618 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
619 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
620 (*movsicc_internal2_float, casesi): Likewise.
621 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
622 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
623 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
624 (frv_split_cond_move, frv_rtx_costs): Likewise.
627 * config/mmix/mmix.c (mmix_intval): Split shift count.
629 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
631 * config/i386/i386.c (m_COREI7): New.
632 (initial_ix86_tune_features): Turn on
633 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
634 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
636 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
638 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
640 * config/i386/driver-i386.c (host_detect_local_cpu): Support
643 * config/i386/i386.c (override_options): Handle "corei7-avx".
645 * doc/invoke.texi: Document corei7-avx.
647 2010-12-06 Richard Guenther <rguenther@suse.de>
649 PR tree-optimization/46806
650 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
651 coalesce different types.
653 2010-12-06 Richard Guenther <rguenther@suse.de>
655 PR tree-optimization/46785
656 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
657 call statements as operand definition.
659 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
661 * doc/tm.texi.in: Fix typo.
662 * doc/tm.texi: Regenerate.
664 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
666 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
669 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
671 * c-family/c-common.h: Removed the declarations of all the objc_
672 callbacks, and moved them into c-objc.h. Removed
673 objc_ivar_visibility_kind and moved it into c-objc.h.
674 * c-family/c-objc.h: New file.
675 * c-family/c-common.c: Include c-objc.h.
676 * c-family/c-format.c: Same change.
677 * c-family/stub-objc.c: Same change.
678 * c-decl.c: Include c-family/c-objc.h.
679 * c-parser.c: Same change.
680 * c-typeck.c: Same change.
681 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
682 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
683 (c-parser.o): same change.
684 (c-typeck.o): Same change.
685 (c-family/c-format.o): Same change.
686 (c-family/stub-objc.o): Same change.
687 (c-family/c-common.o): Same change.
688 (PLUGIN_HEADERS): Added c-family/c-objc.h.
690 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
692 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
693 --with-dwarf2 option.
695 2010-12-03 Jan Hubicka <jh@suse.cz>
697 * lto-streamer-in.c (input_cfg): Fix pasto.
699 2010-12-03 Jan Hubicka <jh@suse.cz>
701 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
702 and functions with user asm defined names.
703 (varpool_externally_visible_p): Do not localize vars with user
706 2010-12-03 Jan Hubicka <jh@suse.cz>
708 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
709 to prevent mangling with lto frontend.
711 2010-12-03 Jan Hubicka <jh@suse.cz>
713 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
714 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
716 2010-12-03 Jan Hubicka <jh@suse.cz>
718 PR tree-optimization/46760
719 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
720 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
721 * lto-cgraph.c (lto_output_edge): Fix assert.
722 (lto_output_node): Output count_materialization_scale.
723 (output_profile_summary): Output only runs and sum_max.
724 (input_node): Input count_materialization_scale.
725 (input_profile_summary): Read data into file specific gcov summary.
726 (merge_profile_summaries): New function.
727 (input_cgraph): Update call of input_profile_summary;
728 call merge_profile_summaries.
729 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
730 rescale counts at read in.
731 (intput_bb): Likewise.
732 (input_function): Update call of input_bb.
733 (lto_read_body): Update call of input_cfg.
734 * lto-streamer.h: Inlclude gcov-io.h
735 (lto_file_decl_data): Add gcov_ctr_summary.
737 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
739 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
740 (Cond Exec Macros): ... to this.
741 * doc/tm.texi: Regenerate.
743 2010-12-03 Jason Merrill <jason@redhat.com>
746 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
749 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
751 * config/arm/arm.c (arm_legitimate_index_p): Split
752 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
753 slightly larger constants in the latter case.
754 (thumb2_legitimate_index_p): Likewise.
756 2010-12-03 Joseph Myers <joseph@codesourcery.com>
758 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
759 * gcc.c (cc1_options): Add %{Qy:}.
761 2010-12-03 Joseph Myers <joseph@codesourcery.com>
763 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
764 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
765 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
767 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
769 PR rtl-optimization/45354
770 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
771 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
772 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
773 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
775 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
777 * basic-block.h (struct edge_prediction): Remove forward
779 * tree-flow.h (struct edge_prediction): Move from here...
780 * predict.c (struct edge_prediction): ...to here.
781 * cselib.h (struct elt_list): Move from here...
782 * cselib.c (struct elt_list): ...to here.
784 2010-12-02 Ian Lance Taylor <iant@google.com>
786 * gcc.c (default_compilers): Add entry for ".go".
787 * common.opt: Add -static-libgo as a driver option.
788 * doc/install.texi (Configuration): Mention libgo as an option for
789 --enable-shared. Mention go as an option for --enable-languages.
790 * doc/invoke.texi (Overall Options): Mention .go as a file name
791 suffix. Mention go as a -x option.
792 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
794 * doc/sourcebuild.texi (Top Level): Mention libgo.
795 * doc/standards.texi (Standards): Add section on Go language.
796 Move references for other languages into their own section.
797 * doc/contrib.texi (Contributors): Mention that I contributed the
800 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
802 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
803 (const_call_expr_arg_iterator_d): Likewise.
804 (expanded_location): Likewise.
805 * c-tree.h (struct c_arg_tag_d): Likewise.
806 * dwarf2out.c (struct cfa_loc): Likewise.
807 (struct skeleton_chain_struct): Likewise.
808 * except.c (struct ttypes_filter): Likewise.
809 * cselib.h (struct cselib_val_struct): Likewise.
810 (elt_loc_list): Likewise.
811 (elt_list): Likewise.
812 * varasm.c (struct addr_const): Likewise.
813 * tree-flow.h (struct edge_prediction): Likewise.
814 (struct int_tree_map): Likewise.
815 (struct _edge_var_map): Likewise.
817 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
820 * config/i386/i386.c (initial_ix86_tune_features): Turn on
821 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
823 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
825 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
827 2010-12-02 Ian Lance Taylor <iant@google.com>
829 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
830 header files unordered_map, tr1/unordered_map, and ext/hash_map.
831 * configure, config.in: Rebuild.
833 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
836 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
837 (sparc_expand_move): Call it to decide whether to emit the special
838 mov{si,di}_pic_label_ref patterns.
839 (sparc_legitimize_pic_address): Call it to decide whether to emit
840 the regular PIC sequence for labels. Fix long line.
841 (sparc_file_end): Set is_thunk for the PIC helper.
843 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
845 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
846 for a non-shared type.
848 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
851 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
852 with MEM_REFs as POINTER_PLUS_EXPR.
854 2010-12-02 Joseph Myers <joseph@codesourcery.com>
856 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
857 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
860 2010-12-02 Joseph Myers <joseph@codesourcery.com>
862 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
863 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
864 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
865 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
866 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
867 * config/sol2.h (LINK_SPEC): Remove %{b}.
868 * config/svr4.h (LINK_SPEC): Remove %{b}.
870 2010-12-02 Joseph Myers <joseph@codesourcery.com>
872 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
873 * config/i386/linux.h (LINK_SPEC): Cut long comment.
874 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
875 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
876 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
877 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
878 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
879 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
880 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
881 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
884 2010-12-02 Joseph Myers <joseph@codesourcery.com>
886 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
889 2010-12-02 Joseph Myers <joseph@codesourcery.com>
891 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
892 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
893 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
894 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
895 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
896 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
897 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
898 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
899 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
900 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
901 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
902 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
903 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
904 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
905 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
906 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
907 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
908 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
910 2010-12-02 Paul Koning <ni1d@arrl.net>
912 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
913 opcodes if CC_NO_OVERFLOW is set.
914 (notice_update_cc_on_set): Correct setting of CC0 as a side
915 effect; set CC_NO_OVERFLOW for cases where C flag is not
918 2010-12-02 Ian Lance Taylor <iant@google.com>
920 * doc/install.texi (Configuration): Update default for
923 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
926 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
929 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
931 PR tree-optimization/45199
932 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
933 (stores_zero_from_loop): Call
934 mem_write_stride_of_same_size_as_unit_type_p.
935 * tree-data-ref.h (stride_of_unit_type_p): New.
936 * tree-loop-distribution.c (generate_memset_zero): Simplified.
937 Call stride_of_unit_type_p.
938 (build_rdg_partition_for_component): Do not call
939 rdg_flag_similar_memory_accesses when
940 flag_tree_loop_distribute_patterns is set.
942 2010-12-02 Richard Guenther <rguenther@suse.de>
944 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
945 sign-changing conversions for induction detection.
947 2010-12-02 Richard Guenther <rguenther@suse.de>
949 PR tree-optimization/46723
950 * tree-vect-loop.c (get_initial_def_for_induction): Strip
951 conversions from the induction evolution and apply it to
953 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
954 assigns for induction defs.
956 2010-12-02 Richard Guenther <rguenther@suse.de>
958 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
959 the case we need to split the edge and not the block.
961 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
963 DFA model for Core 2 and Core i7 scheduling.
965 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
966 * config/i386/i386.c (ix86_option_override_internal): Update entries
967 for Core 2 and Core i7.
968 (ix86_issue_rate): Set issue rate to 3 [be realistic].
969 * config/i386/i386.md: Include "core2.md".
970 (define_attr cpu): Add "corei7".
972 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
974 Define tuning for Core 2 and Core i7.
976 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
977 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
978 (m_CORE2): Replace with m_CORE2_{32,64}.
979 (m_CORE2I7{,_32,_64}): New macros.
980 (m_GENERIC32, m_GENERIC64): Update.
981 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
982 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
983 set m_CORE2I7_64 iff m_GENERIC64.
984 (processor_target_table): Use generic costs for Core 2 and Core i7.
985 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
986 (ix86_issue_rate): Remove entry for Core 2.
987 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
988 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
989 (TARGET_CORE2): Update.
990 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
991 (PROCESSOR_CORE2): Remove.
993 2010-12-02 Richard Guenther <rguenther@suse.de>
995 * lto-streamer.h (LTO_major_version): Bump to 2.
997 2010-12-02 Richard Guenther <rguenther@suse.de>
1000 * gimple.c (canonical_type_hash_cache): New hashtable.
1001 (gimple_type_hash): Make a wrapper around ...
1002 (gimple_type_hash_1): ... this. Take gtc_mode argument.
1003 (gimple_canonical_type_hash): Likewise.
1004 (gtc_visit): Take a gtc_mode argument.
1005 (gimple_types_compatible_p_1): Likewise. Do not compare struct
1006 tag names or field names when computing canonical types.
1007 (gimple_types_compatible_p): Adjust.
1008 (visit): Take a gtc_mode argument.
1009 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
1010 names or field names when computing hashes of canonical types.
1011 (gimple_register_canonical_type): Use gimple_canonical_type_hash
1013 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1014 (free_gimple_type_tables): Free canonical_type_hash_cache.
1016 2010-12-02 Richard Guenther <rguenther@suse.de>
1017 Ira Rosen <irar@il.ibm.com>
1019 PR tree-optimization/46663
1020 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1021 FUNCTION_DECL exists and that it's a builtin.
1023 2010-12-02 Jie Zhang <jie@codesourcery.com>
1026 * varasm.c (compute_visible_aliases): Handle user set
1029 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1031 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1032 thinko regarding setting -mno-<xxx> debug switches.
1033 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
1035 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1037 * intl.c: Don't include tm.h.
1038 * Makefile.in (intl.o): Don't depend on $(TM_H).
1040 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1042 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1044 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1046 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1048 * graphite-sese-to-poly.c (analyze_drs): Removed.
1049 (build_scop_drs): Do not call analyze_drs.
1050 (analyze_drs_in_stmts): New.
1051 (insert_stmts): New.
1052 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1053 (insert_out_of_ssa_copy_on_edge): Same.
1054 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1055 (rewrite_phi_out_of_ssa): Same.
1056 (rewrite_cross_bb_scalar_dependence): Same.
1057 (split_reduction_stmt): Move data references in the new basic blocks.
1058 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1060 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1062 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1064 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1067 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
1068 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
1069 * graphite-poly.h (new_poly_bb): Update declaration.
1070 (gbb_from_bb): Moved here...
1072 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1074 (graphite_stmt_p): Removed.
1075 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
1076 sbitmap reductions. Always build a gimple_bb_p. Do not call
1078 (build_scop_bbs_1): Do not pass in sbitmap reductions.
1079 (build_scop_bbs): Same.
1080 (gbb_from_bb): ... from here.
1081 (add_conditions_to_constraints): Moved up.
1083 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
1084 not contain data references.
1085 (new_pbb_from_pbb): New.
1086 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1088 (rewrite_close_phi_out_of_ssa): Update call to
1089 insert_out_of_ssa_copy_on_edge.
1090 (rewrite_reductions_out_of_ssa): Now static.
1091 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1093 (split_reduction_stmt): Call split_pbb.
1094 (translate_scalar_reduction_to_array): Pass in the scop, do not
1095 pass in the sbitmap reductions.
1096 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1097 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1098 (rewrite_commutative_reductions_out_of_ssa): Same.
1099 (build_poly_scop): Call build_scop_bbs,
1100 rewrite_commutative_reductions_out_of_ssa,
1101 rewrite_reductions_out_of_ssa, and
1102 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1104 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1105 Removed declaration.
1106 (rewrite_reductions_out_of_ssa): Same.
1107 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1108 (build_scop_bbs): Same.
1109 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1110 Do not call build_scop_bbs,
1111 rewrite_commutative_reductions_out_of_ssa,
1112 rewrite_reductions_out_of_ssa, and
1113 rewrite_cross_bb_scalar_deps_out_of_ssa.
1114 * sese.h (struct gimple_bb): Add field pbb.
1117 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1119 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1121 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1122 handle_scalar_deps_crossing_scop_limits.
1123 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1124 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1126 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1128 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1129 when replacing a constant in an ADDR_EXPR.
1131 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1133 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1135 (lst_do_strip_mine): Same.
1136 (scop_do_strip_mine): Same.
1137 * graphite-poly.c (apply_poly_transforms): Update call to
1139 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1141 2010-12-01 Jan Hubicka <jh@suse.cz>
1143 * tree.c (build_common_builtin_nodes): Do not initialize
1144 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1145 * builtins.c (expand_builtin_profile_func): Remove.
1146 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1147 BUILT_IN_PROFILE_FUNC_EXIT.
1148 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1149 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1150 * gimplify.c (gimplify_function_tree): Reorganize code calling
1151 profiling functions.
1153 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1155 * opts.c: Expand comment on tm.h include.
1157 2010-12-01 Yao Qi <yao@codesourcery.com>
1159 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1160 VFP_D0_D7_REGS classes.
1162 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1164 * common.opt (flag_stack_check): New Variable entry.
1165 (fcompare-debug-second): Use Var.
1166 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1167 * opts.c (flag_compare_debug): Remove.
1168 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1169 Set opts->x_flag_stack_check for OPT_fstack_check_.
1170 * toplev.c (flag_stack_check): Remove.
1172 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1174 * common.opt (main_input_filename, main_input_basename,
1175 main_input_baselength): New Variable entries. From toplev.c.
1176 * final.c (output_quoted_string): Move from toplev.c.
1177 * output.h (output_quoted_string): Move from toplev.h.
1178 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1179 access main_input_filename, main_input_baselength and
1180 main_input_basename.
1181 * targhooks.c: Include intl.h and opts.h.
1182 (option_affects_pch_p, default_get_pch_validity): Move from
1184 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1186 * toplev.c (main_input_filename, main_input_basename,
1187 main_input_baselength): Move to common.opt.
1188 (output_quoted_string): Move to final.c.
1189 (warn_deprecated_use): Move to tree.c.
1190 (option_affects_pch_p, default_get_pch_validity,
1191 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1192 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1193 (warn_deprecated_use): Move to tree.h.
1194 (output_quoted_string): Move to output.h.
1195 (main_input_filename, main_input_basename, main_input_baselength):
1197 (default_get_pch_validity, default_pch_valid_p): Move to
1199 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1200 * tree.c (warn_deprecated_use): Move from toplev.c.
1201 * tree.h (warn_deprecated_use): Move from toplev.h.
1202 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1203 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1204 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1205 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1206 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1207 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1208 config/mcore/mcore.c, config/mep/mep.c,
1209 config/microblaze/microblaze.c, config/mips/mips.c,
1210 config/mmix/mmix.c, config/mn10300/mn10300.c,
1211 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1212 config/picochip/picochip.c, config/s390/s390.c,
1213 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1214 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1215 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1216 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1217 varasm.c, xcoffout.c: Don't include toplev.h.
1218 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1219 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1220 varasm.o, xcoffout.o): Update dependencies.
1221 * config/arm/t-arm (arm.o): Update dependencies.
1222 * config/spu/t-spu-elf (spu.o): Update dependencies.
1224 2010-12-01 Richard Guenther <rguenther@suse.de>
1226 PR tree-optimization/46730
1227 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1229 2010-11-30 Ian Lance Taylor <iant@google.com>
1231 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1232 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1233 * config/i386/linux64.h (ASM_SPEC): Likewise.
1234 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1235 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1236 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1237 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1238 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1239 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1241 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1243 * c-decl.c (finish_function): Call objc_finish_function in
1245 * c-typeck.c (convert_for_assignment): Do not call
1246 objc_type_quals_match().
1248 2010-11-30 Richard Guenther <rguenther@suse.de>
1250 PR tree-optimization/46722
1251 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1252 operands as arguments.
1253 (execute_optimize_widening_mul): Also handle power of two as
1256 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1259 * cgraphunit.c (process_function_and_variable_attributes): Fix
1262 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1264 * hwint.c: New. Extracted from toplev.c.
1265 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1267 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1269 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1271 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1272 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1273 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1274 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1275 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1276 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1277 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1278 tree-vrp.c: Don't include toplev.h.
1279 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1280 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1281 toplev.h in generated output.
1282 * Makefile.in (OBJS-common): Add hwint.o.
1283 Dependencies for above files changed to remove toplev.h.
1285 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1286 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1288 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1289 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1291 2010-11-30 Richard Guenther <rguenther@suse.de>
1293 PR tree-optimization/46717
1294 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1295 call. Manually create EH edges for the direct call and update
1298 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1300 * diagnostic-core.h: Include bversion.h.
1301 * toplev.h: Don't include input.h or bversion.h.
1302 (parse_optimize_options): Don't declare here.
1303 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1304 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1305 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1306 config/host-darwin.c, config/i386/host-cygwin.c,
1307 config/i386/host-mingw32.c, config/i386/msformat-c.c,
1308 config/i386/netware.c, config/i386/nwld.c,
1309 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1310 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1311 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1312 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1313 config/score/score3.c, config/score/score7.c,
1314 config/sh/symbian-base.c, config/sh/symbian-c.c,
1315 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1316 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1317 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1318 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1319 graphite-blocking.c, graphite-clast-to-gimple.c,
1320 graphite-dependences.c, graphite-flattening.c,
1321 graphite-interchange.c, graphite-poly.c,
1322 graphite-scop-detection.c, graphite.c, haifa-sched.c,
1323 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1324 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1325 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1326 lto-opts.c, lto-section-in.c, lto-section-out.c,
1327 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1328 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1329 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1330 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1331 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1332 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1333 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1334 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1335 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1336 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1337 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1339 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
1340 toplev.h. Dependencies for above files and c-family files changed
1341 to remove $(TOPLEV_H) or toplev.h.
1342 (C_TREE_H): Don't include $(TOPLEV_H).
1343 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
1345 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1346 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1347 config/t-darwin, config/t-sol2,
1348 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1349 Dependencies for above files changed to remove $(TOPLEV_H) or
1352 2010-11-30 Richard Guenther <rguenther@suse.de>
1355 * gcc.c (main): Use the first input with a compiler as infile
1356 for link spec processing.
1358 2010-11-30 Richard Guenther <rguenther@suse.de>
1361 * cgraphunit.c (ipa_passes): Stop after errors from
1364 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
1366 * gcc-plugin.h: Include coretypes.h.
1367 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1369 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1371 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1372 * ggc-none.c (ggc_internal_alloc_zone_stat)
1373 (ggc_internal_cleared_alloc_zone_stat): New.
1375 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1377 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1378 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1379 (rs6000_emit_prologue): Don't set PIC register if
1380 TARGET_SINGLE_PIC_BASE.
1381 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1382 * doc/invoke.texi (msingle-pic-base): Document.
1384 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
1387 * exec-tool.in (id): New.
1388 Check and export LT_RCU_$id instead of LT_RCU.
1390 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
1392 PR tree-optimization/46675
1393 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1394 in offset calculation.
1396 2010-11-29 Jan Hubicka <jh@suse.cz>
1398 * collect2.c (main): Do not imply verbose output with
1399 LTO and linker plugin.
1401 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1403 * dwarf2out.c (print_die): Print the address of the current DIE or
1404 of any DIE referenced by the current one.
1406 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1409 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1411 (scope_die_for, gen_type_die_for_member): Replace uses of
1412 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1414 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1416 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1417 (darwin_asm_declare_object_name): Correct spelling.
1418 (darwin_output_aligned_bss): Likewise.
1420 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1421 Mike Stump <mrs@gcc.gnu.org>
1426 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1427 (ASM_OUTPUT_LOCAL): Likewise.
1428 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1429 (darwin_output_aligned_bss): Likewise.
1430 (darwin_asm_output_aligned_decl_local): Likewise.
1431 (darwin_asm_output_aligned_decl_common): Likewise.
1432 (darwin_use_anchors_for_symbol_p): Likewise.
1433 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1434 (TARGET_ASM_OUTPUT_ANCHOR): Define.
1435 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1436 (DARWIN_SECTION_ANCHORS): Set to 1.
1437 * config/darwin.c (emit_aligned_common): New var.
1438 (darwin_init_sections): Check that the Darwin private zero-size section
1440 (darwin_text_section): Check for zero-sized objects.
1441 (darwin_mergeable_string_section): Likewise.
1442 (darwin_mergeable_constant_section): Likewise.
1443 (machopic_select_section): Adjust to check for zero-sized objects.
1444 Assert that OBJC meta data are non-zero sized.
1445 (darwin_asm_declare_object_name): New.
1446 (darwin_asm_declare_constant_name): Adjust for zero-sized
1448 (BYTES_ZFILL): Define.
1449 (darwin_emit_weak_or_comdat): New.
1450 (darwin_emit_local_bss): New.
1451 (darwin_emit_common): New.
1452 (darwin_output_aligned_bss): New.
1453 (darwin_asm_output_aligned_decl_common): New.
1454 (darwin_asm_output_aligned_decl_local): New.
1455 (darwin_file_end): Disable subsections_via_symbols when section
1456 anchoring is active.
1457 (darwin_asm_output_anchor): Re-enable.
1458 (darwin_use_anchors_for_symbol_p): New.
1459 (darwin_override_options): Check for versions that can emit
1460 aligned common. Update usage of flags to current.
1461 * config/darwin-sections.def: Update comments and flags for
1462 non-anchor sections. zobj_const_section, zobj_data_section,
1463 zobj_bss_section, zobj_const_data_section: New.
1464 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1465 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1466 (L2_MAX_OFILE_ALIGNMENT): Define.
1467 (ASM_OUTPUT_ALIGNED_BSS): Define.
1468 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1469 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1470 (SECTION_NO_ANCHOR): Define.
1471 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1472 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1474 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1476 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1477 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1478 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1479 Conditionally define.
1480 (GET_ENVIRONMENT): Poison.
1481 * configure.ac: Don't test for mincore.
1482 * configure: Regenerate.
1483 * config.in: Regenerate.
1484 * collect2-aix.c: Don't include <sys/mman.h>.
1485 * collect2.c: Don't include <signal.h>.
1486 (SIGCHLD): Don't define.
1487 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1488 * config/alpha/alpha.c: Include "splay-tree.h" instead of
1490 * config/arm/arm.c (arm_target_help): Use getenv instead of
1492 * config/avr/driver-avr.c: Don't include <stdlib.h>.
1493 * config/frv/frv.c: Don't include <ctype.h>.
1494 * config/host-darwin.c: Don't include <sys/mman.h>.
1495 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1496 (MAP_FAILED): Don't define.
1497 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1498 * config/host-solaris.c: Don't include <sys/mman.h>.
1499 * config/i386/cygming.h: Don't include <stdio.h>.
1500 * config/i386/driver-i386.c: Don't include <stdlib.h>.
1501 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1502 * config/iq2000/iq2000.c: Don't include <signal.h>.
1503 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1504 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1505 * config/mep/mep-pragma.c: Don't include <stdio.h>.
1506 * config/microblaze/microblaze.c: Don't include <signal.h>.
1507 * config/mips/mips.c: Don't include <signal.h>.
1508 * config/rs6000/host-darwin.c: Don't include <signal.h>.
1509 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1510 * defaults.h (GET_ENVIRONMENT): Don't define.
1511 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1512 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1513 (SIGCHLD, MAP_FAILED, kill): Don't define.
1514 (process_command): Use getenv instead of GET_ENVIRONMENT.
1515 * genhooks.c: Don't include <string.h>.
1516 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1518 (MAP_FAILED): Don't define.
1519 * ggc-page.c Don't include <sys/mman.h>.
1520 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1521 * ggc-zone.c: Don't include <sys/mman.h>.
1522 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1523 * graph.c: Include "config.h" instead of <config.h>.
1524 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1525 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1526 (SIGCHLD, kill): Don't define.
1527 * mips-tfile.c: Don't include <signal.h>.
1528 * opts.c: Don't include <signal.h> or <sys/resource.h>.
1529 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1530 * passes.c: Don't include <signal.h>, <sys/resource.h> or
1532 * sparseset.h: Don't include <assert.h>.
1533 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1534 * tlink.c: Don't include "libiberty.h".
1535 * toplev.c: Don't include <signal.h> or <sys/times.h>.
1536 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1537 * tree-switch-conversion.c: Don't include <signal.h>.
1538 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1540 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1542 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1543 c_parser_objc_try_catch_finally_statement for consistency with the
1544 C++ parser. Parse @catch(...) and pass NULL_TREE to
1545 objc_begin_catch_clause() in that case. Improved error recovery.
1546 Reorganized code to be almost identical to
1547 cp_parser_objc_try_catch_finally_statement.
1549 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
1551 PR tree-optimization/46621
1552 * gimple.h: Don't include tm.h or hard-reg-set.h .
1553 * Makefile.in (GIMPLE_H): Remove $(TM_H).
1556 * cppbuiltin.c: Include target.h .
1557 (define_builtin_macros_for_type_sizes):
1558 Use targetm.float_words_big_endian.
1560 2010-11-27 Jan Hubicka <jh@suse.cz>
1562 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1563 and output cold_text_section_label.
1564 (dwarf2out_init): Don't do that there.
1565 (dwarf2out_finish): Handle cold section end label only if cold
1568 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
1570 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1573 2010-11-27 Richard Guenther <rguenther@suse.de>
1575 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1576 (gimple_assign_ssa_name_copy_p): Likewise.
1577 (gimple_assign_unary_nop_p): Use is_gimple_assign.
1578 (is_gimple_cast): Remove.
1579 (gimple_assign_single_p): Move ...
1580 * gimple.h (gimple_assign_single_p): ... here.
1581 (is_gimple_cast): Remove.
1582 (gimple_assign_rhs_code): Simplify.
1583 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1584 instead of is_gimple_cast.
1585 * ipa-type-escape.c (look_for_casts): Likewise.
1587 2010-11-26 Joseph Myers <joseph@codesourcery.com>
1589 * doc/options.texi (Enum, EnumValue): Document new record types.
1590 (Enum): Document new option flag.
1592 * optc-gen.awk: Handle enumerated option arguments.
1593 * opth-gen.awk: Handle enumerated option arguments.
1594 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1595 enum_value_to_arg): New.
1596 (decode_cmdline_option): Handle enumerated arguments.
1597 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1598 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1599 * opts.c (print_filtered_help, print_specific_help): Take
1600 lang_mask arguments.
1601 (print_filtered_help): Handle printing values of enumerated
1602 options. Print possible arguments for enumerated options.
1603 (print_specific_help): Update call to print_filtered_help.
1604 (common_handle_option): Update calls to print_specific_help. Use
1605 value rather than arg for OPT_fdiagnostics_show_location_. Don't
1606 handle OPT_ffp_contract_, OPT_fexcess_precision_,
1607 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1608 OPT_fira_region_ here.
1609 * opts.h (enum cl_var_type): Add CLVC_ENUM.
1610 (struct cl_option): Add var_enum.
1611 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1612 struct cl_enum, cl_enums, cl_enums_count): New.
1613 (CL_ERR_ENUM_ARG): Define.
1614 (CL_ERR_NEGATIVE): Update value.
1615 (enum_value_to_arg): Declare.
1616 * common.opt (flag_ira_algorithm, flag_ira_region,
1617 flag_fp_contract_mode, flag_excess_precision_cmdline,
1618 default_visibility, flag_tls_default): Remove Variable entries.
1619 (help_enum_printed): New Variable.
1620 (fdiagnostics-show-location=): Use Enum. Add associated
1621 SourceInclude, Enum and EnumValue entries.
1622 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1623 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
1624 associated Enum and EnumValue entries.
1626 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
1629 * config/microblaze/microblaze.c (microblaze_block_move_straight):
1631 (microblaze_option_override): Don't use C++ style comments.
1632 (save_restore_insns): Remove unused variable base_offset.
1633 (microblaze_expand_prologue): Remove unused variable insn.
1634 (microblaze_secondary_reload): Adjust type to match target.h .
1635 (microblaze_elf_in_small_data_p): Move declarations to start of block.
1636 (microblaze_expand_move): Likewise.
1637 * config/microblaze/microblaze.h (LARGE_INT):
1638 Avoid signed / unsigned comparisons.
1639 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1640 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1641 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
1643 2010-11-26 Michael Matz <matz@suse.de>
1645 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1647 * passes.c (init_optimization_passes): Remove superfluous
1650 2010-11-26 Richard Guenther <rguenther@suse.de>
1653 * gimple.c (gtc_visit): Do not return true for members of an
1654 SCC still being processed but the current lattice value of
1655 the member. Treat SCC members comparison state as lattice,
1656 starting at equal, eventually dropping to unequal.
1657 (gimple_types_compatible_p_1): Likewise.
1659 2010-11-26 Richard Guenther <rguenther@suse.de>
1662 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1663 for location list processing.
1665 2010-11-26 Richard Guenther <rguenther@suse.de>
1668 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1671 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1673 * config/s390/s390.c (print_operand_address): Replace assert with
1675 (print_operand): Replace assertions, gcc_unreachable and
1676 fatal_insn with error messages.
1678 2010-11-26 Richard Guenther <rguenther@suse.de>
1680 PR tree-optimization/46665
1681 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1683 2010-11-26 Ian Bolton <ian.bolton@arm.com>
1685 * config/arm/arm.c (arm_option_override): enable loop array
1686 prefetching at -O3 for suitable targets, and configure params.
1687 * config/arm/arm-protos.h (struct tune_params): Add fields for
1688 configuring loop array prefetching.
1690 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
1692 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1694 2010-11-26 Richard Guenther <rguenther@suse.de>
1696 PR tree-optimization/46664
1697 * tree-affine.c (aff_combination_to_tree): Add rest last.
1699 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1702 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1703 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1704 * configure: Regenerated.
1705 * exec-tool.in: Not quoting command, may have extra arguments.
1707 2010-11-26 Richard Guenther <rguenther@suse.de>
1709 PR tree-optimization/46528
1711 * profile.c (branch_prob): Do not split blocks based on locations
1712 from debug statements.
1714 2010-11-26 Jakub Jelinek <jakub@redhat.com>
1717 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1718 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
1721 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1722 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1723 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1724 build6_loc): Define.
1725 * fold-const.c (protected_set_expr_location_unshare): New inline.
1726 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1727 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1728 pedantic_omit_one_operand_loc, omit_two_operands_loc,
1729 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1730 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1731 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1732 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1733 instead of buildN followed by SET_EXPR_LOCATION or
1734 protected_set_expr_location.
1735 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1736 Use buildN_stat_loc instead of buildN_stat followed by
1739 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
1741 * Makefile.in (s-tm-texi): Remove spurous tab.
1743 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1746 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1749 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1751 * toplev.c (finalize): Add no_backend parameter. Don't finish
1752 passes when preprocessing only. Adjust...
1753 (do_compile): ... caller.
1755 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1757 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1758 flag_unsafe_math_optimizations.
1760 Move fnegabs related patterns together. Only use fmpynfadd instruction
1761 to negate a multiply if !flag_signed_zeros is true.
1763 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
1765 * gengtype-state.c (read_state_structures): Initialize "previous".
1767 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
1768 Jeremie Salvucci <jeremie.salvucci@free.fr>
1770 * gengtype-state.c: Add new file.
1772 * gengtype.c (type count): New variable.
1773 (new_structure, find_param_structure, create_pointer)
1774 (create_array): Use it to set state_number in types.
1775 (dump_everything): Improve comment.
1776 (main): Call read_state and write_state. Print type_count.
1778 * gengtype.h (type_lineloc): New function.
1779 (read_state, write_state): New declarations.
1781 * Makefile.in (GENGTYPE_FLAGS): New variable.
1782 (s-gtype): Run gengtype twice and generate gtype.state.
1783 (build/gengtype-state.o): New rule.
1784 (build/gengtype$(build_exeext)): Link gengtype-state.o.
1785 (mostlyclean): Update comment. Remove gtype.state.
1787 2010-11-25 Jakub Jelinek <jakub@redhat.com>
1790 * combine.c (try_combine): When substing i2dest for i2src, pass
1791 1 as last argument even if
1792 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1794 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
1797 * builtins.c (target_char_cast): Check INTEGER_CST instead of
1798 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
1800 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1802 * target.def (supports_split_stack, except_unwind_info): Take
1803 gcc_options parameters.
1804 * targhooks.c (default_except_unwind_info,
1805 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1806 gcc_options parameters.
1807 * targhooks.h (default_except_unwind_info,
1808 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1810 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1811 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1812 Document that hooks must not be modified.
1813 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1814 * doc/tm.texi: Regenerate.
1815 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1816 &global_options to targetm.except_unwind_info.
1817 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1818 dwarf2out_begin_prologue, dwarf2out_frame_init,
1819 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1820 &global_options to targetm.except_unwind_info.
1821 * except.c (init_eh, finish_eh_generation,
1822 gate_convert_to_eh_region_ranges,
1823 output_one_function_exception_table): Pass &global_options to
1824 targetm.except_unwind_info.
1825 * expr.c (build_personality_function): Pass &global_options to
1826 targetm.except_unwind_info.
1827 * function.c (expand_function_end): Pass &global_options to
1828 targetm.except_unwind_info.
1829 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1830 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1831 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1832 and targetm.supports_split_stack. Remove assertions about opts
1834 (common_handle_option): Remove assertions about opts, opts_set and dc.
1835 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1836 &global_options to targetm.except_unwind_info.
1837 * tree.c (build_common_builtin_nodes: Pass &global_options to
1838 targetm.except_unwind_info.
1839 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1840 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1841 thumb1_expand_prologue, thumb1_output_function_prologue,
1842 arm_unwind_emit, arm_output_fn_unwind): Update calls to
1843 arm_except_unwind_info.
1844 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1846 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1848 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1849 ia64_reorg, ia64_asm_unwind_emit): Update calls to
1850 ia64_except_unwind_info.
1851 * config/pa/pa.c (pa_option_override): Pass &global_options to
1852 targetm.except_unwind_info.
1853 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1856 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
1858 * cgraphunit.c (process_function_and_variable_attributes):
1859 Mark dllexport-ed function/variables as needed.
1860 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1861 as externally visible.
1863 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1865 PR rtl-optimization/46585
1866 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1867 (vinsn_init): Skip computation of dependencies for local NOPs.
1868 (vinsn_delete): Don't try to free regsets for local NOPs.
1869 (setup_nop_and_exit_insns): Change definition of nop_pattern.
1871 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1873 PR rtl-optimization/46602
1874 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1875 (tidy_control_flow): Here.
1877 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
1878 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1881 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1882 Fix target.def pathname in timestamp comparison.
1884 2010-11-24 Richard Henderson <rth@redhat.com>
1886 * config/ia64/predicates.md (pmpyshr_operand): New.
1887 * config/ia64/ia64.c (ia64_expand_unpack): New.
1888 (ia64_expand_widen_mul_v4hi): New.
1889 (ia64_expand_widen_sum): Update for pattern renames.
1890 (ia64_expand_dot_prod_v8qi): Likewise.
1891 * config/ia64/ia64-protos.h: Update.
1892 * config/ia64/vect.md (vecwider): New mode attribute.
1893 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1894 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1895 (pmpyshr2, pmpyshr2_u): New.
1896 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1897 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1899 (vec_pack_ssat_v4hi): Rename from pack2_sss.
1900 (vec_pack_usat_v4hi): Rename from *pack2_uss.
1901 (vec_pack_ssat_v2si): Rename from pack4_sss.
1902 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1903 vec_select operation.
1904 (vec_interleave_highv8qi): Similarly.
1905 (mux1_alt): Rename from *mux1_alt.
1906 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1907 (vec_interleave_lowv4hi): Rename from unpack2_l.
1908 (vec_interleave_highv4hi): Rename from unpack2_h.
1909 (mix2_r): Rename from *mix2_r.
1910 (mix2_l): Similarly.
1911 (vec_extract_evenodd_helper): New.
1912 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1913 (vec_interleave_lowv2si): Rename from *unpack4_l.
1914 (vec_interleave_highv2si): Rename from *unpack4_h.
1915 (vec_extract_evenv2si, vec_extract_oddv2si): New.
1916 (vec_interleave_lowv2sf): Rename from fmix_r.
1917 (vec_interleave_highv2sf): Rename from *fmix_l.
1918 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1919 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1920 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1921 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1923 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1925 * targhooks.c (default_except_unwind_info): Remove
1926 MUST_USE_SJLJ_EXCEPTIONS case.
1927 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1928 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1929 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1930 * doc/tm.texi: Regenerate.
1931 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1933 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1935 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1936 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1937 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1938 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1939 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1941 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1944 * config/i386/i386.c (ix86_expand_call): Don't check
1947 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1950 * config/i386/i386.c (upper_128bits_state): New.
1951 (block_info_def): Remove upper_128bits_set and done. Add state,
1952 referenced, count, processed and rescanned.
1953 (check_avx256_stores): Updated.
1954 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1955 Call note_stores only if needed. Set referenced and count.
1956 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
1957 (rescan_move_or_delete_vzeroupper): New.
1958 (move_or_delete_vzeroupper): Process and rescan all all basic
1959 blocks instead of predecessor blocks of all exit points.
1960 (ix86_option_override_internal): Enable vzeroupper optimization
1961 only for -fexpensive-optimizations and not optimizing for size.
1962 (use_avx256_p): Removed.
1963 (init_cumulative_args): Don't set use_avx256_p.
1964 (ix86_function_arg): Likewise.
1965 (ix86_expand_move): Likewise.
1966 (ix86_expand_vector_move_misalign): Likewise.
1967 (ix86_local_alignment): Likewise.
1968 (ix86_minimum_alignment): Likewise.
1969 (ix86_expand_epilogue): Don't check use_avx256_p when generating
1971 (ix86_expand_call): Likewise.
1973 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1974 and use_avx256_p. Add rescan_vzeroupper_p.
1976 2010-11-24 Joseph Myers <joseph@codesourcery.com>
1978 * toplev.c: Include <signal.h>.
1980 2010-11-24 Richard Guenther <rguenther@suse.de>
1983 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1984 conflicting function signatures as non-inlineable.
1986 2010-11-24 Jakub Jelinek <jakub@redhat.com>
1988 PR rtl-optimization/46614
1989 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1990 (deps_analyze_insn): Mark JUMP_INSNs in
1991 last_pending_memory_flush that weren't added through
1992 flush_pending_lists with NON_FLUSH_JUMP_KIND.
1993 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1994 on INSN_LIST instead of JUMP_P check on its operand.
1995 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1997 2010-11-24 Richard Guenther <rguenther@suse.de>
1999 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2001 2010-11-24 Richard Guenther <rguenther@suse.de>
2004 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2005 a FIELD_DECL that is type correct issue a warning and fixup
2006 with a VIEW_CONVERT_EXPR.
2008 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2010 * doc/invoke.texi (Options for Debugging Your Program or GCC):
2011 Explain static numbering of dump files.
2013 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2015 * common.opt (user_vect_verbosity_level): New Variable entry.
2016 (ftree-vectorizer-verbose=): Mark as UInteger.
2017 * flag-types.h (enum vect_verbosity_levels): Move from enum
2018 verbosity_levels in tree-vectorizer.h.
2019 * opts.c: Don't include tree.h.
2020 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
2021 gcc_options parameter; take integer option argument.
2022 (common_handle_option): Update call to vect_set_verbosity_level.
2023 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2024 (vect_set_verbosity_level): Move to opts.c.
2025 (vect_verbosity_level, vect_print_dump_info): Update for change of
2027 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2028 (vect_print_dump_info): Update for change of enum name.
2029 * tree.h (vect_set_verbosity_level): Remove.
2030 * Makefile.in (opts.o): Update dependencies.
2032 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2035 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2036 instead of insn with any_condjump_p.
2038 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
2040 * config/mips/loongson.md: Change the description comment of the file
2041 and update the copyright years.
2042 (define_insn "<u>div<mode>3): Add loongson3a support.
2043 (define_insn "<u>mod<mode>3"): Likewise.
2044 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2045 mul<mode>3_mul3_loongson.
2046 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2047 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2049 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2051 * common.opt (initial_max_fld_align, flag_debug_asm,
2052 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2053 flag_print_asm_name, graph_dump_format, help_printed,
2054 help_columns, flag_opts_finished): New Variable entries.
2055 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2056 frandom-seed=): Mark deferred.
2057 (fsched-verbose=): Use UInteger and Var.
2058 * flags.h (set_struct_debug_option, flag_print_asm_name,
2059 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2060 graph_dump_format): Don't declare here.
2061 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2062 * opts-global.c: Include dbgcnt.h and debug.h.
2063 (decode_options): Pass location to finish_options.
2064 (handle_common_deferred_options): Check flag_dump_all_passed.
2065 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2066 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
2068 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2069 (set_struct_debug_option): Add location_t parameter. Update
2070 recursive call. Use error_at.
2071 (default_options_optimization): Use error_at.
2072 (finish_options): Add location_t parameter. Use
2073 opts->x_flag_opts_finished instead of first_time_p. Use
2074 opts->x_optimize instead of optimize. Use error_at. Pass
2076 (print_filtered_help): Use opts->x_help_printed to track what
2077 options have been printed.
2078 (print_specific_help): Use opts->x_help_columns to track number of
2080 (common_handle_option): Pass locations and gcc_options pointers to
2081 more functions. Use warning_at instead of fnotice and warning.
2082 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2083 OPT_fdebug_prefix_map_. Use error_at. Set
2084 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2085 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
2086 OPT_fsched_verbose_.
2087 (handle_param): Add location_r parameter. Use error_at.
2088 (set_debug_level): Add location_r parameter. Use error_at and
2090 (setup_core_dumping): Add diagnostic_context parameter.
2091 (decode_d_option): Add gcc_options, location_t and
2092 diagnostic_context parameters and use them instead of global
2093 state. Use warning_at.
2094 (enable_warning_as_error): Use error_at.
2095 * opts.h (finish_options): Update prototype.
2096 (set_struct_debug_option): Declare here.
2097 * rtl.h (fix_sched_param): Remove.
2098 * stor-layout.c (initial_max_fld_align): Remove.
2099 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2100 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2101 (process_options): Set maximum_field_alignment.
2102 * tree.h (initial_max_fld_align) Don't declare here.
2103 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2105 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2107 * flag-types.h (struct visibility_flags): Don't declare here.
2108 * flags.h (strip_off_ending, fast_math_flags_set_p,
2109 fast_math_flags_struct_set_p): Declare here.
2110 (visibility_options): Don't declare here.
2111 * opts-common.c (option_enabled, get_option_state): Move from
2113 * opts-global.c: Include diagnostic.h instead of
2114 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2116 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2117 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2118 print_ignored_options, unknown_option_callback,
2119 post_handling_callback, lang_handle_option, add_input_filename,
2120 read_cmdline_options, initial_lang_mask, init_options_once,
2121 decode_cmdline_options_to_array_default_mask,
2122 set_default_handlers, decode_options): Move from opts.c.
2123 (print_ignored_options): Use warning_at instead of saving and
2124 restoring input_location.
2125 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2126 instead of expr.h. Don't include langhooks.h, except.h or
2127 lto-streamer.h. Add more comments on includes.
2128 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2130 (visibility_options): Move to c-family/c-common.c.
2131 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2132 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2133 print_ignored_options, unknown_option_callback,
2134 post_handling_callback, lang_handle_option, add_input_filename,
2135 read_cmdline_options, initial_lang_mask, init_options_once,
2136 decode_cmdline_options_to_array_default_mask,
2137 set_default_handlers, decode_options): Move to opts-global.c.
2138 (target_handle_option, default_options_optimization,
2139 finish_options, common_handle_option): Remove static.
2140 (option_enabled, get_option_state): Move to opts-common.c.
2141 * opts.h (common_handle_option, target_handle_option,
2142 finish_options, default_options_optimization): Declare.
2143 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2144 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2146 * toplev.h (strip_off_ending, decode_d_option,
2147 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2149 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2151 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2154 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2155 options, replace by call of pass-through-libs spec function to process
2156 link_gcc_c_sequence spec.
2157 (lto_libgcc_spec): Delete variable.
2158 (static_specs[]): Remove related entry.
2159 (static_spec_functions[]): Add new entry for pass-through-libs.
2160 (main): Don't generate deleted lto_libgcc_spec.
2161 (pass_through_libs_spec_func): New function to implement the new
2162 pass-through-libs spec function.
2163 * doc/invoke.texi (pass-through-libs): Document new spec function.
2165 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2167 * doc/options.texi (Warning, Optimization): Document.
2169 2010-11-23 Jan Hubicka <jh@suse.cz>
2171 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2172 (tree_decl_with_vis): Add implicit_section_name_p.
2173 * targhooks.h (default_function_section): Declare.
2174 * target.def (function_section): New hook.
2175 * defaults.h (HOT_TEXT_SECTION_NAME,
2176 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2177 * predict.c (choose_function_section): Remove.
2178 (estimate_bb_frequencies): Do not use choose_function_section.
2179 * coretypes.h (enum node_frequency): Move here from cgraph.h
2180 * cgraph.h (enum node_frequency): Remove.
2181 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2182 unlikely_text_section_p): Remove.
2183 (named_subsection_entry): New structure.
2184 (get_text_section): New function.
2185 (default_function_section): New function.
2186 (function_section_1): Break out from ...; handle profile info.
2187 (function_section): ... here.
2188 (unlikely_text_section): Remove.
2189 (unlikely_text_section_p): Use function_section_1.
2190 (assemble_start_function): Do not initialize cold section.
2191 (default_section_type_flags): Do not special case cold subsection.
2192 (switch_to_section): Likewise.
2193 * output.h (get_text_section): Define.
2194 * config/i386/winnt.c: Do not special case cold section.
2195 * config/darwin-protos.h (darwin_function_section): Declare.
2196 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2197 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2198 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2199 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2200 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2201 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2202 * config/darwin.c (machopic_select_section): Use
2203 darwin_function_section.
2204 (darwin_function_section): New function.
2205 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2206 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2207 (TARGET_ASM_FUNCTION_SECTION): Define.
2208 * system.h (HOT_TEXT_SECTION_NAME,
2209 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2211 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2213 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2214 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2216 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2219 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2220 following unconditional jumps.
2222 2010-11-23 Richard Guenther <rguenther@suse.de>
2224 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2226 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2227 Jeremie Salvucci <jeremie.salvucci@free.fr>
2229 * gengtype.c (enum typekind, struct options)
2230 (struct nested_ptr_data, struct pair, NUM_PARAM)
2231 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2233 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2234 Remove static, add zero state_number.
2235 (typedefs, structures, param_structs, variables): Remove static.
2236 (create_option): Remove.
2237 (create_string_option, create_type_option, create_nested_option):
2239 (create_nested_ptr_option): Use create_nested_option.
2240 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2241 new create*option functions.
2242 (process_gc_options): Adjust for discriminated option.
2243 (output_mangled_typename): Handle TYPE_NONE.
2244 (walk_type): Test option kinds.
2245 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2246 (write_func_for_structure, write_type, write_local, write_root)
2247 (write_roots, note_def_vec, dump_options): Adjust for
2248 discriminated option.
2250 * gengtype.h (typedefs, structures, param_structs, variables
2251 enum typekind): Move from gengtype.c
2252 (enum option_kind): New discriminating enumeration.
2253 (struct options): Becomes discriminated.
2254 (struct nested_ptr_data): Nove from gengtype.c
2255 (create_string_option, create_type_option, create_nested_option)
2256 (create_nested_ptr_option): New functions
2257 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2258 (UNION_OR_STRUCT_P): Move from gengtype.c
2260 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2261 discriminated options.
2263 2010-11-23 Richard Guenther <rguenther@suse.de>
2265 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2266 twice. Avoid re-allocating the ops vector all the time.
2268 2010-11-23 Richard Guenther <rguenther@suse.de>
2270 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2271 is_gimple_min_invariant, group tree code checks to allow
2273 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2276 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
2278 * config.gcc (sparc*-*-*): Reorder.
2280 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2282 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2283 Remove ENABLE_CHECKING around DBGPRINTF.
2285 2010-11-22 Joseph Myers <joseph@codesourcery.com>
2287 * common.opt (exit_after_options, write_symbols, debug_info_level,
2288 use_gnu_debug_info_extensions): New Variable entries.
2289 (fprofile-dir=): Use Var.
2290 * flag-types.h (enum debug_info_level): Rename to enum
2292 * flags.h (write_symbols, debug_info_level,
2293 use_gnu_debug_info_extensions): Remove declarations.
2294 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2295 (set_struct_debug_option): Make static variables const.
2296 (use_gnu_debug_info_extensions): Remove.
2297 (set_debug_level, print_filtered_help, print_specific_help,
2298 fast_math_flags_set_p): Take gcc_options parameters and use them
2299 in place of global variables.
2300 (print_filtered_help): Make new_help non-static.
2301 (print_specific_help): Update call to print_filtered_help.
2302 (common_handle_option): Update calls to print_specific_help. Use
2303 gcc_options structure for more settings. Make --help table
2304 const. Don't handle OPT_fprofile_dir_ here. Update calls to
2306 * toplev.c (profile_data_prefix): Remove.
2307 * toplev.h (profile_data_prefix, exit_after_options): Remove
2309 (fast_math_flags_set_p): Update prototype.
2310 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2311 Update call to fast_math_flags_set_p.
2313 2010-11-22 Richard Henderson <rth@redhat.com>
2316 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2317 return the address register extracted.
2318 (crx_decompose_address): Update the extracted address register.
2320 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2323 * gcc.c (main): Don't crash when lto-wrapper program is not found.
2325 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
2328 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2329 * config/picochip/picochip-protos.h: Don't include "target.h" .
2330 (picochip_secondary_reload): Don't declare.
2333 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2334 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2337 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
2340 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2341 (source_dot_c_frul): Likewise.
2343 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
2345 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2347 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
2350 * Makefile.in (fwprop.o) Add sparseset.h.
2351 * fwprop.c: Include sparseset.h
2352 (struct find_occurrence_data, find_occurrence_callback,
2353 find_occurrence): Remove.
2354 (active_defs, active_defs_check, register_active_defs,
2355 update_df_init, update_uses): New.
2356 (update_df): Rewrite.
2357 (try_fwprop_subst, forward_propagate_asm): Add calls to
2358 update_df_init and update_df.
2359 (fwprop_init): Allocate active_defs and active_defs_check.
2360 (fwprop_done): Free them.
2361 (fwprop, fwprop_addr): Adjust comments.
2362 * df.h (df_uses_create): Declare.
2363 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2364 (df_ref_create): Return result of df_ref_create_structure directly.
2365 (df_ref_create_structure): Call df_install_ref_incremental when
2366 no collection_rec is passed.
2367 (df_ref_record): Do not create multiword hard reg info when no
2368 collection_rec is passed.
2369 (df_uses_create): New.
2371 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2374 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2377 2010-11-22 Richard Guenther <rguenther@suse.de>
2379 * gimple-fold.c (maybe_fold_reference): When canonicalizing
2380 MEM_REFs, preserve volatileness.
2381 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2384 2010-11-22 Richard Guenther <rguenther@suse.de>
2386 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2388 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
2390 PR rtl-optimization/45652
2391 * alias.c (get_reg_base_value): New.
2392 * rtl.h (get_reg_base_value): Add prototype.
2393 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
2394 non-null REG_BASE_VALUE for renaming.
2396 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
2397 Basile Starynkevitch <basile@starynkevitch.net>
2399 * gengtype.c: Include xregex.h and obstack.h
2400 Added comments about role of get_output_file_with_visibility and
2401 our regexpr machinery.
2402 (frul_actionrout_t, struct file_rule_st): New.
2403 (hader_dot_h_frul, source_dot_c_frul): New functions.
2404 (NULL_REGEX, NULL_FRULACT): New.
2406 (matching_file_name_substitute): New function.
2407 (get_output_file_with_visibility): Updated comments and rewritten
2408 to use the new files_rules machinery.
2410 * Makefile.in (XREGEX_H): Added variable.
2411 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2413 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2415 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2417 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2419 * target.def (conditional_register_usage): Define.
2420 * reginfo.c (init_reg_sets_1): Call
2421 targetm.conditional_register_usage.
2422 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2423 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2424 for making it a hook.
2425 * doc/tm.texi: Regenerate.
2426 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2427 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2429 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2430 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2431 * config/arc/arc.c (arc_conditional_register_usage): ...here.
2433 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2434 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2435 * config/arm/arm.c (arm_conditional_register_usage): ...here.
2437 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2438 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2439 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2440 * config/bfin/bfin.c (conditional_register_usage): Move code into...
2441 (bfin_conditional_register_usage): ...here. New function.
2442 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2443 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2444 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2445 * config/cris/cris.c (cris_conditional_register_usage): Make static.
2446 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2447 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2448 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2449 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2450 * config/frv/frv.c (frv_conditional_register_usage): Make static.
2451 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2452 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2453 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2455 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2456 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2457 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2458 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2459 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2460 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2461 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2462 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2463 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2464 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2465 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2467 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2468 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2469 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2471 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2473 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2474 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2475 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2476 * config/mep/mep.c (mep_conditional_register_usage): Make static.
2477 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2478 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2479 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2480 * config/mips/mips.c (mips_conditional_register_usage): Make static.
2481 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2482 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2483 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2484 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2485 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2486 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2487 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2488 ...here. New function.
2489 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2490 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2491 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2492 * config/pa/pa.c (pa_conditional_register_usage): ...here.
2494 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2495 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2496 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2498 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2499 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2500 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2502 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2504 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2505 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2506 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2507 * config/rx/rx.c (rx_conditional_register_usage): Make static.
2508 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2509 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2510 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2511 * config/s390/s390.c (s390_conditional_register_usage): Make static.
2512 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2513 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2514 * config/score/score.c (score_conditional_register_usage): ...here.
2516 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2517 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2518 * config/sh/sh.c (sh_conditional_register_usage): ...here.
2520 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2521 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2522 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2524 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2525 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2526 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2527 * config/spu/spu.c (spu_conditional_register_usage): Make static.
2528 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2529 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2530 * config/v850/v850.c (v850_conditional_register_usage): ...here.
2532 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2534 2010-11-21 Jan Hubicka <jh@suse.cz>
2535 Dominique d'Humieres <dominiq@lps.ens.ft>
2538 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2539 finalize external decls.
2541 2010-11-21 Joseph Myers <joseph@codesourcery.com>
2543 * system.h (strerror): Poison.
2545 2010-11-21 Richard Henderson <rth@redhat.com>
2547 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2550 2010-11-21 Richard Henderson <rth@redhat.com>
2552 PR rtl-optimization/46571
2553 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2554 (compute_hash_table_work): Use NONDEBUG_INSN_P.
2556 2010-11-21 Paul Koning <ni1d@arrl.net>
2558 * config/mips/pdp11.md (negsi2): Fix wrong code.
2560 2010-11-21 Paul Koning <ni1d@arrl.net>
2562 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2563 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2565 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
2567 * config/mips/mips.c (machine_function): Rename load_label_length to
2568 load_label_num_insns.
2569 (mips_load_label_length): Rename to...
2570 (mips_load_label_num_insns): ...this. Adjust to first renaming.
2571 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
2573 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2576 * config/alpha/predicates.md (direct_call_operand): Return false
2577 for !TARGET_SMALL_TEXT targets.
2579 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2581 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2582 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2583 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2584 * doc/tm.texi: Regenerate.
2585 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2586 HANDLE_PRAGMA_WEAK): Poison.
2587 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2588 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2589 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2590 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2591 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2592 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2593 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2594 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2595 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2596 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2597 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2598 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2599 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2600 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2601 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2602 (HANDLE_PRAGMA_WEAK): Don't undefine.
2603 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2604 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2605 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2606 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2607 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2608 (HANDLE_PRAGMA_WEAK): Don't undefine.
2609 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2610 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2611 (HANDLE_PRAGMA_PACK): Don't undefine.
2612 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2613 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2614 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2615 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2616 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2617 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2618 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2619 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2620 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2621 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2622 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2623 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2624 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2625 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2626 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2627 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2628 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2630 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
2633 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2634 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2635 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2637 2010-11-20 Jan Hubicka <jh@suse.cz>
2639 * cgraph.c (ld_plugin_symbol_resolution_names): New.
2640 (dump_cgraph_node): Dump resolution.
2641 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2642 (cgraph_comdat_can_be_unshared_p): Dclare.
2643 * lto-streamer-out.c (produce_symtab): Use
2644 cgraph_comdat_can_be_unshared_p.
2645 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2646 (cgraph_comdat_can_be_unshared_p): New function based on logic
2647 in cgraph_externally_visible_p.
2648 (cgraph_externally_visible_p): Use it.
2649 (varpool_externally_visible_p): Virtual tables can be unshared.
2650 * varpool.c (dump_varpool_node): Dump resolution.
2652 2010-11-20 Jan Hubicka <jh@suse.cz>
2654 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2656 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2659 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2660 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2662 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2663 (install-strip): New target.
2664 (STRIPPROG): New variable, exported if STRIP is set.
2665 * doc/install.texi (Final install): Minor markup and code style
2666 fixes. Document install-strip target.
2668 2010-11-20 Paul Koning <ni1d@arrl.net>
2670 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2671 pdp11_regno_reg_class): New functions.
2672 * config/pdp11/pdp11.md (define_constants): Add register numbers.
2673 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2674 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2676 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2677 frame pointer and argument pointer pseudo-registers.
2678 (ARG_POINTER_REGNUM): Define.
2679 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2681 (FIRST_PARM_OFFSET): Update for argument pointer.
2682 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2683 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2684 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2685 frame pointer and argument pointer.
2687 2010-11-20 Jakub Jelinek <jakub@redhat.com>
2690 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2691 when looking for immediate uses.
2693 PR tree-optimization/45830
2694 * stmt.c (expand_switch_using_bit_tests_p): New function.
2695 (expand_case): Use it.
2696 * tree.h (expand_switch_using_bit_tests_p): New prototype.
2697 * tree-switch-conversion.c (struct switch_conv_info): Add
2698 bit_test_uniq, bit_test_count and bit_test_bb fields.
2699 (check_range): Fix a comment.
2700 (check_process_case): Compute bit_test_uniq and bit_test_count.
2701 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2703 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2704 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2705 (array_value_type): New function.
2706 (build_one_array): Use it, if it returned different type,
2707 fold_convert all constructor fields and convert back to the
2708 wider type in the generated code.
2709 (process_switch): Initialize bit_test_uniq, bit_test_count and
2710 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
2713 2010-11-19 Michael Matz <matz@suse.de>
2715 PR tree-optimization/46077
2716 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2718 2010-11-19 Anatoly Sokolov <aesok@post.ru>
2720 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2721 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2723 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2725 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2727 * mode-switching.c (optimize_mode_switching): Use
2728 FOR_BB_INSNS instead of open-coded loop.
2729 * cfgrtl.c (redirect_branch_edge): Ditto.
2731 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
2734 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2735 to accomodate 32 bit HOST_WIDE_INT.
2736 (m68hc11_emit_logical): Remove unused variable insn.
2737 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2738 this_insn_uses_iy before use.
2741 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2743 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2746 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2747 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2749 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2751 * doc/extend.texi (Function attributes): Document PowerPC target
2752 attributes that are supported.
2753 (Pragmas): Document that PowerPC now supports target pragmas.
2755 * doc/options.texi (TargetVariable): Document TargetVariable,
2756 HeaderInclude, and SourceInclude.
2758 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2759 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2762 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2763 SourceInclude directives. Fix a cut+paste error with target save
2764 enum variables. Sort enums in the structures after ints and
2766 * opth-gen.awk: Ditto.
2768 * configure.ac: Add support for HeaderInclude and SourceInclude option
2769 directives to add the appropriate files to the dependency lists.
2770 * configure: Regenerate.
2771 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2772 (OPTIONS_C_EXTRA): New variable for SourceInclude.
2773 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2774 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2775 (gcc-options.o): Ditto.
2776 * opt-include.awk: New awk script to handle HeaderInclude and
2779 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2780 gets saved in the target options.
2781 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2782 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2783 (-mprototype): Ditto.
2784 (-mbit-word): ditto.
2785 (-mregnames): Ditto.
2786 (-msecure-plt): Ditto.
2788 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2789 (-mpowerpc-gfxopt): Ditto.
2796 (-mhard-dfp): Ditto.
2799 (-mmultiple): Ditto.
2804 (-mno-update): Ditto.
2805 (-mavoid-indexed-addresses): Ditto.
2806 (-mtls-markers): Ditto.
2807 (-msched-epilog): Ditto.
2808 (-msched-prolog): Ditto.
2809 (-maix-struct-return): Ditto.
2810 (-msvr4-struct-return): Ditto.
2811 (-mxl-compat): Ditto.
2812 (-mrecip-precision): Ditto.
2813 (-mfp-in-toc): Ditto.
2814 (-msum-in-toc): Ditto.
2816 (-mblock-move-inline-limit=): Ditto.
2819 (-mlongcall): Ditto.
2820 (-mgen-cell-microcode): Ditto.
2821 (-mwarn-cell-microcode): Ditto.
2822 (-mwarn-altivec-long): Ditto.
2823 (-mprioritize-restricted-insns=): Ditto.
2824 (-msingle-float): Ditto.
2825 (-mdouble-float): Ditto.
2826 (-msimple-fpu): Ditto.
2827 (-mxilinx-fpu): Ditto.
2828 * config/rs6000/aix64.opt (-mpe): Ditto.
2830 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2831 (rs6000_cpu): Move variable to be a target variable. Rename
2832 cmodel to rs6000_current_cmodel because of macro conflict. Merge
2833 -mdebug=<xxx> variables into a single int.
2834 (rs6000_always_hint): Ditto.
2835 (rs6000_sched_groups): Ditto.
2836 (rs6000_align_branch_targets): Ditto.
2837 (rs6000_sched_costly_dep): Ditto.
2838 (rs6000_sched_insert_nops): Ditto.
2839 (rs6000_long_double_type_size): Ditto.
2840 (rs6000_ieeequad): Ditto.
2841 (rs6000_altivec_abi): Ditto.
2842 (rs6000_spe): Ditto.
2843 (rs6000_spe_abi): Ditto.
2844 (rs6000_float_gprs): Ditto.
2845 (rs6000_darwin64_abi): Ditto.
2846 (can_override_loop_align): Ditto.
2847 (rs6000_sdata): Ditto.
2848 (rs6000_tls_size): Ditto.
2849 (rs6000_current_abi): Ditto.
2850 (rs6000_traceback): Ditto.
2851 (rs6000_alignment_flags): Ditto.
2852 (rs6000_current_cmodel): Ditto.
2853 (rs6000_recip_control): Ditto.
2854 (rs6000_cpu_index): Ditto.
2855 (rs6000_tune_index): Ditto.
2856 (rs6000_debug): Ditto.
2857 (rs6000_target_flags_explict): Ditto.
2859 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2862 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2863 cmodel. Change all uses.
2865 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2866 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
2867 Rename cmodel to rs6000_current_cmodel.
2868 (rs6000_sched_groups): Ditto.
2869 (rs6000_align_branch_targets): Ditto.
2870 (rs6000_sched_costly_dep): Ditto.
2871 (rs6000_sched_insert_nops): Ditto.
2872 (rs6000_long_double_type_size): Ditto.
2873 (rs6000_ieeequad): Ditto.
2874 (rs6000_altivec_abi): Ditto.
2875 (rs6000_spe): Ditto.
2876 (rs6000_spe_abi): Ditto.
2877 (rs6000_float_gprs): Ditto.
2878 (rs6000_darwin64_abi): Ditto.
2879 (can_override_loop_align): Ditto.
2880 (rs6000_sdata): Ditto.
2881 (rs6000_tls_size): Ditto.
2882 (rs6000_current_abi): Ditto.
2883 (rs6000_traceback): Ditto.
2884 (rs6000_alignment_flags): Ditto.
2885 (rs6000_current_cmodel): Ditto.
2886 (rs6000_recip_control): Ditto.
2887 (rs6000_cpu_index): Ditto.
2888 (rs6000_tune_index): Ditto.
2889 (rs6000_debug): Ditto.
2890 (rs6000_target_flags_explict): Ditto.
2891 (rs6000_sched_insert_nops_str): Make static.
2892 (rs6000_sched_costly_dep_str): Ditto.
2893 (rs6000_recip_name): Ditto.
2894 (rs6000_abi_name): Ditto.
2895 (rs6000_sdata_name): Ditto.
2896 (enum rs6000_traceback_name): Move to rs6000-opts.h.
2897 (rs6000_parse_tls_size_option): Delete.
2898 (rs6000_valid_attribute_p): New function for target attributes and
2900 (rs6000_function_specific_save): Ditto.
2901 (rs6000_function_specific_restore): Ditto.
2902 (rs6000_function_specific_print): Ditto.
2903 (rs6000_can_inline_p): Ditto.
2904 (rs6000_set_current_function): Ditto.
2905 (rs6000_inner_target_options): Ditto.
2906 (rs6000_debug_target_options): Ditto.
2907 (rs6000_pragma_target_parse): Ditto.
2908 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2909 attributes and pragmas.
2910 (TARGET_OPTION_SAVE): Ditto.
2911 (TARGET_OPTION_RESTORE): Ditto.
2912 (TARGET_OPTION_PRINT): Ditto.
2913 (TARGET_CAN_INLINE_P): Ditto.
2914 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2915 (POWER_MASKS): Move to file level scope from the
2916 rs6000_option_override_internal function.
2917 (POWERPC_MASKS): Ditto.
2918 (ISA_*_MASKS): Ditto.
2919 (struct rs6000_ptt): Ditto.
2920 (processor_target_table): Ditto.
2921 (rs6000_cpu_name_lookup): Map cpu name to an index in
2922 processor_target_table.
2923 (rs6000_debug_reg_global): Print more information on processor
2924 options for -mdebug=reg.
2925 (rs6000_init_hard_regno_mode_ok): Add support for target
2926 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
2927 Allow -mdebug=val1,val2. Rename cmodel variable.
2928 (rs6000_option_override_internal): Ditto.
2929 (rs6000_option_override): Ditto.
2930 (rs6000_handle_option): Ditto.
2931 (rs6000_conditional_register_usage): Add debug trace message.
2932 (struct rs6000_opt_mask): New for target attribute/pragma support.
2933 (rs6000_opt_masks): Ditto.
2934 (struct rs6000_opt_var): Ditto.
2935 (rs6000_opt_vars): Ditto.
2936 (rs6000_previous_function): Ditto.
2938 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2939 wasn't already included.
2940 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2941 (enum processor_type): Ditto.
2942 (rs6000_cpu): Ditto.
2943 (enum fpu_type_t): Ditto.
2945 (enum rs6000_dependence_cost): Ditto.
2946 (enum rs6000_nop_insertion): Ditto.
2947 (enum group_termination): Ditto.
2948 (rs6000_long_double_type_size): Ditto.
2949 (rs6000_ieeequad): Ditto.
2950 (rs6000_altivec_abi): Ditto.
2951 (rs6000_spe_abi): Ditto.
2952 (rs6000_spe): Ditto.
2953 (rs6000_float_gprs): Ditto.
2954 (rs6000_alignment_flags): Ditto.
2955 (rs6000_sched_insert_nops): Ditto.
2956 (enum rs6000_vector): Ditto.
2957 (enum rs6000_abi): Ditto.
2958 (rs6000_current_opt): Ditto.
2959 (rs6000_debug_*): Delete.
2960 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2961 (TARGET_DEBUG*): Ditto.
2963 * config/rs6000/rs6000-opts.h: New header file to define the enums
2964 that are used in target variables that are now defined in rs6000.opt.
2966 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2968 (rs6000_sdata): Ditto.
2969 (rs6000_abi_name): Delete.
2970 (rs6000_sdata_name): Ditto.
2971 (rs6000_tls_size_string): Ditto.
2973 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2975 * common.opt (debug_struct_ordinary, debug_struct_generic): New
2977 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2978 should_emit_struct_debug): Move from opts.c.
2979 * flag-types.h (enum debug_struct_file): Move from opts.c.
2980 * flags.h (should_emit_struct_debug): Remove.
2981 (base_of_path): Declare.
2982 (set_struct_debug_option): Add gcc_options parameter.
2983 * optc-gen.awk, opth-gen.awk: Handle array variables.
2984 * opts.c (enum debug_struct_file, debug_struct_ordinary,
2985 debug_struct_generic): Remove.
2986 (set_struct_debug_option): Add gcc_options parameter.
2987 (base_of_path): Remove static.
2988 (main_input_basename, main_input_baselength, matches_main_base,
2989 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2991 * toplev.c (main_input_basename, main_input_baselength): Define
2993 * toplev.h (main_input_basename, main_input_baselength): Declare
2996 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2998 * common.opt (flag_instrument_functions_exclude_functions,
2999 flag_instrument_functions_exclude_files): New Variable definitions.
3000 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3001 * gimplify.c (char_p): Declare type and vectors.
3002 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
3003 * opts.c (flag_instrument_functions_exclude_functions,
3004 flag_instrument_functions_exclude_files): Remove.
3005 (add_comma_separated_to_vector): Take void **.
3006 (flag_instrument_functions_exclude_p): Move to gimplify.c.
3007 (common_handle_option): Use options structure for
3008 -finstrument-functions-exclude- options.
3010 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3012 * doc/options.texi (Var): Document effects of Defer.
3014 * opt-functions.awk (var_type, var_set): Handle deferred options.
3015 * opts-common.c (set_option): Handle CLVC_DEFER.
3016 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3017 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3018 fstack-limit-symbol=): Mark as deferred.
3019 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3021 (print_filtered_help): Don't report state of CLVC_DEFER options.
3022 (common_handle_option): Move code for OPT_fcall_used_,
3023 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3024 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3025 OPT_fstack_limit_symbol_ to opts-global.c.
3026 (option_enabled, get_option_state): Handle CLVC_DEFER.
3027 * opts.h: Include vec.h.
3028 (enum cl_var_type): Add CLVC_DEFER.
3029 (cl_deferred_option): Define type and vectors.
3030 (handle_common_deferred_options): Declare.
3031 * opts-global.c: New.
3032 * toplev.c (toplev_main): Call handle_common_deferred_options
3033 * Makefile.in (OPTS_H): Include $(VEC_H).
3034 (OBJS-common): Include opts-global.o.
3035 (opts.o): Update dependencies.
3036 (opts-global.o): Add dependencies.
3038 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3040 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3041 to objc_declare_protocols.
3043 2010-11-19 Richard Guenther <rguenther@suse.de>
3046 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3047 IDENTIFIERs do not stream TREE_TYPE.
3048 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3050 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
3052 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3054 2010-11-19 Jakub Jelinek <jakub@redhat.com>
3057 * dwarf2out.c (const_ok_for_output_1): Don't complain about
3058 non-delegitimized TLS UNSPECs.
3060 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
3061 Ian Lance Taylor <iant@google.com>
3063 * config/darwin-c.c (darwin_additional_format_types): Export.
3065 2010-11-18 Paul Koning <ni1d@arrl.net>
3067 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3070 2010-11-18 Paul Koning <ni1d@arrl.net>
3072 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3073 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3074 * config/pdp11/pdp11.opt (-mabshi): Delete.
3076 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
3078 * resource.h (struct resources): Fix typo in the comment.
3080 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3083 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3085 2010-11-18 Richard Henderson <rth@redhat.com>
3088 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3089 maybe_copy_epilogue_insn; handle prologue insns as well.
3090 * rtl.h, cfglayout.c: Update for rename.
3091 * recog.c (peep2_attempt): Copy prologue/epilogue data for
3092 RTX_FRAME_RELATED_P insns.
3094 2010-11-18 Jakub Jelinek <jakub@redhat.com>
3097 * builtins.c (fold_builtin_printf): Don't copy and modify string
3098 before build_string_literal, instead modify what
3099 build_string_literal returned.
3101 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3104 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3105 REALPART_EXPR and IMAGPART_EXPR.
3107 2010-11-18 Richard Guenther <rguenther@suse.de>
3109 PR tree-optimization/46172
3110 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3112 (slpeel_tree_peel_loop_to_edge): Call it.
3114 2010-11-18 Jeff Law <law@redhat.com>
3116 PR middle-end-optimization/46297
3117 * postreload.c (reload_combine_note_store): Deal with embedded
3118 side effects in MEM expressions.
3120 2010-11-18 Richard Guenther <rguenther@suse.de>
3123 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3124 when checking is not enabled.
3126 2010-11-18 Richard Guenther <rguenther@suse.de>
3129 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3131 (gimple_register_canonical_type): Also cache the canoncial type
3132 for non type leaders.
3134 2010-11-18 Richard Guenther <rguenther@suse.de>
3136 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3138 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3141 * sel-sched-ir.c (init_expr): Use the correct type for
3143 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3145 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3147 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3148 as well as -mrelocatable at the same time.
3150 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3153 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3154 Call the clz builtin.
3156 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3157 Steve Ellcey <sje@cup.hp.com>
3160 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3161 if section attribute used.
3163 2010-11-17 Jan Hubicka <jh@suse.cz>
3165 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3166 expand errno setting variant when optimizing for size.
3168 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3170 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3171 Reverse backward loop. Fix formatting issues.
3173 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3175 * c-parser.c (c_token_is_qualifier,
3176 c_parser_next_token_is_qualifier): New.
3177 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3178 Improve error message on specs->tagdef_seen_p.
3179 (c_parser_struct_or_union_specifier): Improve error recovery.
3180 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3181 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3182 using c_parser_next_token_is_qualifier; extend it to cover
3183 a ctsk_tagdef typespec and !typespec_ok in general.
3185 2010-11-17 Richard Guenther <rguenther@suse.de>
3187 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3188 (gimple_mod_pow2_value_transform): Likewise.
3189 (gimple_mod_subtract_transform): Likewise.
3191 2010-11-17 Richard Guenther <rguenther@suse.de>
3194 * gimple.c (gimple_register_canonical_type): Make sure to only
3195 make type leaders canonical types.
3197 2010-11-17 Michael Matz <matz@suse.de>
3199 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3200 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3201 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3202 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3203 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3204 (pass_build_ssa): ... but here.
3205 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3206 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3207 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3208 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3209 * predict.c (rebuild_frequencies): Ditto.
3210 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3211 * emit-rtl.c (verify_rtl_sharing): Ditto.
3212 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3213 * tree-ssa-live.c (remove_unused_locals): Ditto.
3214 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3215 * tree-ssa.c (pass_early_warn_uninitialized,
3216 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3217 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3218 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3219 * passes.c (pass_postreload, execute_todo): Ditto.
3220 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3222 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3224 * doc/invoke.texi (-dy): Remove.
3225 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3226 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3227 * langhooks.c (lhd_do_nothing_i): Remove.
3228 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3229 * toplev.c (set_yydebug): Remove.
3230 (compile_file): Update call to lang_hooks.parse_file.
3231 (decode_d_option): Don't handle -dy.
3233 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3235 PR rtl-optimization/46440
3236 * combine.c (update_cfg_for_uncondjump): When changing
3237 an indirect jump into unconditional jump, remove BARRIERs
3240 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3242 * opts.c (target_handle_option): Do not assert that loc ==
3245 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3246 Richard Guenther <rguenther@suse.de>
3249 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3250 call_may_clobber_ref_p_1): Return true for __sync_* and some
3251 OpenMP builtins that act as threading barriers.
3253 2010-11-17 Richard Guenther <rguenther@suse.de>
3255 PR tree-optimization/46498
3256 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3258 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3260 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3261 (xtensa_function_arg_boundary): ...this.
3262 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3263 thinko in declaration.
3264 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3265 number of parameters to picochip_function_arg_boundary.
3266 (picochip_arg_advance): Likewise.
3268 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3271 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3272 under check for type.
3274 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3276 * ifcvt.c (dead_or_predicable): Fix typo.
3278 2010-11-16 Richard Henderson <rth@redhat.com>
3280 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3281 * config/s390/s390.opt (mfused-madd): Remove.
3282 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3283 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3284 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3285 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3287 2010-11-16 Richard Henderson <rth@redhat.com>
3289 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3290 * config/rs6000/rs6000.opt (mfused-madd): Remove.
3291 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3292 (*altivec_vmaddfp_1): Remove.
3293 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3294 (altivec_mulv4sf3): Expand to FMA directly.
3295 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3296 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3297 * config/rs6000/paired.md (paired_madds0): Use FMA.
3298 (paired_madds1): Likewise.
3299 (*paired_madd): Rename from paired_madd; use FMA.
3300 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3301 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3302 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3303 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3304 (rs6000_emit_madd): Use fma_optab.
3305 (rs6000_emit_msub): Use fms_optab.
3306 (rs6000_emit_nmsub): Expand the FMA pattern directly.
3307 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3308 (*fmasf4_fpr): Rename from fmasf4_fpr.
3309 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3310 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3311 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3312 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3313 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3314 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3315 (*fmadf4_fpr): Rename from fmadf4_fpr.
3316 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3317 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3318 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3319 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3320 (fmasf4, fmadf4): Macroize into...
3321 (fma<FMA_F>4): ... here.
3322 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3323 (nfma<FMA_F>4, nfms<FMA_F>4): New.
3324 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3326 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3327 (*vsx_fmadd<mode>4_1): Remove.
3328 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3329 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3330 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3331 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3332 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3333 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3334 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3336 2010-11-16 Richard Henderson <rth@redhat.com>
3338 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3339 (fmasf4, fnmadf4, fnmasf4): Likewise.
3340 (unnamed plus+mult insns and splitters): Delete.
3342 2010-11-16 Richard Henderson <rth@redhat.com>
3344 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3345 (fnma<VSF>4): Rename from fnms_<VSF>.
3346 (fms<VSF>4): Rename from fms_<VSF>.
3347 (fma<VDF>4): Rename from fma_<VDF>.
3348 (fms<VDF>4): Rename from fms_<VDF>.
3349 (nfma<VDF>4): Rename from fnma_<VDF>.
3350 (nfms<VDF>4): Rename from fnms_<VDF>.
3351 (fnma<VDF>4, fnms<VDF>4): New expanders.
3352 (floatunsdisf2): Update for the renames.
3353 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3354 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3356 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3358 PR rtl-optimization/46490
3359 * combine.c (expand_compound_operation): Fix thinko.
3361 2010-11-16 Richard Henderson <rth@redhat.com>
3364 * recog.c (peep2_attempt): Convert frame-related info when possible.
3365 (peep2_fill_buffer): Allow frame-related insns into the buffer.
3366 (peephole2_optimize): Allow peep2_attempt to fail.
3368 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3370 PR rtl-optimization/46315
3371 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3372 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3374 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
3375 (remove_reg_equal_equiv_notes_for_defs): ...this.
3376 (delete_unmarked_insns): Adjust to above renaming.
3377 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3378 referring to registers set in the insns being moved, if any.
3380 * df-core.c (df_ref_dump): New function extracted from...
3381 (df_refs_chain_dump): ...here. Call it.
3382 (df_regs_chain_dump): Likewise.
3383 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3384 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
3386 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
3388 PR rtl-optimization/46395
3389 * postreload.c (reload_combine): Invalidate register use
3390 information on all control flow insns.
3392 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3393 LABEL_REF in UNSPEC operand.
3395 2010-11-16 Jan Hubicka <jh@suse.cz>
3397 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3398 when !flag_toplevel_reorder do not remove unless variable is
3399 COMDAT or ARTIFICIAL.
3400 * ipa.c (varpool_can_remove_if_no_refs): ... here.
3401 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3402 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3403 * varpool.c (decide_is_variable_needed): Do not handle visibility
3405 (varpool_finalize_decl): Likewise.
3406 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3407 update outdated comment on DECL_RTL_SET_P check.
3409 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3411 * config/sol2.h (NM_FLAGS): Define.
3412 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3413 * doc/tm.texi: Update.
3415 2010-11-16 Nick Clifton <nickc@redhat.com>
3417 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3418 (msubsf4): Rename to fmssf4, and use fma.
3419 (nmaddsf4): Rename to fnmasf4 and use fma.
3420 (nmsubsf4): Rename to fnmssf4 and use fma.
3422 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
3425 * config/score/score3.c (score3_return_in_memory): Constify arguments.
3426 (score3_in_small_data_p, score3_function_value): Likewise.
3427 (score3_trampoline_init): Use LCT_NORMAL.
3428 (score3_print_operand): Initialize code as UNKNOWN.
3429 * config/score/predicates.md (score_load_multiple_operation):
3430 Remove unused variable.
3431 (score_store_multiple_operation): Likewise.
3432 * config/score/score7.c (score7_return_in_memory): Constify arguments.
3433 (score7_in_small_data_p, score7_function_value): Likewise.
3434 (score7_trampoline_init): Use LCT_NORMAL.
3435 (score7_print_operand): Initialize code as UNKNOWN.
3436 * config/score/score3.h (score3_return_in_memory): Update prototype.
3437 (score3_in_small_data_p, score3_function_value): Likewise.
3438 * config/score/score-protos.h (score_function_value): Likewise.
3439 * config/score/score7.h (score7_return_in_memory): Update prototype.
3440 (score7_in_small_data_p, score7_function_value): Likewise.
3441 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3442 (score_return_in_memory, score_pass_by_reference): Constify arguments.
3443 (score_output_mi_thunk, score_function_prologue): Don't return a value.
3444 (score_function_epilogue, score_in_small_data_p): Likewise.
3445 (score_option_override, score_asm_trampoline_template): Likewise.
3446 (score_trampoline_init, score_print_operand): Likewise.
3447 (score_print_operand_address, score_prologue): Likewise.
3448 (score_epilogue, score_call, score_call_value): Likewise.
3449 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3450 (score_function_arg_advance): Likewise. Make static.
3451 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3452 (score_function_arg, score_legitimate_address_p): Make static.
3453 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3454 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3455 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3456 Allow (W) == HOST_BITS_PER_WIDE_INT.
3459 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3460 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3462 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3464 * config/arc/arc.c: Delete pasto.
3465 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3467 2010-11-16 Anatoly Sokolov <aesok@post.ru>
3469 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3470 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3471 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3472 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3473 (mn10300_preferred_reload_class,
3474 mn10300_preferred_output_reload_class): New functions.
3476 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3478 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3479 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3480 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3481 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3483 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3485 * builtins.c (std_gimplify_va_arg_expr): Use
3486 targetm.calls.function_arg_boundary.
3487 * function.c (assign_parms, locate_and_pad_parm): Likewise.
3488 * calls.c (struct arg_data): Update comment.
3489 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3490 * target.def (function_arg_boundary): Define.
3491 * targhooks.h (default_function_arg_boundary): Declare.
3492 * targhooks.c (default_function_arg_boundary): Define.
3493 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3494 TARGET_FUNCTION_ARG_BOUNDARY.
3495 (FUNCTION_ARG_BOUNDARY): Delete.
3496 (TARGET_FUNCTION_ARG_BOUNDARY): New.
3497 * doc/tm.texi: Regenerate.
3498 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3499 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3500 * config/arc/arc.c (arc_function_arg_boundary): Define.
3501 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3502 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3503 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3504 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3505 (arm_function_arg_boundary): Define.
3506 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3507 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3508 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3509 * config/frv/frv.c (frv_function_arg_boundary): Make static.
3510 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3511 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3512 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3513 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3514 (ix86_compat_function_arg_boundary): Take and return unsigned int.
3515 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3516 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3517 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3518 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3519 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3520 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3521 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3522 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3523 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3524 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3525 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3526 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3527 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3528 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3529 * config/mips/mips.c (mips_function_arg_boundary): Make static.
3530 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3531 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3532 * config/pa/pa.c (pa_function_arg_boundary): Define.
3533 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3534 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3535 * config/picochip/picochip-protos.h
3536 (picochip_get_function_arg_boundary): Delete.
3537 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3539 (picochip_function_arg_boundary): ...this. Make static.
3540 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3541 (picochip_arg_advance): Adjust.
3542 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3543 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3544 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3545 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3546 (rs6000_function_arg_boundary): ...this. Make static.
3547 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3548 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3549 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3550 * config/rx/rx.c (rx_function_arg_boundary): Define.
3551 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3552 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3553 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3554 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3555 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3556 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3557 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3558 (xtensa_function_arg_boundary): ...this. Make static.
3559 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3561 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3563 * expr.c (alignment_for_piecewise_move): New function.
3564 (widest_int_mode_for_size): New function.
3565 (move_by_pieces, move_by_pieces_ninsns): Call them.
3566 (can_store_by_pieces, store_by_pieces_1): Likewise.
3568 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3570 * gcc.c (char_p): Define. Define a VEC of it.
3571 (n_linker_options, n_assembler_options, n_preprocessor_options):
3573 (linker_options, assembler_options, preprocessor_options): Convert
3575 (add_preprocessor_option): Adjust.
3576 (add_assembler_option): Adjust.
3577 (add_linker_option): Adjust.
3578 (do_specs_vec): New function.
3579 (do_spec_1): Call it. Adjust for new types.
3581 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3583 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3584 (sreal.o, statistics.o, stringpool.o): Likewise.
3586 2010-11-16 Richard Guenther <rguenther@suse.de>
3588 PR tree-optimization/44545
3589 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3590 statements are not reassociatable.
3591 (reassociate_bb): Likewise.
3593 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3595 * bitmap.c: Delete unnecessary includes.
3596 * ebitmap.c: Likewise.
3597 * et-forest.c: Likewise.
3598 * sreal.c: Likewise.
3599 * statistics.c: Likewise.
3600 * stringpool.c: Likewise.
3601 * double-int.c: Add comment for inclusion of tm.h.
3603 2010-11-16 Richard Guenther <rguenther@suse.de>
3605 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3606 (visit_nary_op): ... this.
3607 (visit_binary_op): Remove.
3608 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3610 2010-11-16 Richard Guenther <rguenther@suse.de>
3613 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3615 2010-11-16 Nick Clifton <nickc@redhat.com>
3617 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3620 2010-11-15 Richard Henderson <rth@redhat.com>
3622 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3623 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3626 2010-11-15 Richard Henderson <rth@redhat.com>
3628 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3629 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
3632 2010-11-15 Richard Henderson <rth@redhat.com>
3634 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3635 and *mulsubsf4 respectively. Use fma rtx_code.
3637 2010-11-15 Joseph Myers <joseph@codesourcery.com>
3639 * gcc.c: Include "vec.h".
3640 (argbuf): Make into a VEC.
3641 (argbuf_length, argbuf_index): Remove.
3642 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3643 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3644 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3645 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3646 (gcc.o): Depend on $(VEC_H).
3648 2010-11-15 Richard Henderson <rth@redhat.com>
3650 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3651 via FMA if unsafe math.
3652 (insert_var_expansion_initialization): Handle FMA.
3653 (combine_var_copies_in_loop_exit): Likewise.
3655 2010-11-15 Richard Henderson <rth@redhat.com>
3657 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3658 * config/ia64/ia64.opt: Remove mfused-madd.
3659 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3660 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3661 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3662 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3663 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3664 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3665 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3666 (fmav2sf4): Rename from fpma; use FMA code.
3667 (fmsv2sf4): Rename from fpms; use FMA code.
3668 (fnmav2sf4): Rename from *fpnma; use FMA code.
3669 * config/ia64/ia64.md (MODE_SDF): New iterator.
3670 (suffix): New mode attribute.
3671 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3672 (fmssf4): Rename from *fmssf4.
3673 (fnmasf4): Rename from *nfmasf4.
3674 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3675 (*nmadddf4, *nmadddf4_truncsf): Remove.
3676 (fmsdf4): Rename from *fmsdf4.
3677 (fnmadf4): Rename from *nfmadf4.
3678 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3679 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3680 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3681 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3682 (fmsxf4): Rename from *fmsxf4.
3683 (fnmaxf4): Rename from *nfmaxf4.
3684 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3685 (*fnmaxf_trunc_<MODE_SDF>): New.
3687 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3689 PR tree-optimization/46461
3690 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3693 2010-11-15 Ian Lance Taylor <iant@google.com>
3695 * godump.c: New file.
3696 * common.opt (fdump-go-spec=): New option.
3697 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3698 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3699 (TYPE_SYMTAB_IS_DIE): Define.
3700 (struct tree_type): Change GTY for symtab field to use
3701 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3702 to pick the union field.
3703 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3704 (dump_go_spec_init): Declare.
3705 * toplev.c (process_options): Handle flag_dump_go_spec.
3706 * debug.c: Include "tree.h".
3707 (do_nothing_debug_hooks): Set tree_type_symtab_field.
3708 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3709 * dbxout.c (dbx_debug_hooks): Likewise.
3710 (xcoff_debug_hooks): Likewise.
3711 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3712 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
3713 SDB_DEBUGGING_INFO is not defined.
3714 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3715 (Overall Options): Document -fdump-go-spec.
3716 * Makefile.in (OBJS-common): Add godump.o.
3717 (debug.o): Add dependency on $(TREE_H).
3718 (godump.o): New target.
3719 (GTFILES): Add $(srcdir)/godump.c.
3721 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3724 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3725 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3726 style < 0, add REG_FRAME_RELATED_EXPR.
3729 * rtl.h (vt_equate_reg_base_value): New prototype.
3730 * alias.c (vt_equate_reg_base_value): New function.
3731 * var-tracking.c (vt_init_cfa_base): Use it.
3733 2010-11-15 Jan Hubicka <jh@suse.cz>
3734 Diego Novillo <dnovillo@google.com>
3737 * doc/lto.texi: Add.
3738 * doc/gccint.texi: Add reference to lto.texi.
3739 * doc/invoke.texi: Update user documentation for LTO.
3740 Move internal flags to lto.texi
3742 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3744 * c-typeck.c (build_unary_op): Use
3745 objc_build_incr_expr_for_property_ref to build the pre/post
3746 increment/decrement of an Objective-C property ref, and skip the
3747 lvalue_or_else check in that case.
3749 2010-11-15 Martin Jambor <mjambor@suse.cz>
3751 PR tree-optimization/46349
3752 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3753 (contains_vce_or_bfcref_p): Likewise.
3754 (sra_modify_assign): Use them.
3756 2010-11-15 Richard Guenther <rguenther@suse.de>
3758 PR tree-optimization/46467
3759 * tree-ssa-structalias.c (do_structure_copy): Properly treat
3760 variables without subvars.
3762 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
3764 * config/picochip/picochip.c (file header): Picochip name change.
3765 * config/picochip/picochip.md (file header): Likewise.
3766 * config/picochip/predicates.md (file header): Likewise.
3767 * config/picochip/dfa_space.md (file header): Likewise.
3768 * config/picochip/dfa_speed.md (file header): Likewise.
3769 * config/picochip/picochip.h(file header): Likewise.
3770 * config/picochip/constraints.md (file header): Likewise.
3771 * config/picochip/picochip-protos.h (file header): Likewise.
3772 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3773 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3774 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3775 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3776 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3777 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3778 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3779 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3780 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3781 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3782 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3783 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3784 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3785 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3787 2010-11-15 Richard Guenther <rguenther@suse.de>
3790 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3792 2010-11-15 Nick Clifton <nickc@redhat.com>
3794 * config/stormy16/stormy16.c (direct_return): Do not generate a
3795 direct return for interrupt handlers.
3797 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
3799 * Makefile.in (tm.texi): Replace with rule for:
3800 ($(srcdir)/doc/tm.texi).
3801 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3802 $(srcdir)/doc/tm.texi .
3803 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3807 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3810 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3811 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3814 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3816 2010-11-15 Richard Guenther <rguenther@suse.de>
3819 * lto-opts.c (lto_write_options): Write -fexceptions even if
3820 not set by the user.
3822 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3825 * c-decl.c (declspecs_add_type): Make variables with error types
3827 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3828 do not start a declaration before an Objective-C foreach.
3829 (c_parser_declaration_or_fndef): Improve recovery after unknown
3831 (c_parser_for_statement): Hoist entrance of "foreach context"
3832 before ifs, add corresponding reset where it was missing. Do
3833 not set objc_could_be_foreach_context for C.
3835 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
3837 PR tree-optimization/45722
3838 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3839 this is a reference to a component.
3840 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3841 (ipa_note_param_call): Adjust comment.
3843 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
3845 * config/mips/mips.c (machine_function): Remove
3846 initialized_mips16_gp_pseudo_p.
3847 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3848 detect whether a pseudo has already been created. Unconditionally
3849 create a new one if not.
3850 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3851 expanding to rtl. Create a new pseudo otherwise, if allowed.
3853 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
3856 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3857 * tm.texi: Regenerated.
3858 * output.h (decode_reg_name_and_count): Declare.
3859 * varasm.c (decode_reg_name_and_count): New function.
3860 (decode_reg_name): Reimplement using decode_reg_name_and_count.
3861 * reginfo.c (fix_register): Use decode_reg_name_and_count and
3862 iterate over all regs used.
3863 * stmt.c (expand_asm_operands): Likewise.
3864 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3865 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3866 multiple machine registers.
3868 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
3870 * stor-layout.c (place_union_field): Do not put location information
3871 on offset expressions.
3872 (place_field): Likewise.
3873 (finalize_record_size): Likewise on size expressions.
3874 (finalize_type_size): Likewise.
3875 (layout_type): Likewise.
3877 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
3880 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3881 * df-core.c (df_set_bb_dirty_nonrl): Remove.
3882 * df.h (df_set_bb_dirty_nonlr): Likewise.
3884 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
3886 * config/mips/mips.md (call_internal): Pass curr_insn to
3888 (call_internal_direct): Ditto.
3889 (call_value_internal): Ditto.
3890 (call_value_internal_direct): Ditto.
3891 (call_value_multiple_internal): Ditto.
3892 * config/mips/mips.c (mips_split_call): Do not copy
3893 CALL_INSN_FUNCTION_USAGE here.
3895 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
3897 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3898 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3899 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3900 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3901 (TUNE_LOONGSON_3A): Define.
3902 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3903 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3904 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3905 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3906 (mips_rtx_cost_data): Add Loongson-3A.
3908 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3910 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3913 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3915 * dwarf2out.c (macinfo_entry): New struct.
3916 (output_comp_unit): Emit the section start label here and flag that we
3917 will emit an info section.
3918 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3920 (dwarf2out_end_source_file): Likewise.
3921 (dwarf2out_define): Likewise.
3922 (dwarf2out_undef): Likewise.
3923 (output_macinfo): New.
3924 (dwarf2out_init): Do not emit debug section switches here, allocate a
3925 vec for macinfo, when required.
3926 (dwarf2out_finish): First switch to debug_abbrev_section here.
3927 debug_line_section, debug_macinfo_section, Likewise.
3928 Check that the pubtypes table has at least one unpruned entry before
3931 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3934 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3935 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
3937 (c_parser_compound_statement_nostart, c_parser_label,
3938 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3939 (c_parser_declaration_or_fndef): Detect the case now matched by
3940 c_parser_next_tokens_start_declaration, give error and correct it.
3942 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3944 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3945 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3947 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3948 (shadow_tag_warned, check_compound_literal_type): Adjust
3949 uses of tag_defined_p.
3950 (declspecs_add_type): Set typespec_kind.
3951 * c-parser.c (c_parser_declaration_or_fndef,
3952 c_parser_declspecs, c_parser_struct_declaration,
3953 c_parser_parameter_declaration, c_parser_type_name,
3954 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3956 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3957 tag_defined_p, pass ctsk_firstref through.
3959 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3961 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3962 (struct format_wanted_type): Replace field "name" with "kind", add
3963 "format_start" and "format_length".
3964 (check_format_info_main): Fill in new fields. Fill in
3965 FORMAT_WANTED_TYPES even for missing arguments. Move checks
3966 after the final NUL outside the while loop. Do not include
3967 width and precision modifiers in the format_start/format_length
3969 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3970 arguments. Compute WANTED_TYPE first so that format_type_warning
3971 can be called for missing arguments. Adjust calls to
3972 format_type_warning.
3973 (format_type_warning): Fetch as much information as possible
3974 from format_wanted_type. Adjust printing now that every
3975 warning has a "descr", as well as for missing argument warnings
3976 and to include % sign for format specifiers.
3978 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
3980 PR rtl-optimization/46204
3981 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3982 Update all callers. Do not recompute topological order. Adjust
3983 fallthrough edges following a degenerate conditional jump.
3985 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3987 * opts-common.c (control_warning_option): New.
3988 * opts.c (set_default_handlers): New.
3989 (decode_options): Use set_default_handlers and
3990 control_warning_option.
3991 (common_handle_option): Update call to enable_warning_as_error.
3992 (enable_warning_as_error): Take gcc_options parameters. Use
3993 control_warning_option.
3994 * opts.h (set_default_handlers, control_warning_option): Declare.
3996 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3998 * Makefile.in (OPTS_H): Define.
3999 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
4000 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
4001 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
4002 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
4003 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
4004 * gcc.c (driver_handle_option): Take location_t parameter.
4005 (process_command, do_self_spec): Update calls to
4006 read_cmdline_option.
4007 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
4008 * langhooks.c (lhd_handle_option): Take location_t parameter.
4009 * langhooks.h (handle_option): Take location_t parameter.
4010 * lto-opts.c (lto_reissue_options): Update call to set_option.
4011 * opts-common.c (handle_option): Make static. Take location_t
4012 parameter and pass it to other functions.
4013 (handle_generated_option): Take location_t parameter and pass it
4015 (read_cmdline_option): Take location_t parameter and pass it to
4016 other functions. Use warning_at and error_at.
4017 (set_option): Take location_t parameter and pass it to other
4019 * opts.c (common_handle_option): Take location_t parameter and
4020 pass it to other functions.
4021 (enable_warning_as_error): Make static. Take location_t parameter
4022 and pass it to other functions.
4023 (lang_handle_option): Take location_t parameter and pass it to
4025 (target_handle_option): Take location_t parameter.
4026 (read_cmdline_options, maybe_default_option,
4027 maybe_default_options, default_options_optimization,
4028 decode_options): Take location_t parameter and pass it to other
4030 * opts.h: Include input.h.
4031 (struct cl_option_handler_func, decode_options, set_option,
4032 handle_generated_option, read_cmdline_option): Take location_t
4034 (handle_option, enable_warning_as_error): Remove.
4035 * toplev.c (toplev_main): Update call to decode_options.
4037 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
4039 * graphite-cloog-util.c (oppose_constraint,
4040 cloog_matrix_to_ppl_constraint,
4041 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
4042 CLooG isl uses unsigned integers. This triggered a warning.
4044 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4047 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
4048 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
4049 (xtensa_function_arg_1): De-constify cum.
4050 (xtensa_expand_prologue): Use add_reg_note.
4053 * config/cris/cris.c (saved_regs_mentioned): Delete.
4054 (cris_reload_address_legitimized): Cast itype to enum reload_type.
4055 Remove unused variable op0p.
4056 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
4057 (cris_emit_movem_store): Use add_reg_note.
4060 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
4062 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4064 * function.c (expand_function_end): Set the locator of the prologue on
4065 the stack checking insns.
4067 2010-11-12 Richard Henderson <rth@redhat.com>
4069 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
4070 * config/xtensa/xtensa.opt (mfused-madd): Remove.
4071 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4073 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
4074 (fnmasf4): Rename from mulsubsf3; use fma.
4076 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4077 Richard Henderson <rth@redhat.com>
4080 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
4081 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
4084 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
4086 * opts-common.c (decode_cmdline_option): Initialize separate_args.
4088 2010-11-12 Jan Hubicka <jh@suse.cz>
4090 * doc/invoke.texi (early-inlining-insns): Update default.
4091 * params.def (early-inlining-insns): Default to 10.
4093 2010-11-12 Olivier Hainque <hainque@adacore.com>
4095 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
4097 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4099 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
4100 (SUPPORTS_INIT_PRIORITY): Define.
4102 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4105 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
4106 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
4107 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
4108 (avr_device_to_devicelib): Likewise.
4109 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
4111 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
4112 (zero_extendhidi2, zero_extendsidi2): Likewise.
4113 * config/avr/avr.c (avr_num_arg_regs): Constify type.
4114 (avr_return_addr_rtx): De-constify tem.
4115 (avr_rotate_bytes): Move declarations to start of block.
4116 Don't use variable length array. Put nested if/else into block.
4118 PR rtl-optimization/46433
4119 * var-tracking.c: Include tm_p.h .
4123 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
4125 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
4126 * doc/tm.texi: Regenerate.
4129 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
4130 * config/bfin/bfin.c: Include sel-sched.h .
4131 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
4132 (expand_interrupt_handler_prologue): Remove unused variable insn.
4133 (bfin_load_pic_reg): Likewise.
4134 (bfin_rtx_costs): Make code / outer_code variables of type
4135 enum rtx_code, copied from re-named parameters.
4136 (bfin_local_alignment): Change align argument and return type
4138 (bfin_adjust_cost): Remove unused variable insn_type.
4139 Declare variables at start of block.
4140 (struct loop_info): Rename to...
4141 (struct loop_info_d).
4142 (workaround_rts_anomaly): Change type of icode to int.
4143 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
4144 with int-typed variable.
4145 (note_np_check_stores): Likewise.
4146 (trapping_loads_p): Remove unused variable pat.
4147 (bfin_expand_binop_builtin): Use expand_normal.
4148 (bfin_expand_unop_builtin): Likewise.
4149 (bfin_expand_builtin): Likewise. Set tmode before use.
4152 * final.c (split_double): Don't use BITS_PER_WORD directly in
4156 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
4160 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4162 (xstormy16_function_arg): Dereference cum.
4163 (xstormy16_expand_builtin): Use expand_normal.
4164 Change type of omode to enum machine_mode.
4165 (combine_bnp): Rename and to and_insn.
4168 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
4171 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4174 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
4176 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
4179 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
4181 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
4184 * common.opt (fmax-errors=): New option.
4185 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
4186 * diagnostic.h (struct diagnostic_context): Add max_errors field.
4187 * diagnostic.c (diagnostic_initialize): Initialize it.
4188 (diagnostic_action_after_output): Exit if more than max_errors
4190 * doc/invoke.texi (Warning Options): Add -fmax-errors.
4191 (-fmax-errors): Document.
4193 2010-11-11 Richard Henderson <rth@redhat.com>
4195 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
4197 2010-11-11 Richard Henderson <rth@redhat.com>
4199 * config/fused-madd.opt: New file.
4200 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
4201 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
4202 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4203 * config/i386/i386.opt (mfused-madd): Remove.
4204 * config/i386/sse.md (split_fma): Remove.
4205 (split_fms, split_fnma, split_fnms): Remove.
4207 2010-11-12 Jakub Jelinek <jakub@redhat.com>
4210 * config/i386/i386.md (*ashl<mode>3_cconly,
4211 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
4212 change nonimmediate_operand predicate to register_operand.
4214 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
4216 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
4218 2010-11-11 Jan Hubicka <jh@suse.cz>
4220 * opts.c (finish_options): Do not error on -flto-partition alone.
4222 * doc/invoke.texi (-fwhopr): Merge into -flto section.
4223 (-flto-partition): Document none.
4224 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
4225 * lto-wrapper.c: Update comment.
4226 (run_gcc): Update LTO option parsing.
4227 * opts.c (finish_options): add support -flto-partition=none
4228 (common_handle_option): Remove fwhopr.
4229 * common.opt: Turn fwhopr into flto.
4230 * collect2.c (main): Update option handling.
4231 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
4232 * ipa-split.c (execute_split_functions): Remove flag_whopr.
4233 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
4234 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
4235 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
4237 2010-11-11 Jan Hubicka <jh@suse.cz>
4239 PR tree-optimize/40436
4240 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
4241 (eliminated_by_inlining_prob): ... this one; return 50% probability
4243 (estimate_function_body_sizes): Update use of
4244 eliminated_by_inlining_prob; estimate static function size
4247 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
4250 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
4251 declare. Change type of argument four to type int.
4252 (mep_secondary_input_reload_class): Returns enum reg_class.
4253 (mep_secondary_output_reload_class): Likewise.
4254 (mep_function_value): Change types of arguments to cont_tree.
4255 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
4256 argument four to type int.
4257 (mep_secondary_input_reload_class): Returns enum reg_class.
4258 (mep_secondary_output_reload_class): Likewise.
4259 (mep_function_value): Change types of arguments to cont_tree.
4260 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
4261 mep_regno_reg_class to enum reg_class.
4263 2010-11-11 Richard Henderson <rth@redhat.com>
4265 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
4266 that the target has the exact fma operation that we matched.
4268 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4270 * reginfo.c (fix_register): Avoid inserting English word in
4271 diagnostic sentence. Use %qs for quoting and %'.
4273 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
4275 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4276 Intel processor family 6, model 0x2c.
4278 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4280 * opts.c (warning_as_error_callback,
4281 register_warning_as_error_callback): Remove.
4282 (enable_warning_as_error): Don't use warning_as_error_callback.
4283 * opts.h (register_warning_as_error_callback): Remove.
4285 2010-11-11 Richard Henderson <rth@redhat.com>
4287 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
4288 in between the MULT and the PLUS/MINUS.
4290 2010-11-11 Jakub Jelinek <jakub@redhat.com>
4293 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
4294 BLKmode mode for it.
4295 (expand_expr_real_1): Similarly for op0.
4297 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4299 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
4300 Document optional target selector.
4302 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
4304 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
4305 assembling high and low parts of size if not using 32-bit HWINT; else
4306 use DECL_SIZE_UNITS, not DECL_SIZE.
4308 2010-11-11 Martin Jambor <mjambor@suse.cz>
4310 PR tree-optimization/46383
4311 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
4313 (compute_complex_ancestor_jump_func): Likewise.
4314 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
4316 2010-11-11 Jakub Jelinek <jakub@redhat.com>
4319 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
4320 true if expr1->hash != expr2->hash.
4322 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4324 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
4325 diagnostics with lowercase letters.
4326 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
4328 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
4330 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4331 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
4333 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4334 Remove trailing ' ' from diagnostic.
4335 * config/avr/avr.c (print_operand_address): Start diagnostic with
4336 a lowercase letter and remove trailing '.'.
4337 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
4338 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
4339 with lowercase letters. Use %' in diagnostics. Remove trailing
4340 '.' from diagnostics.
4341 (bfin_handle_longcall_attribute): Use %' in diagnostic.
4342 * config/cris/cris.c (cris_split_movdx,
4343 cris_expand_pic_call_address): Start diagnostics with lowercase
4345 (cris_asm_output_label_ref): Use %' in diagnostic.
4346 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
4348 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
4350 * config/darwin-c.c (version_as_macro): Start diagnostic with a
4352 * config/darwin-driver.c (darwin_default_min_version): Use %' in
4354 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
4356 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4357 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
4359 * config/i386/i386.c (ix86_option_override_internal): Write
4360 diagnostic as a single sentence without trailing '.'. Use %' in
4362 (ix86_function_sseregparm, classify_argument): Start diagnostics
4363 with lowercase letters.
4364 (ix86_expand_prologue): Use %' in diagnostic.
4365 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
4367 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
4369 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
4371 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4372 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
4374 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
4376 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
4378 * config/microblaze/microblaze.c (microblaze_handle_option):
4379 Remove trailing '.' from diagnostic.
4380 (print_operand): Start diagnostic with a lowercase letter.
4381 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
4382 lowercase letters. Avoid '`' in diagnostics.
4383 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
4384 lowercase letters. Avoid '`' in diagnostics.
4385 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
4386 lowercase letters. Avoid '`' in diagnostics.
4387 * config/picochip/picochip.c (picochip_option_override,
4388 picochip_emit_save_register, picochip_function_arg,
4389 picochip_output_label, picochip_output_internal_label,
4390 picochip_asm_output_opcode, picochip_output_cbranch,
4391 picochip_output_compare, picochip_output_branch,
4392 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
4393 diagnostics. Start diagnostics with lowercase letters. Use %' in
4395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4396 "SPE" capitalization. Start diagnostic with a lowercase letter.
4397 (rs6000_handle_option): Start diagnostics with lowercase letters.
4398 (def_builtin): Remove trailing '.' from diagnostic.
4399 (rs6000_savres_routine_name): Start diagnostic with a lowercase
4401 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
4403 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
4405 * config/s390/s390.c (s390_option_override) Start diagnostics with
4406 lowercase letters. Use %' in diagnostic.
4407 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
4409 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
4411 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
4413 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
4415 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4416 * config/spu/spu.c (spu_option_override): Start diagnostics with
4417 lowercase letters. Use %qs for quoting in diagnostics.
4418 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
4419 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
4420 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
4422 * convert.c (convert_to_integer, convert_to_vector): Use %' in
4424 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
4425 letter and use "cannot" spelling.
4426 * expmed.c (extract_fixed_bit_field): Start diagnostic with
4427 lowercase letter and format as a single sentence without '.'.
4428 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
4429 Use %' in diagnostics.
4430 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4431 Use %' in diagnostics.
4432 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4433 Use %' in diagnostics.
4434 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
4435 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
4436 with lowercase letters and remove tailing '.' and '\n'.
4437 * lto-cgraph.c (input_profile_summary): Start diagnostic with
4438 lowercase letter and remove trailing '.'.
4439 (input_cgraph): Start diagnostics with lowercase letters and
4440 remove trailing '\n'.
4441 * opts.c (finish_options, common_handle_option): Start diagnostics
4442 with lowercase letters and remove trailing '.'. Fix typo in
4444 * passes.c (position_pass): Start diagnostic with lowercase letter.
4445 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
4446 register_callback, try_init_one_plugin): Start diagnostics with
4448 * reload1.c (spill_failure): Use %' in diagnostic.
4449 (gen_reload): Start diagnostic with a lowercase letter.
4450 * stor-layout.c (place_field): Start diagnostic with a lowercase
4452 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
4453 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
4454 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
4455 Start diagnostics with lowercase letters, remove trailing '.' and
4456 use %' in diagnostics.
4457 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
4458 (verify_ssa): Don't split diagnostic across two error calls.
4459 Spell out "number" and use %' in diagnostic.
4460 * value-prof.c (visit_hist, check_counter): Start diagnostics with
4463 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
4466 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
4467 (_mm_cvtpu16_ps): Ditto.
4469 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4471 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
4472 warn_larger_than, larger_than_size, warn_frame_larger_than,
4473 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
4474 default_visibility, flag_tls_default): New Variable declarations.
4475 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
4476 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
4477 (v): Declare as Common and document here.
4478 * flags.h (default_visibility, flag_generate_lto,
4479 warn_larger_than, larger_than_size, warn_frame_larger_than,
4480 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
4481 flag_shlib, flag_excess_precision_cmdline): Remove.
4482 (set_Wstrict_aliasing): Update prototype.
4483 * gcc.c (verbose_flag): Remove.
4484 (driver_handle_option): Add diagnostic_context parameter. Don't
4485 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
4487 * opts-common.c (handle_option): Pass dc to handler.
4488 * opts.c (warn_larger_than, larger_than_size,
4489 warn_frame_larger_than, frame_larger_than_size,
4490 default_visibility): Remove.
4491 (common_handle_option): Add diagnostic_context parameter.
4492 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
4493 gcc_options parameters.
4494 (lang_handle_option, target_handle_option, read_cmdline_options,
4495 decode_options): Add diagnostic_context parameters.
4496 (finish_options): Access option state through opts pointer where
4498 (common_handle_option): Access option state through opts pointer
4499 where possible. Do not set local static variable verbose. Do not
4500 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
4501 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
4502 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
4503 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
4504 OPT_fwhopr_. Do not explicitly set .opt file variables for
4505 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
4506 (set_Wstrict_aliasing): Add gcc_options parameter.
4507 * opts.h (struct cl_option_handler_func): Add diagnostic_context
4508 parameter to handler.
4509 (decode_options): Add diagnostic_context parameter.
4510 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
4511 asm_file_name, flag_generate_lto, flag_gen_aux_info,
4512 aux_info_file_name, flag_shlib, flag_tls_default,
4513 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
4514 (toplev_main): Pass global_dc to decode_options.
4515 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
4516 aux_info_file_name, asm_file_name): Remove.
4517 * tree.h (flag_tls_default): Remove.
4519 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
4522 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
4523 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
4525 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
4527 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
4528 (x86_64-*-*): Likewise.
4529 * config/i386/cpuid.h: Define TBM bit.
4530 * config/i386/driver-i386.c (host_detect_local_cpu): Define
4532 * config/i386/i386-c.c (ix86_target_macros_internal): Check
4534 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
4535 (OPTION_MASK_ISA_TBM_UNSET): New.
4536 (ix86_handle_option): Handle -mtbm.
4537 (isa_opts): Add -mtbm.
4538 (enum pta_flags): Add PTA_TBM.
4539 (ix86_option_override_internal): Add TBM support.
4540 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
4541 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
4542 (IX86_BUILTIN_BEXTRI64): Likewise.
4543 (bdesc_args): Add TBM intrinsics.
4544 (ix86_expand_builtin): Add TBM specific case.
4545 * config/i386/i386.h (TARGET_TBM): New for TBM.
4546 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
4547 (tbm_bextri_<mode>): Likewise.
4548 (*tbm_blcfill_<mode>): Likewise.
4549 (*tbm_blci_<mode>): Likewise.
4550 (*tbm_blcic_<mode>): Likewise.
4551 (*tbm_blcmsk_<mode>): Likewise.
4552 (*tbm_blcs_<mode>): Likewise.
4553 (*tbm_blsfill_<mode>): Likewise.
4554 (*tbm_blsic_<mode>): Likewise.
4555 (*tbm_t1mskc_<mode>): Likewise.
4556 (*tbm_tzmsk_<mode>): Likewise.
4557 * config/i386/i386.opt: Add -mtbm.
4558 * config/i386/tbmintrin.h (__bextri_u32): New.
4559 (__blcfill_u32): Likewise.
4560 (__blci_u32): Likewise.
4561 (__blcic_u32): Likewise.
4562 (__blcmsk_u32): Likewise.
4563 (__blcs_u32): Likewise.
4564 (__blsfill_u32): Likewise.
4565 (__blsic_u32): Likewise.
4566 (__t1mskc_u32): Likewise.
4567 (__tzmsk_u32): Likewise.
4568 (__bextri_u64): Likewise.
4569 (__blcfill_u64): Likewise.
4570 (__blci_u64): Likewise.
4571 (__blcic_u64): Likewise.
4572 (__blcmsk_u64): Likewise.
4573 (__blcs_u64): Likewise.
4574 (__blsfill_u64): Likewise.
4575 (__blsic_u64): Likewise.
4576 (__t1mskc_u64): Likewise.
4577 (__tzmsk_u64): Likewise.
4578 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
4579 * doc/invoke.texi: Document -mtbm.
4580 * doc/extend.texi: Document TBM built-in functions.
4582 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
4584 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
4585 (x86_64-*-*): Likewise.
4586 * config/i386/cpuid.h: Define BMI bit.
4587 * config/i386/driver-i386.c (host_detect_local_cpu): Define
4589 * config/i386/i386-c.c (ix86_target_macros_internal): Check
4591 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
4592 (OPTION_MASK_ISA_BMI_UNSET): New.
4593 (ix86_handle_option): Handle -mbmi.
4594 (isa_opts): Add -mbmi.
4595 (enum pta_flags): Add PTA_BMI.
4596 (ix86_option_override_internal): Add BMI support.
4597 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
4598 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
4599 (IX86_BUILTIN_BEXTR64): Likewise.
4600 (IX86_BUILTIN_CTZS): Likewise.
4601 (bdesc_args): Add BMI intrinsics.
4602 (ix86_expand_args_builtin): Add BMI specific cases.
4603 * config/i386/i386.h (TARGET_BMI): New for BMI.
4604 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4605 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
4606 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
4607 (UNSPEC_TZCNT): Likewise.
4608 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
4609 (bmi_andn_<mode>): New for BMI.
4610 (bmi_bextr_<mode>): Likewise.
4611 (bmi_blsi_<mode>): Likewise.
4612 (bmi_blsmsk_<mode>): Likewise.
4613 (bmi_blsr_<mode>): Likewise.
4614 * config/i386/i386.opt: Add -mbmi.
4615 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
4616 * config/i386/bmiintrin.h (__lzcnt_u16): New.
4617 (__tzcnt_u16): Likewise.
4618 (__andn_u32): Likewise.
4619 (__bextr_u32): Likewise.
4620 (__blsi_u32): Likewise.
4621 (__blsmsk_u32): Likewise.
4622 (__blsr_u32): Likewise.
4623 (__lzcnt_u32): Likewise.
4624 (__tzcnt_u32): Likewise.
4625 (__andn_u64): Likewise.
4626 (__bextr_u64): Likewise.
4627 (__blsi_u64): Likewise.
4628 (__blsmsk_u64): Likewise.
4629 (__blsr_u64): Likewise.
4630 (__lzcnt_u64): Likewise.
4631 (__tzcnt_u64): Likewise.
4632 * doc/invoke.texi: Document -mbmi and -mno-bmi.
4633 * doc/extend.texi: Document BMI built-in functions.
4635 2010-11-10 Jan Hubicka <jh@suse.cz>
4637 PR tree-optimize/46228
4638 * doc/invoke.texi (comdat-sharing-probability): Document.
4639 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
4640 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
4642 2010-11-10 Jan Hubicka <jh@suse.cz>
4644 PR tree-optimize/46228
4645 * cgraph.c (cgraph_propagate_frequency): Fix typo.
4647 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
4649 PR tree-optimization/46414
4650 * tree-inline.c (estimate_move_cost): Check preferred vector
4651 mode for vector type.
4653 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4655 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
4657 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
4659 PR tree-optimization/45971
4660 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
4661 for phi nodes analyzable by scev.
4663 2010-11-10 Richard Guenther <rguenther@suse.de>
4665 PR tree-optimization/44964
4666 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
4668 2010-11-10 Martin Jambor <mjambor@suse.cz>
4670 PR tree-optimization/46351
4671 PR tree-optimization/46377
4672 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
4673 aggregate bit-fields.
4675 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4677 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4678 * doc/tm.texi: Regenerate.
4679 * opts-common.c (tm.h): Don't include.
4680 (target_option_translations): Remove.
4681 (decode_cmdline_options_to_array): Don't handle translating options.
4682 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
4683 * config/darwin-driver.c: Don't condition includes on
4684 CROSS_DIRECTORY_STRUCTURE.
4685 (darwin_default_min_version): Make static.
4686 (darwin_driver_init): New. Call darwin_default_min_version if not
4687 CROSS_DIRECTORY_STRUCTURE.
4688 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4689 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
4690 (ASM_SPEC): Add %{static}.
4691 (darwin_default_min_version): Don't declare.
4692 (darwin_driver_init): Declare.
4693 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
4694 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
4695 * config/darwin.opt (all_load, allowable_client,
4696 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
4697 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
4698 exported_symbols_list, filelist, findirect-virtual-calls,
4699 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
4700 framework, fterminated-vtables, gfull, gused, image_base, init,
4701 install_name, multi_module, multiply_defined,
4702 multiply_defined_unused, no_dead_strip_inits_and_terms,
4703 seg_addr_table, seg_addr_table_filename, segaddr,
4704 segs_read_only_addr, segs_read_write_addr, single_module,
4705 umbrella, unexported_symbols_list, weak_reference_mismatches,
4706 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
4707 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
4708 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
4709 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
4710 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
4711 (ASM_SPEC): Add %{static}.
4712 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4713 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4714 (DRIVER_SELF_SPECS): Handle options formerly in
4715 TARGET_OPTION_TRANSLATE_TABLE.
4716 * config/mep/mep.opt (mfar): New.
4717 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4718 (DRIVER_SELF_SPECS): Define. Handle options formerly in
4719 TARGET_OPTION_TRANSLATE_TABLE.
4720 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
4721 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4722 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
4723 ffix-and-continue, findirect-data): New.
4724 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4725 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
4726 (mnofpu): Define mask and use Report here.
4728 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4730 * config/s390/s390.c (s390_emit_prologue): Report the stack
4731 size if -fstack-usage is used.
4733 2010-11-10 Richard Guenther <rguenther@suse.de>
4735 PR tree-optimization/46398
4736 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
4738 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
4741 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
4742 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
4743 GP_REG_OR_PSEUDO_STRICT_P.
4744 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
4745 unexpected alternative.
4746 (*movsf_internal): Likewise.
4747 (indirect_jump): Replace call to non-existant function with call to
4749 (tablejump): Likewise.
4750 * config/iq2000/iq2000.c: Include df.h .
4751 (iq2000_function_arg_advance): Use CONST_CAST2.
4752 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
4753 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
4754 a non-zero function address.
4755 (iq2000_initial_elimination_offset): Add gcc_unreachable for
4756 unexpected value of FROM.
4757 (symbolic_expression_p): Delete.
4758 (iq2000_function_value): Constify func.
4759 (expand_one_builtin): Use expand_normal.
4760 (iq2000_print_operand): Don't print VALUE if calculating it failed.
4762 PR rtl-optimization/44764
4763 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4766 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4767 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4768 with ATTRIBUTE_UNUSED.
4769 (valid_psw_flag): Constify parameter which.
4770 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4773 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4774 (mmix_dbx_register_number): Likewise.
4775 * config/mmix/mmix.c: Include df.h .
4776 (mmix_local_alignment): Change argument basic_align and return type
4778 (mmix_dbx_register_number): Change argument and return type to
4780 (mmix_expand_prologue): Use add_reg_note.
4783 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4784 (spu_split_store): Use aform.
4785 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4787 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4790 * doc/gty.texi (GTY Options): Clarify that variable_size produces
4791 allocators taking size in bytes, compare with length option. Add
4792 size calculation example.
4793 (Invoking the garbage collector): Ensure that sentences are
4794 followed by two spaces. Describe that pointer fields must be
4795 initialized at ggc_collect call.
4796 (Troubleshooting): New section.
4798 2010-11-09 Jan Hubicka <jh@suse.cz>
4800 PR tree-optimization/40436
4801 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4802 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4803 normal instructions; be sure bultin is not implemented in this file;
4804 compute non-zero return cost.
4805 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4806 * tree-inline.h (eni_weights_d): Add return cost.
4808 2010-11-09 Joseph Myers <joseph@codesourcery.com>
4810 * c-parser.c (c_parser_struct_declaration): Handle declaration
4811 specifiers followed by CPP_CLOSE_BRACE.
4813 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4815 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4816 split occurs before reload, and we allocate memory at the time of
4817 the split, not during expansion. Add attributes.
4818 (floatsi<mode>2_lfiwax_mem): Ditto.
4819 (floatunssi<mode>2_lfiwzx): Ditto.
4820 (floatunssi<mode>2_lfiwzx_mem): Ditto.
4821 (floatsidf2): Ditto.
4822 (floatunssisf2): Ditto.
4823 (floatunssidf2): Ditto.
4824 (fix_trunc<mode>si2): Ditto.
4825 (fix_trunc<mode>si2_stfiwx): Ditto.
4826 (fix_trunc<mode>si2_internal): Ditto.
4827 (fix_trunc<mode>si2): Ditto.
4828 (fix_trunc<mode>di2): Ditto.
4829 (fixuns_trunc<mode>si2_stfiwx): Ditto.
4830 (floatsisf2): Ditto.
4831 (floatdidf2_mem): Ditto.
4832 (floatunsdidf2_mem): Ditto.
4833 (floatunsdidf2): Ditto.
4834 (floatdisf2_internal1): Ditto.
4835 (floatdisf2_mem): Ditto.
4836 (floatunsdisf2_mem): Ditto.
4837 (floatsi<mode>2_lfiwax_mem2): Delete.
4838 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4839 (fix_trunc<mode>si2_mem): Ditto.
4840 (fixuns_trunc<mode>si2_mem): Ditto.
4841 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4842 type operations to reduce copying the values to multiple memory slots.
4843 (roundu32<mode>2_fprs): Ditto.
4845 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
4846 PRE_INC, PRE_DEC, PRE_MODIFY.
4847 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
4849 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
4852 2010-11-09 Jakub Jelinek <jakub@redhat.com>
4855 * cfgexpand.c (partition_stack_vars): Call
4856 update_alias_info_with_stack_vars unconditionally.
4857 (update_alias_info_with_stack_vars): Allow unused
4858 unreferenced vars when not optimizing.
4860 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
4862 PR tree-optimization/46036
4863 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
4864 add_to_dst_predicate_list.
4866 2010-11-09 Jakub Jelinek <jakub@redhat.com>
4869 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
4871 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
4872 argument, call dead_debug_reset when adding REG_UNUSED note.
4873 (dead_debug_reset): New function.
4874 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
4875 df_create_unused_note callers.
4877 2010-11-09 Anatoly Sokolov <aesok@post.ru>
4879 * config/fr30/fr30.c: Include "df.h".
4881 2010-11-09 Richard Guenther <rguenther@suse.de>
4883 PR tree-optimization/46355
4884 * tree-loop-distribution.c (tree_loop_distribution): Do not
4885 distribute loops without a single exit.
4887 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4889 PR rtl-optimization/46237
4890 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
4891 saved hard regs if they might get partially clobbered.
4893 2010-11-09 Paul Koning <ni1d@arrl.net>
4895 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
4897 2010-11-09 Richard Guenther <rguenther@suse.de>
4899 PR tree-optimization/46177
4900 * tree-loop-distribution.c (prop_phis): Remove.
4901 (generate_builtin): Re-use the old loop exit edge to avoid
4902 needing to update PHI nodes.
4904 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
4906 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
4907 type of args_size to unsigned HOST_WIDE_INT.
4910 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
4911 * config/t-pnt16-warn: New file.
4912 * config/picochip/picochip.c (picochip_emit_stack_allocate):
4914 (picochip_emit_save_register): Likewise.
4915 (picochip_emit_restore_register): Remove variable insn.
4916 (picochip_legitimize_address): Don't use C++ style comments.
4917 (picochip_legitimize_reload_address): Likewise.
4918 (reorder_var_tracking_notes): Remove variable vliw_start.
4919 (picochip_reorg): Cast first arguemnt to emit_note_after to
4921 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
4922 (picochip_expand_builtin_3op): Likewise.
4923 (picochip_expand_builtin_2opvoid): Likewise.
4924 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
4925 (picochip_expand_array_testport): Likewise.
4926 (picochip_init_builtins): Remove unused variables.
4927 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
4928 to unsigned long, and output it as such.
4929 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4930 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
4931 (schedType): Cast result of picochip_schedule_type to
4932 enum attr_schedType.
4935 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
4936 conditional to type of S.
4937 (mn10300_function_arg): Remove unused variable align.
4938 (mn10300_arg_partial_bytes): Likewise.
4939 * config/mn10300/mn10300.md (attribute cpu): Cast value to
4942 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
4945 * gengtype-parse.c (type): Call get_input_file_name to get file name.
4947 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
4949 * tree.h (contains_placeholder_p): Fix comment.
4950 (type_contains_placeholder_p): Adjust comment.
4951 * tree.c (contains_placeholder_p): Fix comment.
4952 (type_contains_placeholder_1): Do not recurse on pointed-to types and
4954 (type_contains_placeholder_p): Add comment.
4956 2010-11-09 Paul Koning <ni1d@arrl.net>
4958 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
4959 output of byte values.
4961 2010-11-09 Jakub Jelinek <jakub@redhat.com>
4964 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
4967 2010-11-09 Richard Guenther <rguenther@suse.de>
4970 * varasm.c (compute_visible_aliases): New function.
4971 (remove_unreachable_alias_pairs): Aliases make a target available
4972 even though we reclaimed the cgraph node.
4973 (finish_aliases_1): Likewise.
4974 * Makefile.in (varasm.o): Add pointer-set.h dependency.
4976 2010-11-09 Nick Clifton <nickc@redhat.com>
4978 * config/mn10300/mn10300-modes.def: New file.
4980 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
4981 Jeremie Salvucci <jeremie.salvucci@free.fr>
4983 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
4984 (plugin_files, get_file_basename, get_file_realbasename)
4985 (get_file_langdir, error_at_line, gt_files, this_file)
4986 (system_h_file, read_input_list, create_field_all)
4987 (get_file_srcdir_relative_path, get_file_basename)
4988 (get_file_langdir, get_file_gtfilename)
4989 (get_output_file_with_visibility, get_output_file_name)
4990 (struct flist, put_mangled_filename, walk_type)
4991 (put_mangled_filename, finish_root_table, write_roots): Use
4993 (lang_dir_names, num_lang_dirs): Remove static.
4994 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
4995 (main): Use input_file-s.
4997 * gengtype.h: (struct input_file_st, input_file): New type.
4998 (struct fileloc): Use it.
4999 (gt_files, num_gt_files, this_file, system_h_file)
5000 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
5001 (get_input_file_name): New function.
5002 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
5004 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
5005 (get_output_file_name): Ditto.
5007 * gengtype-lex.l (yybegin): Use input_file.
5009 * gengtype-parse.c (parse_error): Use input_file.
5011 2010-11-08 Xinliang David Li <davidxl@google.com>
5013 PR tree-optimization/46316
5014 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
5015 * double-int.h (double_int_mul_with_sign): New function.
5016 * double-int.c (double_int_mul_with_sign): New function.
5018 2010-11-08 Paul Koning <ni1d@arrl.net>
5020 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
5022 2010-11-08 Paul Koning <ni1d@arrl.net>
5024 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
5026 2010-11-08 Paul Koning <ni1d@arrl.net>
5028 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
5031 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5034 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5035 turn on ISA 2.04 rounding instructions for power5.
5037 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
5041 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
5043 (movdi_low_st): Ditto.
5045 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5046 Richard Henderson <rth@redhat.com>
5049 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
5050 (attribute acc_group): Cast value to enum attr_acc_group.
5051 (*movdi_nodouble+6): Use gen_int_mode.
5052 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
5053 if RTX_CODE is defined or not.
5054 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
5056 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
5057 (frv_frame_access, frv_expand_prologue): Remove unused variables.
5058 (frv_expand_block_clear): Likewise.
5059 (frv_trampoline_init): Use LCT_NORMAL.
5060 (struct frv_packet_group): New struct, broken out of type of
5062 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
5063 use cast in loop counter increment.
5064 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
5065 assigning to io->type.
5066 (bdesc_set): Use rtx_code UNKNOWN in initializer.
5067 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
5068 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
5069 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
5070 (frv_read_argument): Use expand_normal.
5073 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
5074 lm32_legitimate_constant_p.
5075 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5076 * config/lm32/lm32.c (gen_int_relational): Make new block for
5077 LE / LT / LEU / LTU case. Declare variables at start of block.
5078 (lm32_block_move_inline): Use XALLOCAVEC.
5080 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5082 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
5084 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5086 * gengtype (get_output_file_for_structure): Ensure type is union
5088 (write_splay_tree_allocator_def): Use
5089 get_output_file_with_visibility.
5091 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5093 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
5094 to defined values in case of an error.
5095 (s390_option_override): Skip further processing if the -march
5096 parameter wasn't recognized.
5098 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5100 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
5101 assert that REG is a hard register number before using it as an index.
5104 * config/i386/i386.c (ix86_expand_split_stack_prologue):
5105 Avoid warnings when HOST_WIDE_INT is 32 bit.
5107 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
5110 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5111 (sparc_promote_prototypes): Likewise.
5112 (sparc_promote_function_mode): Promote in 32-bit mode as well.
5113 (sparc_return_in_memory): Remove superfluous parentheses.
5114 (sparc_struct_value_rtx): Fix long lines.
5115 (sparc_function_value_1): Promote in 32-bit mode as well.
5117 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
5119 PR rtl-optimization/45352
5120 * sel-sched.c (find_best_expr): Do not set pneed_stall when
5121 the variable_issue hook is not implemented.
5122 (fill_insns): Remove dead variable stall_iterations.
5123 (init_seqno_1): Force EBB start for resetting sched cycles on any
5124 successor blocks of the rescheduled region.
5125 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
5126 (reset_sched_cycles_in_current_ebb): Add debug printing.
5127 New variable issued_insns. Advance state when we have issued
5130 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5132 * gengtype (main): Get here's position using POS_HERE macro for
5135 2010-11-07 Ian Lance Taylor <iant@google.com>
5138 * config/i386/i386.c (split_stack_fn_large): New static variable.
5139 (ix86_expand_split_stack_prologue): Handle large model.
5141 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
5143 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
5144 all possible addressing modes.
5146 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
5148 PR tree-optimization/46346
5149 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
5151 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5153 * config/mips/mips.c: Revert previous patch.
5154 * config/mips/mips.md: Likewise.
5156 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5158 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
5159 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
5160 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
5161 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
5162 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
5164 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
5165 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
5166 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
5167 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
5169 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
5172 * c-decl.c (lookup_label): Labels can only be referenced in a
5174 (store_parm_decls_oldstyle): Skip erroneous parameters.
5176 2010-11-06 Anatoly Sokolov <aesok@post.ru>
5178 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5179 LIBCALL_VALUE): Remove macros.
5180 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5181 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5182 (fr30_function_value_regno_p, fr30_function_value,
5183 fr30_libcall_value): New functions.
5185 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
5188 * target.def (generate_internal_label): New asm_out hook.
5189 * output.h (default_generate_internal_label): Declare.
5190 * varasm.c (default_generate_internal_label): Define.
5192 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5195 * doc/extend.tex (format): Document NSString extension.
5196 (format_arg): Likewise.
5197 (Darwin Format Checks): New section.
5198 * doc/tm.texi: Document string object hooks (generated).
5199 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
5200 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5201 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5202 * target.def (objc_construct_string_object): Rename, amend
5204 (string_object_ref_type_p): New hook.
5205 (check_string_object_format_arg): New hook.
5206 * c-parser.c (c_parser_attributes): Allow objective-c class names as
5207 attribute identifiers.
5208 * config/darwin-c.c (darwin_cfstring_ref_p): New.
5209 (darwin_check_cfstring_format_arg): New.
5210 (darwin_additional_format_types): New.
5211 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
5212 (darwin_check_cfstring_format_arg): New.
5213 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
5214 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5215 (TARGET_N_FORMAT_TYPES): New.
5216 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5218 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
5219 Pascal Obry <obry@adacore.com>
5221 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
5222 in 64-bit mode and 17 otherwise.
5224 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5227 * var-tracking.c (emit_note_insn_var_location): Make sure that
5228 call related var location notes come before the normal ones.
5230 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
5233 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
5236 2010-11-05 Ian Lance Taylor <iant@google.com>
5238 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
5240 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5243 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
5244 pointer_set_contains if DECL_NAME is NULL.
5246 2010-11-05 Ian Lance Taylor <iant@google.com>
5249 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
5250 request enough additional space for alignment, and force alignment.
5252 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
5254 * config/i386/i386.c (legitimate_pic_address_disp_p):
5255 Handle UNSPEC_PCREL.
5256 (ix86_legitimate_address_p): Likewise.
5257 (legitimize_pic_address): Likewise.
5258 (output_pic_addr_const): Likewise.
5259 (ix86_delegitimize_address): Likewise.
5260 (ix86_find_base_term): Likewise.
5261 (memory_address_length): Likewise.
5262 (x86_output_mi_thunk): Handle special case x64
5263 for non local binding.
5264 * config/i386/i386.md (UNSPEC_PCREL): New.
5265 * config/i386/winnt.c (i386_pe_binds_local_p):
5266 Allow weak symbol for x64 windows with non-local binding.
5268 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5271 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
5272 instead of EXPAND_NORMAL for base expansion.
5274 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
5276 * config.gcc: Support --with-fpmath=avx for x86.
5277 * config/i386/avxmath.h: New.
5278 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
5280 2010-11-05 Ian Lance Taylor <iant@google.com>
5282 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
5283 * gengtype.c (walk_type): Don't recognize descbits option.
5285 2010-11-05 Joseph Myers <joseph@codesourcery.com>
5287 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
5288 WORD_SWITCH_TAKES_ARG): Remove.
5289 * doc/options.texi (Args): Document.
5290 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
5291 * doc/tm.texi: Regenerate.
5292 * opt-functions.awk (switch_flags): Handle Args.
5293 * opts-common.c: Update comment on tm.h include.
5294 (decode_cmdline_option): Handle options with multiple arguments.
5295 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
5296 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
5297 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5298 CL_COMMON): Update values.
5299 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
5300 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
5301 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
5302 sectobjectsymbols, sectorder, segcreate, segprot): New.
5304 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
5305 Uros Bizjak <ubizjak@gmail.com>
5307 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
5308 256bit AVX register is used.
5309 (ix86_expand_vector_move_misalign): Likewise.
5310 (ix86_expand_vector_move): Replace use_avx256_p with
5311 VALID_AVX256_REG_MODE.
5313 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
5316 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
5317 change. Set $@-warn.o to -Wno-error.
5320 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
5321 comparing it to a signed value.
5324 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
5326 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
5330 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
5331 (m32c_function_arg). Add comma between arguments two and three.
5332 (m32c_promote_prototypes): Remove declaration.
5333 (current_function_special_page_vector): Likewise.
5334 (m32c_regno_reg_class): Change return type to enum reg_class.
5335 (m32c_pushm_popm): Use add_reg_note.
5336 (m32c_push_rounding): Change return type to unsigned int.
5337 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
5339 (m32c_insert_attributes): Constify variable name.
5340 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
5341 (m32c_prepare_shift): Remove variable lref.
5342 (m32c_expand_movcc): Remove variable cmp.
5343 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
5344 (m32c_compare_redundant): Remove variable op2.
5345 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
5346 (m32c_pragma_memregs): Assign the number to target_memregs.
5347 (m32c_pragma_address): Remove variable var_str.
5348 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
5350 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
5351 * config/m32c/bitops.md (andsi3): Add default case to switch.
5352 (iorsi3, xorsi3): Likewise.
5353 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
5354 * config/m32c/jump.md (call, call_value): Likewise.
5355 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
5356 (m32c_regno_reg_class): Likewise.
5357 (current_function_special_page_vector): Declare.
5359 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5361 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
5363 PR tree-optimization/46099
5364 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
5365 if it is NULL and uid wasn't found in the hash table. Just fold the
5366 result if it is NULL otherwise. Insert other potentially needed
5367 stmts right before current stmt instead of on the entry edge.
5368 (struct elv_data): Add gsi and reset fields.
5369 (eliminate_local_variables_1): Adjust caller. If take_address_of
5370 failed for debug stmt, set dta->reset and return.
5371 (eliminate_local_variables_stmt): Change STMT argument for GSI,
5372 pass GSI through to the callback, handle resetting of debug stmts.
5373 (eliminate_local_variables): Adjust caller. Process debug stmts
5377 * gimplify.c (gimplify_asm_expr): If a "m" input is a
5378 {pre,post}{in,de}crement, fail.
5381 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
5382 * tree-pretty-print.c (dump_generic_node): Likewise.
5383 (op_code_prio): Likewise.
5384 * cfgexpand.c (expand_debug_expr): Likewise.
5386 2010-11-04 Paul Koning <ni1d@arrl.net>
5388 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
5391 2010-11-04 Chao-ying Fu <fu@mips.com>
5393 * configure.ac: Test assembler support for DSP Rev1 mult.
5394 * configure: Regenerate.
5395 * config.in: Regenerate.
5396 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
5397 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
5398 (CODE_FOR_mips_multu): New define.
5399 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
5401 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
5402 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
5403 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
5404 New define_expand patterns.
5405 * config/mips/constraints.md (ka): Update the constraint to test
5406 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
5407 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
5408 mips_multu): Delete.
5409 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
5410 Change target constraint to "ka".
5411 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
5412 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
5413 Emit the accumulator destination when ISA_HAS_DSP_MULT.
5414 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
5415 Emit the accumulator destination when ISA_HAS_DSP_MULT.
5416 (<u>maddsidi4): Likewise.
5417 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
5418 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
5420 2010-11-04 Paul Koning <ni1d@arrl.net>
5422 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
5424 2010-11-04 Paul Koning <ni1d@arrl.net>
5426 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
5428 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5430 Fixed using the Objective-C 2.0 dot-syntax with class names.
5431 * c-parser.c (c_parser_next_token_starts_declspecs): In
5432 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
5433 (c_parser_next_token_starts_declaration): Same.
5434 (c_parser_postfix_expression): Parse the Objective-C 2.0
5435 dot-syntax with a class name.
5437 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
5439 * final.c (compute_alignments): Compute/free loop info all the time.
5440 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
5441 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
5442 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
5443 * config/rs6000/rs6000.c (cfgloop.h): Include.
5444 (can_override_loop_align): New.
5445 (rs6000_option_override_internal): Set it.
5446 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
5447 (rs6000_loop_align): New function.
5448 (rs6000_loop_align_max_skip): Likewise.
5450 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5453 * collect2.c (main): Print --help output to stdout. Do not
5454 exit right away, so ld --help is appended. Add empty lines
5455 to separate output suitably.
5457 2010-11-04 Jakub Jelinek <jakub@redhat.com>
5459 PR tree-optimization/46233
5460 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
5461 after calling analyze_function, not before.
5464 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
5465 instead of build_va_arg_indirect_ref.
5466 * config/spu/spu.c (spu_va_start): Likewise.
5467 * config/s390/s390.c (s390_va_start): Likewise.
5469 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
5472 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
5473 if the innermode is not vector mode, determine the mode of a subreg
5474 by using mode_for_size of inner_size.
5476 2010-11-04 Richard Guenther <rguenther@suse.de>
5478 PR rtl-optimization/46183
5479 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
5480 (execute_rtl_pre): Likewise.
5481 (execute_rtl_hoist): Likewise.
5483 2010-11-04 Richard Guenther <rguenther@suse.de>
5485 PR tree-optimization/46068
5486 * ipa-split.c (consider_split): Remove gcc_unreachable.
5488 2010-11-04 Richard Guenther <rguenther@suse.de>
5490 * tree-nested.c (build_addr): Use build_fold_addr_expr.
5492 2010-11-04 Richard Guenther <rguenther@suse.de>
5494 PR tree-optimization/45991
5495 * gimplify.c (force_gimple_operand_1): Use the provded test
5496 function in the initial test.
5498 2010-11-04 Jeff Law <law@redhat.com>
5500 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
5501 of readonly memory equivalances for const/pure calls.
5503 2010-11-04 Richard Guenther <rguenther@suse.de>
5505 PR tree-optimization/45733
5506 * tree-vect-stmts.c (reverse_vec_elements): Honor the
5507 permute builtins function return type.
5509 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
5512 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
5513 as an index, check it is not INVALID_REGNUM.
5516 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
5518 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
5521 * function.c (thread_prologue_and_epilogue_insns): Add
5522 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
5525 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
5528 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
5529 (pdp11_preferred_reload_class): Rename class to rclass.
5530 (pdp11_preferred_output_reload_class): Likewise.
5531 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
5533 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
5536 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
5537 iteration variables to enum machine_mode.
5540 * config/h8300/h8300.c: Include df.h.
5541 (push, pop): Use add_reg_note.
5542 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
5543 (compute_a_shift_cc): Likewise.
5544 (expand_a_shift): Argument code has type enum rtx_code.
5545 (struct shift_insn): Member cc_valid has type enum attr_cc.
5546 (struct shift_info) <cc_inline, cc_special>: Likewise.
5548 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
5549 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
5551 2010-11-04 Ira Rosen <irar@il.ibm.com>
5553 PR tree-optimization/46213
5554 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
5555 MINUS_EXPR only if the first operand is reduction operand.
5557 2010-11-04 Richard Guenther <rguenther@suse.de>
5558 Richard Henderson <rth@redhat.com>
5560 * tree.def (FMA_EXPR): New tree code.
5561 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
5562 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
5563 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
5564 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
5565 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5566 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
5567 (execute_optimize_widening_mul): Call it. Reorganize to allow
5568 dead stmt removal. Move TODO flags ...
5569 (pass_optimize_widening_mul): ... here.
5570 * flag-types.h (enum fp_contract_mode): New enum.
5571 * common.opt (flag_fp_contract_mode): New variable.
5572 (-ffp-contract): New option.
5573 * opts.c (common_handle_option): Handle it.
5574 * doc/invoke.texi (-ffp-contract): Document.
5575 * tree.h (fold_fma): Declare.
5576 * builtins.c (fold_fma): New function.
5577 (fold_builtin_fma): Likewise.
5578 (fold_builtin_3): Call it for fma.
5579 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
5580 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
5581 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
5583 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
5585 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
5586 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
5587 (fms_optab, fnma_optab, fnms_optab): New defines.
5588 * gimplify.c (gimplify_expr): Handle binary truth expressions
5589 explicitly. Handle FMA_EXPR.
5590 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
5593 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5594 Richard Guenther <rguenther@suse.de>
5596 * passes.c (init_optimization_passes): Move veclower after SSA.
5597 * tree-vect-generic.c (uniform_vector_p): New function.
5598 (expand_vector_operations_1): Handle conversion.
5599 (pass_lower_vector): Update SSA form.
5601 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
5603 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
5604 plugin capabilities.
5605 * configure: Regenerate.
5607 2010-11-03 Xinliang David Li <davidxl@google.com>
5610 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
5611 Adjust cbase if the use stmt is after iv update.
5613 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
5615 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
5617 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
5619 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
5620 comment. Pass true to the last argument of output_stack_adjust.
5622 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5625 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5626 if 256bit AVX register is used.
5628 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5630 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
5631 xsmindp/xsmaxdp on VSX for single precision min/max.
5632 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
5633 (vsx_sminsf3): Ditto.
5635 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
5637 * combine.c (try_combine): Fix formatting issues, improve comments and
5640 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
5642 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
5643 of the result before building binary expressions.
5645 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5647 PR rtl-optimization/45865
5648 * Makefile.in (df-problems.o): Revert revision 164552.
5649 * basic-block.h (enum bb_flags): Likewise.
5650 * cfgcleanup.c (block_was_dirty): Likewise.
5651 (try_forward_edges): Likewise.
5652 (try_crossjump_bb): Likewise.
5653 (try_head_merge_bb): Likewise.
5654 (try_optimize_cfg): Likewise.
5655 (cleanup_cfg): Likewise.
5656 * df-core.c (df_set_bb_dirty): Likewise.
5657 * df-problems.c: Likewise.
5658 (df_simulate_find_uses): Likewise.
5659 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
5660 (find_memory, find_memory_store): Likewise.
5661 (can_move_insns_across): Likewise.
5662 * df.h (can_move_insns_across): Likewise.
5663 * ifcvt.c (find_memory): Likewise.
5664 (dead_or_predicable): Likewise.
5666 2010-11-03 Richard Guenther <rguenther@suse.de>
5669 * predict.c (strip_predict_hints): Simply DCE builtin expect if
5670 the result is unused.
5672 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5674 PR tree-optimization/46009
5675 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
5676 cond_if_else_store_replacement if bb1 and bb2 have the same
5678 (cond_store_replacement): Use gimple_assign_single_p, don't
5679 check if rhs is SSA_NAME or invariant. Call release_defs for
5681 (cond_if_else_store_replacement): New function.
5683 2010-11-03 Richard Guenther <rguenther@suse.de>
5685 * opts.c (finish_options): Properly check for all WHOPR
5686 flags before complaining about -flto-partition.
5688 2010-11-04 Alan Modra <amodra@gmail.com>
5690 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
5691 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
5693 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
5694 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
5695 on input, "r" on output.
5697 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5699 Implemented -fobjc-std=objc1 flag.
5700 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
5702 * doc/standards.texi (Standards): Updated the section on
5703 Objective-C; mention support for Objective-C 2.0 features and the
5704 new -fstd-objc=objc1 flag to disable them.
5706 2010-11-03 Richard Guenther <rguenther@suse.de>
5709 * dwarf2out.c (scope_die_for): Properly detect global scope.
5711 2010-11-03 Richard Guenther <rguenther@suse.de>
5713 PR tree-optimization/46190
5714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5715 Properly compute peel iterations.
5717 2010-11-03 Richard Guenther <rguenther@suse.de>
5719 PR tree-optimization/46286
5720 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
5721 re-allocated vector data.
5723 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5726 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
5727 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
5730 2010-11-03 Richard Guenther <rguenther@suse.de>
5732 PR tree-optimization/46217
5733 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
5735 (execute_update_addresses_taken): Likewise.
5737 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
5740 * targhooks.c (targhook_words_big_endian): New function.
5741 (targhook_float_words_big_endian): Likewise.
5742 * targhooks.h (targhook_words_big_endian): Declare.
5743 (targhook_float_words_big_endian): Likewise.
5744 * target.def (words_big_endian, float_words_big_endian): New hooks.
5746 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5748 PR tree-optimization/46165
5749 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
5750 a normal call into noreturn call.
5752 2010-11-03 Richard Guenther <rguenther@suse.de>
5755 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5758 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5760 PR tree-optimization/46107
5761 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5762 if cfg_hook_duplicate_loop_to_header_edge failed.
5764 2010-11-03 Ian Lance Taylor <iant@google.com>
5767 * config.gcc: Don't set lto_binary_reader.
5768 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5769 (Configuration): Mention --disable-lto. Remove --with-libelf
5772 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5775 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5777 * gcse.c (insert_insn_end_basic_block): Likewise.
5779 PR rtl-optimization/46034
5780 PR rtl-optimization/46212
5781 PR rtl-optimization/46248
5782 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5783 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5784 before i0dest -> i0src substitution and pass 1 instead of 0 as last
5785 argument to subst on i2pat.
5787 2010-11-02 Ian Lance Taylor <iant@google.com>
5789 * configure.ac: Use AC_SYS_LARGEFILE.
5790 * configure: Rebuild.
5791 * config.in: Rebuild.
5793 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
5795 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5797 * c-typeck.c (build_function_call_vec): Likewise.
5798 * cfgexpand.c (expand_debug_expr): Likewise.
5799 * cgraphunit.c (assemble_thunk): Likewise.
5800 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5801 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5802 (fold_binary_loc, fold_ternary_loc): Likewise.
5803 * gimple-fold.c (get_symbol_constant_value): Likewise.
5804 * gimple-low.c (lower_builtin_setjmp): Likewise.
5805 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5806 * gimplify.c (gimplify_init_constructor): Likewise.
5807 * lambda.h (build_linear_expr): Likewise.
5808 * omp-low.c (omp_reduction_init): Likewise.
5809 * tree-inline.c (remap_ssa_name): Likewise.
5810 * tree-object-size.c (compute_object_sizes): Likewise.
5811 * tree-sra.c (init_subtree_with_zero): Likewise.
5812 (sra_ipa_modify_assign): Likewise.
5813 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5814 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5815 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5816 (undistribute_ops_list): Likewise.
5817 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5818 * tree-vect-stmts.c (vectorizable_call): Likewise.
5819 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5820 (build_zero_cst): Handle more cases directly. Update comment.
5822 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5824 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5825 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5827 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5828 and call ix86_split_call_vzeroupper instead of
5829 ix86_split_call_pop_vzeroupper.
5830 (*call_pop_1_vzeroupper): Likewise.
5831 (*sibcall_pop_1_vzeroupper): Likewise.
5832 (*call_value_pop_0_vzeroupper): Likewise.
5833 (*call_value_pop_1_vzeroupper): Likewise.
5834 (*sibcall_value_pop_1_vzeroupper): Likewise.
5836 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5838 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5840 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
5842 * basic-block.h (insert_insn_end_bb_new): Delete.
5843 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
5845 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
5846 H.J. Lu <hongjiu.lu@intel.com>
5848 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
5849 (ix86_split_call_pop_vzeroupper): Likewise.
5851 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
5852 (ix86_expand_call): Conditionally decorate calls with
5853 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
5854 (ix86_split_call_vzeroupper): New.
5855 (ix86_split_call_pop_vzeroupper): Likewise.
5857 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
5858 (*call_pop_0_vzeroupper): New insn_and_split pattern.
5859 (*call_pop_1_vzeroupper): Likewise.
5860 (*sibcall_pop_1_vzeroupper): Likewise.
5861 (*call_0_vzeroupper): Likewise.
5862 (*call_1_vzeroupper): Likewise.
5863 (*sibcall_1_vzeroupper): Likewise.
5864 (*call_1_rex64_vzeroupper): Likewise.
5865 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
5866 (*call_1_rex64_large_vzeroupper): Likewise.
5867 (*sibcall_1_rex64_vzeroupper): Likewise.
5868 (*call_value_pop_0_vzeroupper): Likewise.
5869 (*call_value_pop_1_vzeroupper): Likewise.
5870 (*sibcall_value_pop_1_vzeroupper): Likewise.
5871 (*call_value_0_vzeroupper): Likewise.
5872 (*call_value_0_rex64_vzeroupper): Likewise.
5873 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
5874 (*call_value_1_vzeroupper): Likewise.
5875 (*sibcall_value_1_vzeroupper): Likewise.
5876 (*call_value_1_rex64_vzeroupper): Likewise.
5877 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
5878 (*call_value_1_rex64_large_vzeroupper): Likewise.
5879 (*sibcall_value_1_rex64_vzeroupper): Likewise.
5881 2010-11-02 Ian Lance Taylor <iant@google.com>
5884 * config.gcc: Revert last patch: set lto_binary_reader.
5886 2010-11-02 Richard Guenther <rguenther@suse.de>
5888 PR tree-optimization/46149
5889 * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
5890 non-indirect MEM_REF variants.
5892 2010-11-02 Richard Guenther <rguenther@suse.de>
5894 PR tree-optimization/46216
5895 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5896 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
5898 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5900 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
5901 (*-*-osf*): Likewise.
5902 * configure: Regenerate.
5904 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5906 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
5907 for Intel Core 2 and Core i7.
5909 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
5911 Model decoder of Core 2/i7 for multipass scheduling.
5913 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
5914 New type to hold target-specific data for multipass scheduling.
5915 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5916 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
5918 (core2i7_secondary_decoder_max_insn_size,)
5919 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
5920 New static variables.
5921 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
5922 ([_]ix86_first_cycle_multipass_data): New static variable.
5923 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
5924 Implement targetm.sched hooks.
5925 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
5927 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
5928 Implement new targetm.sched hooks.
5929 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
5930 targetm.sched hook to install multipass scheduling hooks on demand.
5932 * doc/tm.texi.in: Document new targetm.sched hooks.
5933 * doc/tm.texi: Regenerate.
5935 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5936 (first_cycle_multipass_data_t): New typedef.
5937 (struct choice_entry: target_data): New field.
5938 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
5939 to allow target model restrictions not represented in DFA.
5940 (choose_ready, schedule_block): Update.
5941 (sched_extend_ready_list, sched_finish_ready_list): Call new target
5942 hooks to initialize target-specific data for multipass scheduling.
5943 * sched-int.h (max_issue): Update declaration.
5944 * sel-sched.c (choose_best_insn): Update.
5945 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
5946 (first_cycle_multipass_{init, fini}): Define and document new
5947 targetm.sched hooks.
5949 2010-11-02 Richard Guenther <rguenther@suse.de>
5951 PR tree-optimization/46184
5952 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
5953 input vector type from the reduction operand as well.
5955 2010-11-02 Richard Guenther <rguenther@suse.de>
5957 PR tree-optimization/46177
5958 * tree-loop-distribution.c (prop_phis): Use
5959 mark_virtual_phi_result_for_renaming.
5961 2010-11-02 Martin Jambor <mjambor@suse.cz>
5964 * tree.c (get_binfo_at_offset): Bail out on artificial
5965 fields. Identify primary bases according to their offsets.
5967 2010-11-02 Martin Jambor <mjambor@suse.cz>
5969 PR tree-optimization/45875
5970 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
5971 (gimple_get_relevant_ref_binfo): Detect primary bases according to
5974 2010-11-02 Ian Lance Taylor <iant@google.com>
5976 * doc/install.texi (Configuration): Note in two places that Java
5977 is not enabled by default.
5979 2010-11-02 Ian Lance Taylor <iant@google.com>
5981 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5982 (Configuration): Mention --disable-lto. Remove --with-libelf
5985 2010-11-02 Ian Lance Taylor <iant@google.com>
5987 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
5988 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
5989 LIBELFINC. Remove HAVE_libelf.
5990 * config.gcc: Don't set lto_binary_reader.
5991 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
5992 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
5993 (LIBS): Remove $(LIBELFLIBS).
5994 (INCLUDES): Remove $(LIBELFINC).
5995 * configure: Rebuild.
5996 * config.in: Rebuild.
5998 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6000 * config/microblaze/microblaze-protos.h (function_arg): Delete.
6001 (function_arg_advance): Delete.
6002 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
6003 (FUNCTION_ARG): Delete.
6004 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
6005 (microblaze_function_arg_advance): ...this. Make static. Take a
6006 const_tree and a bool.
6007 (function-arg): Rename to...
6008 (microblaze_function_arg): ...this. Make static. Take a const_tree
6010 (microblaze_expand_prologue): Call targetm.calls.function_arg and
6011 targetm.calls.function_arg_advance.
6012 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6014 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6016 Merge from FSF "apple/trunk" branch.
6018 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
6019 * config/darwin.opt: .. to here.
6020 (matt-stubs): New option.
6021 * config/i386/darwin.opt: Delete.
6022 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
6023 (MACHO_DYNAMIC_NO_PIC_P): New.
6024 (MACHOPIC_INDIRECT): New.
6025 (MACHOPIC_PURE): New.
6026 * config/i386/darwin.h (DARWIN_X86) Define to 1.
6027 (MACHOPIC_ATT_STUB): New.
6028 (CC1_SPEC): Do not remove mdynamic-no-pic.
6029 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6030 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6031 (FUNCTION_PROFILER): Correct over-length line.
6032 (SUBTARGET_OVERRIDE_OPTIONS): New.
6033 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6034 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
6035 (legitimate_constant_p): Handle mdynamic-no-pic.
6036 (ix86_legitimate_address_p): Likewise.
6037 (ix86_legitimize_address): Likewise.
6038 (ix86_expand_move): Likewise.
6039 (machopic_output_stub): Update for ATT-style stubs and
6041 * config/darwin-protos.h (machopic_symbol_defined_p): New.
6042 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
6043 TARGET_DYNAMIC_NO_PIC: Remove.
6044 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6045 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6046 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
6047 Remove handling of mdynamic-no-pic.
6048 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
6050 (machopic_symbol_defined_p): Do not try to use current_function_decl
6051 when generating _get_pc thunks within stubs.
6052 (machopic_indirect_data_reference): Rework for direct conditionals
6053 rather than #ifdefs, add x86 mdynamic-no-pic
6054 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
6056 (darwin_override_options): Handle mdynamic-no-pic here.
6057 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
6058 (machopic_lazy_symbol_ptr3_section): New.
6059 (machopic_picsymbol_stub2_section): New.
6060 (machopic_picsymbol_stub3_section): New.
6061 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
6062 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6063 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6064 Moved common definition from x86 and rs6000.
6065 (MACHO_DYNAMIC_NO_PIC_P): Override value.
6066 (MACHOPIC_INDIRECT): Likewise.
6067 (MACHOPIC_PURE): Likewise.
6068 * config.gcc (x86-darwin-*): Remove darwin.opt.
6070 2010-11-02 Jakub Jelinek <jakub@redhat.com>
6073 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
6074 instead of gsi_last_bb.
6076 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6077 Maxim Kuvyrkov <maxim@codesourcery.com>
6079 * config/i386/i386.c (cpu_names): Add "corei7".
6080 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
6082 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6083 Maxim Kuvyrkov <maxim@codesourcery.com>
6085 Tune alignment for Intel Core i7
6087 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
6088 (enum processor_type): Update comment. Add entries for Core i7.
6089 * config/i386-c.c (ix86_target_macros_internal): Update.
6090 * config/i386.c (m_COREI7{_32,_64}): New macros.
6091 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
6092 (processor_target_table): Tune alignment for Core i7.
6093 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
6095 * doc/invoke.texi: Document "corei7" option value.
6097 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6098 Maxim Kuvyrkov <maxim@codesourcery.com>
6099 H.J. Lu <hjl.tools@gmail.com>
6101 Basic support for Intel Core i7
6103 * i386.c (ix86_option_override_internal): Add entry for corei7, use
6104 generic tuning. Use generic32 when compiling for 32-bit ABI.
6106 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6108 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
6109 sections and call darwin_asm_dwarf_section() to handle them.
6110 (darwin_asm_dwarf_section): New.
6111 (darwin_file_start): Remove code emitting dwarf section symbols.
6113 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
6115 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
6116 explicitly disable stack protection when building libgcc.
6117 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
6119 2010-11-01 Jason Merrill <jason@redhat.com>
6121 * fold-const.c (fold_indirect_ref_1): Handle folding
6122 POINTER_PLUS_EXPR to ARRAY_REF.
6124 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
6126 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6127 (sh_delegitimize_address): New function.
6129 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6131 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
6132 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
6133 (CC1_SPEC): Don't handle -target.
6134 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
6136 * config/darwin.opt (Zallowable_client, Zbundle_loader,
6137 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
6138 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
6139 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
6140 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
6141 Zweak_reference_mismatches, client_name, compatibility_version,
6142 current_version, dylinker_install_name, pagezero_size,
6143 read_only_relocs, seg1addr, segs_read_only_addr,
6144 segs_read_write_addr, sub_library, sub_umbrella): New.
6145 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
6146 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
6147 * config/freebsd.opt: New.
6148 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
6149 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
6150 * config/rpath.opt: New.
6151 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
6152 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
6155 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6157 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
6158 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
6159 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
6160 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
6161 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
6162 Document that options in .opt files do not need to be included.
6163 * doc/tm.texi: Regenerate.
6164 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
6165 * opts-common.c: Update comment on tm.h include.
6166 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
6167 * system.h (SWITCH_TAKES_ARG): Poison.
6168 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
6169 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
6171 (LINK_COMMAND_SPEC_A): Don't include %{x}.
6172 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6173 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
6174 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
6175 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6176 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
6177 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
6178 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
6179 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
6180 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6181 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
6182 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
6183 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
6184 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
6185 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
6186 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
6187 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
6188 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
6189 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
6190 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
6191 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
6192 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
6193 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
6194 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6196 2010-11-01 Paul Koning <ni1d@arrl.net>
6198 * config/pdp11/pdp11.md: Use iterators.
6199 (addqi3, subqi3, iorsi3, xorsi3): Delete.
6201 2010-11-01 Steve Ellcey <sje@cup.hp.com>
6203 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
6205 * libgcov.c (__gcov_indirect_call_profiler): Set
6206 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
6207 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
6209 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6211 PR tree-optimization/46259
6214 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6215 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6216 build_vector_from_val.
6218 2010-11-01 DJ Delorie <dj@redhat.com>
6220 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
6221 as well as an assertion.
6223 2010-11-01 Paul Koning <ni1d@arrl.net>
6225 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
6226 complex modes in memory.
6228 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6230 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
6232 2010-11-01 Jakub Jelinek <jakub@redhat.com>
6235 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
6236 (cfa_base_offset): New variable.
6237 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
6238 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
6240 (vt_init_cfa_base): Initialize cfa_base_offset.
6242 2010-11-01 Alan Modra <amodra@gmail.com>
6245 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
6246 and savres_strategy.
6247 (stack_info): New file scope var.
6248 (rs6000_init_machine_status): Init stack_info.
6249 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
6250 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
6251 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
6252 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
6253 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
6254 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
6255 (rs6000_savres_strategy): Rewrite.
6256 (rs6000_stack_info): Use "stack_info" in place of local "info".
6257 Return cached stack info when reload_completed unless ENABLE_CHECKING
6258 in which case confirm newly calculated stack info matches old info.
6259 Delay calculation of lr_save_p, set it for out of line gp save/restore
6260 as well as fp. Call rs6000_savres_strategy from here..
6261 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
6262 (rs6000_output_function_prologue): Use info->savres_strategy to
6263 determine whether fp save/restore externs need to be emitted.
6265 2010-10-31 Jason Merrill <jason@redhat.com>
6267 * tree.h (EXPR_LOC_OR_HERE): New macro.
6268 * builtins.c (c_strlen): Use it.
6269 * c-decl.c (build_enumerator): Likewise.
6270 * gimplify.c (internal_get_tmp_var): Likewise.
6271 (shortcut_cond_expr): Likewise.
6272 (gimplify_one_sizepos): Likewise.
6274 2010-10-31 Richard Henderson <rth@redhat.com>
6276 * config/i386/cygming.h (TARGET_SEH): New.
6277 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
6278 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
6279 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
6280 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
6281 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
6282 (ASM_DECLARE_FUNCTION_SIZE): New.
6283 * config/i386/i386-protos.h: Update.
6284 * config/i386/i386.c (ix86_option_override_internal): Enable
6285 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
6286 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
6287 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
6288 (ix86_compute_frame_layout): For SEH, disable
6289 use_fast_prologue_epilogue, move frame pointer to the end of
6290 the frame. Initialize hfp_save_offset.
6291 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
6292 at end of prologue for SEH.
6293 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
6294 emit blockage at beginning of epilogue.
6295 (ix86_expand_binary_operator): After reload, emit LEA if needed.
6296 (ix86_output_call_insn): New.
6297 * config/i386/i386.h (TARGET_SEH): New.
6298 (struct machine_function): Add member seh.
6299 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
6300 * config/i386/winnt.c (struct seh_frame_state): New.
6301 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
6302 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
6303 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
6304 i386_pe_start_function, i386_pe_end_function): New.
6306 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
6307 as CFA_STORE in rules 12 and 13.
6309 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
6311 PR tree-optimization/46142
6312 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
6313 accommodate third function argument.
6315 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6317 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
6319 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6321 * fold-const.c (build_zero_vector): Use build_vector_from_val.
6322 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
6323 (get_initial_def_for_reduction): Likewise.
6324 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6325 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
6326 * tree.c (build_one_cst): Likewise.
6327 (build_vector_from_val): Use types_compatible_p for assert.
6329 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6331 * emit-rtl.c (mark_used_flags): New function.
6332 (set_used_flags, reset_used_flags): Call it.
6334 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
6337 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
6338 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
6340 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
6343 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
6344 (ix86_compat_aligned_value_p): This.
6345 (ix86_old_function_arg_boundary): Renamed to ...
6346 (ix86_compat_function_arg_boundary): This. Updated.
6347 (ix86_contains_aligned_value_p): New.
6348 (ix86_function_arg_boundary): Align long double parameters on
6349 stack to 4byte in 32bit.
6351 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6353 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6354 * c-parser.c (c_parser_objc_at_property_declaration): Removed
6355 parsing of RID_COPIES and RID_IVAR. Updated call to
6356 objc_add_property_declaration.
6357 * c-typecheck.c (build_component_ref): Call
6358 objc_maybe_build_component_ref instead of objc_build_setter_call.
6359 Use objc_is_property_ref to improve Objective-C checks.
6360 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
6361 of objc_build_getter_call.
6363 2010-10-29 Paul Koning <ni1d@arrl.net>
6365 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
6366 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
6367 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
6368 (REG_OK_STRICT): Move description.
6370 2010-10-29 Paul Koning <ni1d@arrl.net>
6372 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
6374 2010-10-29 Paul Koning <ni1d@arrl.net>
6376 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
6378 2010-10-29 Paul Koning <ni1d@arrl.net>
6381 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
6383 2010-10-29 Richard Henderson <rth@redhat.com>
6386 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
6389 2010-10-29 Paul Koning <ni1d@arrl.net>
6391 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
6392 register to register move.
6394 2010-10-29 Paul Koning <ni1d@arrl.net>
6396 * config/pdp11/pdp11.c (print_operand_address): Correct handling
6397 of integer constant addresses, delete vax-only logic.
6399 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6401 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
6402 a conditional expression.
6404 2010-10-29 Paul Koning <ni1d@arrl.net>
6406 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
6407 instruction encoding.
6409 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6410 Andrew Pinski <pinskia@gmail.com>
6412 * tree.h (build_vector_from_val): Declare.
6413 * tree.c (build_vector_from_val): New function.
6414 * c-typeck.c (build_binary_op): Handle vector shifting.
6415 * doc/extend.texi: Description of the vector shifting operation.
6417 2010-10-29 Paul Koning <pkoning@equallogic.com>
6419 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
6420 pdp11_secondary_memory_needed): Declare.
6421 * config/pdp11/predicates.md (float_operand): New predicate.
6422 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
6423 (cbranchdf4, movdf): Change predicate.
6424 (movsf): Handle FPU register case.
6425 (truncdfsf2, extendsfdf2): Add FPU register case.
6426 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
6427 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
6428 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6429 (pdp11_register_move_cost): Update cost matrix.
6430 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
6431 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
6432 pdp11_secondary_memory_needed): New function.
6433 (pdp11_return_in_memory): Add other float types.
6434 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
6435 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
6436 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
6437 REGISTER_MOVE_COST): Delete.
6438 (BASE_RETURN_VALUE_REG): Add other float types.
6440 2010-10-29 Nick Clifton <nickc@redhat.com>
6442 * doc/invoke.texi: Document -mam34 and -mtune options.
6443 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
6444 (mn10300_tune_cpu): New variable.
6445 (mn10300_handle_option): Handle -mam34 and -mtune options.
6446 (mn10300_option_override): Convert tune string into tune cpu variable.
6447 (mn10300_legitimate_constant_p): Delete unused local variable.
6448 (is_load_insn): New function.
6449 (is_store_insn): New function.
6450 (mn10300_adjust_schedule_cost): New function.
6451 (TARGET_SCHED_ADJUST_COST): Define.
6452 * config/mn10300/mn10300.opt (mam34): New option.
6453 (mtune): New option.
6454 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
6455 (enum processor_type): Add AM34.
6456 (TARGET_AM34): Define.
6457 * config/mn10300/mn10300.md (attr cpu): Add am34.
6458 Add pipeline description.
6459 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
6460 Remove unneeded alternatives. Add timing attribute.
6461 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
6462 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
6463 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
6464 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
6465 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
6466 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
6467 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
6468 float_conditional_branch, jump, indirect_jump, tablejump,
6469 call_internal, call_value_internal, zero_extendqisi2_am33,
6470 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
6471 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
6472 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
6473 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
6474 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
6475 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
6476 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
6477 return_internal_regs, store_movm, return, call_next_insn):
6478 Add timing attribute.
6479 (am33_subsi3): Add missing clobber of CC_REG.
6480 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
6481 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
6482 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
6483 extendqisi2): Fix predicates.
6484 (call_internal, call_internal_value): Separate alternatives.
6485 * config/mn10300/t-mn10300: Add AM34 multilib.
6487 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
6489 * config/sh/sh.c (sh_promote_function_mode): Use
6490 default_promote_function_mode if !sh_promote_prototypes.
6492 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
6494 * recog.c (split_all_insns): Remove dead code.
6496 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6498 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6500 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6502 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6503 (FUNCTION_ARG_ADVANCE): Delete.
6504 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
6506 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
6507 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6508 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6510 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6512 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
6513 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6514 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
6515 Take a const_tree and a bool.
6516 (mcore_function_arg_advance): New function.
6517 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6519 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6521 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
6522 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6523 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
6524 Take a const_tree and a bool.
6525 (mcore_function_arg_advance): New function.
6526 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6528 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6530 * config/h8300/h8300-protos.h (function_arg): Delete.
6531 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6532 * config/h8300/h8300.c (function_arg): Rename to...
6533 (h8300_function_arg): ...this. Make static. Take a const_tree and
6535 (h8300_function_arg_advance): New function.
6536 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6538 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6540 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
6542 * config/arc/arc.c (arc_function_arg): ...here and...
6543 (arc_function_arg_advance): ...here. New functions.
6544 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6546 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6548 * config/crx/crx-protos.h (crx_function_arg): Delete.
6549 (crx_function_arg_advance): Delete.
6550 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6551 * config/crx/crx.c (crx_function_arg): Make static. Take a
6552 const_tree and a bool.
6553 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
6554 (enough_regs_for_param): Take a const_tree.
6555 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6557 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6559 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
6560 (m68hc11_function_arg_advance): Delete.
6561 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
6562 (FUNCTION_ARG_ADVANCE): Delete.
6563 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
6564 Take a const_tree and a bool.
6565 (m68hc11_function_arg_advance): Likewise.
6566 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6568 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6570 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
6571 (xstormy16_function_arg_advance): Delete.
6572 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
6573 (FUNCTION_ARG_ADVANCE): Delete.
6574 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
6575 Take a const_tree and a bool.
6576 (xstormy16_function_arg_advance): Likewise. Return void, updating
6577 the CUM parameter instead.
6578 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6580 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6582 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
6583 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6584 (MOXIE_FUNCTION_ARG_SIZE): Move to...
6585 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
6586 (moxie_function_arg): Make static. Take a const_tree and a bool.
6587 (moxie_function_arg_advance): New function.
6588 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6590 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6592 * config/mn10300/mn10300-protos.h (function_arg): Delete.
6593 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
6594 (FUNCTION_ARG_ADVANCE): Delete.
6595 * config/mn10300/mn10300.c (function_arg): Rename to...
6596 (mn10300_function_arg): ...this. Make static. Take a const_tree
6598 (mn10300_function_arg_advance): New function.
6599 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6601 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6603 * config/iq2000/iq2000-protos.h (function_arg): Delete.
6604 (function_arg_advance): Delete.
6605 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6606 * config/iq2000/iq2000.c (function_arg): Rename to...
6607 (iq2000_function_arg): ...this. Make static. Take a const_tree and
6609 (function_arg_advance): Rename to...
6610 (iq2000_function_arg_advance): ...this. Make static. Take a
6611 const_tree and a bool.
6612 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
6613 iq2000_function_arg.
6614 (iq2000_pass_by_reference): Call iq2000_function_arg).
6615 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6617 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6619 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
6620 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6621 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
6623 (fr30_function_arg): New function.
6624 (fr30_function_arg_advance): New function.
6625 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6627 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6629 * config/frv/frv-protos.h (frv_function_arg): Delete.
6630 (frv_function_arg_advance): Delete.
6631 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6632 * config/frv/frv.c (frv_function_arg): Rename to...
6633 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
6634 (frv_function_arg, frv_function_incoming_arg): New functions.
6635 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
6636 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6637 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6639 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
6642 * config/i386/sse.md (sse_movhlps_exp): Use destination
6643 returned from ix86_fixup_binary_operands to expand insn.
6644 (sse_movlhps_exp): Ditto.
6645 (sse_loadhps_exp): Ditto.
6646 (sse_loadlps_exp): Ditto.
6647 (sse2_loadhpd_exp): Ditto.
6648 (sse2_loadlpd_exp): Ditto.
6650 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
6652 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
6653 constants in thumb2.
6655 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
6657 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
6658 arithmetics in masking operations.
6659 (contains_muldiv): Likewise.
6660 (try_combine): Likewise.
6661 (find_split_point): Likewise.
6662 (combine_simplify_rtx): Likewise.
6663 (simplify_if_then_else): Likewise.
6664 (simplify_set): Likewise.
6665 (expand_compound_operation): Likewise.
6666 (expand_field_assignment): Likewise.
6667 (make_extraction): Likewise.
6668 (extract_left_shift): Likewise.
6669 (make_compound_operation): Likewise.
6670 (force_to_mode): Likewise.
6671 (make_field_assignment): Likewise.
6672 (reg_nonzero_bits_for_combine): Likewise.
6673 (simplify_shift_const_1): Likewise.
6674 (simplify_comparison): Likewise.
6676 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
6678 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
6679 (ia64_function_arg_advance): Delete.
6680 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6681 (FUNCTION_ARG_ADVANCE): Delete.
6682 * config/ia64/ia64.c (ia64_function_arg): Rename to...
6683 (ia64_function_arg_1): ...this. Make static. Take const_tree and
6685 (ia64_function_arg, ia64_function_incoming_arg): New functions.
6686 (ia64_function_arg_advance): Make static. Take a const_tree and
6688 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6689 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6691 2010-10-27 Steve Ellcey <sje@cup.hp.com>
6693 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
6694 (TARGET_GET_RAW_ARG_MODE): New.
6695 * doc/tm.texi: Regenerate.
6696 * target.def (get_raw_result_mode): New.
6697 (get_raw_arg_mode): New.
6698 * targhooks.c (default_get_reg_raw_mode): New.
6699 * targhooks.h (default_get_reg_raw_mode): New.
6700 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
6701 (apply_result_size): Ditto.
6702 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
6703 (TARGET_GET_RAW_RESULT_MODE): Define.
6704 (TARGET_GET_RAW_ARG_MODE): Ditto.
6706 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6708 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
6709 for newer Solaris 10 release.
6710 (sparc_fallback_frame_state): Likewise.
6712 2010-10-27 Jason Merrill <jason@redhat.com>
6714 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
6717 2010-10-27 Jie Zhang <jie@codesourcery.com>
6718 Maxim Kuvyrkov <maxim@codesourcery.com>
6720 * haifa-sched.c (ISSUE_POINTS): Remove.
6721 (max_issue): Don't issue more than issue_rate instructions.
6723 2010-10-27 Ian Lance Taylor <iant@google.com>
6726 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
6727 (split_stack_return): Replace UNSPEC_STACK_CHECK with
6728 UNSPECV_SPLIT_STACK_RETURN.
6730 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
6732 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
6734 * config/i386/i386.c (block_info): New.
6735 (BLOCK_INFO): Likewise.
6736 (call_avx256_state): Likewise.
6737 (check_avx256_stores): Likewise.
6738 (move_or_delete_vzeroupper_2): Likewise.
6739 (move_or_delete_vzeroupper_1): Likewise.
6740 (move_or_delete_vzeroupper): Likewise.
6741 (use_avx256_p): Likewise.
6742 (function_pass_avx256_p): Likewise.
6743 (flag_opts): Add -mvzeroupper.
6744 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
6745 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
6747 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
6748 generate vzeroupper.
6749 (init_cumulative_args): Add an int to indicate caller. Set
6750 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
6751 based on return type.
6752 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
6753 caller_pass_avx256_p based on argument type.
6754 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6755 is used, but not returned by caller.
6756 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6757 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6759 (ix86_minimum_alignment): Likewise.
6760 (ix86_expand_special_args_builtin): Set target to
6761 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6762 (ix86_reorg): Run the vzeroupper optimization if needed.
6764 * config/i386/i386.h (ix86_args): Add caller.
6765 (INIT_CUMULATIVE_ARGS): Updated.
6766 (machine_function): Add use_vzeroupper_p, use_avx256_p,
6767 caller_pass_avx256_p, caller_return_avx256_p,
6768 callee_pass_avx256_p and callee_return_avx256_p.
6770 * config/i386/i386.opt (-mvzeroupper): New.
6772 * config/i386/predicates.md (vzeroupper_operation): Removed.
6774 * config/i386/sse.md (avx_vzeroupper): Removed.
6775 (*avx_vzeroupper): Removed.
6776 (avx_vzeroupper): New.
6778 * doc/invoke.texi: Document -mvzeroupper.
6780 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6782 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6783 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6784 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6786 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6787 Olivier Hainque <hainque@adacore.com>
6789 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6790 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
6791 fs->signal_frame instead.
6793 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6795 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6796 parsing of RID_COPIES and RID_IVAR.
6798 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6800 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6801 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6802 Do not use objc_set_property_attr, but use local variables
6803 instead. Detect repeated usage of setter, getter and ivar
6804 attributes. Improved error processing when a setter name does not
6805 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
6806 that the token is a keyword. Updated call to
6807 objc_add_property_declaration.
6809 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6811 * c-parser.c (c_parser_objc_at_property): Renamed to
6812 c_parser_objc_at_property_declaration. Updated calls to
6813 objc_add_property_variable, now objc_add_property_declaration.
6814 Code rewritten to be much more robust in recovering from syntax
6815 errors. Added comments.
6816 (c_parser_objc_property_attrlist): Removed.
6817 (c_parser_external_declaration): Updated calls to
6818 c_parser_objc_at_property, now
6819 c_parser_objc_at_property_declaration.
6820 (c_parser_objc_methodprotolist): Same change.
6822 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6824 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6826 2010-10-26 Jan Hubicka <jh@suse.cz>
6828 * ipa.c (process_references): Enqueue all referenced nodes;
6829 mark as reachable only non-external nodes.
6830 (cgraph_remove_unreachable_nodes): All referenced nodes should
6831 be enqueued; remove bogues node->needed check.
6833 2010-10-26 Jan Hubicka <jh@suse.cz>
6835 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6838 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6840 * config/i386/i386.md (split_stack_return): Replace
6841 unspec_volatile with unspec.
6843 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
6845 * doc/install.texi: Fix typo in --with-sysroot description.
6847 2010-10-26 Jan Hubicka <jh@suse.cz>
6849 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6850 Use info provided by linker plugin.
6852 2010-10-26 Jason Merrill <jason@redhat.com>
6854 * varasm.c (constructor_static_from_elts_p): Don't require a
6855 CONSTRUCTOR to have elements to be suitable for static
6856 initialization. Allow ARRAY_TYPE as well.
6858 2010-10-26 Jan Hubicka <jh@suse.cz>
6861 * cgraph.c (cgraph_set_readonly_flag): Rename to...
6862 (cgraph_set_const_flags) ... this one; get also looping argument;
6863 clear constructor/destructor flags.
6864 (cgraph_set_pure_flag): Likewise.
6865 (cgraph_set_looping_const_or_pure_flag): Remove.
6866 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
6867 to optimize away static ctors/dtors; it does not work on inline clones;
6868 external functions can always be rmeoved.
6869 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
6870 inline clones; in LTO external functions always can go.
6871 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
6872 (cgraph_mark_address_taken_node): Assert that we are not taking
6873 address of inline clone.
6874 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
6876 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
6878 (ipcp_initialize_node_lattices): Only local functions can be
6879 handled without cloning.
6880 * cgraph.h (cgraph_set_readonly_flag,
6881 cgraph_set_looping_const_or_pure_flag): Remove.
6882 (cgraph_set_const_flag): Declare.
6883 (cgraph_set_pure_flag): Update.
6884 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
6886 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
6887 look at inline clones; fix handling of external definitions.
6888 (cgraph_postorder): Do not look at inline clones in the first pass.
6889 (function_and_variable_visibility): Drop constructors/destructor
6890 flags at pure and const functions.
6891 * tree-profile.c (tree_profiling): Update.
6892 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
6893 address taken; external functions do not account to whole program size.
6894 (cgraph_decide_inlining): Likewise; do not try to inline
6895 functions already inlined.
6897 2010-10-26 Jie Zhang <jie@codesourcery.com>
6899 * doc/invoke.texi: Improve documentation of
6900 -fstrict-volatile-bitfields.
6902 2010-10-26 Ira Rosen <irar@il.ibm.com>
6904 PR tree-optimization/46167
6905 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
6906 is basic block for the statement.
6908 2010-10-26 Paul Koning <ni1d@arrl.net>
6910 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
6911 current definition of struct_real_format.
6913 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6916 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
6917 (ix86_function_arg_boundary): Always align parameters on stack
6918 in 64bit and align parameters with alignment >= 16byte on stack
6919 in 32bit. Warn alignment change.
6921 2010-10-26 Ian Lance Taylor <iant@google.com>
6924 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
6927 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
6929 Implement opaque-enum-specifiesr for C++0x
6930 * tree.h (ENUM_IS_OPAQUE): New.
6931 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
6933 2010-10-26 Jie Zhang <jie@codesourcery.com>
6935 * stor-layout.c (layout_decl): Use the field's type to
6936 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
6937 * config/arm/arm.c (arm_override_options): Default to
6938 -fstrict-volatile-bitfields.
6940 2010-10-25 Paul Koning <ni1d@arrl.net>
6942 * config/pdp11/pdp11.md: Add define_constants for register
6943 numbers, branch offset limits.
6944 * config/pdp11/pdp11.c: Use named constants instead of numbers.
6945 * config/pdp11.pdp11.h: Ditto.
6947 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
6949 * configure.ac: Use $cpu_type instead of $target to define the nop.
6950 * configure: Regenerate.
6952 2010-10-25 Jie Zhang <jie@codesourcery.com>
6954 * combine.c (try_combine): If insns need to be kept around, check that
6955 they can be copied in the merged instruction.
6957 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
6959 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
6961 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
6962 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
6963 it has been modified.
6965 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
6967 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
6969 2010-10-24 Paul Koning <ni1d@arrl.net>
6971 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
6972 * config/pdp11/pdp11.c (output_jump): Ditto.
6974 2010-10-24 Ian Lance Taylor <iant@google.com>
6976 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
6978 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
6980 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
6981 least one insn with a locus corresponding to an edge's goto_locus,
6982 disregard non-fallthru edges to the exit block and merge the blocks
6983 created for the same goto_locus.
6985 2010-10-23 Joseph Myers <joseph@codesourcery.com>
6987 * gcc.c (n_switches_alloc_debug_check): New.
6988 (set_option_handlers): New.
6989 (process_command): Use set_option_handlers.
6990 (do_self_spec): Pass spec-generated options through option handlers.
6991 (main): Also save and restore n_switches_alloc when swapping
6994 2010-10-23 Richard Henderson <rth@redhat.com>
6997 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
6998 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
6999 Honor matching operands when splitting to XOR.
7001 2010-10-23 Ian Lance Taylor <iant@google.com>
7003 * tree-vrp.c (extract_range_from_binary_expr): If
7004 flag_non_call_exceptions don't eliminate division by zero.
7005 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7007 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
7009 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
7010 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
7011 __ORDER_PDP_ENDIAN__.
7012 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7013 (struct DWstruct): Define based on __BYTE_ORDER__.
7014 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7015 (struct INTstruct): Define based on __BYTE_ORDER__.
7016 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7017 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
7018 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
7019 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7020 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7021 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7022 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7023 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7024 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7025 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7026 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7027 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7028 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7029 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7030 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7031 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7032 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7033 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7034 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7035 * doc/tm.texi: Regenerate.
7036 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
7037 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
7039 2010-10-23 Jie Zhang <jie@codesourcery.com>
7041 PR rtl-optimization/37360
7042 * config/mips/mips.c (cached_can_issue_more): New local variable.
7043 (mips_sched_reorder_1): New.
7044 (mips_sched_reorder): Use mips_sched_reorder_1.
7045 (mips_sched_reorder2): New.
7046 (mips_variable_issue): Set cached_can_issue_more.
7047 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
7048 instead of mips_sched_reorder.
7051 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
7052 PR rtl-optimization/37360
7053 * haifa-sched.c (max_issue): Do not assert that we never issue more
7054 insns than issue_rate. Add comment.
7056 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
7058 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
7059 location info of the expression.
7061 2010-10-22 DJ Delorie <dj@redhat.com>
7063 * doc/extend.texi (Named Address Spaces): Document the M32C named
7066 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
7067 __far address space.
7068 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
7069 "__far" address space for R8C and M16C processor variants.
7070 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
7071 (far_addr_space_p): New.
7072 (encode_pattern_1): Add sign and zero extend support.
7073 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
7074 (m32c_extra_constraint_p2): Add SF constraint.
7075 (m32c_legitimate_address_p): Support __far addresses.
7076 (m32c_addr_space_pointer_mode): New.
7077 (m32c_addr_space_address_mode): New.
7078 (m32c_addr_space_legitimate_address_p): New.
7079 (m32c_addr_space_legitimize_address): New.
7080 (m32c_addr_space_subset_p): New.
7081 (m32c_addr_space_convert): New.
7082 (conversions): Add __far operand patterns.
7083 (m32c_prepare_move): Force constants into registers for __far moves.
7084 (m32c_split_move): __far moves are always split.
7085 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
7086 * config/m32c/mov.md (mov<mode>_far_op1): New.
7087 (mov<mode>_far_op2): New.
7088 (movqi_op): Add __far (SF) support.
7089 (movhi_op): Likewise.
7090 (movsi_splittable): Split A1A0 also.
7092 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7093 Andrew Pinski <pinskia@gmail.com>
7095 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
7096 * doc/extend.texi: New paragraph
7098 2010-10-22 Paul Koning <ni1d@arrl.net>
7100 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
7102 2010-10-22 DJ Delorie <dj@redhat.com>
7104 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
7106 2010-10-22 Paul Koning <ni1d@arrl.net>
7108 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
7110 2010-10-22 Richard Henderson <rth@redhat.com>
7112 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
7113 cases for __builtin_fma and __builtin_fmaf.
7115 2010-10-22 Richard Henderson <rth@redhat.com>
7117 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
7118 NEG+USE for vectors as well.
7119 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
7122 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7124 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
7125 SWITCH_CURTAILS_COMPILATION): Remove.
7126 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
7127 * doc/tm.texi: Regenerate.
7128 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
7130 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7132 * config/i386/bdver1.md: New file.
7133 * config/i386/i386.md (include "bdver1.md"): Invoke the
7134 pipeline description for bdver1.
7135 (x86_sahf_1): Add "bdver1_decode" attribute.
7136 (*cmpfp_i_mixed): Likewise.
7137 (*cmpfp_i_sse): Likewise.
7138 (*cmpfp_i_i387): Likewise.
7139 (*cmpfp_iu_mixed): Likewise.
7140 (*cmpfp_iu_sse): Likewise.
7141 (*cmpfp_iu_387): Likewise.
7142 (*swap<mode>,*swap<mode>_1): Likewise.
7143 (fixuns_trunc<mode>hi2): Likewise.
7144 (fix_trunc<mode>si_sse): Likewise.
7145 (x86_fnstcw_1): Likewise.
7146 (x86_fldcw_1): Likewise.
7147 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
7148 (*floatsi<mode>2_vector_mixed): Likewise.
7149 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
7150 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7151 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7152 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
7153 (*floatsi<mode>2_vector_sse): Likewise.
7154 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
7155 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7156 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7157 (*mul<mode>3_1): Likewise.
7158 (*mulsi3_1_zext): Likewise.
7159 (*mulhi3_1): Likewise.
7160 (*mulqi3_1): Likewise.
7161 (*<u>mul<mode><dwi>3_1): Likewise.
7162 (*<u>mulqihi3_1): Likewise.
7163 (*<s>muldi3_highpart_1): Likewise.
7164 (*<s>mulsi3_highpart_1): Likewise.
7165 (*<s>mulsi3_highpart_zext): Likewise.
7166 (x86_64_shld): Likewise.
7167 (x86_shld): Likewise.
7168 (x86_64_shrd): Likewise.
7169 (x86_shrd): Likewise.
7170 (sqrtxf2): Likewise.
7171 (sqrt_extend<mode>xf2_i387): Likewise.
7172 (*sqrt<mode>2_sse): Likewise.
7173 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
7174 (sse_cvtsi2ssq): Likewise.
7175 (sse_cvtss2si): Likewise.
7176 (sse_cvtss2si_2): Likewise.
7177 (sse_cvtss2siq): Likewise.
7178 (sse_cvtss2siq_2): Likewise.
7179 (sse_cvttss2si): Likewise.
7180 (sse_cvttss2siq): Likewise.
7181 (sse2_cvtpi2pd): Likewise.
7182 (sse2_cvttpd2pi): Likewise.
7183 (sse2_cvtsi2sd): Likewise.
7184 (sse2_cvtsi2sdq): Likewise.
7185 (sse2_cvtsd2si): Likewise.
7186 (sse2_cvtsd2si_2): Likewise.
7187 (sse2_cvtsd2siq): Likewise.
7188 (sse2_cvtsd2siq_2): Likewise.
7189 (sse2_cvttsd2si): Likewise.
7190 (sse2_cvttsd2siq): Likewise.
7191 (*sse2_cvtpd2dq): Likewise.
7192 (*sse2_cvttpd2dq): Likewise.
7193 (sse2_cvtsd2ss): Likewise.
7194 (sse2_cvtss2sd): Likewise.
7195 (*sse2_cvtpd2ps): Likewise.
7196 (sse2_cvtps2pd): Likewise.
7198 2010-10-22 Richard Guenther <rguenther@suse.de>
7201 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
7202 remove the virtual operands if they are not needed.
7204 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7206 * config/i386/i386.c (processor_costs bdver1_cost): Update
7207 insn costs and architectural parameters for bdver1.
7209 2010-10-22 Richard Guenther <rguenther@suse.de>
7211 * gimple.h (gimple_register_canonical_type): Declare.
7212 * gimple.c (gimple_canonical_types): New global hashtable.
7213 (struct gimple_type_leader_entry_s): New type.
7214 (gimple_type_leader): New global cache.
7215 (gimple_lookup_type_leader): New function.
7216 (gtc_visit): Query the proper cache.
7217 (gimple_types_compatible_p): Likewise.
7218 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
7219 (gimple_canonical_type_eq): New function.
7220 (gimple_register_canonical_type): Likewise.
7221 (print_gimple_types_stats): Adjust for gimple_canonical_types.
7222 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
7223 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
7224 gimple_types_compatible_p for LTO.
7226 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
7229 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
7230 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
7231 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
7232 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
7233 (<sse>_movu<ssemodesuffix>): New expander.
7234 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
7235 (avx_movdqu<avxmodesuffix>): New expander.
7236 (*sse2_movdqu): Rename from sse2_movdqu.
7237 (sse2_movdqu): New expander.
7239 2010-10-22 Richard Guenther <rguenther@suse.de>
7241 PR tree-optimization/45720
7242 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7243 Handle negative step.
7244 (vect_enhance_data_refs_alignment): Likewise.
7245 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
7246 (vect_create_cond_for_align_checks): Likewise.
7247 (vect_create_cond_for_alias_checks): Likewise.
7249 2010-10-22 Ira Rosen <irar@il.ibm.com>
7251 PR tree-optimization/46126
7252 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
7253 vectorizable_shift in case of basic block vectorization.
7255 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7257 * target.h (enum opt_levels, struct default_options): New.
7258 * target.def (handle_ofast): Remove hook.
7259 (target_option.optimization): Change to
7260 target_option.optimization_table.
7261 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
7262 TARGET_OPTION_OPTIMIZATION_TABLE.
7263 (CAN_DEBUG_WITHOUT_FP): Remove.
7264 * doc/tm.texi: Regenerate.
7265 * opts.c (maybe_default_option, maybe_default_options,
7266 default_options_table): New.
7267 (default_options_optimization): Take extra parameters. Don't
7268 assert that global_options and global_options_set are in use. Use
7269 maybe_default_options.
7270 (decode_options): Pass extra parameters to
7271 default_options_optimization.
7272 * common.opt (falign-loops): Use value 0 with Var.
7273 (frerun-cse-after-loop, ftree-ter): Remove Init.
7274 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
7275 TARGET_OPTION_OPTIMIZATION): Remove.
7276 * targhooks.c (empty_optimization_table): New.
7277 * targhooks.h (empty_optimization_table): Declare.
7278 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
7279 * config/alpha/alpha.c (alpha_option_optimization_table,
7280 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7281 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
7282 * config/arm/arm.c (arm_option_optimization: Change to
7283 arm_option_optimization_table.
7284 (TARGET_OPTION_OPTIMIZATION): Change to
7285 TARGET_OPTION_OPTIMIZATION_TABLE.
7286 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
7287 * config/avr/avr.c (avr_option_optimization_table,
7288 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7289 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
7290 * config/cris/cris.c (cris_option_optimization): Change to
7291 cris_option_optimization_table.
7292 (TARGET_OPTION_OPTIMIZATION): Change to
7293 TARGET_OPTION_OPTIMIZATION_TABLE.
7294 * config/crx/crx.c (crx_option_optimization): Change to
7295 crx_option_optimization_table.
7296 (TARGET_OPTION_OPTIMIZATION): Change to
7297 TARGET_OPTION_OPTIMIZATION_TABLE.
7298 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7299 * config/fr30/fr30.c (fr30_option_optimization_table,
7300 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7301 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
7302 * config/frv/frv.c (frv_option_optimization_table,
7303 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7304 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
7305 * config/h8300/h8300.c (h8300_option_optimization): Change to
7306 h8300_option_optimization_table.
7307 (TARGET_OPTION_OPTIMIZATION): Change to
7308 TARGET_OPTION_OPTIMIZATION_TABLE.
7309 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7310 * config/i386/i386.c (ix86_option_optimization): Change to
7311 ix86_option_optimization_table.
7312 (TARGET_OPTION_OPTIMIZATION): Change to
7313 TARGET_OPTION_OPTIMIZATION_TABLE.
7314 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7316 * config/ia64/ia64.c (ia64_option_optimization): Change to
7317 ia64_option_optimization_table.
7318 (TARGET_OPTION_OPTIMIZATION): Change to
7319 TARGET_OPTION_OPTIMIZATION_TABLE.
7320 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
7321 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
7323 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
7324 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7325 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7326 * config/lm32/lm32.c (lm32_option_optimization_table,
7327 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7328 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
7329 * config/m32r/m32r.c (m32r_option_optimization): Change to
7330 m32r_option_optimization_table.
7331 (TARGET_OPTION_OPTIMIZATION): Change to
7332 TARGET_OPTION_OPTIMIZATION_TABLE.
7333 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
7334 CAN_DEBUG_WITHOUT_FP): Remove.
7335 * config/mcore/mcore.c (mcore_option_optimization): Change to
7336 mcore_option_optimization_table.
7337 (TARGET_OPTION_OPTIMIZATION): Change to
7338 TARGET_OPTION_OPTIMIZATION_TABLE.
7339 * config/mep/mep.c (mep_option_optimization): Change to
7340 mep_option_optimization_table.
7341 (TARGET_OPTION_OPTIMIZATION): Change to
7342 TARGET_OPTION_OPTIMIZATION_TABLE.
7343 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
7344 * config/microblaze/microblaze.c
7345 (microblaze_option_optimization_table,
7346 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7347 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
7348 * config/mips/mips.c (mips_option_optimization_table,
7349 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7350 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
7351 * config/mmix/mmix.c (mmix_option_optimization): Change to
7352 mmix_option_optimization_table.
7353 (TARGET_OPTION_OPTIMIZATION): Change to
7354 TARGET_OPTION_OPTIMIZATION_TABLE.
7355 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
7356 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
7357 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7358 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7359 * config/pa/pa.c (pa_option_optimization_table,
7360 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7361 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7362 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
7363 pdp11_option_optimization_table.
7364 (TARGET_OPTION_OPTIMIZATION): Change to
7365 TARGET_OPTION_OPTIMIZATION_TABLE.
7366 * config/picochip/picochip.c (picochip_option_optimization_table,
7367 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7368 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
7369 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
7370 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7371 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7372 * config/rx/rx.c (rx_option_optimization_table,
7373 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7374 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7375 * config/s390/s390.c (s390_option_optimization): Change to
7376 s390_option_optimization_table.
7377 (s390_option_override): Update comment.
7378 (TARGET_OPTION_OPTIMIZATION): Change to
7379 TARGET_OPTION_OPTIMIZATION_TABLE.
7380 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
7381 * config/score/score.c (score_option_optimization_table,
7382 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7383 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
7384 * config/sh/sh.c (sh_option_optimization): Change to
7385 sh_option_optimization_table.
7386 (TARGET_OPTION_OPTIMIZATION): Change to
7387 TARGET_OPTION_OPTIMIZATION_TABLE.
7388 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
7389 (sh_option_override, expand_block_move, multcosts, find_barrier,
7390 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
7391 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
7392 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
7393 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
7394 instead of TARGET_SMALLCODE.
7395 * config/sh/sh.opt (mspace): Make into an alias for -Os.
7396 * config/sparc/sparc.c (sparc_option_optimization_table,
7397 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7398 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
7399 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
7400 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7401 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
7402 * config/v850/v850.c (v850_option_optimization): Change to
7403 v850_option_optimization_table.
7404 (TARGET_OPTION_OPTIMIZATION): Change to
7405 TARGET_OPTION_OPTIMIZATION_TABLE.
7406 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
7407 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
7408 xtensa_option_optimization_table.
7409 (TARGET_OPTION_OPTIMIZATION): Change to
7410 TARGET_OPTION_OPTIMIZATION_TABLE.
7411 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7413 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
7415 Based on the CFString implementation in FSF apple/trunk branch.
7417 * target.def (objc_construct_string): New Hook.
7418 * doc/tm.texi (objc_construct_string): Document.
7419 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
7420 * config/t-darwin: Amend build rules for darwin.o.
7421 * config/darwin.opt: Add cfstrings flags.
7422 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
7423 (darwin_objc_construct_string): New.
7424 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
7425 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
7426 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
7427 (darwin_fold_builtin): Likewise.
7428 (darwin_build_constant_cfstring): Likewise.
7429 (darwin_objc_construct_string): Likewise.
7430 (darwin_cfstring_p): Likewise.
7431 (darwin_enter_string_into_cfstring_table): Likewise.
7432 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
7433 * config/darwin.c (darwin_running_cxx): New var.
7434 (machopic_select_section): Return cfstring_constant_object_section.
7435 (darwin_override_options): Set darwin_running_cxx.
7436 (add_builtin_field_decl): New.
7437 (darwin_init_cfstring_builtins): New.
7438 (darwin_build_constant_cfstring): New.
7439 (darwin_fold_builtin): New.
7440 (cfstring_hash): New.
7442 (darwin_enter_string_into_cfstring_table): New.
7443 * config/darwin-sections.def (cfstring_constant_object_section): New.
7444 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
7445 (TARGET_OBJC_CONSTRUCT_STRING): Define.
7447 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7449 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
7450 TYPE_STUB_DECL instead of TREE_CHAIN.
7451 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
7452 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
7453 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
7454 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
7455 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
7456 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
7458 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
7460 2010-10-22 Jie Zhang <jie@codesourcery.com>
7462 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
7463 (copy_blkmode_from_reg): Likewise.
7464 (read_complex_part): Likewise.
7465 (expand_expr_real_1): Calculate packedp and pass it to
7467 * expr.h (extract_bit_field): Update declaration.
7468 * calls.c (store_unaligned_arguments_into_pseudos): Update call
7469 to extract_bit_field.
7470 * expmed.c (extract_fixed_bit_field): Update calls to
7471 extract_fixed_bit_field.
7472 (store_split_bit_field): Likewise.
7473 (extract_bit_field_1): Add new argument packedp.
7474 (extract_bit_field): Add new argument packedp.
7475 (extract_fixed_bit_field): Add new argument packedp and let
7476 packed attribute override volatile.
7477 * stmt.c (expand_return): Update call to extract_bit_field.
7479 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7481 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
7483 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7485 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
7486 of gcc_checking_assert.
7487 * sel-sched.c (code_motion_process_successors): Likewise.
7489 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
7491 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
7492 when stopping because of a different locus on edge or insn.
7493 (try_optimize_cfg): Add comment.
7494 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
7495 block is a forwarder block, propagate locus on the edge.
7496 (cfg_layout_merge_blocks): Likewise.
7498 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
7501 * config/i386/i386.md (*pushti2): New insn pattern.
7502 (pushti2 splitter): New insn splitter.
7503 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
7506 2010-10-21 Paul Koning <ni1d@arrl.net>
7508 * config/pdp11/pdp11-protos.md (arith_operand,
7509 const_immediate_operand, expand_shift_operand,
7510 immediate15_operand): Delete
7511 * config/pdp11/pdp11.c: Ditto.
7512 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
7513 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
7514 EXTRA_CONSTRAINT): Delete.
7515 * config/pdp11/pdp11.md (various): Use standard constraints
7516 instead of removed ones.
7517 * config/pdp11/constraints.md: New file.
7518 * config/pdp11/predicates.md: New file.
7520 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
7523 * alias.c (true_dependence_1): Remove obsolete check for QImode.
7524 (may_alias_p): Ditto.
7526 2010-10-21 Martin Jambor <mjambor@suse.cz>
7528 PR tree-optimization/45875
7529 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
7531 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7533 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
7535 (create_new_def_for): Likewise.
7537 2010-10-21 Nick Clifton <nickc@redhat.com>
7539 * config/mn10300/mn10300.c: Fold code to 80-character width.
7540 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7541 MEM, CONST_INT and CONST_DOUBLE.
7542 (targetm): Move initialization to end of file.
7543 (print_operand): Rename to mn10300_print_operand.
7544 (print_operand_address): Rename to mn10300_print_operand_address.
7545 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
7546 (expand_prologue): Rename to mn10300_expand_prologue.
7547 (expand_epilogue): Rename to mn10300_expand_epilogue.
7548 (initial_offset): Rename to mn10300_initial_offset.
7549 (function_arg): Rename to mn10300_function_arg.
7550 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
7551 (symbolic_operand): Rename to mn10300_symbolic_operand.
7552 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
7553 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
7554 * config/mn10300/mn10300-protos.h: Update prototypes.
7555 * config/mn10300/mn10300.h: Fold code to 80-character width.
7556 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7557 MEM, CONST_INT and CONST_DOUBLE.
7558 (CPP_SPEC): Move to...
7559 (TARGET_CPU_CPP_BUILTINS): ... here.
7560 * config/mn10300/mn10300.md: Fold code to 80-character width.
7561 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7562 MEM, CONST_INT and CONST_DOUBLE.
7564 2010-10-21 Ira Rosen <irar@il.ibm.com>
7566 PR tree-optimization/46049
7567 PR tree-optimization/46052
7568 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
7569 (vect_get_slp_defs): Add arguments.
7570 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
7571 operands to vect_get_slp_defs.
7572 (vectorizable_reduction): Fix comment, pass scalar operands to
7574 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
7575 type to determine number of units in the created vector.
7576 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
7577 (vectorizable_conversion): Fix comment.
7578 (vectorizable_shift): New function.
7579 (vectorizable_operation): Move code that handles shifts to
7581 (vectorizable_type_demotion): Fix comment, pass scalar operands to
7583 (vectorizable_type_promotion, vectorizable_store): Likewise.
7584 (vectorizable_condition): Fix comment.
7585 (vect_analyze_stmt): Call vectorizable_shift.
7586 (vect_transform_stmt): Likewise.
7587 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
7588 Use it as the operand to create vectors for, except reduction
7589 initial definition and store. Use operands type.
7590 (vect_get_slp_defs): Add new arguments. Pass them to
7591 vect_get_constant_vectors.
7593 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7595 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
7596 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
7597 * cfghooks.c (fixup_reorder_chain): Likewise.
7598 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
7599 * cgraph.c (cgraph_add_thunk): Likewise.
7600 (cgraph_create_edge_1): Likewise.
7601 (cgraph_create_virtual_clone): Likewise.
7602 * ddg.c (add_cross_iteration_register_deps): Likewise.
7603 * dwarf2out.c (modified_type_die): Likewise.
7604 * emit-rtl.c (set_mem_alias_set): Likewise.
7605 * ggc-zone.c (zone_allocate_marks): Likewise.
7606 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
7607 * gimple.c (iterative_hash_gimple_type): Likewise.
7608 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
7609 (create_single_exit_edge): Likewise.
7610 * haifa-sched.c (choose_ready): Likewise.
7611 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7612 * passes.c (execute_todo): Likewise.
7613 * sched-ebb.c (begin_schedule_ready): Likewise.
7614 * sel-sched.c (code_motion_process_successors): Likewise.
7615 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
7616 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
7617 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
7618 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
7619 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
7620 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
7621 (ssa_conflicts_add): Likewise.
7622 * tree-ssa-copy.c (replace_exp): Likewise.
7623 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
7624 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
7625 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7626 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
7627 (compute_antic): Likewise.
7628 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
7629 (add_dependence): Likewise.
7630 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
7631 * tree-vrp.c (supports_overflow_infinity): Likewise.
7632 (make_overflow_infinity, negative_overflow_infinity): Likewise.
7633 (avoid_overflow_infinity, register_new_assert_for): Likewise.
7634 (process_assert_insertions_for): Likewise.
7635 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
7636 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
7637 (intersect_loc_chains, variable_merge_over_cur): Likewise.
7639 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7641 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
7642 * reload1.c (has_nonexceptional_receiver): Likewise.
7643 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
7644 (create_new_def_for): Likewise.
7645 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7646 (merge_phi_nodes): Likewise.
7647 (has_abnormal_incoming_edge_p): Delete.
7649 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
7651 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
7653 2010-10-21 Richard Guenther <rguenther@suse.de>
7654 Michael Matz <matz@suse.de>
7656 PR tree-optimization/45764
7657 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7658 Adjust initial misalignment for negative DR_STEP.
7659 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
7660 do not have the same alignment over the whole iteration domain.
7662 2010-10-21 Richard Guenther <rguenther@suse.de>
7664 PR tree-optimization/46111
7665 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
7667 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7669 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
7671 2010-10-21 Tristan Gingold <gingold@adacore.com>
7673 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
7674 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
7676 2010-10-21 Tristan Gingold <gingold@adacore.com>
7678 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
7680 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
7682 2010-10-21 Tristan Gingold <gingold@adacore.com>
7684 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
7685 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
7687 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
7689 * basic-block.h (find_fallthru_edge): Define.
7690 * cfgcleanup.c (merge_blocks_move): Use it.
7691 (try_crossjump_bb): Likewise.
7692 * cfglayout.c (fixup_reorder_chains): Likewise.
7693 (fixup_fallthru_exit_predecessor): Likewise.
7694 * cfgrtl.c (rtl_split_edge): Likewise.
7695 (rtl_verify_flow_info): Likewise.
7696 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7697 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
7698 * ifcvt.c (block_fallthru): Likewise.
7699 * reload1.c (fixup_abnormal_edges): Likewise.
7700 * sched-ebb.c (being_schedule_ready): Likewise.
7701 (schedule_ebb): Likwise.
7702 * sched-rgn.c (find_single_block_region): Likewise.
7703 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
7704 * tree-complex.c (expand_complex_move): Likewise.
7705 * sched-int.h (find_fallthru_edge): Rename to...
7706 (find_fallthru_edge_from): ...this.
7707 * haifa-sched.c (find_fallthru_edge): Rename to...
7708 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
7709 (init_before_recovery): Call find_fallthru_edge_from.
7710 * sel-sched-ir.c (merge_fences): Likewise.
7711 * sel-sched.c (in_fallthru_bb_p): Likewise.
7712 (move_cond_jump): Likewise.
7714 2010-10-20 Paul Koning <ni1d@arrl.net>
7716 * config/pdp11/pdp11.md (various): Fix conditions on a number of
7717 insn to check for target 11/40 or higher.
7719 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7721 * parser.c (c_parser_objc_method_type): Mark inline. Return a
7722 bool instead of a tree.
7723 (c_parser_objc_method_decl): Added bool argument. Updated call to
7724 objc_build_method_signature.
7725 (c_parser_objc_method_definition): Do not call
7726 objc_set_method_type. Updated calls to c_parser_objc_method_type,
7727 c_parser_objc_method_decl and objc_start_method_definition.
7728 (c_parser_objc_methodproto): Do not call objc_set_method_type.
7729 Updated calls to c_parser_objc_method_type,
7730 c_parser_objc_method_decl and objc_add_method_declaration.
7732 2010-10-20 Jakub Jelinek <jakub@redhat.com>
7734 PR tree-optimization/45919
7735 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7738 PR tree-optimization/46066
7739 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
7740 instead of gsi_last_bb.
7742 2010-10-20 DJ Delorie <dj@redhat.com>
7744 * config/m32c/m32c.c (m32c_option_override): Always disable
7745 function-cse in 16-bit mode. Indirect calls are always worse than
7746 direct calls as there is no 16-bit indirect call opcode.
7747 (m32c_override_options_after_change): New, likewise.
7749 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
7751 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
7752 emitting the conditional move in the inner mode of the SUBREG.
7754 2010-10-20 Anatoly Sokolov <aesok@post.ru>
7756 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7757 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7758 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7759 (ia64_preferred_reload_class): Make static. Change rclass argument
7760 and result types from enum reg_class to reg_class_t.
7762 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
7764 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7765 call for single operand expression.
7767 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
7769 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7770 if there is a call statement to pure or const function in the block.
7772 2010-10-20 Paul Koning <pkoning@equallogic.com>
7774 Fix several build errors for pdp11 target.
7775 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7776 (cbranchdf4): Conditional on TARGET_FPU.
7777 (movdf): Ditto; correct alternatives check.
7778 (movmemhi): Fix predicate and constraint.
7779 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7781 2010-10-20 Richard Guenther <rguenther@suse.de>
7784 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7785 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7786 (verify_gimple_assign_single): Disable ADDR_EXPR type check
7789 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
7792 * ira-emit.c (store_can_be_removed_p): Return false instead of
7795 2010-10-20 Dmitry Melnik <dm@ispras.ru>
7797 * fold-const.c (fold_binary_loc): New transformation.
7799 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
7802 * config/i386/sse.md (reduc_splus_v8sf): Updated.
7803 (reduc_splus_v4df): Likewise.
7805 2010-10-20 Richard Guenther <rguenther@suse.de>
7807 PR tree-optimization/45860
7808 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7809 conditional store replacement for non-register type stores.
7811 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
7813 * stor-layout.c (skip_simple_constant_arithmetic): New function.
7814 (self_referential_size): Use it instead of skip_simple_arithmetic.
7816 2010-10-20 Olivier Hainque <hainque@adacore.com>
7818 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7819 If the current function calls eh_return, claim live all registers
7820 that we need to check for liveness otherwise.
7822 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7824 * c-decl.c (c_write_global_declarations): Call
7825 objc_write_global_declarations when compiling Objective-C.
7826 * c-lang.c (finish_file): Removed.
7828 2010-10-19 DJ Delorie <dj@redhat.com>
7830 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7831 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7832 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7833 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7834 * doc/tm.texi: Regenerate.
7835 * targhooks.h (default_label_align_after_barrier_max_skip,
7836 default_loop_align_max_skip, default_label_align_max_skip,
7837 default_jump_align_max_skip): Declare.
7838 * target.def (label_align_after_barrier_max_skip): New.
7839 (loop_align_max_skip): New.
7840 (label_align_max_skip): New.
7841 (jump_align_max_skip): New.
7842 * system.h (poison): Add those macros to the list.
7843 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
7844 (LOOP_ALIGN_MAX_SKIP): Remove.
7845 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
7846 (JUMP_ALIGN_MAX_SKIP): Remove.
7847 (default_label_align_after_barrier_max_skip): New.
7848 (default_loop_align_max_skip): New.
7849 (default_label_align_max_skip): New.
7850 (default_jump_align_max_skip): New.
7851 (compute_alignments): Use the new hooks.
7852 (shorten_branches): Likewise.
7854 2010-10-19 Richard Henderson <rth@redhat.com>
7856 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
7857 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
7858 (fma4i_fmadd_<mode>): New.
7859 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
7860 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
7861 standard fma patterns.
7862 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
7864 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7865 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7866 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
7868 2010-10-19 Paul Koning <pkoning@equallogic.com>
7870 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
7871 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
7873 2010-10-19 Richard Henderson <rth@redhat.com>
7875 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
7876 (fmadf4, *fmsdf4, *nfmadf4): New.
7877 (fmaxf4, *fmsxf4, *nfmaxf4): New.
7879 2010-10-19 Michael Eager <eager@eagercon.com>
7881 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
7882 Use sjlj unwind info for exceptions.
7884 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
7887 * dwarf2out.c (add_calling_convention_attribute): Flag main
7888 Fortran subroutine with DW_AT_main_subprogram.
7890 2010-10-19 Nick Clifton <nickc@redhat.com>
7892 * config/rx/rx.c (rx_function_value): Small integer types are
7894 (rx_promote_function_mode): New function.
7895 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7897 2010-10-19 Nick Clifton <nickc@redhat.com>
7899 * config/mep/mep.c (mep_print_operand): Use
7900 targetm.strip_name_encoding.
7901 (mep_output_aligned_common): Likewise.
7903 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
7905 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
7907 2010-10-18 Richard Henderson <rth@redhat.com>
7909 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
7910 (fma (neg a) (neg b) c) and (fma a (neg b) c).
7912 2010-10-18 Richard Henderson <rth@redhat.com>
7914 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
7915 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
7916 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
7917 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
7918 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
7919 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
7920 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
7921 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
7922 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
7923 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
7924 (bdesc_multi_arg): Remove the corresponding builtins.
7925 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
7926 (UNSPEC_FMA4_FMSUBADD): Remove.
7927 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
7928 * config/i386/sse.md (FMA4MODEF4): Remove.
7930 (fma<mode>4): New expander.
7931 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
7932 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
7933 (*fma4i_fmsub_<mode>): Similarly.
7934 (*fma4i_fnmadd_<mode>): Similarly.
7935 (*fma4i_fnmsub_<mode>): Similarly.
7936 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
7937 with the first operand.
7938 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
7939 of explicit arithmetic. Macroize with AVXMODEF2P.
7940 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
7941 (xop_frcz<mode>2): Macroize with FMAMODE.
7942 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
7944 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
7946 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
7947 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
7948 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
7949 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
7950 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
7951 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
7952 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
7953 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
7955 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
7957 PR rtl-optimization/45966
7958 * combine.c (try_combine): If added_sets_2, deal with the case
7959 where i0 feeds i1 and i1 feeds i2.
7961 2010-10-18 Jan Hubicka <jh@suse.cz>
7963 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
7964 preserve flags before trying to guess on visibility.
7965 (varpool_externally_visible_p): New function.
7966 (function_and_variable_visibility): Use it.
7968 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7970 Implemented parsing @synthesize and @dynamic for Objective-C.
7971 * c-parser.c (c_parser_external_declaration): Recognize
7972 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7973 (c_parser_objc_at_synthesize_declaration): New.
7974 (c_parser_objc_at_dynamic_declaration): New.
7976 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
7978 * c-parser.c (c_parser_objc_class_declaration): After finding an
7979 error, parse the whole declaration then reset parser->error.
7981 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7984 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
7985 * builtins.c (mode_has_fma): Ditto.
7987 2010-10-18 Steve Ellcey <sje@cup.hp.com>
7991 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
7993 2010-10-18 Joseph Myers <joseph@codesourcery.com>
7995 * config/i386/i386.c (ix86_option_override_internal): Define and
7996 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
7998 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7999 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
8001 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8003 Merge from 'apple/trunk' branch on FSF servers.
8004 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
8005 following Objective-C change:
8007 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
8010 * c-parse.in (objc_quals): Build objc qualifier list same way
8013 2010-10-18 Jan Hubicka <jh@suse.cz>
8015 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
8016 function_and_variable_visibility): Revert accidental commit.
8018 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8020 Merge from 'apple/trunk' branch on FSF servers.
8021 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
8022 the following Objective-C change:
8024 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
8027 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
8028 'volatilized' type used in a typeof operator.
8030 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
8032 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
8033 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
8034 rewrite modelled on gimple_purge_dead_eh_edges.
8035 (gimple_purge_all_dead_abnormal_call_edges): New function.
8036 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
8037 directly instead of through gimple_purge_dead_abnormal_call_edges.
8038 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
8039 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
8040 removed AB side-effects from one of its statements.
8041 (init_pre): Initialize need_ab_cleanup.
8042 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
8043 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
8045 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8048 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
8049 on computed goto argument.
8051 2010-10-18 Richard Guenther <rguenther@suse.de>
8053 PR tree-optimization/45967
8054 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
8055 (could_have_pointers): Likewise.
8056 (handle_rhs_call, handle_const_call, handle_pure_call,
8057 find_func_aliases, intra_create_variable_infos): Remove calls to them.
8058 (struct fieldoff): Add must_have_pointers field.
8059 (type_must_have_pointers): New function.
8060 (field_must_have_pointers): Likewise.
8061 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
8062 Adjust field merging.
8063 (create_function_info_for): May-have-pointers of varinfo is
8065 (create_variable_info_for_1): Likewise.
8067 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
8069 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
8070 of operands to vec_concat.
8072 2010-10-18 Richard Guenther <rguenther@suse.de>
8075 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
8076 also clear references to entries of it.
8078 2010-10-18 Andi Kleen <ak@linux.intel.com>
8081 * gccbug.in: Remove.
8082 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
8083 (doc, distclean, install-common): Remove reference to gccbug.
8084 * configure: Regenerate.
8085 * configure.ac (all_outputs): Remove gccbug.
8086 * doc/configfiles.texi: Remove references to gccbug.
8087 * doc/sourcebuild.texi: Dito.
8089 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8092 * fold-const.c (fold_binary_loc): If integer_pow2p has
8093 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
8095 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8096 Jeremie Salvucci <jeremie.salvucci@free.fr>
8098 * gengtype.c (verbosity_level): Add variable.
8099 (set_gc_used): Count variables for verbosity.
8100 (close_output_files): Backing up files, counting written ones
8102 (write_types): Count emitted functions for verbosity. Added
8104 (write_enum_defn): Count structures for verbosity. Added debug
8106 (gengtype_long_options): Add "verbose" & "backupdir".
8107 (print_usage): Ditto.
8108 (main): Verbose display of parsed files.
8110 * gengtype.h (verbosity_level): Add declaration.
8112 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8114 * gengtype.c (parse_program_options): Add allocation of
8115 plugin_files, and correct test on nb_plugin_files.
8117 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8119 Merge from 'apple/trunk' branch on FSF servers.
8121 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8124 * c-decl.c (undeclared_variable): Issue diagnostic on
8125 private 'ivar' access.
8127 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8130 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
8131 generated sequence to match *avx_vperm2f128<mode>_nozero.
8132 (vec_interleave_lowv4df): Ditto.
8133 (vec_interleave_highv8sf): Ditto.
8134 (vec_interleave_lowv8sf): Ditto.
8136 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
8138 * libgcov.c (create_file_directory): Enable it for win32 case.
8139 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
8140 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
8141 (GCOV_PREFIX_SKIP): Likewise.
8143 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8145 * doc/objc.texi (GNU Objective-C runtime API): New section.
8146 (Modern GNU Objective-C runtime API): New section.
8147 (Traditional GNU Objective-C runtime API): New section.
8148 (Executing code before main): Mention that this section is
8149 specific to the GNU Objective-C runtime.
8150 (Garbage Collection): Same.
8152 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8154 * c-parser.c (c_parser_for_statement): Move initialization of
8155 cond and incr before if.
8157 2010-10-17 Anatoly Sokolov <aesok@post.ru>
8159 * target.def (preferred_output_reload_class): New hook.
8160 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
8161 * doc/tm.texi: Regenerate.
8162 * targhooks.c (default_preferred_output_reload_class): New function.
8163 * targhooks.h (default_preferred_output_reload_class): Declare.
8164 * reload.c (find_dummy_reload): Change rclass argument type from
8165 enum reg_class to reg_class_t. Change this_alternative array type
8166 from enum reg_class to reg_class_t.
8167 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8168 (push_reload): Change preferred_class variable type to reg_class_t.
8169 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8170 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
8171 argument type from enum reg_class to reg_class_t. Use
8172 HARD_REGISTER_NUM_P predicate.
8173 * recog.h (reg_fits_class_p): Update prototype.
8175 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8176 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
8178 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
8179 static. Change regclass argument and result types from enum reg_class
8181 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8183 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8185 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
8186 visibility enum, and handle @package.
8188 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8190 * doc/objc.texi (What you can and what you cannot do in +load):
8191 Document that sending messages to constant string objects in +load
8192 is not guaranteed to work.
8194 2010-10-16 Jan Hubicka <jh@suse.cz>
8197 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
8198 existence of refrences before removing the function.
8200 2010-10-16 Jan Hubicka <jh@suse.cz>
8202 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
8203 only_called_at_startup and only_called_at_exit.
8204 (cgraph_propagate_frequency): Compute only_called_at_startup and
8205 only_called_at_exit.
8206 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
8207 only_called_at_exit.
8208 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
8210 * predict.c (compute_function_frequency): Initialize the new flags.
8212 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
8214 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
8215 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
8216 on the bounds of its domain.
8217 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
8219 2010-10-16 Anatoly Sokolov <aesok@post.ru>
8221 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
8222 * config/avr/avr-protos.h (preferred_reload_class): Remove.
8223 * config/avr/avr.c (preferred_reload_class): Remove.
8224 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
8225 * config/pa/pa.c (emit_move_sequence): Update comment
8226 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
8227 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
8228 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
8229 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
8230 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
8231 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
8232 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
8233 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
8234 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
8235 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
8236 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
8237 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
8238 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
8240 2010-10-16 Joseph Myers <joseph@codesourcery.com>
8242 * opts.c (set_fast_math_flags,
8243 set_unsafe_math_optimizations_flags): Make static.
8244 * toplev.h (set_fast_math_flags,
8245 set_unsafe_math_optimizations_flags): Remove prototypes.
8247 2010-10-16 Joseph Myers <joseph@codesourcery.com>
8249 * config/arm/arm.c (arm_option_optimization): Set
8250 flag_section_anchors to 1 not 2.
8251 * config/i386/i386.c (ix86_option_override_internal): Check
8252 global_options_set.x_flag_zee and
8253 global_options_set.x_flag_omit_frame_pointer.
8254 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
8256 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8257 global_options_set.x_flag_omit_frame_pointer.
8258 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
8259 opts->x_flag_section_anchors to 1 not 2.
8260 * config/sh/sh.c (sh_option_optimization): Don't set
8261 flag_schedule_insns to 2.
8262 (sh_option_override): Check
8263 global_options_set.x_flag_schedule_insns.
8264 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
8266 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
8268 * configure.ac: Make sure inhibit_libc remains false for mingw targets
8270 * configure: Regenerated.
8272 2010-10-15 Xinliang David Li <davidxl@google.com>
8274 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
8276 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
8277 into a recursive function.
8279 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
8281 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
8282 (*movdfcc_1): ditto.
8284 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8286 * target.def (target_option.init_struct): New hook.
8287 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
8288 * doc/tm.texi: Regenerate.
8289 * hooks.c (hook_void_gcc_optionsp): New.
8290 * hooks.h (hook_void_gcc_optionsp): Declare.
8291 * langhooks-def.h (lhd_init_options_struct): Remove.
8292 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
8293 * langhooks.c (lhd_init_options_struct): Remove.
8294 * opts.c (init_options_struct): Also call
8295 targetm.target_option.init_struct.
8296 * config/i386/i386.c (ix86_option_init_struct,
8297 TARGET_OPTION_INIT_STRUCT): New.
8298 (ix86_option_optimization): Move some settings to
8299 ix86_option_init_struct.
8300 * config/pdp11/pdp11.c (pdp11_option_init_struct,
8301 TARGET_OPTION_INIT_STRUCT): New.
8302 (pdp11_option_optimization): Move some settings to
8303 pdp11_option_init_struct.
8304 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
8305 rs6000_option_init_struct. Use options structure pointer.
8306 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8307 * config/s390/s390.c (s390_option_init_struct,
8308 TARGET_OPTION_INIT_STRUCT): New.
8309 (s390_option_optimization): Don't set
8310 flag_asynchronous_unwind_tables here.
8311 * config/sh/sh.c (sh_option_init_struct,
8312 TARGET_OPTION_INIT_STRUCT): New.
8313 (sh_option_optimization): Don't set flag_finite_math_only here.
8314 * config/spu/spu.c (spu_option_optimization): Replace by
8315 spu_option_optimization. Use options structure pointer.
8316 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8318 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8320 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
8322 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
8323 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
8324 (Standard names): Document fma.
8326 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
8327 __FP_FAST_FMAF, __FP_FAST_FMAL.
8329 * builitns.c (expand_builtin_mathfn_ternary): New function for
8330 expanding ternary math functions, like fma.
8331 (expand_builtin): Call it for the fma builtins.
8333 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
8336 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
8337 vectorizable functions to support vectorizing fma.
8339 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8340 Handle fma builtins.
8342 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
8343 (UNSPEC_VSX_MSUB): Ditto.
8344 (UNSPEC_VSX_NMADD): Ditto.
8345 (UNSPEC_VSX_NMSUB): Ditto.
8346 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
8347 of UNSPEC. Renumber combiner patterns.
8348 (vsx_fmsub<mode>4*): Ditto.
8349 (vsx_fnmadd<mode>4*): Ditto.
8350 (vsx_fnmsub<mode>4*): Ditto.
8352 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
8353 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
8354 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
8355 (altivec_vmaddfp_1): Ditto.
8356 (altivec_vmaddfp_2): Ditto.
8357 (atlivec_mulv4sf3): Ditto.
8358 (altivec_vnmsubfp): Ditto.
8359 (altivec_vnmsubfp_1): Ditto.
8360 (altivec_vnmsubfp_2): Ditto.
8361 (altivec_vnmsubfp_3): Delete.
8363 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
8364 (fmasf4_fpr): Ditto.
8365 (fmssf4_fpr): Ditto.
8366 (fnmasf4_fpr): Ditto.
8367 (fnmssf4_fpr): Ditto.
8369 (fmadf4_fpr): Ditto.
8370 (fmsdf4_fpr): Ditto.
8371 (fnmadf4_fpr): Ditto.
8372 (fnmsdf4_fpr): Ditto.
8374 * optabs.h (OTI_fma): Add fma optab.
8377 * genopinit.c (optabs): Set fma optab.
8379 * rtl.def (FMA): Add FMA rtl.
8381 * tree.h (mode_has_fma): New function to return if MODE supports a
8382 fast multiply and add instruction.
8383 * builtins.c (mode_has_fma): Ditto.
8385 2010-10-15 Jan Hubicka <jh@suse.cz>
8387 * lto-streamer-out.c (write_symbol): Use pointer set of seen
8388 objects instead of bitmap.
8389 (produce_symtab): Likewise; output defined symbols first.
8391 2010-10-15 Jie Zhang <jie@codesourcery.com>
8393 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
8394 Option Summary and Index.
8396 2010-10-15 Richard Guenther <rguenther@suse.de>
8398 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
8399 for automatic variables again.
8401 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8403 * doc/extend.texi (Variable Length): Don't refer to VLAs not
8406 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8408 * config/rx/rx.c (rx_option_optimization): Change to
8409 rx_override_options_after_change. Don't change
8410 flag_lto_compression_level. Don't check for changes to whether
8411 FPU instructions can be used. Check and set only
8412 flag_finite_math_only, not other fast-math flags.
8413 (rx_option_override): Call rx_override_options_after_change.
8414 (TARGET_OPTION_OPTIMIZATION): Remove.
8415 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8417 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8419 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
8420 disable section anchors for lang_hooks.name[4] != 'O'.
8422 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8424 * config/frv/frv.c (frv_option_optimization,
8425 TARGET_OPTION_OPTIMIZATION): Remove.
8426 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
8428 2010-10-15 Michael Matz <matz@suse.de>
8430 * cgraphunit.c (clone_of_p): Define unconditionally.
8432 2010-10-15 Richard Guenther <rguenther@suse.de>
8435 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
8437 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
8439 * ifcvt.c (find_active_insn_before): New function.
8440 (find_active_insn_after): New function.
8441 (cond_exec_process_if_block): Use new functions to replace
8442 prev_active_insn() and next_active_insn().
8444 2010-10-14 Yao Qi <yao@codesourcery.com>
8447 * config/arm/arm.c (arm_build_builtin_va_list): Assign
8448 va_list_name to TYPE_STUB_DECL (va_list_type).
8450 2010-10-14 Jan Hubicka <jh@suse.cz>
8453 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
8454 redirected to clone, be happy.
8455 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
8456 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
8457 former_clone_of unconditionally.
8459 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8461 Merge from FSF apple 'trunk' branch.
8462 2006 Fariborz Jahanian <fjahanian@apple.com>
8464 Radars 4436866, 4505126, 4506903, 4517826
8465 * c-parser.c (c_parser, objc_property_attr_context) New flag.
8466 (c_lex_one_token): Handle property attributes.
8467 (c_parser_external_declaration): Handle @property.
8468 (c_parser_declaration_or_fndef): Warn on invalid attributes before
8469 @alias, @class, @end and @property objc keywords.
8470 (c_parser_objc_methodprotolist): Handle @property.
8471 (c_parser_objc_property_attrlist): New.
8472 (c_parser_objc_at_property): New.
8473 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
8474 (build_modify_expr): Likewise.
8476 2010-10-14 Jakub Jelinek <jakub@redhat.com>
8478 PR tree-optimization/46008
8479 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
8481 2010-10-14 Richard Guenther <rguenther@suse.de>
8483 PR tree-optimization/44913
8484 * tree-data-ref.c (disjoint_objects_p): Remove.
8485 (dr_may_alias_p): Simplify. Only hand the base object to
8487 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8488 some more trees, bail out instead of asserting.
8489 (ptr_derefs_may_alias_p): Likewise. Export.
8490 (refs_may_alias_p_1): Handle STRING_CSTs.
8491 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
8493 2010-10-14 Joseph Myers <joseph@codesourcery.com>
8496 * c-typeck.c (build_binary_op): Don't try to compute a semantic
8497 type with excess precision for boolean operations.
8499 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
8500 Basile Starynkevitch <basile@starynkevitch.net>
8502 * gengtype.c: Include getopt.h and version.h.
8504 (lang_bitmap, struct outf, outf_p)
8505 (get_output_file_with_visibility, oprintf): Definitions moved to
8507 (output_files, header_file, srcdir, srcdir_len, this_file)
8508 (do_dump): No more static variables.
8510 (dbgprint_count_type_at): Added new function.
8511 (gengtype_long_options): New.
8512 (print_usage, print_version, parse_program_options): New.
8513 (main): Call parse_program_options, and removed old option
8514 handling code. Added some debug output.
8516 * gengtype.h: Updated copyright year.
8517 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
8518 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
8519 Moved from gengtype.c to here.
8520 (do_debug, read_state_filename, write_state_filename): New variables.
8521 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
8524 (REVISION): Always defined.
8525 (version.o): Removed ifdef REVISION_c.
8526 (s-gtype): Pass arguments to build/gengtype program.
8527 (build/version.o): Added building rule.
8528 (build/gengtype$(build_exeext)): Added build/version.o.
8530 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8532 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
8533 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
8536 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
8538 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
8539 may_trap_or_fault_p instead of may_trap_p predicate.
8540 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
8541 (substitute_placeholder_in_expr): Likewise.
8542 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
8543 flag on MEM_REF nodes.
8544 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
8545 flags on INDIRECT_REF nodes.
8547 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
8549 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
8550 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
8551 (arm*-*-eabi*) <tm_file>: Likewise.
8552 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
8553 (frv-*-*linux*) <tm_file>: Likewise.
8554 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
8555 and associated helper macros.
8556 * config/frv/frv-abi.h: Delete.
8558 2010-10-14 Richard Guenther <rguenther@suse.de>
8561 * tree.def (NULLPTR_TYPE): New tree code.
8562 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
8563 * dwarf2out.c (is_base_type): Likewise.
8564 (gen_type_die_with_usage): Likewise.
8565 * sdbout.c (plain_type_1): Likewise.
8566 * tree.c (build_int_cst_wide): Likewise.
8567 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
8569 2010-10-14 Joseph Myers <joseph@codesourcery.com>
8571 * params.c (params_finished): New.
8572 (add_params): Assert !params_finished.
8573 (finish_params): New.
8574 (set_param_value_internal): Take params and params_set
8575 parameters. Assert params_finished.
8576 (set_param_value, maybe_set_param_value): Take params and
8577 params_set parameters. Update calls to set_param_value_internal.
8578 (set_default_param_value): Assert !params_finished. Don't use
8579 set_param_value_internal.
8580 (default_param_value, init_param_values): New.
8581 * params.h (struct param_info): Change value to default_value.
8583 (set_param_value, maybe_set_param_value): Add params and
8584 params_set parameters.
8585 (PARAM_VALUE): Get parameters from global_options.
8586 (PARAM_SET_P): Remove.
8587 (finish_params, default_param_value, init_param_values): New.
8588 * common.opt (param_values): New Variable.
8589 * config/arm/arm.c (arm_option_override): Pass extra arguments to
8590 maybe_set_param_value.
8591 * config/i386/i386.c (ix86_option_override_internal): Pass extra
8592 arguments to maybe_set_param_value.
8593 * config/picochip/picochip.c (picochip_option_override): Pass
8594 extra arguments to maybe_set_param_value.
8595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
8596 extra arguments to maybe_set_param_value.
8597 * config/s390/s390.c (s390_option_override): Use
8598 maybe_set_param_value instead of set_param_value. Pass extra
8599 arguments to maybe_set_param_value.
8600 * config/sparc/sparc.c (sparc_option_override): Pass extra
8601 arguments to maybe_set_param_value.
8602 * config/spu/spu.c (spu_option_override): Pass extra arguments to
8603 maybe_set_param_value.
8604 * opts.c (handle_param): Take opts and opts_set parameters.
8605 Update call to set_param_value.
8606 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
8607 initial_loop_invariant_max_bbs_in_loop): Remove.
8608 (init_options_once): Don't set them.
8609 (init_options_struct): Initialize parameters structures.
8610 (default_options_optimization): Use default_param_value when
8611 restoring defaults. Update calls to maybe_set_param_value.
8612 (finish_options): Update calls to maybe_set_param_value.
8613 (common_handle_option): Update calls to handle_param and
8615 * toplev.c (DEFPARAM): Update definition for changes to param_info.
8616 (general_init): Call finish_params.
8618 2010-10-14 Nick Clifton <nickc@redhat.com>
8620 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
8621 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
8622 (FIRST_PSEUDO_REGISTER): Increase by one.
8623 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
8624 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
8625 (MODES_TIEABLE): Call mn10300_modes_tieable.
8626 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
8627 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
8628 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
8629 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
8630 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
8631 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8632 (mn10300_cc_status_mdep): Delete.
8633 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
8634 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
8635 the combine-stack-adjust pass.
8636 (print_operand): Use the mode of the comparison operation to
8637 select the comparison suffix.
8638 (notice_update_cc): Delete.
8639 (mn10300_secondary_reload_class): Remove test for stack pointer
8641 (output_tst): Rename to mn10300_output_cmp.
8642 (impossible_plus_operand): Move into predicates.md.
8643 (mn10300_legitimize_address): Make static.
8644 (mn10300_legitimate_address_p): Make static. Only allow SI sized
8645 constant pic operands.
8646 (mn10300_legitimate_constant_p): New function.
8647 (mn10300_case_values_threshold): Make static.
8648 (mn10300_hard_regno_mode_ok): New function.
8649 (mn10300_modes_tieable): New function.
8650 (mn10300_select_cc_mode): New function.
8651 * config/mn10300/predicates.md (impossible_plus_operand): Define.
8652 * config/mn10300/mn10300-protos.h: Tidy.
8653 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
8654 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
8655 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
8656 with clobbers or sets of CC_REG.
8658 (mov*): Remove use of CLR instruction.
8659 (cbranch_si4_<code>): New pattern/split.
8660 (integer_conditional_branch): New pattern.
8661 (cbranch_sf4_<code>): New pattern/split.
8662 (float_conditional_branch): New pattern.
8663 (casesi): Use addsi3 pattern instead of movsi pattern to add and
8664 move a value at the same time.
8665 (cc0 peepholes): Remove.
8667 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8669 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
8670 on RTX_FRAME_RELATED_P insns and the insn to which
8671 NOTE_INSN_EPILOGUE_BEG is attached.
8672 * sched-vis.c (print_value): Allow NULL value.
8674 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8676 PR rtl-optimization/45570
8677 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
8678 assert that we are pipelining outer loops. Allow returning
8681 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8683 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
8684 (tidy_control_flow): Tidy vertical space.
8685 (sel_remove_bb): New variable idx. Use it to remember the basic
8686 block index before deleting the block.
8687 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
8688 (sel_merge_blocks): ... here.
8689 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
8691 2010-10-14 Jakub Jelinek <jakub@redhat.com>
8693 * cse.c (is_dead_reg): Change into inline function that is not
8694 called through for_each_rtx.
8695 (set_live_p): Adjust caller.
8696 (insn_live_p): Don't reset DEBUG_INSNs here.
8697 (struct dead_debug_insn_data): New data.
8698 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
8699 (delete_trivially_dead_insns): If there is just one setter for the
8700 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
8701 and add DEBUG_INSN for it right before the removed setter and
8702 use the DEBUG_EXPR instead of the dead pseudo.
8704 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
8706 * et-forest.c (et_nca): Return NULL immediately when
8707 the dominance forest has disjoint components.
8709 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
8711 * ira.c (setup_class_hard_regs): Fix typo in indexing
8712 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
8714 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
8716 * graph.c (inbb): New variable.
8717 (start_bb): Set inbb to 1 if output is inside of a building block.
8718 (end_bb): Check if output is inside of a building block.
8720 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
8722 PR rtl-optimization/45912
8723 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
8724 regno of registers instead of their index to compute the alignment.
8726 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
8728 * config/i386/i386.c (ix86_build_const_vector): Check vector
8729 mode instead of scalar mode.
8730 (ix86_build_signbit_mask): Likewise.
8731 (ix86_expand_fp_absneg_operator): Updated.
8732 (ix86_expand_copysign): Likewise.
8733 (ix86_expand_int_vcond): Likewise.
8734 (ix86_emit_swdivsf): Likewise.
8735 (ix86_sse_copysign_to_positive): Likewise.
8736 (ix86_expand_sse_fabs): Likewise.
8737 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
8738 * config/i386/sse.md (copysign<mode>3): Likewise.
8739 (sse2_cvtudq2ps): Likewise.
8740 (vec_unpacku_float_hi_v4si): Likewise.
8741 (vec_unpacku_float_lo_v4si): Likewise.
8743 * config/i386/i386.c (ix86_builtins): Add
8744 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
8745 (bdesc_args): Likewise.
8746 (ix86_builtin_vectorized_function): Support
8747 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
8748 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
8749 and IX86_BUILTIN_CVTPS2DQ256.
8750 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
8752 * config/i386/sse.md (STORENT_MODE): New.
8753 (VEC_FLOAT_MODE): Likewise.
8754 (VEC_EXTRACT_MODE): Likewise.
8755 (*avx_cvtdq2pd256_2): Likewise.
8756 (vec_pack_trunc_v4df): Likewise.
8757 (vec_interleave_highv8sf): Likewise.
8758 (vec_interleave_lowv8sf): Likewise.
8759 (storent<mode>): Macroized.
8760 (<code><mode>2: absneg): Likewise.
8761 (copysign<mode>3): Likewise.
8762 (vec_extract<mode>): Likewise.
8765 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8768 2010-10-13 Richard Guenther <rguenther@suse.de>
8769 H.J. Lu <hongjiu.lu@intel.com>
8771 * config/i386/sse.md (reduc_splus_v8sf): Add.
8772 (reduc_splus_v4df): Likewise.
8773 (vec_unpacks_hi_v8sf): Likewise.
8774 (vec_unpacks_lo_v8sf): Likewise.
8775 (*avx_cvtps2pd256_2): Likewise.
8776 (vec_unpacks_float_hi_v8si): Likewise.
8777 (vec_unpacks_float_lo_v8si): Likewise.
8778 (vec_interleave_highv4df): Likewise.
8779 (vec_interleave_lowv4df): Likewise.
8781 2010-10-13 Richard Guenther <rguenther@suse.de>
8784 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8785 alone if there are no virtual methods.
8787 2010-10-13 Richard Henderson <rth@redhat.com>
8789 * expr.c (build_personality_function): Take parameter LANG instead
8790 of parameter NAME. Build the name based on the lang prefix and the
8791 unwind method in use.
8792 * tree.c (lhd_gcc_personality): Update call to
8793 build_personality_function.
8795 2010-10-13 Richard Guenther <rguenther@suse.de>
8798 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8800 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
8802 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8803 Canonicalize input operands of ASM_OPERANDS insns.
8805 2010-10-13 Richard Guenther <rguenther@suse.de>
8807 PR tree-optimization/45788
8808 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8809 EH update until fixup-cfg.
8811 2010-10-13 Julian Brown <julian@codesourcery.com>
8813 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8814 from CORE_REGS and GENERAL_REGS classes.
8815 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8816 final constraint for register preferencing.
8818 2010-10-13 Richard Guenther <rguenther@suse.de>
8820 PR tree-optimization/45970
8821 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8822 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8823 (stmt_kills_ref_p): Likewise.
8824 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8826 2010-10-13 Richard Guenther <rguenther@suse.de>
8828 PR tree-optimization/45982
8829 * tree-ssa-structalias.c (make_constraints_to): New function.
8830 (make_constraint_to): Implement in terms of make_constraints_to.
8831 (find_func_aliases): Properly make return values of pure/const
8832 functions escape if they assign to sth that is not a pointer.
8834 2010-10-13 Richard Guenther <rguenther@suse.de>
8837 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8838 Fixup the CFG when EH was fixed up.
8840 2010-10-13 Ira Rosen <irar@il.ibm.com>
8842 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8843 Use operand's type for POINTER_PLUS_EXPR.
8845 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
8847 * c-parser.c (c_parser_for_statement): Initialize incr.
8849 2010-10-12 Xinliang David Li <davidxl@google.com>
8851 PR tree-optimization/45972
8852 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
8853 with too many arguments.
8855 2010-10-12 Jakub Jelinek <jakub@redhat.com>
8858 * tree-ssa-forwprop.c: Include expr.h.
8859 (constant_pointer_difference, simplify_builtin_call): New functions.
8860 (tree_ssa_forward_propagate_single_use_vars): Call
8861 simplify_builtin_call on builtin calls.
8863 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
8865 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
8866 (*adddi3_extend_sp32): Likewise.
8867 (*subdi3_insn_sp32): Likewise.
8868 (*subdi3_extend_sp32): Likewise.
8869 (*negdi2_sp32): Use negative test for consistency.
8871 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
8873 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
8874 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8875 * config/fixed-bit.h: Likewise.
8876 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8877 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8878 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
8879 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
8880 (DF_SIZE): Likewise.
8881 * doc/tm.texi: Regenerate.
8883 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
8885 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
8886 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
8887 (*isel_reversed_unsigned_<mode>): New.
8888 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
8889 as valid comparisons and adjust operands and output appropriately.
8890 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
8892 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
8894 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
8895 DATA_ALIGNMENT and add COND parameter. Update comments above.
8896 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
8897 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
8899 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
8902 * exec-tool.in: Support '-plugin' as the second option to the linker.
8904 2010-10-12 Richard Henderson <rth@redhat.com>
8907 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
8908 (expand_stack_vars): Assert large base allocated when used.
8910 2010-10-12 Richard Guenther <rguenther@suse.de>
8912 * tree-ssa-structalias.c (get_constraint_for_1): Constants
8913 only point to nonlocal, not anything.
8915 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
8917 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
8918 unwind info for exceptions.
8920 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8923 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
8924 Document optional target selector.
8926 2010-10-12 Joseph Myers <joseph@codesourcery.com>
8928 * flag-types.h: New.
8929 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
8930 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
8932 (OPTIONS_H): Define.
8933 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
8935 * configure.ac (tm_include_list): Include options.h not flags.h.
8936 * configure: Regenerate.
8937 * flags.h: Include flag-types.h. Include options.h at top of file
8939 (enum debug_info_type, enum debug_info_level, enum
8940 debug_info_usage, enum symbol_visibility, struct visibility_flags,
8941 enum ira_algorithm, enum ira_region, enum excess_precision, enum
8942 graph_dump_types, enum stack_check_type,
8943 enum warn_strict_overflow_code): Move to flag-types.h
8944 * opth-gen.awk: Include flag-types.h in options.h.
8946 2010-10-12 Jakub Jelinek <jakub@redhat.com>
8948 * expr.c (store_expr): Share code for STRING_CST and
8949 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
8950 check if target is a MEM.
8952 * rtl.h: Include hashtab.h.
8953 (iterative_hash_rtx): New prototype.
8954 * rtl.c (iterative_hash_rtx): New function.
8955 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
8956 (output_loc_list): Return immediately if emitted is set, set it.
8957 (hash_loc_operands, hash_locs, hash_loc_list,
8958 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
8959 optimize_location_lists_1, optimize_location_lists): New function.
8960 (dwarf2out_finish): Call optimize_location_lists.
8961 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
8963 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8967 * Makefile.in ($(lang_checks_parallel))
8968 ($(lang_checks_parallelized)): Use single quotes for
8969 $(RUNTESTFLAGS), to allow passing quoted content.
8971 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8973 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
8974 actual_oldval. Use __builtin_expect.
8975 (SUBWORD_VAL_CAS): Likewise.
8977 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
8979 * recog.c (nonmemory_operand): Call immediate_operand for
8980 CONSTANT_P operands.
8982 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
8984 * config/i386/i386.md (movmem<mode>): Macroize expander from
8985 movmem{si,di} using SWI48 mode iterator.
8986 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
8987 *strmovsi_rex_1 using P mode iterator.
8988 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
8989 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
8990 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
8991 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
8992 (setmem<mode>): Macroize expander from setmem{si,di} using
8993 SWI48 mode iterator.
8994 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
8995 *strsetsi_rex_1 using P mode iterator.
8996 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
8997 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
8998 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
8999 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
9000 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
9001 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
9002 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
9004 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
9005 *strlenqi_rex_1 using P mode iterator.
9007 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
9010 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
9012 (mark_ref_live, mark_ref_dead): Use them.
9013 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
9014 Save the original reg, and use the new functions.
9015 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
9017 (check_and_make_def_conflict): Save the original reg.
9019 2010-10-11 Martin Jambor <mjambor@suse.cz>
9022 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
9025 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9027 * Makefile.in ($(lang_checks_parallel))
9028 ($(lang_checks_parallelized)): Use single quotes for
9029 $(RUNTESTFLAGS), to allow passing quoted content.
9032 * opt-functions.awk (BEGIN): New section.
9033 (lower, upper, digit, alnum): New variables.
9034 (static_var, opt_sanitized_name): Use alnum instead of character
9035 classes, for non-C locale.
9036 * optc-gen.awk: Likewise.
9037 * opth-gen.awk: Likewise.
9039 2010-10-11 Anatoly Sokolov <aesok@post.ru>
9041 * target.def (preferred_reload_class): New hook.
9042 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
9043 * doc/tm.texi: Regenerate.
9044 * targhooks.c (default_preferred_reload_class): New function.
9045 * targhooks.h (default_preferred_reload_class): Declare.
9046 * reload.c (find_dummy_reload): Change preferred_class variable type
9047 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
9049 (find_reloads): Change goal_alternative array type from int to
9050 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
9051 (push_reload, find_reloads_address_part): Use
9052 TARGET_PREFERRED_RELOAD_CLASS target hook.
9053 * reload1.c (emit_input_reload_insns): Ditto.
9054 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
9055 hook. Change rclass argument and secondary_class variable types from
9056 'enum reg_class' to reg_class_t.
9058 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
9059 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
9060 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
9061 Change regclass argument and result types from enum reg_class to
9063 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9065 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
9067 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
9068 in masking operations.
9069 (simplify_const_unary_operation): Likewise.
9070 (simplify_binary_operation_1): Likewise.
9071 (simplify_const_binary_operation): Likewise.
9072 (simplify_const_relational_operation): Likewise.
9073 (simplify_ternary_operation): Likewise.
9074 (simplify_immed_subreg): Likewise.
9076 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9079 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
9080 (TARGET_SUPPORTS_WEAK): New.
9081 * doc/tm.texi: Regenerate.
9082 * defaults.h (SUPPORTS_WEAK): Update comment.
9083 (TARGET_SUPPORTS_WEAK): New.
9084 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
9085 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
9087 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
9088 make_decl_one_only): Likewise.
9089 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
9090 TARGET_SUPPORTS_WEAK.
9091 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
9092 instead of SUPPORTS_WEAK.
9094 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9096 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
9098 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9100 * vec.h (VEC_qsort): Define.
9101 * dbxout.c (output_used_types): Use it.
9102 * df-scan.c (df_sort_and_compress_refs): Likewise.
9103 (df_sort_and_compress_mws): Likewise.
9104 * genautomata.c (uniq_sort_alt_states): Likewise.
9105 (evaluate_equiv_classes): Likewise.
9106 (output_trans_table): Likewise.
9107 (output_state): Likewise.
9108 * gimplify.c (compare_case_labels): Likewise.
9109 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
9110 * ipa.c (build_cdtor_fns): Likewise.
9111 * lto.c (lto_wpa_write_files): Likewise.
9112 * sel-sched.c (fill_vec_av_set): Likewise.
9113 * tree-predcom.c (determine_roots_comp): Likewise.
9114 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
9115 (splice_param_accesses): Likewise.
9116 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
9117 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9118 (reassociate_bb): Likewise.
9119 * tree-ssa-sccvn.c (sort_scc): Likewise.
9120 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
9122 2010-10-11 Ian Lance Taylor <iant@google.com>
9124 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
9125 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
9126 TREE_THIS_NOTRAP when appropriate.
9127 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
9128 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
9129 newly created MEM_REF.
9131 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9133 Nathan Froyds patch to hooks FUNCTION_ARG etc.
9134 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
9135 (picochip_incoming_function_arg): Delete.
9136 (picochip_arg_advance): Delete.
9137 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
9138 (FUNCTION_INCOMING_ARG): Delete.
9139 (FUNCTION_ARG_ADVANCE): Delete.
9140 * config/picochip/picochip.c (picochip_function_arg): Take a
9141 const_tree and a bool.
9142 (picochip_incoming_function_arg): Likewise.
9143 (picochip_arg_advance): Likewise.
9144 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9145 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9147 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9150 * ipa.c (build_cdtor): Delete endless loop.
9152 2010-10-07 Andi Kleen <ak@linux.intel.com>
9154 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
9156 (checksum-options): Add.
9157 (cc1-dummy): Remove.
9158 (cc1-checksum): Change to run checksum over object files
9160 * dummy-checksum.c: Remove.
9161 * genchecksum.c: Update copyright.
9162 (usage): Allow multiple arguments.
9164 (dosum): Change for incremental checksum. Remove C output.
9165 (main): Iterate over all argument files. Add C output.
9167 2010-10-11 Joseph Myers <joseph@codesourcery.com>
9169 * params.c (set_param_value_internal): New.
9170 (set_param_value): Use set_param_value_internal.
9171 (maybe_set_param_value, set_default_param_value): New.
9172 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
9173 (maybe_set_param_value, set_default_param_value): Declare.
9174 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
9175 * config/i386/i386.c (ix86_option_override_internal): Use
9176 maybe_set_param_value.
9177 * config/ia64/ia64.c (ia64_option_default_params,
9178 TARGET_OPTION_DEFAULT_PARAMS): New.
9179 (ia64_option_optimization): Move some code to
9180 ia64_option_default_params.
9181 * config/picochip/picochip.c (picochip_option_override): Use
9182 maybe_set_param_value.
9183 * config/rs6000/rs6000.c (rs6000_option_default_params,
9184 TARGET_OPTION_DEFAULT_PARAMS): New.
9185 (rs6000_option_override_internal): Use maybe_set_param_value.
9186 (rs6000_option_optimization): Move some code to
9187 rs6000_option_default_params.
9188 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
9189 * config/sh/sh.c (sh_option_default_params,
9190 TARGET_OPTION_DEFAULT_PARAMS): New.
9191 (sh_option_optimization): Move some code to sh_option_default_params.
9192 * config/sparc/sparc.c (sparc_option_override): Use
9193 maybe_set_param_value.
9194 * config/spu/spu.c (spu_option_default_params,
9195 TARGET_OPTION_DEFAULT_PARAMS): New.
9196 (spu_option_optimization): Move some code to spu_option_default_params.
9197 (spu_option_override): Use maybe_set_param_value.
9198 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
9199 * doc/tm.texi: Regenerate.
9200 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
9201 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
9203 (default_options_optimization): Use maybe_set_param_value.
9204 (finish_options): Use maybe_set_param_value.
9205 * target.def (target_option.default_params): New hook.
9206 * toplev.c (general_init): Call targetm.target_option.default_params.
9208 2010-10-11 Ira Rosen <irar@il.ibm.com>
9210 PR tree-optimization/45902
9211 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
9212 vector type for constants, unless it's a pointer.
9214 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9216 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
9218 2010-10-11 Jakub Jelinek <jakub@redhat.com>
9221 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
9222 (ix86_delegitimize_address): Use it.
9224 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
9226 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
9228 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
9230 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
9231 to cum struct in the call to function_arg_advance.
9232 (alpha_function_arg_advance): Mark named as unused.
9234 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
9236 * config/mips/mips.c (mips_handle_option): Make "value" with
9239 2010-10-09 Richard Henderson <rth@redhat.com>
9242 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
9243 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
9244 required_align, tidy the code a bit. Emit split_stack code in the
9245 right place. Mark the return value with the alignment properly.
9246 * expr.h (allocate_dynamic_stack_space): Update decl.
9247 * builtins.c (expand_builtin_apply): Update call to
9248 allocate_dynamic_stack_space.
9249 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
9250 * calls.c (initialize_argument_information): Update call to
9251 allocate_dynamic_stack_space.
9252 (expand_call): Likewise.
9254 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
9255 Don't update_stack_alignment here.
9256 (alloc_stack_frame_space): Make ALIGN unsigned.
9257 (stack_var_cmp): Sort by alignment too.
9258 (partition_stack_vars): Don't merge large and small alignment vars.
9259 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
9260 Take care when BASE is not virtual_stack_vars_rtx.
9261 (expand_stack_vars): Allocate dynamic stack space for large
9262 alignment variables.
9263 (expand_one_stack_var): Update all to expand_one_stack_var_at.
9264 (defer_stack_allocation): True for large alignment vars.
9265 (update_stack_alignment): Merge into ...
9266 (expand_one_var): ... here.
9267 (gimple_expand_cfg): Place code from expand_stack_vars.
9269 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9271 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9272 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
9273 (pdp11_function_arg_advance): New function.
9274 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9276 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9278 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
9279 * libgcc2.c: Likewise.
9281 2010-10-09 Richard Guenther <rguenther@suse.de>
9284 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
9285 Properly check if a decl is an automatic var.
9287 2010-10-09 Richard Guenther <rguenther@suse.de>
9290 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
9292 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9294 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
9295 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9296 * config/mmix/mmix.c (mmix_function_arg): Rename to...
9297 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
9299 (mmix_function_arg): New function.
9300 (mmix_function_incoming_arg): New function.
9301 (mmix_function_arg_advance): New function.
9302 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9303 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9305 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9307 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9308 * config/vax/vax.c (vax_function_arg): New function.
9309 (vax_function_arg_advance): New function.
9310 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9312 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9314 * config/pa/pa-protos.h (function_arg): Delete.
9315 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9316 * config/pa/pa.c (function_arg): Rename to...
9317 (pa_function_arg): ...this. Make static. Take a const_tree and
9319 (pa_function_arg_advance): New function.
9320 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9322 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9324 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9325 * config/m68k/m68k.c (m68k_function_arg): New function.
9326 (m68k_function_arg_advance): New function.
9327 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9329 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9331 * config/avr/avr-protos.h (function_arg): Delete.
9332 (function_arg_advance): Delete.
9333 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9334 * config/avr/avr.c (function_arg): Rename to...
9335 (avr_function_arg): ...this. Make static. Take a const_tree and
9337 (function_arg_advance): Rename to...
9338 (avr_function_arg_advance): ...this. Make static. Take a
9339 const_tree and a bool.
9340 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9342 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9344 * config/alpha/alpha-protos.h (function_arg): Delete.
9345 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9346 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
9347 * config/alpha/alpha.c (function_arg): Rename to...
9348 (alpha_function_arg): ...this. Make static. Take a const_tree and
9349 a bool. Delete TARGET_ABI_UNICOSMK code.
9350 (alpha_function_arg_advance): New function.
9351 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9353 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9355 * config/mep/mep-protos.h (mep_function_arg): Delete.
9356 (mep_function_arg_advance): Delete.
9357 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9358 * config/mep/mep.c (mep_function_arg): Make static. Take a
9359 const_tree and a bool.
9360 (mep_function_arg_advance): Likewise.
9361 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9363 2010-10-09 Richard Guenther <rguenther@suse.de>
9365 PR tree-optimization/45945
9366 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
9368 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
9370 PR tree-optimization/45612
9371 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
9372 Test LABEL_DECLs as well. Fix formatting issues.
9373 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
9374 whose label is present in NON_SSA_VARS.
9375 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
9376 as well. Fix formatting issues.
9377 (visit_bb): Fix typos and formatting issue.
9379 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9381 PR tree-optimization/45950
9382 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
9383 before initializing vno->op.
9385 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
9387 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
9388 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
9390 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
9393 * config/i386/i386.c (ix86_binary_operator_ok): Support
9394 "andhi/andsi/anddi" as a zero-extending move.
9396 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9398 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
9399 into a temporary array.
9401 2010-10-08 Jakub Jelinek <jakub@redhat.com>
9403 PR tree-optimization/45903
9404 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
9405 of {A,L}SHIFTRT of MEM.
9407 2010-10-08 Richard Guenther <rguenther@suse.de>
9409 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9410 Re-construct BLOCK_VARS.
9411 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
9412 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9413 * tree.c (free_lang_data_in_block): Remove.
9414 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
9415 Do not touch the BLOCK tree.
9416 * expr.c (expand_expr_real_1): Allow externals.
9418 2010-10-08 Richard Guenther <rguenther@suse.de>
9420 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
9421 Do not output BLOCK_SUBBLOCKS.
9422 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
9423 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
9424 Re-construct BLOCK_SUBBLOCKS of parent block.
9425 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
9426 for BINFO_BASE_ACCESSES.
9428 2010-10-08 Joseph Myers <joseph@codesourcery.com>
9430 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
9431 (TREE_H): Include $(FLAGS_H) instead of options.h.
9432 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
9433 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9434 * common.opt (flag_complex_method, flag_evaluation_order,
9435 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
9436 Variable declarations.
9437 * configure.ac (tm_include_list): Include flags.h instead of options.h.
9438 * configure: Regenerate.
9439 * flags.h: Condition out contents for target libraries. Include
9440 options.h at end of file.
9441 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
9442 flag_evaluation_order, flag_warn_unused_result): Remove.
9443 * gcc.c (main): Intialize global_options with global_options_init.
9444 * langhooks-def.h (lhd_init_options_struct): Declare.
9445 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9446 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
9447 * langhooks.c (lhd_init_options_struct): New.
9448 * langhooks.h (struct lang_hooks): Add init_options_struct.
9449 Update comment on init_options.
9450 * optc-gen.awk: Generate initializer for global_options_init, not
9452 * opth-gen.awk: Condition out structure declarations for target
9453 libraries. Declare global_options_init.
9454 * opts-common.c: Include flags.h instead of options.h.
9455 * opts.c (flag_warn_unused_result): Remove.
9456 (read_cmdline_options): Take gcc_options parameters. Pass them to
9457 read_cmdline_option.
9458 (initial_lang_mask, initial_min_crossjump_insns,
9459 initial_max_fields_for_field_sensitive,
9460 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
9461 (init_options_once): New. Split out of decode_options.
9462 (init_options_struct): New. Split out of decode_options.
9463 (decode_cmdline_options_to_array_default_mask): New.
9464 (default_options_optimization): New. Split out of decode_options.
9465 (decode_options): Move most code to other functions. Update call
9466 to read_cmdline_options.
9467 (finish_options): New. Split out of decode_options.
9468 * opts.h (decode_options): Add gcc_options parameters.
9469 (init_options_once, init_options_struct,
9470 decode_cmdline_options_to_array_default_mask): New.
9471 * toplev.c (flag_complex_method, flag_ira_algorithm,
9472 flag_ira_region, flag_evaluation_order): Remove.
9473 (general_init): Use global_options_init for initial flag values
9475 (toplev_main): Call init_options_once, init_options_struct,
9476 lang_hooks.init_options_struct,
9477 decode_cmdline_options_to_array_default_mask and
9478 lang_hooks.init_option before decode_options. Update arguments to
9480 * tree.h: Include flags.h instead of options.h.
9482 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9484 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9486 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9488 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
9490 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9491 (FUNCTION_INCOMING_ARG): Delete.
9492 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
9493 (function_arg_slotno): Likewise. Take bool arguments.
9494 (sparc_arg_partial_bytes): Update call to it.
9495 (function_arg): Rename to...
9496 (sparc_function_arg_1): ...this. Take bool arguments.
9497 (sparc_function_arg, sparc_function_incoming_arg): New functions.
9498 (function_arg_advance): Rename to...
9499 (sparc_function_arg_advance): ...this. Take bool argument.
9500 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
9501 (TARGET_FUNCTION_INCOMING_ARG): Define.
9503 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9505 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
9507 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9508 * config/bfin/bfin.c (function_arg_advance): Rename to...
9509 (bfin_function_arg_advance): ...this. Make static. Take const_tree
9511 (function_arg): Rename to...
9512 (bfin_function_arg): ...this. Make static. Take const_tree and bool
9514 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9516 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9518 * config/score/score-protos.h (score_function_arg): Delete.
9519 (score_function_arg_advance): Delete.
9520 * config/score/score3.h (score3_function_arg_advance): Take a
9521 const_tree and a bool.
9522 (score3_function_arg): Likewise.
9523 * config/score/score7.h (score7_function_arg_advance): Likewise.
9524 (score7_function_arg): Likewise.
9525 * config/score/score3.c (score3_classify_arg): Likewise.
9526 (score3_function_arg_advance, score3_function_arg): Likewise.
9527 * config/score/score7.c (score7_classify_arg): Likewise.
9528 (score7_function_arg_advance, score7_function_arg): Likewise.
9529 * config/score/score.c (score_function_arg_advance): Likewise.
9530 (score_function_arg): Likewise. De-const-ify `cum' argument.
9531 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9533 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9535 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
9536 (s390_function_arg): Delete.
9537 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9538 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
9539 (s390_function_arg_integer): Likewise.
9540 (s390_function_arg_advance): Make static. Take a const_tree and
9542 (s390_function_arg): Likewise.
9543 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9545 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9547 * config/spu/spu-protos.h (spu_function_arg): Delete.
9548 * config/spu/spu.h (FUNCTION_ARG): Delete.
9549 (FUNCTION_ARG_ADVANCE): Move code to ...
9550 * config/spu/spu.c (spu_function_arg_advance): New function.
9551 (spu_function_arg): Make static. Take a const_tree and a bool.
9552 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
9553 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9555 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9557 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9559 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9561 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
9562 (init_vn_nary_op_from_op): New function.
9563 (init_vn_nary_op_from_stmt): New function.
9564 (vn_nary_op_lookup_1): New function.
9565 (sizeof_vn_nary_op): New function.
9566 (alloc_vn_nary_op_noinit): New function.
9567 (alloc_vn_nary_op): New function.
9568 (vn_nary_op_insert_into): New function.
9569 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
9570 (vn_nary_op_lookup): Likewise.
9571 (vn_nary_op_lookup_stmt): Likewise.
9572 (vn_nary_op_insert_pieces): Likewise.
9573 (vn_nary_op_insert): Likewise.
9574 (vn_nary_op_insert_stmt): Likewise.
9575 (copy_nary): Likewise.
9576 (set_value_id_for_result): New function.
9577 (set_hashtable_value_ids): Call it.
9579 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9581 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9582 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
9584 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9586 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
9587 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9589 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
9592 * cse.c (cse_extended_basic_block): Preserve cc0 info across
9593 debug isnsn. Skip them when searching for cc0 setter.
9594 (set_live_p): Skip debug insns when searching for cc0 user.
9596 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
9602 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
9603 type of MEM_REFs to INTEGER_CSTs.
9605 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
9607 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
9608 m68hc11_print_operand_address.
9610 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
9612 * builtins.c (rewrite_call_expr): Move code to...
9613 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
9614 (rewrite_call_expr_array): New function.
9615 (fold_builtin_sprintf_chk_1): New function.
9616 (fold_builtin_sprintf_chk): Call it.
9617 (gimple_fold_builtin_sprintf_chk): Likewise.
9618 (fold_builtin_snprintf_chk_1): New function.
9619 (fold_builtin_snprintf_chk): Call it.
9620 (gimple_fold_builtin_snprintf_chk): Likewise.
9621 (gimple_rewrite_call_expr): Delete.
9623 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9625 * config.host: Update copyright year.
9627 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9629 * config.host (host_lto_plugin_soname): New shell variable.
9630 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
9631 * config.in: Regenerate.
9632 * configure: Regenerate.
9633 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
9634 LTO plugin shared library.
9636 2010-10-07 Richard Henderson <rth@redhat.com>
9638 * target.h (enum unwind_info_type): Move ...
9639 * coretypes.h: ... here.
9641 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
9643 * doc/objc.texi (Fast enumeration protocol): Mention that
9644 'unsigned int' can also be used instead of 'unsigned long' in
9645 countByEnumeratingWithState:objects:count:.
9647 2010-10-07 Martin Jambor <mjambor@suse.cz>
9649 * tree-sra.c (struct access): New field grp_assignment_write.
9650 (dump_access): Dump grp_assignment_write.
9651 (build_accesses_from_assign): Set grp_assignment_write.
9652 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
9653 (mark_read_status): Renamed to mark_rw_status, individual values
9655 (analyze_access_subtree): Changed type of mark_write to
9656 mark_read_status. Fixed propagating of mark_read and
9657 mark_write. Changed benefit estimate. Updated comment.
9659 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
9662 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
9663 check for vectype_out returned by get_vectype_for_scalar_type().
9665 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
9668 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
9669 constraint, add register specifier in instruction template.
9670 (neon_vec_pack_trunc_<mode>): Likewise.
9671 (neon_vec_<US>mult_<mode>): Add register specifier to
9672 instruction template.
9674 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9676 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
9678 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
9679 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
9680 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
9681 (cygwin2.o): Likewise.
9682 * config/i386/cygwin1.c: Delete file.
9683 * config/i386/cygwin2.c: Likewise.
9684 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
9685 make all {%!mno-cygwin} ones unconditional.
9686 (STARTFILE_SPEC): Likewise.
9687 (REAL_LIBGCC_SPEC): Likewise.
9688 (LIB_SPEC): Likewise.
9689 (CXX_WRAP_SPEC): Likewise.
9690 (LINK_SPEC): Likewise.
9691 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
9692 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
9693 (cygwin_gplusplus_include_dir): Delete now-unused array.
9694 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
9695 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
9696 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
9697 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
9698 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
9699 (cygwin_local_include_dir): Delete now-unused array.
9700 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
9701 (cygwin_cross_include_dir): Delete now-unused array.
9702 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
9703 (cygwin_tool_include_dir): Delete now-unused array.
9704 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
9705 (cygwin_standard_include_dir): Delete now-unused array.
9706 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
9707 (GEN_CVT_ARRAY): Delete now-unused macro definition.
9708 (cvt_to_mingw): Delete now-unused array.
9709 (mingw_scan): Remove prototype of deleted function.
9710 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
9711 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
9712 * doc/invoke.texi (-mcygwin): Don't document removed option.
9713 (-mno-cygwin): Likewise.
9715 2010-10-07 Richard Guenther <rguenther@suse.de>
9717 * machmode.h (mode_for_vector): Declare.
9718 * stor-layout.c (mode_for_vector): New function, split out from ...
9719 (layout_type): ... here.
9720 * tree-vectorizer.h (current_vector_size): Declare.
9721 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
9722 mask vector type is available.
9723 (get_vectype_for_scalar_type): Rename to ...
9724 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
9726 (get_vectype_for_scalar_type): New wrapper around
9727 get_vectype_for_scalar_type_and_size using current_vector_size.
9728 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
9729 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
9730 of vect_analyze_loop here.
9731 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
9732 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
9734 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
9735 V8SF to V8SI conversion builtin.
9737 2010-10-07 Richard Guenther <rguenther@suse.de>
9739 * target.def (autovectorize_vector_sizes): New target hook.
9740 * targhooks.c (default_autovectorize_vector_sizes): New function.
9741 * targhooks.h (default_autovectorize_vector_sizes): Declare.
9742 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
9744 * doc/tm.texi: Update.
9745 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
9746 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9748 2010-10-07 Richard Guenther <rguenther@suse.de>
9750 * target.def (units_per_simd_word): Rename to ...
9751 (preferred_simd_mode): ... this. Return mode instead of size.
9752 * targhooks.c (default_units_per_simd_word): Rename to ...
9753 (default_preferred_simd_mode): ... this. Return word_mode.
9754 * targhooks.h (default_preferred_simd_mode): Declare.
9755 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9756 (arm_preferred_simd_mode): ... this. Re-implement.
9757 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9758 (ix86_preferred_simd_mode): ... this. Re-implement.
9759 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9760 (sparc_preferred_simd_mode): ... this. Re-implement.
9761 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9762 (mips_preferred_simd_mode): ... this. Re-implement.
9763 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9764 (rs6000_preferred_simd_mode): ... this. Re-implement.
9765 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9766 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9767 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9768 * doc/tm.texi: Update.
9770 2010-10-07 Richard Guenther <rguenther@suse.de>
9773 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9776 2010-10-07 Alan Modra <amodra@gmail.com>
9778 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9779 rather than sign extension by hand.
9781 2010-10-07 Jan Hubicka <jh@suse.cz>
9784 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9786 2010-10-07 Richard Guenther <rguenther@suse.de>
9789 * configure.ac: Fix typo.
9790 * configure: Regenerated.
9792 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9794 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9795 define_builtin_std where it's unnecessary.
9796 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9798 2010-10-06 Anatoly Sokolov <aesok@post.ru>
9800 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9801 * doc/tm.texi.in: Regenerate.
9802 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9803 * targhooks.c (default_class_likely_spilled_p): Don't use the
9804 CLASS_LIKELY_SPILLED_P macro.
9806 * config/arm/arm.md: Update comment.
9808 2010-10-06 Jan Hubicka <jh@suse.cz>
9810 * ipa.c (cgraph_remove_unreachable_nodes): External references can
9812 (cgraph_externally_visible_p): We can not bring local comdats that
9813 are known to linker; fix handling of internal visibility.
9814 (function_and_variable_visibility): Likewise.
9816 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
9818 PR rtl-optimization/45394
9819 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9820 (struct rtx_subst_pair): Remove AFTER field.
9821 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9822 (propagate_for_debug): Remove MOVE parameter and adjust.
9823 (try_combine): In the special case where I2 is a PARALLEL, combine only
9824 destinations of SETs and set I2SRC to the I2 source.
9825 Adjust calls to propagate_for_debug throughout.
9826 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9829 2010-10-06 Olivier Hainque <hainque@adacore.com>
9831 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9832 switch on insn codes as sequence of ifs.
9834 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
9836 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9837 be UI_NONE for picochip.
9838 (picochip_option_override): Do not disable exception flags.
9839 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9842 2010-10-06 Richard Guenther <rguenther@suse.de>
9844 * Makefile.in (regmove.o): Depend on $(TARGET_H).
9846 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
9848 Implemented fast enumeration for Objective-C.
9849 * c-parser.c (objc_could_be_foreach_context): New.
9850 (c_lex_one_token): Recognize RID_IN keyword in a potential
9851 Objective-C foreach context.
9852 (c_parser_declaration_or_fndef): Added parameter. Accept
9853 Objective-C RID_IN keyword as terminating a declaration; in that
9854 case, return the declaration in the new parameter.
9855 (c_parser_extenral_declaration): Updated calls to
9856 c_parser_declaration_or_fndef.
9857 (c_parser_declaration_or_fndef): Same change.
9858 (c_parser_compound_statement_nostart): Same change.
9859 (c_parser_label): Same change.
9860 (c_parser_objc_methodprotolist): Same change.
9861 (c_parser_omp_for_loop): Same change.
9862 (c_parser_for_statement): Detect and parse Objective-C foreach
9864 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
9865 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
9866 fast enumeration parsing code to turn off the c99 error but still
9867 perform checks on the loop declarations.
9868 * c-tree.h (check_for_loop_decls): Updated declaration.
9869 * doc/objc.texi: Document fast enumeration.
9871 2010-10-06 Nick Clifton <nickc@redhat.com>
9873 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
9874 (MDR_REGNUM): Define.
9875 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
9876 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9877 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
9878 (REGISTER_NAMES): Add MDR.
9879 (DWARF2_DEBUGGING_INFO): Define to 1.
9880 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9881 (F): New function. Sets RTX_FRAME_RELATED_P.
9882 (mn10300_gen_multiple_store): Use F.
9883 (expand_prologue): Use F. Use gen_movsf() to push floating
9885 (expand_epilogue): Use gen_movsf() to pop floating point registers.
9886 (mn10300_option_override): Disable combine stack adjust pass.
9888 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
9891 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
9892 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
9894 2010-10-06 Jakub Jelinek <jakub@redhat.com>
9896 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
9897 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
9898 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
9899 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
9900 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
9901 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
9902 BUILT_IN_TOUPPER): Mark as leaf.
9905 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9906 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9907 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9908 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9909 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
9910 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
9911 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
9913 2010-10-05 Anatoly Sokolov <aesok@post.ru>
9915 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
9916 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9917 (m68hc11_class_likely_spilled_p): New function.
9919 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
9921 * c-parser.c (c_parser_objc_method_definition): Updated comment.
9923 2010-10-05 Jan Hubicka <jh@suse.cz>
9925 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
9927 * opts.c (decode_options): Handle lto partitions.
9928 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
9929 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
9931 2010-10-05 Jan Hubicka <jh@suse.cz>
9933 * cgraphunit.c (assemble_function): Output thunks and aliases before
9934 the function itself.
9936 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
9938 * config/picochip/picochip.c (picochip_option_override): Disable
9939 exception flags for picochip.
9941 2010-10-05 Joseph Myers <joseph@codesourcery.com>
9943 * opts-common.c (handle_option, handle_generated_option,
9944 read_cmdline_option, set_option): Add diagnostic_context
9945 parameter. Update calls among these functions.
9946 (set_option): Don't use global_dc.
9947 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
9948 (decode_options): Pass global_dc to enable_warning_as_error.
9949 (common_handle_option): Pass global_dc to enable_warning_as_error.
9950 (enable_warning_as_error): Add diagnostic_context parameter.
9951 Document parameters. Don't use global_dc. Pass
9952 diagnostic_context parameter to handle_generated_option.
9953 * opts.h (set_option, handle_option, handle_generated_option,
9954 read_cmdline_option, enable_warning_as_error): Add
9955 diagnostic_context parameter.
9956 * Makefile.in (lto-opts.o): Update dependencies.
9957 * coretypes.h (struct diagnostic_context, diagnostic_context):
9959 * diagnostic.h (diagnostic_context): Don't declare typedef here.
9960 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
9961 * langhooks-def.h (struct diagnostic_context): Don't declare here.
9962 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
9963 using diagnostic_context typedef.
9964 * langhooks.c (lhd_initialize_diagnostics): Declare using
9965 diagnostic_context typedef.
9966 * langhooks.h (struct diagnostic_context): Don't declare here.
9967 (initialize_diagnostics, print_error_function): Declare using
9968 diagnostic_context typedef.
9969 * lto-opts.c: Include diagnostic.h.
9970 (lto_reissue_options): Pass global_dc to set_option. Pass
9971 DK_UNSPECIFIED not 0.
9972 * plugin.c (plugins_internal_error_function): Declare using
9973 diagnostic_context typedef.
9974 * plugin.h (struct diagnostic_context): Don't declare here.
9975 (plugins_internal_error_function): Declare using
9976 diagnostic_context typedef.
9978 2010-10-05 Olivier Hainque <hainque@adacore.com>
9979 Nicolas Roche <roche@adacore.com>
9981 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
9982 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
9984 2010-10-05 Ira Rosen <irar@il.ibm.com>
9986 PR tree-optimization/45752
9987 * tree-vect-slp.c (vect_get_mask_element): Remove static
9988 variables, make them function arguments.
9989 (vect_transform_slp_perm_load): Pass new arguments to
9990 vect_get_mask_element.
9992 2010-10-05 Richard Guenther <rguenther@suse.de>
9994 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
9995 (gimple_mod_pow2): Likewise.
9996 (gimple_mod_subtract): Likewise.
9997 (gimple_ic): Likewise.
9998 (gimple_stringop_fixed_value): Likewise.
9999 * tree-profile.c (tree_init_edge_profiler): Mark profile
10000 functions nothrow and leaf.
10001 (add_abnormal_goto_call_edges): Remove.
10002 (tree_gen_edge_profiler): Work on SSA form.
10003 (tree_gen_ic_profiler): Likewise. Simplify.
10004 (do_tree_profiling): Update SSA form.
10005 (pass_tree_profile): Remove.
10006 (do_tree_profiling): Likewise.
10007 (gate_tree_profile_ipa): New function.
10008 (pass_ipa_tree_profile): New.
10009 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
10010 state of instrumented functions.
10011 * passes.c (init_optimization_passes): Remove early non-SSA
10012 inlining. Move profiling after early optimizations.
10013 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
10014 (pass_ipa_early_inline): Likewise.
10015 * tree-pass.h (pass_ipa_early_inline): Remove.
10016 (pass_tree_profile): Likewise.
10017 (pass_ipa_tree_profile): Declare.
10019 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10020 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
10022 * config/s390/s390.c (z196_cost): New.
10023 (s390_handle_arch_option): Add -march=z196.
10024 (s390_option_override): Use the new cost function and use the z10
10025 defaults also for z196.
10026 (legitimate_reload_constant_p): Adjust comment.
10027 (legitimate_reload_fp_constant_p): New function.
10028 (s390_preferred_reload_class): Distingiush between FP and Int constants.
10029 (preferred_la_operand_p): Avoid la with index on z196.
10030 (s390_adjust_priority): Trigger also for z196.
10031 (s390_issue_rate): Issue rate for z196 is 3.
10032 (s390_z10_fix_long_loop_prediction): Rename to ...
10033 (s390_fix_long_loop_prediction): ... this.
10034 (s390_reorg): Apply the z10 adjustments also for z196.
10035 (s390_loop_unroll_adjust): Do this also for z196.
10036 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
10037 (enum processor_flags): Add PF_Z196.
10038 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
10039 (TARGET_CPU_Z196, TARGET_Z196): New macros.
10040 * config.gcc: Enable z196 for --with-arch.
10041 * config/s390/2817.md: New file.
10042 * config/s390/2084.md: New type for multiply and add.
10043 * config/s390/2097.md: Likewise.
10044 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
10045 (UNSPECV_ATOMIC_OP): New constants.
10046 (fmadddf, fmaddsf): New values for type attribute.
10047 (z196prop): New insn attribute.
10048 (cpu, cpu_facility): Add z196.
10049 (ATOMIC_Z196): New code iterator.
10050 (noxa): New code attribute.
10051 (gk): New mode attribute.
10052 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
10053 Support load zero for fp constants.
10054 (fixuns_truncdddi2, fixuns_trunctddi2)
10055 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
10057 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
10058 (popcounthi2, popcountqi2): New expander.
10059 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
10060 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
10061 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
10063 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
10064 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
10065 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
10066 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
10067 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
10068 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
10069 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
10070 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
10071 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
10072 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
10073 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
10074 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
10075 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
10076 Support new z196 instructions.
10078 2010-10-05 Richard Guenther <rguenther@suse.de>
10080 PR middle-end/45877
10081 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
10082 case where gimplification optimizes away the stmt.
10084 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10087 * var-tracking.c (strip_pointer_flags): New function.
10088 (emit_note_insn_var_location): If rtx_equal_p check failed,
10089 retry on locations simplified with simplify_replace_fn_rtx
10090 and strip_pointer_flags as its callback.
10092 2010-10-04 Jan Hubicka <jh@suse.cz>
10094 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
10095 (can_refer_decl_in_current_unit_p): ... this one; reverse return
10096 value; handle comdats too.
10097 (canonicalize_constructor_val): Use it; handle function_decls
10099 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10100 * gimple.c (get_base_address): Accept all kinds of decls.
10102 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10104 * flags.h (g_switch_value, g_switch_set): Remove.
10105 * opts.c (g_switch_value, g_switch_set): Remove.
10106 * config/g.opt (G): Add Var(g_switch_value).
10107 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
10108 (alpha_option_override): Check global_options_set.x_g_switch_value
10109 instead of g_switch_set.
10110 (alpha_in_small_data_p): Remove cast in comparison with
10112 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
10113 g_switch_value to unsigned HOST_WIDE_INT.
10114 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
10115 with g_switch_value.
10116 (frv_handle_option): Don't handle -G here.
10117 (frv_option_override): Check global_options_set.x_g_switch_value
10118 instead of g_switch_set. Don't modify g_switch_set.
10119 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
10120 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
10121 g_switch_value to unsigned HOST_WIDE_INT.
10122 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
10123 (ia64_option_override): Check global_options_set.x_g_switch_value
10124 instead of g_switch_set.
10125 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
10127 (lm32_in_small_data_p): Remove cast in comparison with
10129 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
10130 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
10132 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
10133 (m32r_init): Check global_options_set.x_g_switch_value instead of
10135 (m32r_in_small_data_p): Remove cast in comparison with
10137 (m32r_file_start): Format g_switch_value with %d.
10138 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
10139 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
10140 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
10142 (microblaze_option_override): Check
10143 global_options_set.x_g_switch_value instead of g_switch_set.
10144 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
10145 (mips_option_override): Check global_options_set.x_g_switch_value
10146 instead of g_switch_set.
10147 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
10148 (rs6000_file_start): Format g_switch_value with %d.
10149 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
10150 comparisons with g_switch_value.
10151 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
10152 global_options_set.x_g_switch_value instead of g_switch_set.
10153 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10154 global_options_set.x_g_switch_value instead of g_switch_set.
10155 * config/score/score.c (score_handle_option): Don't handle -G here.
10156 * config/score/score3.c (score3_option_override): Check
10157 global_options_set.x_g_switch_value instead of g_switch_set.
10158 * config/score/score7.c (score7_option_override): Check
10159 global_options_set.x_g_switch_value instead of g_switch_set.
10161 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10163 * common.opt (fira-coalesce): Remove.
10165 * doc/invoke.texi (flag_ira_coalesce): Remove.
10167 * ira-color.c (allocno_coalesced_p): Move before
10168 copy_freq_compare_func.
10169 processed_coalesced_allocno_bitmap): Ditto.
10170 (update_conflict_hard_regno_costs): Don't use
10171 ALLOCNO_FIRST_COALESCED_ALLOCNO.
10172 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
10173 (assign_hard_reg): Assume no coalesced allocnos.
10174 (get_coalesced_allocnos_attributes): Remove.
10175 (bucket_allocno_compare_func): Assume no coalesced allocnos.
10176 (push_allocno_to_stack): Ditto.
10177 (remove_allocno_from_bucket_and_push): Use
10178 ira_print_expanded_allocno instead of print_coalesced_allocno.
10179 (push_allocnos_to_stack): Assume uncoalesced allocnos.
10180 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
10181 all_conflicting_hard_regs.
10182 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
10183 (setup_allocno_left_conflicts_size): Ditto.
10184 (put_allocno_into_bucket): Ditto.
10185 (copy_freq_compare_func): Remove.
10186 (copy_freq_compare_func, merge_allocnos): Move before
10187 coalesced_pseudo_reg_freq_compare.
10188 coalesced_allocno_conflict_p): Ditto.
10189 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
10190 parameter. Assume it true.
10191 (color_allocnos): Assume uncoalesced allocnos. Use
10192 ira_print_expanded_allocno instead of print_coalesced_allocno.
10193 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
10196 * ira.c: Remove comment about coalescing.
10198 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10200 * config/mips/mips.h (target_flags_explicit): Declare for
10203 2010-10-04 Andi Kleen <ak@linux.intel.com>
10205 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
10206 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
10208 2010-10-04 Matthias Klose <doko@ubuntu.com>
10210 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
10211 multilib osdirname if it exists.
10212 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
10214 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10216 PR middle-end/45876
10217 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
10218 arg0's type or its unsigned counterpart as utype. Convert
10219 arg1 to utype unconditionally.
10221 2010-10-04 Julian Brown <julian@codesourcery.com>
10223 * expr.c (expand_assignment): Add assertion to prevent emitting
10224 null rtx for movmisalign pattern.
10225 (expand_expr_real_1): Likewise.
10226 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
10227 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
10228 (arm_vector_alignment_reachable): New.
10229 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
10230 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
10231 (arm_print_operand): Include alignment qualifier in %A.
10232 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
10233 (movmisalign<mode>): New expander.
10234 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
10237 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10239 * optc-gen.awk: Define global_options_set. Don't define
10240 target_flags_explicit.
10241 * opth-gen.awk: Declare global_options_set. Define
10242 target_flags_explicit as macro.
10243 * opts-common.c (handle_option): Take opts_set and generated_p
10245 (handle_generated_option, read_cmdline_option, set_option): Take
10246 opts_set parameter.
10247 (set_option): Use opts_set instead of hardcoding target_flags and
10248 target_flags_explicit.
10249 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
10250 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
10251 flag_value_profile_transformations_set, flag_peel_loops_set,
10252 flag_branch_probabilities_set, flag_inline_functions_set,
10253 flag_ipa_cp_set, flag_ipa_cp_clone_set,
10254 flag_predictive_commoning_set, flag_unswitch_loops_set,
10255 flag_gcse_after_reload_set): Remove.
10256 (common_handle_option, lang_handle_option, target_handle_option):
10257 Take opts_set parameter. Assert that it is &global_options_set.
10258 (common_handle_option): Don't set _set variables. Check opts_set
10259 instead of such variables.
10260 (enable_warning_as_error): Pass &global_options_set to
10261 handle_generated_option.
10262 * opts.h (cl_option_handler_func.handler, set_option,
10263 handle_option, handle_generated_option, read_cmdline_option): Add
10264 opts_set parameters.
10265 (handle_option): Add generated_p parameter.
10266 * config/i386/i386.c (ix86_function_specific_save,
10267 ix86_function_specific_restore): Updat for renaming of
10268 target_flags_explicit field.
10269 * config/i386/i386.opt (target_flags_explicit): Rename to
10270 ix86_target_flags_explicit.
10271 * config/ia64/ia64.c (ia64_override_options_after_change): Check
10272 global_options_set.x_flag_selective_scheduling and
10273 global_options_set.x_flag_selective_scheduling2, not
10274 sel_sched_switch_set.
10275 * flags.h (sel_sched_switch_set,
10276 flag_speculative_prefetching_set): Remove.
10277 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
10278 that it is &global_options_set.
10279 (process_command): Pass &global_options_set to read_cmdline_option.
10280 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
10282 * toplev.c (target_flags_explicit): Remove.
10284 2010-10-04 Jan Hubicka <jh@suse.cz>
10286 PR middle-end/45871
10287 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
10288 use get_ref_base_and_offset to handle references.
10289 (fold_const_aggregate_ref): Update.
10291 2010-10-04 Martin Jambor <mjambor@suse.cz>
10293 PR tree-optimization/45572
10294 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
10295 ipa_check_create_node_params.
10296 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
10298 2010-10-04 Yao Qi <yao@codesourcery.com>
10300 * doc/passes.texi: Clean up.
10302 2010-10-03 Ian Lance Taylor <iant@google.com>
10304 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
10305 referring to a field using a typedef name.
10306 (find_anonymous_field_with_type): New static function.
10307 (convert_to_anonymous_field): New static function.
10308 (convert_for_assignment): If -fplan9-extensions, permit converting
10309 pointer to struct to pointer to anonymous field.
10310 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
10311 (is_duplicate_field): New static function.
10312 (detect_field_duplicates_hash): If -fplan9-extensions, check for
10313 typedef names duplicating field names.
10314 (detect_field_duplicates): Likewise.
10315 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
10316 (C Dialect Options): Document -fplan9-extensions.
10317 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
10319 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
10321 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
10323 (vect_create_data_ref_ptr): Likewise.
10324 * tree-vect-stmts.c (vectorizable_store): Likewise.
10325 (perm_mask_for_reverse): Likewise.
10326 (reverse_vec_elements): Likewise.
10327 (vectorizable_load): Likewise.
10329 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10331 * cppbuiltin.c: New file.
10332 * cppbuiltin.h: New file.
10333 * Makefile.in: Take into account cppbuiltin.{h,c}.
10335 2010-10-03 Andi Kleen <ak@linux.intel.com>
10337 * lto-cgraph.c (input_cgraph): Check for missing sections.
10339 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
10341 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
10342 to nonimmediate_operand. Force operand 2 to register when allowed.
10343 (*<shiftrt_insn><mode>3_mask): Ditto.
10344 (*<rotate_insn><mode>3_mask): Ditto.
10346 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
10348 PR tree-optimization/45720
10349 PR tree-optimization/45764
10350 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
10351 Don't accept backwards consecutive accesses.
10352 (vect_create_data_ref_ptr): Disallow negative steps.
10354 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
10355 (perm_mask_for_reverse): Removed.
10356 (reverse_vec_elements): Likewise.
10357 (vectorizable_load): Don't handle negative steps.
10359 2010-10-02 Jan Hubicka <jh@suse.cz>
10361 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
10362 call destination is known.
10364 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10367 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
10370 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10372 * doc/install.texi (Configuration): Document build_configargs,
10373 host_configargs, target_configargs.
10375 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
10377 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
10378 (*<shiftrt_insn><mode>3_mask): Ditto.
10379 (*<rotate_insn><mode>3_mask): Ditto.
10381 2010-10-01 Steve Ellcey <sje@cup.hp.com>
10383 PR tree-optimization/44716
10384 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
10385 (HOT_TEXT_SECTION_NAME): Define.
10387 2010-10-01 Nick Clifton <nickc@redhat.com>
10389 * common.opt: Add -fcombine-stack-adjustments.
10390 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
10391 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
10392 flag_combine_stack_adjustments.
10393 * doc/invoke.texi: Document the new option.
10395 2010-10-01 Richard Guenther <rguenther@suse.de>
10397 PR tree-optimization/45854
10398 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
10400 2010-10-01 Anthony Green <green@moxielogic.com>
10402 * config.gcc: Fix moxie-*-rtems* configuration.
10404 2010-10-01 Richard Guenther <rguenther@suse.de>
10406 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
10407 (gen_decl_die): Likewise.
10409 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10411 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
10412 to the function code for SPU MD builtins.
10413 (spu_expand_builtin): Update.
10414 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
10416 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10418 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
10419 sjlj_except_unwind_info.
10421 2010-10-01 Tristan Gingold <gingold@adacore.com>
10423 * configure.ac: Define the nop insn for avr*-*-*
10424 * configure: Regenerate.
10426 2010-10-01 Alan Modra <amodra@gmail.com>
10429 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
10430 extend toc_restore_insn.
10432 2010-09-30 Richard Guenther <rguenther@suse.de>
10434 PR tree-optimization/43959
10435 * function.c (gimplify_parameters): Use create_tmp_reg instead of
10438 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
10440 * config/sh/sh.c (sh_expand_prologue): Set
10441 current_function_static_stack_size.
10443 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10445 * configure.ac: Check for Solaris 8 ld with .hidden support.
10446 * configure: Regenerate.
10448 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10450 PR middle-end/45758
10451 * graphite.c (graphite_initialize): Call scev_reset.
10453 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10455 * sese.h (scev_analyzable_p): Return false for real or floating
10456 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
10458 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10460 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
10462 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
10464 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
10465 Do not allocate ub_expr, it is passed in initialized.
10467 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10469 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
10470 (build_cloog_prog): Dump CLooG input file when
10471 flag_graphite_dump_cloog is set. This is disabled on trunk.
10472 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
10474 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10476 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
10477 verify_dominators for CDI_POST_DOMINATORS.
10478 * sese.h: Remove comment about CDI_POST_DOMINATORS.
10479 (recompute_all_dominators): Remove call to free_dominance_info
10480 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
10481 for CDI_POST_DOMINATORS.
10483 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10485 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
10486 over pbb_dim_iter_domain.
10488 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10490 * graphite-flattening.c: Fix comments.
10492 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10494 * Makefile.in (OBJS-common): Add graphite-flattening.o.
10495 (graphite-flattening.o): New rule.
10496 * common.opt (floop-flatten): New flag.
10497 * doc/invoke.texi (-floop-flatten): Documented.
10498 * graphite-flattening.c: New.
10499 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
10500 * graphite-poly.h (flatten_all_loops): Declared.
10501 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
10502 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
10503 is set, also set flag_graphite.
10505 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10507 * graphite-poly.c (cloog_checksum): New.
10508 * graphite-poly.h (cloog_checksum): Declared.
10510 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10512 * graphite-poly.c (pbb_number_of_iterations): Removed.
10513 (pbb_number_of_iterations_at_time): Correctly compute the number
10514 of iterations in the transformed loop.
10515 * graphite-poly.h (pbb_number_of_iterations): Removed.
10517 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10519 * graphite-poly.h (lst_update_scattering_seq): Removed.
10520 (lst_update_scattering): Correctly handle outermost loop dewey
10523 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10525 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
10526 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
10527 * graphite-poly.h (lst_niter_for_loop): New.
10529 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10531 * graphite-poly.c (apply_poly_transforms): Do not abort when the
10532 transform read from disk is not legal. Call fatal_error instead.
10534 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10536 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
10537 (print_scop_header): Removed. Inlined in the only call place...
10538 (print_scop): ... here.
10540 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10542 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
10544 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10546 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
10548 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10550 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
10551 (dot_deps_stmt): Same.
10552 * graphite-poly.c (dot_lst): Same.
10554 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10556 * graphite-blocking.c (scop_do_strip_mine): Do not call
10557 graphite_legal_transform.
10558 (scop_do_block): Same.
10560 2010-09-30 Vladimir Kargov <kargov@gmail.com>
10562 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
10565 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10567 * tree-scalar-evolution.c (instantiate_array_ref): New.
10568 (instantiate_scev_r): Also handle ARRAY_REFs.
10570 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10572 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10573 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10574 RESULT_DECL, and FIELD_DECL. Return false for an
10575 SSA_NAME_IS_DEFAULT_DEF.
10576 (compute_scalar_evolution_in_loop): Do not further analyze the
10577 scalar evolution when no_evolution_in_loop_p returns true.
10579 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10581 * tree-chrec.h (evolution_function_is_affine_p): Do not check
10582 whether CHREC_LEFT is invariant. A function is affine when
10583 CHREC_RIGHT is invariant.
10585 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10587 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
10589 (rewrite_degenerate_phi): Same.
10590 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
10592 2010-09-30 Vladimir Kargov <kargov@gmail.com>
10594 * graphite-scop-detection.c (graphite_can_represent_scev,
10595 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
10596 graphite_can_represent_loop): Remove outermost_loop.
10598 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10600 PR middle-end/45229
10601 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
10602 handle GIMPLE_CALLs with no LHS.
10604 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10606 * graphite-poly.c (init_graphite_out_file): New.
10607 (init_graphite_in_file): New.
10608 (apply_poly_transforms): Updated to enable reading and writing of
10609 multiple scop files.
10611 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
10613 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
10616 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10618 * graphite-clast-to-gimple.c (precision_for_value): Adjust
10619 computation of precision by 1.
10621 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10623 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
10624 (openscop_read_polyhedron_matrix): New.
10625 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
10626 (openscop_read_N_int): Same.
10627 * graphite-poly.c (openscop_read_N_int): New.
10628 (openscop_read_one_int): New.
10629 (openscop_read_N_string): New.
10630 (openscop_read_one_string): New.
10631 (openscop_read_powerset_matrix): New.
10632 (graphite_read_transforms): Remove.
10633 (graphite_read_scatt): New.
10634 (graphite_read_scop_file): New.
10635 (apply_poly_transforms): Updated to call graphite_read_scop_file.
10637 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10639 * graphite-poly.c: Change include order.
10641 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10643 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
10644 (cloog_matrix_nrows): New.
10646 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10648 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
10650 * graphite-poly.c (openscop_print_scattering_function_1): Same.
10651 (print_scattering_function_1): Same.
10652 (openscop_print_pbb_domain): Same.
10653 (openscop_print_scop_context): Same.
10654 (print_scop_context): Same.
10656 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
10658 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
10659 (openscop_print_pdr_polyhedron): Print pph.
10661 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10663 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
10664 priority signed types.
10666 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10668 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
10669 the call to lang_hooks.types.type_for_size. Call
10670 build_nonstandard_integer_type.
10672 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10674 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
10675 (openscop_print_polyhedron_matrix): New.
10676 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
10677 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
10678 (openscop_print_pdr_powerset): New.
10679 (openscop_print_powerset_matrix): New.
10680 (openscop_print_scattering_function_1): New.
10681 (print_scattering_function): Add support for scattering names and
10683 (graphite_write_transforms): Remove.
10684 (print_pdr_access_layout): Updated to support OpenScop format.
10686 (openscop_print_pbb_domain): New.
10687 (print_pbb_body): Added a parameter to allow indicating that pbb_body
10689 (print_pbb): Updated to call the new print_pbb_body.
10690 (openscop_print_scop_context): New.
10691 (print_scop_header): New.
10692 (print_scop): Updated to call print_scop_header.
10693 * graphite-poly.h: Document OpenScop format.
10695 2010-09-30 Anatoly Sokolov <aesok@post.ru>
10697 * config/cris/m32c.c (cris_memory_move_cost): New.
10698 (cris_register_move_cost): Make static. Change arguments type from
10699 enum reg_class to reg_class_t.
10700 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10701 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10702 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
10704 2010-09-30 Jakub Jelinek <jakub@redhat.com>
10707 * config/i386/i386.c (ix86_gimplify_va_arg): Use
10708 INTVAL (XEXP (slot, 1)) as prev_size.
10710 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10713 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
10714 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
10716 * config/rs6000/option-defaults.h (toplevel): Change #if
10717 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
10718 global option changes.
10720 2010-09-30 Jakub Jelinek <jakub@redhat.com>
10722 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
10724 PR tree-optimization/31261
10725 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
10726 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
10728 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10731 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
10732 special-casing for generators and turn into ...
10733 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
10734 rule, for better error messages in case of toplevel dependency errors.
10735 (genprog): Add hooks, rename to ...
10736 (genprogerr): ... this, and let genprog also contain check,
10738 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
10739 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
10740 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
10742 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
10743 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10745 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
10746 for GMP, MPFR and MPC.
10748 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10750 * config/sparc/sparc.opt (mimpure-text): Move ...
10751 * config/sol2.opt: ... here. Correct description.
10752 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
10753 * doc/invoke.texi (Option Summary, SPARC Options): Move
10754 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10755 (Option Summary, Solaris 2 Options): ... here.
10756 (Submodel Options, Solaris 2 Options): New menu entry.
10757 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10758 (Solaris 2 Options): ... here.
10760 2010-09-30 Michael Eager <eager@eagercon.com>
10762 * extend.texi (interrupt_handler): Add MicroBlaze to list.
10763 (save_volatiles): Describe option for MicroBlaze.
10764 * invoke.texi: Add MicroBlaze Options.
10765 * contrib.texi: Add acknowledgment.
10766 * md.texi: Add MicroBlaze d and z constraints.
10767 * install.texi: Add microblaze-*-elf.
10768 * configure.ac: Add microblaze-*-* to target list.
10769 * configure: Regenerate.
10770 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10771 * config/microblaze/microblaze-protos.h: New.
10772 * config/microblaze/crti.s: New.
10773 * config/microblaze/predicates.md: New.
10774 * config/microblaze/linux.h: New.
10775 * config/microblaze/microblaze.md: New.
10776 * config/microblaze/constraints.md: New.
10777 * config/microblaze/crtn.s: New.
10778 * config/microblaze/microblaze.opt: New.
10779 * config/microblaze/microblaze-c.c: New.
10780 * config/microblaze/t-microblaze: New.
10781 * config/microblaze/microblaze.c: New.
10782 * config/microblaze/microblaze.h: New.
10784 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
10786 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10787 parse @optional/@required and set the flags as appropriate.
10789 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
10791 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10793 2010-09-30 Joseph Myers <joseph@codesourcery.com>
10795 * opt-functions.awk (static_var): Update comment.
10796 (var_ref): Return offsetof expression or -1, not variable address.
10797 * optc-gen.awk: Generate structure field initializers instead of
10798 static variables. Expect -1 for missing variables instead of null
10799 pointer. Add gcc_options parameters to generated functions.
10800 * opth-gen.awk: Generate structure fields for static variables.
10801 Add gcc_options parameters to generated functions.
10802 * common.opt (optimize, optimize_size): Add variables.
10803 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10804 &global_options to cl_target_option_restore.
10805 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10806 &global_options to cl_optimization_restore, cl_target_option_save
10807 and cl_target_option_restore.
10808 (ix86_set_current_function): Pass &global_options to
10809 cl_target_option_restore.
10810 * config/pdp11/pdp11.h (optimize): Remove.
10811 * config/rs6000/rs6000.h (optimize): Remove.
10812 * config/sh/sh.h (optimize): Remove.
10813 * config/xtensa/xtensa.h (optimize): Remove.
10814 * coretypes.h (struct gcc_options): Declare.
10815 * diagnostic.c (diagnostic_initialize): Initialize
10816 context->option_state.
10817 (diagnostic_report_diagnostic): Pass option_state to
10818 option_enabled hook.
10819 * diagnostic.h (diagnostic_context.option_enabled): Add void *
10821 (diagnostic_context.option_state): New field.
10822 * final.c (final_start_function, final, final_scan_insn): Rename
10823 optimize parameter to optimize_p.
10824 * flags.h (optimize, optimize_size): Remove.
10825 * function.c (invoke_set_current_function_hook): Pass
10826 &global_options to cl_optimization_restore.
10827 * gcc.c (driver_handle_option): Take gcc_options parameter.
10828 Assert that it is &global_options.
10829 (process_command): Pass &global_options to read_cmdline_option.
10830 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10832 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
10833 &global_options to set_option.
10834 * opts-common.c (handle_option, handle_generated_option,
10835 read_cmdline_option, set_option): Take explicit gcc_options
10836 parameters. Use option_flag_var.
10837 (option_flag_var): New.
10838 * opts.c (common_handle_option, lang_handle_option,
10839 target_handle_option): Take gcc_options parameter. Assert that it
10840 is &global_options.
10841 (read_cmdline_options): Pass &global_options to read_cmdline_option.
10842 (print_filtered_help): Use option_flag_var. Pass &global_options
10844 (common_handle_option): Use option_flag_var.
10845 (option_enabled): Take opts parameter. Use option_flag_var.
10846 (get_option_state): Take gcc_options parameter. Use
10847 option_flag_var. Pass gcc_options parameter to option_enabled.
10848 (enable_warning_as_error): Pass &global_options to
10849 handle_generated_option.
10850 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
10851 (cl_option_handler_func.handler): Take gcc_options parameter.
10852 (option_enabled, get_option_state, set_option, handle_option,
10853 handle_generated_option, read_cmdline_option): Take gcc_options
10855 * toplev.c (optimize, optimize_size): Remove.
10856 (print_switch_values): Pass &global_options to option_enabled.
10857 (option_affects_pch_p): Use option_flag_var. Pass &global_options
10858 to get_option_state.
10859 (general_init): Initialize global_dc->option_state.
10860 * tree.c (build_optimization_node): Pass &global_options to
10861 cl_optimization_save.
10862 (build_target_option_node): Pass &global_options to
10863 cl_target_option_save.
10865 2010-09-30 Martin Jambor <mjambor@suse.cz>
10867 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
10868 zero sized bit-fields.
10870 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
10872 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
10873 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
10874 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
10875 (c_parser_objc_class_declaration): Same change.
10876 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
10877 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10878 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
10879 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
10880 and RID_AT_PUBLIC instead of RID_PUBLIC.
10881 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
10882 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10884 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
10886 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
10887 Add links to current providers of packages for Solaris and IRIX.
10889 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
10891 Merge from 'apple/trunk' branch on FSF servers.
10892 * c-parser.c: Applied change originally in c-parse.in.
10894 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
10897 * c-decl.c (start_decl): Check for redeclaration of class name.
10898 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
10900 2010-09-29 Steve Ellcey <sje@cup.hp.com>
10902 * config/ia64/ia64.c (ia64_builtin_decl): New.
10903 (TARGET_BUILTIN_DECL): Define.
10904 (ia64_builtins): New.
10905 (ia64_init_builtins): Save decls in ia64_builtins.
10907 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
10910 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
10911 (move2add_use_add3_insn): Likewise.
10912 (reload_cse_move2add): Likewise.
10913 * rtlanal.c (get_full_rtx_cost): New function.
10914 * rtl.h (struct full_rtx_costs): New.
10915 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
10916 costs_add_n_insns): New inline functions.
10917 (get_full_rtx_cost): Declare.
10920 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
10921 invariants. Check for reg_equiv_invariant.
10922 (reload): Assert that spilled_pseudos is empty when returning.
10924 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
10926 * config/i386/mingw32.h (TARGET_64BIT): replaced by
10927 TARGET_64BIT_DEFAULT in #if check.
10929 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
10931 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
10933 2010-09-29 Mike Stump <mikestump@comcast.net>
10935 * config/darwin.h (flag_mkernel): Remove.
10936 (flag_apple_kext): Likewise.
10938 2010-09-29 Joseph Myers <joseph@codesourcery.com>
10939 Jack Howarth <howarth@bromo.med.uc.edu>
10941 * config/darwin.opt (undefined): Add.
10943 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
10946 * configure.ac: Add --enable-indirect-function option.
10947 * config.gcc: Add default_gnu_indirect_function.
10948 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
10949 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
10950 * varasm.c (do_assemble_alias): Adjust for macro name change.
10951 * configure: Rebuilt.
10952 * doc/install.texi: Document --enable-indirect-function.
10954 2010-09-29 Joseph Myers <joseph@codesourcery.com>
10956 * doc/options.texi (Variable, Var, Init): Update documentation
10957 without reference to VarExists.
10958 (VarExists): Remove.
10959 * common.opt, config/i386/i386.opt, config/linux.opt,
10960 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
10961 Don't use VarExists.
10963 2010-09-29 Joseph Myers <joseph@codesourcery.com>
10965 * optc-gen.awk: Generate global_options initializer instead of
10966 individual variables. Add x_ prefix to names of structure members.
10967 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
10968 names of structure members.
10969 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10970 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
10971 * doc/tm.texi: Regenerate.
10972 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10973 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10974 * c-parser.c (disable_extension_diagnostics,
10975 restore_extension_diagnostics): Update names of cpp_options members.
10976 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10977 * common.opt (fcompare-debug-second): Don't use Var.
10978 * config/alpha/alpha.h (target_flags): Remove.
10979 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10980 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10981 * config/bfin/bfin.h (target_flags): Remove.
10982 * config/cris/cris.h (target_flags): Remove.
10983 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
10984 cl_target_option members.
10985 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
10986 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
10987 ix86_can_inline_p): Update names of cl_target_option members.
10988 * config/i386/i386.h (ix86_isa_flags): Remove.
10989 * config/lm32/lm32.h (target_flags): Remove.
10990 * config/mcore/mcore.h (mcore_stack_increment): Remove.
10991 * config/mcore/mcore.md (addsi3): Remove extern declaration of
10992 flag_omit_frame_pointer.
10993 * config/mep/mep.h (target_flags): Remove.
10994 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10995 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10996 * config/mmix/mmix.h (target_flags): Remove.
10997 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
10998 flag_expensive_optimizations): Remove.
10999 * config/s390/s390.h (flag_pic): Remove.
11000 * config/score/score-conv.h (target_flags): Remove.
11001 * config/sh/sh.h (sh_fixed_range_str): Remove.
11002 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
11003 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11004 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11005 * diagnostic.c (diagnostic_initialize): Update names of
11006 diagnostic_context members.
11007 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
11008 warn_system_headers.
11009 (diagnostic_report_warnings_p): Update for new names.
11010 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11011 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
11012 HARD_FRAME_POINTER_IS_ARG_POINTER.
11013 * flags.h (flag_compare_debug): Declare.
11014 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11015 * opts.c (flag_compare_debug): Define.
11016 (common_handle_option): Update names of diagnostic_context
11017 members. Handle -fcompare-debug-second.
11018 (fast_math_flags_struct_set_p): Update names of cl_optimization
11020 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11021 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11022 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11023 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11024 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11025 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11026 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
11027 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11028 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11030 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
11032 * config/picochip/picochip.c (picochip_output_internal_label):
11033 This function can now be called for debug CFI labels, which can come
11034 in the middle of a vliw instruction. Postpone until end of vliw.
11036 2010-09-29 Richard Guenther <rguenther@suse.de>
11038 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
11039 (DECL_FILE_SCOPE_P): Use it.
11040 (TYPE_FILE_SCOPE_P): New macro.
11042 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11044 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
11045 a CPP_NAME which is a reserved word, clearly separate cases for
11046 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
11048 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11050 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
11051 token->value with the canonical spelling. Do exactly like C and
11052 C++ and leave it as it is.
11054 2010-09-28 Richard Henderson <rth@redhat.com>
11056 * config/alpha/alpha.c (alpha_builtins): New.
11057 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
11058 (alpha_builtin_function): New.
11059 (alpha_add_builtins, alpha_init_builtins): Use it.
11061 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
11063 * doc/standards.texi (Standards): Expanded the section on
11064 Objective-C and Objective-C++.
11066 2010-09-28 DJ Delorie <dj@redhat.com>
11069 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
11072 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11074 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
11075 attributes on methods.
11076 (c_parser_objc_method_definition): Handle attributes.
11077 (c_parser_objc_methodproto): Likewise.
11078 (c_parser_objc_maybe_method_attributes): New.
11079 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
11080 missing definition, similar to that in ObjC++.
11082 2010-09-28 Richard Henderson <rth@redhat.com>
11084 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
11085 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11086 (CONFIG_SJLJ_EXCEPTIONS): Remove.
11087 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
11088 (STACK_CHECK_PROTECT): Likewise.
11089 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
11090 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
11091 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
11092 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
11093 (dwarf2out_assembly_start): Likewise.
11094 * except.c (init_eh): Use targetm.except_unwind_info.
11095 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
11096 (output_one_function_exception_table): Likewise.
11097 * final.c: Unconditionally include dwarf2out.h.
11098 (final_start_function): Unconditionally call dwarf2out routines.
11099 (final_end_function, final_scan_insn): Likewise.
11100 * function.c (expand_function_end): Use targetm.except_unwind_info.
11101 * opts.c (decode_options): Use targetm.except_unwind_info.
11102 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
11103 * target.def (debug_unwind_info, except_unwind_info): New.
11104 * target.h (enum unwind_info_type): New.
11105 * targhooks.c (default_debug_unwind_info): New.
11106 (default_except_unwind_info): New.
11107 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
11108 * targhooks.h: Declare them.
11109 * tree-tailcall.c: Include "target.h"
11110 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
11111 * Makefile.in (tree-tailcall.o): Update.
11112 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
11113 (lhd_gcc_personality): Likewise.
11115 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
11116 (TARGET_EXCEPT_UNWIND_INFO): New.
11117 (DWARF2_UNWIND_INFO): Update.
11118 (TARGET_DEBUG_UNWIND_INFO): New.
11119 * doc/tm.texi: Rebuild.
11121 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
11122 targetm.except_unwind_info.
11124 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
11125 (arm_except_unwind_info): New.
11126 (arm_compute_func_type): Use it.
11127 (arm_expand_prologue, thumb_pushpop): Likewise.
11128 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
11129 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
11130 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
11131 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
11132 (DWARF2_UNWIND_INFO): Remove.
11133 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11134 (ARM_EABI_UNWIND_TABLES): Remove.
11136 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
11137 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
11138 (ia64_except_unwind_info): New.
11139 (ia64_output_function_prologue): Use it.
11140 (ia64_add_bundle_selector_before): Likewise.
11141 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
11142 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
11143 (TARGET_UNWIND_INFO): Remove.
11145 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
11147 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11149 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
11150 (c_parser_objc_protocol_definition): Likewise.
11151 (c_parser_external_declaration): Provide dummy attribute arguments.
11152 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
11153 (c_parser_objc_class_definition): Handle attributes.
11154 (c_parser_objc_protocol_definition): Likewise.
11156 2010-09-28 Tobias Burnus <burnus@net-b.de>
11160 * toplev.h (save_decoded_options, save_decoded_options_count):
11161 New global variables.
11162 * toplev.c (save_decoded_options, save_decoded_options_count):
11165 2010-09-28 Ian Lance Taylor <iant@google.com>
11167 * config/i386/i386.c (ix86_supports_split_stack): Test
11168 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
11170 2010-09-28 Ian Lance Taylor <iant@google.com>
11173 * opts.c (decode_options): Don't test whether the target supports
11174 split stack if flag_split_stack == 0.
11176 2010-09-28 Jan Hubicka <jh@suse.cz>
11178 * builtin-attrs.def (ATTR_LEAF): New attribute.
11179 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
11180 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
11181 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
11182 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
11183 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
11184 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
11185 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
11186 * sync-builtins.def: Annotate all builtins by leaf.
11187 * omp-builtins.def: Annotate all builtins by leaf.
11188 * builtins.def: Annotate relevant builtins with leaf attribute.
11189 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11190 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
11193 2010-09-28 Jan Hubicka <jh@suse.cz>
11195 * tree-ssa-ccp.c (fold_ctor_reference): New function.
11196 (fold_const_aggregate_ref): Use it.
11197 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
11198 into external static.
11200 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11203 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
11204 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
11205 (ix86_solaris_return_in_memory): Remove.
11206 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
11207 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11208 (TARGET_SUBTARGET_DEFAULT): Redefine.
11209 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
11210 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11211 (TARGET_SUBTARGET_DEFAULT): Redefine.
11212 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
11213 -mvect8-ret-in-mem.
11214 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
11216 2010-09-29 Alan Modra <amodra@gmail.com>
11219 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
11220 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
11221 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
11223 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
11224 (rs6000_emit_prologue): Don't just create frame save info for r2,
11227 2010-09-28 Richard Henderson <rth@redhat.com>
11229 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
11230 when 8 bytes are requested.
11232 2010-09-28 Tristan Gingold <gingold@adacore.com>
11234 * config/avr/avr.c (expand_prologue): Set
11235 current_function_static_stack_size.
11237 2010-09-28 Tristan Gingold <gingold@adacore.com>
11239 * config/alpha/alpha.md: Change the initial condition of the
11242 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
11244 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
11245 Split from *avx_<maxmin:code><mode>3.
11246 (*avx_<smaxmin:code><mode>3): Ditto.
11247 * config/i386/i386.md (maxmin): Remove code iterator.
11249 2010-09-27 Ian Lance Taylor <iant@google.com>
11251 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
11252 requires assembler support for CFI directives.
11254 2010-09-27 Richard Henderson <rth@redhat.com>
11256 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
11258 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
11260 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
11261 that AFTER is not in the range FROM..TO, inclusive.
11263 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
11264 Bernd Schmidt <bernds@codesourcery.com>
11266 PR rtl-optimization/45792
11267 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
11268 If not all insns are to be merged, for each edge, stash the
11269 next candidate after the to-be-merged insns before doing the
11270 merge, and use them for the retry at the new insertion point.
11271 Handle CC0 targets when retrying.
11273 2010-09-27 Ian Lance Taylor <iant@google.com>
11275 * common.opt (fsplit-stack): New option.
11276 * opts.c (decode_options): Set flag_split_stack to final value.
11277 * target.def (supports_split_stack): New hook.
11278 * gcc.c (STACK_SPLIT_SPEC): Define.
11279 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
11280 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
11281 (Code Gen Options): Document -fsplit-stack.
11282 * doc/extend.texi (Function Attributes): Mention no_split_stack.
11283 (Function Attributes): Document no_split_stack.
11284 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
11285 TARGET_SUPPORTS_SPLIT_STACK.
11286 * doc/tm.texi: Rebuild.
11287 * function.c (thread_prologue_and_epilogue_insns): If
11288 flag_split_stack, add split stack prologue.
11289 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
11290 * varasm.c (saw_no_split_stack): New static variable.
11291 (assemble_start_function): Set saw_no_split_stack if the function
11292 has the no_split_stack attribute.
11293 (file_end_indicate_split_stack): New function.
11294 * output.h (file_end_indicate_split_stack): Declare.
11295 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
11297 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
11299 * config/i386/i386.c (ix86_option_override_internal): Don't set
11300 expand_builtin_va_start to NULL if -fsplit-stack.
11301 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
11303 (ix86_va_start): If -fsplit-stack, get overflow pointer from
11304 scratch register set by prologue.
11305 (ix86_code_end): If -fsplit-stack, call
11306 file_end_indicate_split_stack.
11307 (ix86_supports_split_stack): New static function.
11308 (SPLIT_STACK_AVAILABLE): Define.
11309 (split_stack_prologue_scratch_regno): New static function.
11310 (split_stack_fn): New static variable.
11311 (ix86_expand_split_stack_prologue): New function.
11312 (ix86_live_on_entry): New static function.
11313 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
11314 (output_pic_addr_const): Likewise.
11315 (i386_asm_output_addr_const_extra): Likewise.
11316 (ix86_expand_call): Change return type to rtx. Return the new
11318 (TARGET_SUPPORTS_SPLIT_STACK): Define.
11319 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11320 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
11321 (split_stack_prologue, split_stack_return): New insns.
11322 (split_stack_space_check): New insn.
11323 * config/i386/i386.h (struct machine_function): Add
11324 split_stack_varargs_pointer field.
11325 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
11326 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11327 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11328 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11329 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
11331 (ix86_expand_call): Update declaration.
11333 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
11335 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
11336 code. Added byref, which was missing in the list of codes.
11337 Explain that enumeration values are encoded as the integer type
11338 that the compiler uses to store them. Explain and make examples
11339 of how 'const' interacts with pointers, and the complication of
11340 the encoding of 'const char *'.
11341 (Legacy type encoding): New subsection, explaining that GCC emits
11342 incorrect type encodings for the NeXT runtime for compatibility
11344 (@@encode): New subsection, explaining @encode and particularly
11345 that protocol qualifiers are not recognized inside an @encode()
11347 (Method signatures): New subsection, explaining how method
11348 signatures are encoded.
11350 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
11352 Merge from 'apple/trunk' branch on FSF servers. Removed small
11353 change in build_conditional_expr that had been added when fixing
11354 PR objc/27377 and which did the same check in a less complete way.
11356 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
11359 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
11360 looking for objective-c common pointer types.
11362 2005-06-22 Ziemowit Laski <zlaski@apple.com>
11365 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
11366 use their ObjC common type.
11368 2010-09-27 Richard Guenther <rguenther@suse.de>
11370 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
11372 2010-09-27 Jie Zhang <jie@codesourcery.com>
11374 * print-tree.c (print_node): Print in-constant-pool.
11376 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
11378 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
11379 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
11380 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
11381 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
11383 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
11385 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
11386 from pro_epilogue_adjust_stack_<mode>_{1,2}.
11387 (pro_epilogue_adjust_stack_<mode>_add): Rename from
11388 pro_epilogue_adjust_stack_<mode>_3.
11389 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
11390 renamed pro_epilogue_adjust_stack_{si,di}_add.
11391 (ix86_expand_prologue): Use indirect functions. Update for renamed
11392 pro_epilogue_adjust_stack_{si,di}_sub.
11394 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
11396 * config/i386/i386.md (movmsk_df): New insn.
11397 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
11398 sequence for TARGET_SSE_MATH.
11400 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
11402 * config/mips/mips.c (mips_builtin_decls): Declare.
11403 (mips_init_builtins): Store function declarations in
11404 mips_builtin_decls.
11405 (mips_builtin_decl): New function.
11406 (TARGET_BUILTIN_DECL): Define.
11408 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
11409 Richard Henderson <rth@redhat.com>
11411 * config/i386/cygwin.asm: Include auto-host.h.
11412 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
11413 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
11414 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
11415 alignment code from the 64-bit path. Use gas local labels.
11416 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
11417 from _di_2. Remove the useless constant integer argument.
11418 (pro_epilogue_adjust_stack_<mode>_3): New.
11419 (allocate_stack_worker_probe_<mode>): Macroize from
11420 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
11421 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
11422 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
11423 (__chkstk_ms): New function.
11424 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
11425 * config/i386/t-interix: Likewise.
11426 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
11427 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
11428 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
11429 * configure, config.in: Rebuild.
11431 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
11433 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
11434 statements because of the return slot optimization.
11436 2010-09-25 Anatoly Sokolov <aesok@post.ru>
11438 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
11439 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
11440 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11441 (class_likely_spilled_p): Rename to...
11442 (avr_class_likely_spilled_p): ...this. Make static. Change argument
11443 type to reg_class_t.
11445 2010-09-24 Jan Hubicka <jh@suse.cz>
11447 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
11448 (lto_symtab_resolve_symbols): Set it.
11449 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
11450 store resolution field in cgraph/varpool.
11451 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
11452 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
11453 (cgraph_dump_node): Drop used_from_object_file.
11454 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
11455 (cgraph_function_body_availability): Use decl_replaceable_p.
11456 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
11457 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
11458 cgraph_used_from_object_file_p.
11459 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
11460 cgraph_used_from_object_file_p.
11461 (resolution_used_from_other_file_p): New functoin.
11462 (cgraph_used_from_object_file_p): New predicate.
11463 * cgraph.h: Include plugin-api.h
11464 (struct cgraph_local_info): Remove used_from_object_file.
11465 (struct cgraph_node): Add resolution field.
11466 (struct varpool_node): Likewise; remove used_from_object_file;
11467 reove const_value_known.
11468 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
11469 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
11470 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11471 varpool_used_from_object_file_p): Declare.
11472 (varpool_get_node, varpool_extra_name_alias): Update prototype.
11473 * tree.h (DECL_REPLACEABLE_P): Remove.
11474 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
11475 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
11476 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11477 input_overwrite_node, input_node, input_varpool_node): Stream
11479 * expr.c (expand_expr_real_1): Use const_value_known_p
11480 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
11482 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
11483 (function_and_variable_visibility): Set resolution for local vars
11484 and functions; use varpool_used_from_object_file_p.
11485 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
11487 (default_binds_local_p_1): Use resolutoin info.
11488 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
11489 * varpool.c (varpool_get_node): Constify.
11490 (const_value_known_p): Do not use vnode->const_value_known;
11491 use decl_replaceable_p.
11492 (varpool_finalize_decl): Do not set const_value_known.
11493 (cgraph_variable_initializer_availability): Use decl_replaceable_p
11494 (varpool_extra_name_alias): Return new node.
11495 (varpool_used_from_object_file_p): New function.
11497 2010-09-24 Richard Henderson <rth@redhat.com>
11499 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
11500 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
11501 (do_spill): Use REG_CFA_OFFSET.
11502 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
11504 (ia64_expand_epilogue): Likewise.
11505 (process_set): Split into ...
11506 (process_cfa_adjust_cfa): this,
11507 (process_cfa_register): this,
11508 (process_cfa_offset): and this new function.
11509 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
11510 instead of REG_FRAME_RELATED_EXPR.
11512 2010-09-24 Olivier Hainque <hainque@adacore.com>
11514 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
11516 2010-09-24 Jan Hubicka <jh@suse.cz>
11518 * doc/extend.texi: (attribute leaf): Document.
11519 * tree.c (local_define_builtin): Handle ECF_LEAF.
11520 (build_common_builtin_nodes): Set ECF_LEAF where needed.
11521 * tree.h (ECF_LEAF): New.
11522 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
11523 overwrittable and unavailable functions.
11524 (ipa_init): Put all_module_statics into optimization_summary_obstack.
11525 (copy_global_bitmap): Do not copy all_module_statics.
11526 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
11527 (propagate): Handle overwritable and unavailable leaf functions;
11528 initialize global info for overwritable and unavailable leaf functions;
11529 do not free all module statics.
11530 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
11532 * calls.c (flags_from_decl_or_type): Handle leaf.
11533 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
11536 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
11538 * gengtype.c: Reindented.
11539 * gengtype.h: Reindented.
11540 * gengtype-parse.c: Reindented.
11542 2010-09-24 Jan Hubicka <jh@suse.cz>
11544 PR tree-optimization/45738
11545 PR tree-optimization/45741
11546 * expr.c (string_constant): Allow CONST_DECL too;
11547 check that DECL_INITIAL is set.
11548 * varpool.c (const_value_known_p): Only look into VAR_DECL
11551 2010-09-24 Joseph Myers <joseph@codesourcery.com>
11553 * common.opt (undef): New.
11555 2010-09-24 Jakub Jelinek <jakub@redhat.com>
11557 PR middle-end/45234
11558 * rtl.h (enum global_rtl_index): Add
11559 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
11560 (LAST_VIRTUAL_POINTER_REGISTER): Define.
11561 (virtual_preferred_stack_boundary_rtx,
11562 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
11563 (LAST_VIRTUAL_REGISTER): Increase by one.
11564 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
11565 instead of LAST_VIRTUAL_REGISTER.
11566 * function.c (instantiate_new_reg): Handle
11567 virtual_preferred_stack_boundary_rtx.
11568 * emit-rtl.c (init_virtual_regs): Handle
11569 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11570 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
11571 * explow.c (round_push): If crtl->preferred_stack_boundary
11572 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
11573 virtual_preferred_stack_boundary_rtx alignment instead of
11574 crtl->preferred_stack_boundary alignment.
11575 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
11576 macros. Never decrease crtl->preferred_stack_boundary,
11577 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
11578 instead of PREFERRED_STACK_BOUNDARY. Don't modify
11579 stack_pointer_delta in dynamic allocation, even when size
11581 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
11583 * print-rtl.c (print_rtx): Handle
11584 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11585 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
11586 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
11587 * config/frv/frv.c (frv_emit_movsi): Likewise.
11588 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
11589 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
11593 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
11595 PR middle-end/45234
11596 * calls.c (expand_call): Make sure that all variable sized
11597 adjustments are multiple of preferred stack boundary after
11600 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
11601 Dominique Dhumieres <dominiq@lps.ens.fr>
11604 * config/darwin-driver.c (darwin_default_min_version):
11605 Adjust size passed to memcpy in two places.
11607 2010-09-24 Richard Guenther <rguenther@suse.de>
11609 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
11610 Make sure to not call set_type_context with error_mark_node.
11611 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
11613 2010-09-24 Richard Guenther <rguenther@suse.de>
11615 * Makefile.in (OBJS-onestep): Remove.
11616 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
11617 (libbackend.a): Remove onestep support.
11618 (libbackend.o): Remove.
11619 * configure.ac (--enable-intermodule): Remove.
11620 * configure: Regenerate.
11622 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
11624 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
11625 reaching the end of a block if it occurs at a DEBUG_INSN.
11627 2010-09-09 Tristan Gingold <gingold@adacore.com>
11630 * config/vms/vms-crt0-64.c: Removed.
11631 * config/vms/vms-crt0.c: Removed.
11632 * config/vms/vms-psxcrt0-64.c: Removed.
11633 * config/vms/vms-psxcrt0.c: Removed.
11634 * config/vms/vms-ucrt0.c: New file.
11635 * config/vms/t-vms64: Removed.
11636 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
11637 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
11638 * config.gcc (alpha-dec-vms): Use t-vms.
11640 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
11642 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
11643 underfull hbox in DVI output.
11644 (-fobjc-class-cxx-cdtors): Same change.
11645 (-fobjc-exceptions): Tidied up documentation. Explain what the
11646 option does, but moved the (lenghty) description of the exception
11647 syntax into objc.texi.
11648 (-fobjc-gc): Explain that the option is not useful with the GNU
11650 (-fzero-link): Explain that the GNU runtime always works in
11652 * doc/objc.texi: All sections: simplified @node declarations
11653 removing specification of next, previous, up node.
11654 (Objective-C): Updated introduction.
11655 (Garbage Collection): Updated. The bohem-gc library is now
11656 included in gcc itself. Mention that this section only applies to
11657 the GNU Objective-C runtime.
11658 (compatibility_alias): Small tidy up.
11659 (Exceptions): New section mostly containing text previously in the
11660 description of the -fobjc-exception command-line option.
11661 (Synchronization): Same.
11663 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
11665 * config/i386/i386.md (ix86_code_end): Move the initialization of
11666 xops array near the consumer. Use AX_REG and SP_REG instead of
11667 numerical constants.
11669 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
11671 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
11672 method [methodname]' for an Objective-C method instead of the less
11673 satisfactory 'too many arguments to function' (with no method name).
11675 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
11677 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
11678 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
11679 (execute_update_addresses_taken): Remove parameter. Execute the
11680 optimization unconditionally.
11681 * passes.c (execute_function_todo): Call execute_update_addresses_taken
11682 unconditionally if TODO_rebuild_alias is set, else only when optimizing
11683 if TODO_update_address_taken is set.
11685 2010-09-23 Anatoly Sokolov <aesok@post.ru>
11687 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11688 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
11689 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11690 (arm_output_addr_const_extra): Make static.
11692 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
11694 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
11695 define as unspec_volatile.
11696 ("nops"): Define as unspec_volatile. Use fputs to write to
11697 asm_out_file directly. Output NOPs on separate lines using while loop.
11698 * config/i386/i386.c (ix86_code_end): Use fputs to write to
11699 asm_out_file directly. Output NOPs on separate lines using while loop.
11701 2010-09-23 Richard Guenther <rguenther@suse.de>
11703 PR tree-optimization/45565
11704 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
11705 Make sure to adjust the fndecl before replacing the stmt.
11707 2010-09-23 Richard Guenther <rguenther@suse.de>
11709 PR middle-end/45750
11710 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
11711 gimplifying MEM_REF.
11713 2010-09-23 Alan Modra <amodra@gmail.com>
11715 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
11716 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
11718 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
11720 PR rtl-optimization/44374
11721 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
11722 * df-core.c (df_set_bb_dirty): Set it.
11723 * ifcvt.c (find_memory): Remove function.
11724 (dead_or_predicable): Use can_move_insns_across.
11725 * df.h (can_move_insns_across): Declare function.
11726 * cfgcleanup.c (block_was_dirty): New static variable.
11727 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
11728 than df_get_bb_dirty.
11729 (try_head_merge_bb): New static function.
11730 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
11732 * df-problems.c: Include "target.h"
11733 (df_simulate_find_uses): New static function.
11734 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
11735 (find_memory, find_memory_store): New static functions.
11736 (can_move_insns_across): New function.
11737 * Makefile.in (df-problems.o): Update dependencies.
11739 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
11742 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
11743 is specified and the suffix of the file isn't ".c".
11744 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11746 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11748 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
11749 * doc/cppopts.texi: Fix markup of index entry.
11750 * doc/extend.texi (Constructing Calls): Fix markup of
11751 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
11752 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
11753 (Vague Linkage, C++ Attributes): Fix markup of index entries and
11755 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
11757 (C Dialect Options, C++ Dialect Options, Warning Options)
11758 (Debugging Options, Spec Files, Darwin Options)
11759 (i386 and x86-64 Options, MIPS Options)
11760 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11761 index entries, avoid abbreviations, allow URLs to wrap, avoid
11762 long lines, avoid overlong pages from long @itemx lists.
11763 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11764 * doc/standards.texi (Standards): Likewise.
11765 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11767 2010-09-22 Joseph Myers <joseph@codesourcery.com>
11769 * opts-common.c (prune_options): Make static. Work with decoded
11771 (decode_cmdline_options_to_array): Call prune_options. Don't
11772 resize option array here.
11773 * opts.h (prune_options): Remove prototype.
11774 * gcc.c (process_command): Take decoded options; don't call
11775 decode_cmdline_options_to_array here. Use decoded options for argv[0].
11776 (main): Call decode_cmdline_options_to_array here instead of
11777 prune_options. Update call to process_command.
11778 * config/darwin-driver.c: Include opts.h.
11779 (darwin_default_min_version): Work with decoded options. Don't
11780 handle -b or -V here.
11781 * config/darwin.h (darwin_default_min_version): Update prototype.
11782 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11783 darwin_default_min_version.
11784 * config/i386/cygwin.h (mingw_scan): Update prototype.
11785 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11786 * config/i386/cygwin1.c: Include opts.h.
11787 (mingw_scan): Work with decoded options.
11788 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11789 * config/t-darwin (darwin-driver.o): Update dependencies.
11791 2010-09-22 Joseph Myers <joseph@codesourcery.com>
11793 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11794 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11795 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11796 -force-link, -force-link=, -language, -language=,
11797 -library-directory, -library-directory=, -no-canonical-prefixes,
11798 -no-standard-libraries, -no-warnings, -optimize, -output,
11799 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11800 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11801 -print-file-name=, -print-libgcc-file-name,
11802 -print-multi-directory, -print-multi-lib,
11803 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11804 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11805 -profile, -save-temps, -shared, -specs, -specs=, -static,
11806 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11808 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11809 * gcc.c (A Short Introduction to Adding a Command-Line Option):
11811 (cc1_options): Correct specs for passing down --help,
11812 --target-help and --help=*. Add spec for passing down --version.
11813 (struct option_map, option_map, target_option_translations,
11814 translate_options): Remove.
11815 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11816 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11817 OPT_fhelp_ and OPT_ftarget_help.
11818 (process_command): Don't call translate_options. Call
11819 decode_cmdline_options_to_array before checking for
11820 -no-canonical-prefixes using decoded options.
11821 * opts-common.c (tm.h): Update comment on #include.
11822 (find_opt): Allow abbreviations of long options.
11823 (struct option_map, option_map): New.
11824 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11826 (target_option_translations): New.
11827 (decode_cmdline_options_to_array): Handle
11828 TARGET_OPTION_TRANSLATE_TABLE in driver.
11829 * opts.c (common_handle_option): Don't handle OPT_fhelp,
11830 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11832 2010-09-22 Richard Guenther <rguenther@suse.de>
11834 * tree-inline.c (optimize_inline_calls): Schedule cleanups
11835 only if we inlined something. Block compaction and conditional
11836 folding are done by cfg cleanup. Schedule update-address-taken.
11837 (tree_function_versioning): Remove redundant call to number_blocks.
11838 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11839 folding is done by cfg cleanup.
11840 * passes.c (init_optimization_passes): Remove update-address-taken
11841 pass after IPA inlining.
11843 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11845 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
11846 to update conditions. Fix reg_mode[] check.
11848 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
11850 * config/picochip/picochip.md (movhicc): Use expand to check whether
11851 movhicc is available and split it after reload.
11853 2010-09-22 Richard Guenther <rguenther@suse.de>
11855 * tree-ssanames.c (release_dead_ssa_names): Do not remove
11857 * passes.c (init_optimization_passes): Remove early CFG cleanup.
11858 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
11859 (pass_cleanup_cfg): Likewise.
11860 (execute_fixup_cfg): Cleanup.
11861 * tree-pass.h (pass_cleanup_cfg): Remove.
11863 2010-09-22 Martin Jambor <mjambor@suse.cz>
11865 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
11866 builtins if it is true.
11867 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
11870 2010-09-22 Martin Jambor <mjambor@suse.cz>
11872 * tree-sra.c (struct access): New field grp_no_warning.
11873 (create_access_replacement): Set TREE_NO_WARNING according to
11875 (create_artificial_child_access): Use build_ref_for_model and set
11876 grp_no_warning if build_user_friendly_ref_for_offset fails.
11877 (propagate_subaccesses_across_link): Likewise.
11879 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
11882 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
11885 2010-09-22 Tristan Gingold <gingold@adacore.com>
11887 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
11889 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
11891 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
11892 * config/i386/i386.c (decide_alg): Update for rename.
11894 2010-09-22 Jakub Jelinek <jakub@redhat.com>
11896 PR rtl-optimization/45739
11897 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
11898 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
11900 2010-09-21 Anatoly Sokolov <aesok@post.ru>
11902 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
11903 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
11905 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
11906 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11908 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11911 * c-parser.c (c_parser_objc_method_definition): Check the return
11912 value of objc_start_method_definition and if false is returned,
11913 parse the method definition but emit no code.
11915 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11918 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
11919 call objc_get_interface_ivars ().
11921 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
11924 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
11925 static chain-register is used for 64-bit.
11927 2010-09-21 Richard Guenther <rguenther@suse.de>
11929 * dwarf2out.c (is_cu_die): New function.
11930 (add_pubtype): Use it.
11931 (gen_subprogram_die): Likewise.
11932 (gen_struct_or_union_type_die): Likewise.
11933 (dwarf2out_finish): Likewise.
11934 (comp_unit_die): Rename to ...
11935 (single_comp_unit_die): ... this.
11936 (comp_unit_die): New function lazily constructing and
11937 returning single_comp_unit_die.
11938 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
11939 base_type_die, subrange_type_die, modified_type_die,
11940 lower_bound_default, add_bound_info, add_prototyped_attribute,
11941 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
11942 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
11943 force_decl_die, gen_namespace_die, dwarf2out_decl,
11944 dwarf2out_start_source_file, dwarf2out_end_source_file,
11945 prune_unused_types, dwarf2out_finish): Use it.
11946 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
11947 the global list of translation-unit decls.
11948 (dwarf2out_init): Do not create single_comp_unit_die here.
11949 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
11951 2010-09-21 Richard Guenther <rguenther@suse.de>
11953 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
11956 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
11958 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
11959 (qhs_extenddi_cstr): Likewise.
11960 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
11961 them for the source operand.
11963 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
11965 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
11966 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
11967 (ix86_split_ashr): Ditto.
11968 (ix86_split_lshr): Ditto.
11970 2010-09-21 Richard Guenther <rguenther@suse.de>
11972 PR tree-optimization/45580
11973 * tree-ssa-propagate.c (substitute_and_fold): Always replace
11975 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
11976 virtuals fold the call into a regular indirect one.
11978 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
11980 PR rtl-optimization/42775
11981 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
11982 scheduling is enabled.
11984 2010-09-20 Jakub Jelinek <jakub@redhat.com>
11986 PR rtl-optimization/45728
11987 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
11988 gen_lowpart_common first and if that fails, force_reg first
11989 before calling gen_lowpart.
11991 PR middle-end/45678
11992 * cfgexpand.c (expand_one_stack_var_at): Use
11993 crtl->max_used_stack_slot_alignment as max_align, instead
11994 of maximum of that and PREFERRED_STACK_BOUNDARY.
11995 Don't call update_stack_alignment.
11997 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
11999 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
12000 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
12001 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
12002 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
12003 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
12004 (build_nonstandard_integer_type): Likewise.
12005 (build_range_type_1): New function, built from...
12006 (build_range_type): ...this. Call build_range_type_1.
12007 (build_nonshared_range_type): New function.
12008 (build_array_type_1): New function, built from...
12009 (build_array_type: ...this. Call build_array_type_1.
12010 (build_nonshared_array_type): New function.
12011 * tree.h (build_nonshared_range_type): Declare.
12012 (build_nonshared_array_type): Likewise.
12014 2010-09-20 Anatoly Sokolov <aesok@post.ru>
12016 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
12017 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12018 (arm_class_likely_spilled_p): New function.
12020 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
12022 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
12023 indirect functions.
12024 (ix86_split_ashl): Ditto.
12025 (ix86_split_ashr): Ditto.
12026 (ix86_split_lshr): Ditto.
12027 (ix86_adjust_counter): Ditto.
12029 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
12031 * c-family/c-common.h (constant_string_class): Documented with
12032 comment identical to the one already in c-common.c.
12034 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12036 * dwarf2out.c (any_cfis_emitted): New static variable.
12037 (add_fde_cfi): Set it.
12038 (dwarf2out_frame_debug): Clear it before processing,
12039 if it is set afterwards, flush any queued reg saves.
12042 * dwarf2out.c (add_accessibility_attribute): Assume
12043 DW_ACCESS_private as the default for dwarf_version > 2
12044 and DW_TAG_class_type parent.
12045 (gen_inheritance_die): Assume DW_ACCESS_public as the default
12046 for dwarf_version > 2 and parent other than DW_TAG_class_type.
12048 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12051 * arm.md (arm_movt): Only enable on machines with MOVT.
12053 2010-09-20 Jie Zhang <jie@codesourcery.com>
12055 * config/arm/arm.c (arm_address_offset_is_imm): New.
12056 (arm_early_store_addr_dep): New.
12057 (arm_early_load_addr_dep): New.
12058 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
12059 (arm_early_load_addr_dep): Declare.
12060 (arm_address_offset_is_imm): Declare.
12061 * config/arm/cortex-m4.md: New file.
12062 * config/arm/cortex-m4-fpu.md: New file.
12063 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
12064 (attr generic_sched): Exclude cortexm4.
12065 (attr generic_vfp): Exclude cortexm4.
12067 2010-09-20 Richard Guenther <rguenther@suse.de>
12069 PR middle-end/45704
12070 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
12072 2010-09-20 Jan Hubicka <jh@suse.cz>
12074 PR tree-optimize/45605
12075 * cgraph.h (const_value_known_p): Declare.
12076 (varpool_decide_const_value_known): Remove.
12077 * tree-ssa-ccp.c (get_base_constructor): Use it.
12078 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
12079 * expr.c (string_constant): Likewise.
12080 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
12081 * ipa.c (ipa_discover_readonly_nonaddressable_var,
12082 function_and_variable_visibility): Likewise.
12083 * gimplify.c (gimplify_call_expr): Likewise.
12084 * gimple-fold.c (get_symbol_constant_value): Likewise.
12085 * varpool.c (varpool_decide_const_value_known): Replace by...
12086 (const_value_known_p): ... this one; handle other kinds of DECLs
12087 too and work for automatic vars.
12088 (varpool_finalize_decl): Use const_value_known_p.
12090 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12093 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
12095 2010-09-20 Richard Guenther <rguenther@suse.de>
12097 PR tree-optimization/45705
12098 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
12100 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12102 PR rtl-optimization/45695
12103 * combine.c (try_combine): When splitting a two set pattern,
12104 make sure the pattern which will be put into i2 doesn't use REGs
12105 or MEMs set by insns in between i2 and i3.
12107 2010-09-19 Jan Hubicka <jh@suse.cz>
12110 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
12111 processing same node twice.
12113 2010-09-19 Anatoly Sokolov <aesok@post.ru>
12115 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
12116 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12117 (bfin_class_likely_spilled_p): New function
12119 2010-09-19 Ira Rosen <irar@il.ibm.com>
12121 PR tree-optimization/45714
12122 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
12123 created in vectorizable_call instead of the original statement in
12126 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
12128 * config/i386/i386-protos.h (split_double_mode): New prototype.
12129 (split_di, split_ti): Remove prototypes.
12130 * config/i386/i386.c (split_double_mode): New function.
12131 (split_di, split_ti): Remove.
12132 (ix86_expand_branch): Use split_double_mode.
12133 (ix86_split_to_parts): Ditto.
12134 (ix86_split_ashl): Ditto.
12135 (ix86_split_ashr): Ditto.
12136 (ix86_split_lshr): Ditto.
12137 (ix86_force_to_memory): Ditto.
12138 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
12140 2010-09-18 Jan Hubicka <jh@suse.cz>
12142 PR tree-optimization/45453
12143 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
12144 virtual functions are reachable.
12145 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
12146 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
12147 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
12148 when modifying function.
12150 2010-09-18 Jan Hubicka <jh@suse.cz>
12152 PR tree-optimization/45605
12153 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
12154 * gimple-fold.c (static_object_in_other_unit_p): New function.
12155 (canonicalize_constructor_val): Use it.
12156 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
12158 (gimple_fold_obj_type_ref_known_binfo): Use
12159 static_object_in_other_unit_p.
12161 2010-09-18 Richard Guenther <rguenther@suse.de>
12163 PR tree-optimization/45709
12164 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
12165 insertions until after all PHI nodes of the block are processed.
12167 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
12169 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
12171 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
12173 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
12175 2010-09-18 Richard Guenther <rguenther@suse.de>
12177 PR tree-optimization/45709
12178 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
12180 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12182 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
12183 (dot_deps_stmt): Same.
12184 * graphite-poly.c (dot_lst): Same.
12185 * graphite-scop-detection.c (dot_all_scops): Same.
12188 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12191 2009-12-16 Ben Elliston <bje@au.ibm.com>
12193 * tree-data-ref.c (dot_rdg_1): Added back.
12194 (dot_rdg): Same. Added "#if 0" around system call.
12196 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12197 Richard Henderson <rth@redhat.com>
12199 * config/i386/i386.c (initial_ix86_tune_features): Add
12200 X86_TUNE_PAD_SHORT_FUNCTION.
12201 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
12202 (ix86_count_insn): New.
12203 (ix86_pad_short_function): Likewise.
12204 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
12206 * config/i386/i386.h (ix86_tune_indices): Add
12207 X86_TUNE_PAD_SHORT_FUNCTION.
12208 (TARGET_PAD_SHORT_FUNCTION): New.
12210 * config/i386/i386.md (UNSPEC_NOPS): New.
12213 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12215 PR middle-end/45234
12216 * calls.c (expand_call): Make sure that all variable sized
12217 adjustments are multiple of preferred stack boundary after
12220 2010-09-17 DJ Delorie <dj@redhat.com>
12222 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
12223 passed an invalid value, print an error instead of ICEing.
12224 (valid_psw_flag): New.
12225 (rx_expand_builtin): Call it for setpsw/clrpsw.
12226 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
12228 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
12229 (bitclr_in_memory): Likewise.
12230 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
12232 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12234 PR middle-end/45678
12235 * cfgexpand.c (update_stack_alignment): New.
12236 (get_decl_align_unit): Use it.
12237 (expand_one_stack_var_at): Call update_stack_alignment.
12239 2010-09-17 Richard Guenther <rguenther@suse.de>
12241 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
12242 Properly copy the read string.
12244 2010-09-17 Joseph Myers <joseph@codesourcery.com>
12246 * doc/options.texi (Variable): Document.
12247 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
12248 generate target_flags declarations explicitly. Don't define
12249 VarExists variables for the driver.
12250 * common.opt (target_flags): New Variable record.
12251 (flag_dump_unnumbered, flag_dump_unnumbered_links,
12252 flag_var_tracking, flag_var_tracking_assignments,
12253 flag_var_tracking_assignments_toggle): Don't mark variables with
12255 * config/i386/i386.c (ix86_isa_flags): Don't define here.
12256 * config/i386/i386.opt (ix86_isa_flags): Define here.
12257 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
12258 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
12260 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
12261 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
12262 Only define for generator programs.
12263 * rtlanal.c (target_flags): Remove.
12264 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
12265 flag_var_tracking_assignments_toggle): Remove.
12267 2010-09-17 Michael Matz <matz@suse.de>
12269 PR tree-optimization/43432
12270 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
12271 Accept backwards consecutive accesses.
12272 (vect_create_data_ref_ptr): If step is negative generate
12274 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
12275 (perm_mask_for_reverse, reverse_vec_elements): New functions.
12276 (vectorizable_load): Handle loads with negative steps when easily
12279 2010-09-03 Jan Hubicka <jh@suse.cz>
12281 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
12283 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
12285 * config/v850/v850.c (v850_function_value_regno_p): Make static.
12286 Adjust comments. Declare.
12287 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12288 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
12290 2010-09-17 Richard Guenther <rguenther@suse.de>
12292 * common.opt (combine): Remove.
12293 * gcc.c (default_compilers): Remove specs testing combine.
12294 The C compilers no longer can combine.
12295 (option_map): Remove -combine.
12296 (display_help): Remove -combine.
12297 (driver_handle_option): Remove OPT_combine handling.
12298 (compile_input_file_p): Remove.
12299 (do_spec): Remove code concerning combine.
12301 * doc/invoke.texi: Remove traces of -combine.
12302 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
12304 2010-09-17 Richard Guenther <rguenther@suse.de>
12306 PR middle-end/45678
12307 * builtins.c (fold_builtin_memory_op): Always properly adjust
12308 alignment of memory accesses.
12310 2010-09-16 Jan Hubicka <jh@suse.cz>
12312 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
12315 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
12317 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
12319 * config/i386/i386.c (predict_jump): Add prototype.
12320 (flag_opts): Add -m8bit-idiv.
12321 (ix86_split_idivmod): New.
12323 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
12324 Add 2 splitters for SI/DI mode divide.
12325 (divmod<mode>4_1): New pattern.
12326 (udivmod<mode>4_1): Likewise.
12327 (testdi_ccno_1): Likewise.
12329 * config/i386/i386.opt (m8bit-idiv): New.
12331 * doc/invoke.texi: Document -m8bit-idiv.
12333 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
12336 * config/i386/i386.c (min_insn_size): Moved out of the
12337 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
12339 2010-09-16 Jan Hubicka <jh@suse.cz>
12341 * lto-cgraph.c (lto_output_node): Fix handling of clones.
12342 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
12343 unreachable clones with reachable clones.
12344 * tree-inline.c (copy_bb): Fix sanity checking when producing
12347 2010-09-16 Anatoly Sokolov <aesok@post.ru>
12349 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
12350 (TARGET_MEMORY_MOVE_COST): Define.
12351 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
12353 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
12355 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
12356 maybe_tidy_empty_bb.
12359 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
12360 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12362 2010-09-16 Joseph Myers <joseph@codesourcery.com>
12364 * target.def (target_option.optimization): New hook.
12365 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
12366 TARGET_OPTION_OPTIMIZATION hook.
12367 * doc/tm.texi: Regenerate.
12368 * hooks.c (hook_void_int_int): New.
12369 * hooks.h (hook_void_int_int): Declare.
12370 * opts.c: Don't include tm_p.h.
12371 (decode_options): Use targetm.target_option.optimization instead
12372 of OPTIMIZATION_OPTIONS.
12373 * system.h (OPTIMIZATION_OPTIONS): Poison.
12374 * config/arm/arm-protos.h (arm_optimization_options): Remove.
12375 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
12376 (arm_optimization_options): Rename to arm_option_optimization.
12378 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
12379 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
12380 (cris_option_optimization): New.
12381 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
12382 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
12383 (crx_option_optimization): New.
12384 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
12385 * config/frv/frv-protos.h (frv_optimization_options): Remove.
12386 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
12387 (frv_optimization_options): Rename to frv_option_optimization.
12389 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
12390 * config/h8300/h8300.c (h8300_option_optimization): New.
12391 (TARGET_OPTION_OPTIMIZATION): Define.
12392 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
12393 * config/i386/i386-protos.h (optimization_options): Remove.
12394 * config/i386/i386.c (optimization_options): Rename to
12395 ix86_option_optimization. Make static.
12396 (TARGET_OPTION_OPTIMIZATION): Define.
12397 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
12398 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
12399 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
12400 (ia64_optimization_options): Rename to ia64_option_optimization.
12401 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
12402 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
12403 commented-out definition.
12404 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
12405 instead of OPTIMIZATION_OPTIONS.
12406 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
12407 (m32r_option_optimization): New.
12408 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
12409 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
12411 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
12412 (mcore_option_optimization): New.
12413 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
12414 * config/mep/mep-protos.h (mep_optimization_options): Remove.
12415 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
12416 (mep_optimization_options): Rename to mep_option_optimization.
12417 Make static. Take unused level and size parameters.
12418 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
12419 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
12420 (mmix_option_optimization): New.
12421 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
12422 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
12423 (pdp11_option_optimization): New.
12424 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
12425 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
12426 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
12427 (optimization_options): Rename to rs6000_option_optimization.
12429 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
12430 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
12431 * config/rx/rx.c (rx_set_optimization_options): Rename to
12432 rx_option_optimization. Make static. Take unused level and size
12434 (TARGET_OPTION_OPTIMIZATION): Define.
12435 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
12436 * config/s390/s390-protos.h (optimization_options): Remove.
12437 * config/s390/s390.c (optimization_options): Rename to
12438 s390_option_optimization. Make static. Don't mark size parameter
12440 (TARGET_OPTION_OPTIMIZATION): Define.
12441 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
12442 * config/sh/sh-protos.h (sh_optimization_options): Remove.
12443 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
12444 (sh_optimization_options): Rename to sh_option_optimization. Make
12445 static. Don't mark parameters unused.
12446 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
12447 * config/spu/spu-protos.h (spu_optimization_options): Remove.
12448 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
12449 (spu_optimization_options): Rename to spu_option_optimization.
12451 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
12452 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
12453 (v850_option_optimization): New.
12454 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
12455 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
12456 (xtensa_option_optimization): New.
12457 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
12459 2010-09-16 Joseph Myers <joseph@codesourcery.com>
12461 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
12462 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
12463 * doc/tm.texi: Regenerate.
12464 * system.h (OVERRIDE_OPTIONS): Poison.
12465 * target.def (override): Default to hook_void_void.
12466 * targhooks.c (default_target_option_override): Remove.
12467 * genmodes.c, machmode.def: Update comments mentioning
12469 * config/alpha/alpha-modes.def: Update comment mentioning
12470 alpha_override_options.
12471 * config/alpha/alpha-protos.h (override_options): Remove.
12472 * config/alpha/alpha.c (override_options): Rename to
12473 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
12474 (TARGET_OPTION_OVERRIDE): Define.
12475 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
12476 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
12477 of OVERRIDE_OPTIONS.
12478 * config/arc/arc-protos.h (arc_init): Remove.
12479 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
12480 (arc_init): Rename to arc_option_override. Make static.
12481 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
12482 (OVERRIDE_OPTIONS): Remove.
12483 * config/arm/arm-protos.h (arm_override_options): Remove.
12484 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
12485 (arm_override_options): Rename to arm_option_override. Make
12486 static. Call SUBTARGET_OVERRIDE_OPTIONS.
12487 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
12488 * config/arm/arm.md: Update comment referring to arm_override_options.
12489 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12490 instead of OVERRIDE_OPTIONS.
12491 * config/avr/avr-protos.h (avr_override_options): Remove.
12492 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
12493 (avr_override_options): Rename to avr_option_override. Make static.
12494 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
12495 * config/bfin/bfin-protos.h (override_options): Remove (twice).
12496 * config/bfin/bfin.c (override_options): Rename to
12497 bfin_option_override. Make static.
12498 (TARGET_OPTION_OVERRIDE): Define.
12499 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
12500 * config/cris/cris-protos.h (cris_override_options): Remove.
12501 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
12502 (cris_override_options): Rename to cris_option_override. Make static.
12503 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
12504 * config/frv/frv-protos.h (frv_override_options): Remove.
12505 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
12506 (frv_override_options): Rename to frv_option_override. Make static.
12507 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
12508 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
12509 * config/h8300/h8300.c (h8300_init_once): Rename to
12510 h8300_option_override. Make static.
12511 (TARGET_OPTION_OVERRIDE): Define.
12512 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
12513 * config/i386/i386-protos.h (override_options): Remove.
12514 * config/i386/i386.c (override_options): Rename to
12515 ix86_option_override_internal. Make static. Comments referring
12516 to this function and callers changed.
12517 (ix86_option_override): New.
12518 (TARGET_OPTION_OVERRIDE): Define.
12519 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
12520 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
12521 * config/ia64/ia64.c (ia64_file_start): Update comment referring
12522 to ia64_override_options.
12523 * config/iq2000/iq2000-protos.h (override_options): Remove.
12524 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
12525 (override_options): Rename to iq2000_option_override. Make static.
12526 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
12527 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
12528 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
12529 (lm32_override_options): Rename to lm32_option_override. Make static.
12530 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
12531 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
12532 (m32r_option_override): New.
12533 (m32r_init): Update comment.
12534 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
12535 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
12536 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
12537 (m68hc11_override_options): Rename to m68hc11_option_override.
12538 Make static. Return void.
12539 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
12540 * config/m68k/m68k-protos.h (override_options): Remove.
12541 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
12542 (override_options): Rename to m68k_option_override. Make static.
12543 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
12544 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
12545 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
12546 (mcore_override_options): Rename to mcore_option_override. Make
12548 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
12549 * config/mep/mep-protos.h (mep_override_options): Remove.
12550 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
12551 (mep_override_options): Rename to mep_option_override. Make static.
12552 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
12553 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
12554 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
12555 (mmix_override_options): Rename to mmix_option_override. Make static.
12556 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
12557 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
12558 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
12559 (mn10300_override_options): Rename to mn10300_option_override.
12561 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
12562 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
12563 * config/moxie/moxie.c (moxie_override_options): Rename to
12564 moxie_option_override. Make static.
12565 (TARGET_OPTION_OVERRIDE): Define.
12566 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
12567 * config/picochip/picochip-protos.h (picochip_override_options):
12568 Remove. Update comment referring to picochip_override_options.
12569 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
12570 (picochip_override_options): Rename to picochip_option_override.
12571 Make static. Update comment and definition of
12572 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
12573 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
12574 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12575 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12576 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12577 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12578 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12579 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
12580 instead of OVERRIDE_OPTIONS.
12581 * config/rs6000/rs6000-modes.def: Update comment referring to
12582 rs6000_override_options.
12583 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
12584 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
12585 (rs6000_override_options): Rename to
12586 rs6000_option_override_internal. Make static. Commented
12587 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
12588 (rs6000_option_override): New.
12589 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
12590 instead of OVERRIDE_OPTIONS.
12591 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12592 * config/s390/s390-protos.h (override_options): Remove.
12593 * config/s390/s390.c (override_options): Rename to
12594 s390_option_override. Make static.
12595 (TARGET_OPTION_OVERRIDE): Define.
12596 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
12597 * config/score/score-protos.h (score_override_options): Remove.
12598 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
12599 (score_override_options): Rename to score_option_override. Make
12601 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
12602 Update comment referring to override_options.
12603 * config/score/score3.c (score3_override_options): Rename to
12604 score3_option_override.
12605 * config/score/score3.h (score3_override_options): Rename to
12606 score3_option_override.
12607 * config/score/score7.c (score7_override_options): Rename to
12608 score7_option_override.
12609 * config/score/score7.h (score7_override_options): Rename to
12610 score7_option_override.
12611 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
12612 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
12613 (sparc_override_options): Rename to sparc_option_override. Make
12614 static. Call SUBTARGET_OVERRIDE_OPTIONS.
12615 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
12616 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12617 instead of OVERRIDE_OPTIONS.
12618 * config/spu/spu-protos.h (spu_override_options): Remove.
12619 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
12620 (spu_override_options): Rename to spu_option_override. Make
12622 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
12623 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
12625 * config/vax/vax-protos.h (override_options): Remove.
12626 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
12627 (override_options): Rename to vax_option_override. Make static.
12628 Call SUBTARGET_OVERRIDE_OPTIONS.
12629 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
12630 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
12631 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
12632 * config/xtensa/xtensa-protos.h (override_options): Remove.
12633 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
12634 (override_options): Rename to xtensa_option_override. Make static.
12635 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
12637 2010-09-16 Richard Guenther <rguenther@suse.de>
12639 PR tree-optimization/45623
12640 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
12641 (get_constraint_for_component_ref): If computing a constraint
12642 for the rhs handle type punning through unions.
12643 (get_constraint_for_address_of): Adjust.
12644 (get_constraint_for_1): Likewise.
12645 (get_constraint_for): Likewise.
12646 (get_constraint_for_rhs): New function.
12647 (do_structure_copy): Adjust.
12648 (make_constraint_to): Likewise.
12649 (handle_const_call): Likewise.
12650 (find_func_aliases): Likewise.
12651 (process_ipa_clobber): Likewise.
12652 (create_variable_info_for): Likewise.
12654 2010-09-16 Ira Rosen <irar@il.ibm.com>
12656 * tree-vectorizer.c: Fix documentation.
12657 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
12658 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
12659 is_pattern_stmt_p, is_loop_header_bb_p,
12660 stmt_vinfo_set_inside_of_loop_cost,
12661 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
12662 known_alignment_for_access_p): Likewise.
12663 * tree-vect-loop.c: Fix documentation.
12664 (vect_get_cost): Start function name from new line.
12665 * tree-vect-data-refs.c: Fix documentation.
12666 * tree-vect_stmts.c: Likewise.
12667 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
12668 (vectorizable_store): Free vec_oprnds if allocated.
12669 (vectorizable_condition): Initialize several variables to avoid
12671 * tree-vect-slp.c: Fix documentation.
12673 2010-09-16 Richard Guenther <rguenther@suse.de>
12675 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
12676 is TS_TRANSLATION_UNIT_DECL.
12677 (initialize_tree_contains_struct): Adjust.
12678 (all_translation_units): New global vector.
12679 (build_translation_unit_decl): New function.
12680 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
12681 (struct tree_translation_unit_decl): New.
12682 (all_translation_units): Declare.
12683 (union tree_node): Add translation_unit_decl member.
12684 (build_translation_unit_decl): Declare.
12685 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
12686 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
12688 (pack_value_fields): Call it.
12689 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
12690 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
12691 (lto_output_tree_pointers): Call it.
12692 * lto-streamer-in.c (lto_input_tree_ref): Handle references
12693 to TRANSLATION_UNIT_DECL.
12694 (unpack_ts_translation_unit_decl_value_fields): New function.
12695 (unpack_value_fields): Call it.
12696 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
12697 (lto_input_tree_pointers): Call it.
12698 * lto-streamer.c (check_handled_ts_structures): Adjust.
12699 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
12700 * c-decl.c (all_translation_units): Remove.
12701 (pop_scope): Use build_translation_unit_decl.
12702 (collect_all_refs): Adjust.
12703 (for_each_global_decl): Likewise.
12704 (c_write_global_declarations): Likewise.
12706 2010-09-16 Jakub Jelinek <jakub@redhat.com>
12709 * fold-const.c (fold_checksum_tree): Change slot from const void **
12710 to void **, use CONST_CAST_TREE to store into *slot.
12712 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
12714 * config/i386/i386.md: Remove unneeded empty conditions and
12715 preparation statements from expanders.
12716 * config/i386/mmx.md: Ditto.
12717 * config/i386/sse.md: Ditto.
12719 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
12721 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
12723 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
12725 PR rtl-optimization/45593
12726 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
12727 insns that were in delay slots as stand-alone insns.
12729 2010-09-15 Ian Lance Taylor <iant@google.com>
12731 * incpath.c (remove_duplicates): If name is not a directory, issue
12732 a warning rather than an error.
12734 2010-09-15 Martin Jambor <mjambor@suse.cz>
12736 PR middle-end/45644
12737 * tree-sra.c (create_access): Check for bit-fields directly.
12739 2010-09-15 Jakub Jelinek <jakub@redhat.com>
12741 PR tree-optimization/45633
12742 * tree-cfg.c (verify_gimple_assign_binary): Allow
12743 MINUS_EXPR with lhs and rhs1 pointer vector and
12744 rhs2 sizetype vector.
12745 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
12746 or vector pointer use TER to optimize pointer subtraction.
12748 2010-09-15 Jie Zhang <jie@codesourcery.com>
12750 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
12753 2010-09-15 Ian Lance Taylor <iant@google.com>
12755 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12757 2010-09-15 Ian Lance Taylor <iant@google.com>
12759 * function.c (get_arg_pointer_save_area): Set
12760 arg_pointer_save_area_init to true.
12762 2010-09-15 Martin Jambor <mjambor@suse.cz>
12764 * tree-sra.c (generate_subtree_copies): Updated comment.
12765 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12766 obtained from the statement iterator instead.
12767 (load_assign_lhs_subreplacements): Removed parameters lhs and
12768 right_offset, which is obtained from top_racc instead. Parameter lacc
12769 is now expected to be the root of the processed tree rather than root's
12770 first child. Updated all callers.
12772 2010-09-15 Joseph Myers <joseph@codesourcery.com>
12774 * config/pdp11/pdp11.c (register_move_cost): Rename to
12775 pdp11_register_move_cost.
12776 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12777 pdp11_register_move_cost.
12778 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12779 pdp11_register_move_cost instead of register_move_cost.
12781 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
12783 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12784 pattern for vmovn. Expansion in case of non
12785 -mvectorize-with-neon-quad.
12786 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12787 non- -mvectorize-with-neon-quad case.
12788 (move_lo_quad_<mode>): New expansion to vmov into low part.
12789 (move_hi_quad_<mode>): New expansion to vmov into high part.
12790 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12791 (move_lo_quad_v4sf): Likewise.
12792 (move_lo_quad_v8hi): Likewise.
12793 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12795 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12797 * config/arm/iterators.md (ANY128): New mode iterator.
12798 (V_narrow_pack): New mode attribute.
12799 (V_HALF): Add attribute.
12800 (V_DOUBLE): Add attribute.
12801 (V_mode_nunits): Add attribute.
12803 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
12805 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12806 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12808 2010-09-15 Olivier Hainque <hainque@adacore.com>
12809 Jose Ruiz <ruiz@adacore.com>
12811 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12812 * config/alpha/osf5-unwind.h: New file.
12814 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12817 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12818 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12819 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12821 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12823 * c-lang.h (struct lang_type): Add variable_size GTY option.
12825 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12828 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12830 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12832 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12833 result isn't used in memory address.
12835 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12837 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12838 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12839 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12840 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12841 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12842 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12844 * target.def: Add units_per_simd_word to vectorize.
12846 * targhooks.c (default_units_per_simd_word): New.
12847 * targhooks.h (default_units_per_simd_word): Likewise.
12848 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
12849 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12850 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
12851 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12852 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12853 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12854 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12855 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12857 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
12858 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
12860 * tree-vect-stmts.c: Don't include "tm_p.h".
12861 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
12862 with targetm.vectorize.units_per_simd_word.
12864 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
12866 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
12868 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
12869 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12871 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
12872 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
12874 * doc/tm.texi: Regenerated.
12876 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12878 * tree-vect-stmts.c: Include "tm_p.h".
12880 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
12883 2010-09-14 Martin Jambor <mjambor@suse.cz>
12885 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
12886 location of generated statement. Changed all callers.
12887 (build_ref_for_model): New parameter loc which used to set location of
12888 all generated expressions. Changed all callers.
12889 (generate_subtree_copies): Likewise.
12890 (init_subtree_with_zero): Likewise.
12891 (sra_modify_expr): Set locations of all generated statements and
12892 expressions to the location the original statement.
12893 (handle_unscalarized_data_in_subtree): Likewise.
12894 (load_assign_lhs_subreplacements): Likewise.
12895 (sra_modify_constructor_assign): Likewise.
12896 (sra_modify_assign): Likewise.
12898 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
12903 * doc/install.texi (sparc*-*-*): New section.
12904 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
12906 2010-09-14 Jakub Jelinek <jakub@redhat.com>
12908 PR middle-end/45567
12909 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
12910 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
12911 (expand_builtin): Adjust caller.
12912 (expand_builtin_unop): Only use subtarget if it has the right mode.
12914 2010-09-14 Tristan Gingold <gingold@adacore.com>
12916 * configure.ac (plugins): Fix typos.
12917 * configure: Regenerate.
12919 2010-09-14 Jakub Jelinek <jakub@redhat.com>
12922 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
12923 gen_type_die for function/method return type.
12925 2010-09-14 Ira Rosen <irar@il.ibm.com>
12927 PR tree-optimization/45470
12928 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12929 can throw an exception.
12930 * tree-vect-stmts.c (vectorizable_call): Likewise.
12932 2010-09-14 DJ Delorie <dj@redhat.com>
12935 * config/mep/mep-protos.h (mep_save_register_info,
12936 mep_reinit_regs, mep_init_regs): Declare.
12938 * config/mep/mep.c: Move all target definitions to the end of the
12939 file to avoid the need for duplicate declarations.
12940 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
12941 (mep_reorg_erepeat): Remove unused variables.
12942 (mep_expand_builtin): Likewise.
12944 * config/mep/mep-pragma.c: Don't include rtl.h.
12945 (INVALID_REGNUM): New.
12946 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
12948 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
12949 Avoid enum/integer math.
12951 2010-09-13 Joseph Myers <joseph@codesourcery.com>
12954 * config/mep/t-mep (GTM_H): Add insn-constants.h.
12955 * config/mep/mep.c (mep_conditional_register_usage): Take no
12957 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
12959 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
12960 call to mep_conditional_register_usage.
12962 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
12965 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
12968 2010-09-13 Jakub Jelinek <jakub@redhat.com>
12970 PR rtl-optimization/45617
12971 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
12972 even if low N bits of X aren't known to be zero.
12974 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
12976 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
12978 * config/i386/i386.c (initial_ix86_tune_features): Add
12979 X86_TUNE_VECTORIZE_DOUBLE.
12980 (ix86_units_per_simd_word): New.
12982 * config/i386/i386.h (ix86_tune_indices): Add
12983 X86_TUNE_VECTORIZE_DOUBLE.
12984 (TARGET_VECTORIZE_DOUBLE): New.
12985 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
12987 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
12989 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
12990 (new_temp_expr_table): Allocate call_cnt vector.
12991 (free_temp_expr_table): Free it.
12992 (process_replaceable): Add call_cnt parm and set in vector.
12993 (find_replaceable_in_bb): Skip replacement if def/use span a call.
12994 (debug_ter): Dump call_cnt value, remove stderr uses.
12996 2010-09-13 Jan Hubicka <jh@suse.cz>
12998 * tree.c (build_zero_cst): New.
12999 * tree.h (build_zero_cst): Declare.
13000 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
13001 (get_base_constructor): Break out from ...
13002 (fold_const_aggregate_ref): Here; handle empty constructors.
13004 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
13006 * config/arm/arm.md: (define_attr "conds"): Update comment.
13007 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
13008 conds attribute to clob.
13009 (arm_sync_compare_and_swapsi): Likewise.
13010 (arm_sync_compare_and_swap<mode>): Likewise.
13011 (arm_sync_lock_test_and_setsi): Likewise.
13012 (arm_sync_lock_test_and_set<mode>): Likewise.
13013 (arm_sync_new_<sync_optab>si): Likewise.
13014 (arm_sync_new_nandsi): Likewise.
13015 (arm_sync_new_<sync_optab><mode>): Likewise.
13016 (arm_sync_new_nand<mode>): Likewise.
13017 (arm_sync_old_<sync_optab>si): Likewise.
13018 (arm_sync_old_nandsi): Likewise.
13019 (arm_sync_old_<sync_optab><mode>): Likewise.
13020 (arm_sync_old_nand<mode>): Likewise.
13022 2010-09-13 Olivier Hainque <hainque@adacore.com>
13024 * fwprop.c (forward_propagate_and_simplify): Only attach a
13025 REG_EQUAL note to an insn if the destination is a register.
13026 * gcse.c (try_replace_reg): Likewise.
13028 2010-09-13 Richard Guenther <rguenther@suse.de>
13030 PR tree-optimization/45611
13031 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
13032 (copy_ref_info): Likewise.
13034 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
13039 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13040 types of MEM_REF pointer types to the same type.
13042 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
13044 PR rtl-optimization/41087
13045 * ifcvt.c (noce_get_condition): Don't allow conditions with
13048 2010-09-12 Anatoly Sokolov <aesok@post.ru>
13050 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13051 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
13052 * config/frv/frv.c (frv_register_move_cost): Make static. Change
13053 arguments type to reg_class_t. Add mode argument.
13054 (frv_memory_move_cost): New.
13055 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
13057 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
13059 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
13060 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
13062 2010-09-10 Jan Hubicka <jh@suse.cz>
13064 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
13066 2010-09-10 Richard Guenther <rguenther@suse.de>
13068 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
13069 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
13070 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
13071 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
13072 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
13074 2010-09-10 Richard Guenther <rguenther@suse.de>
13076 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
13077 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
13078 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
13079 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
13081 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
13083 PR middle-end/45634
13084 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
13085 of string folding is of integral type.
13087 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
13089 * doc/invoke.texi (-x): Fix typo.
13091 2010-09-10 Richard Guenther <rguenther@suse.de>
13094 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
13095 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13096 Output DECL_DEBUG_EXPR.
13097 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13098 Input DECL_DEBUG_EXPR.
13100 2010-09-10 Richard Guenther <rguenther@suse.de>
13102 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
13103 (build_index_type): Implement in terms of build_range_type.
13104 (build_range_type): Do not allow NULL_TREE type, improve
13105 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
13107 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
13108 create a distinct copy of the type.
13110 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
13112 * configure: Regenerated.
13113 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
13115 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13117 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
13118 * config/arm/cortex-a9-neon.md: New and partially generated.
13119 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
13121 2010-09-10 Richard Guenther <rguenther@suse.de>
13123 * tree.h (build_index_2_type): Remove.
13124 * tree.c (build_index_2_type): Remove.
13126 2010-09-10 Jakub Jelinek <jakub@redhat.com>
13129 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
13130 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
13131 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
13133 2010-09-10 Martin Jambor <mjambor@suse.cz>
13135 PR tree-optimization/44972
13136 * tree-sra.c: Include toplev.h.
13137 (build_ref_for_offset): Entirely reimplemented.
13138 (build_ref_for_model): New function.
13139 (build_user_friendly_ref_for_offset): New function.
13140 (analyze_access_subtree): Removed build_ref_for_offset check.
13141 (propagate_subaccesses_across_link): Likewise.
13142 (create_artificial_child_access): Use
13143 build_user_friendly_ref_for_offset.
13144 (propagate_subaccesses_across_link): Likewise.
13145 (ref_expr_for_all_replacements_p): Removed.
13146 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
13147 (sra_modify_expr): Use build_ref_for_model.
13148 (load_assign_lhs_subreplacements): Likewise.
13149 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
13150 checks for return values of build_ref_for_offset.
13151 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
13152 build_ref_for_offset.
13153 * ipa-prop.h: Include gimple.h
13154 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
13155 (ipa_analyze_indirect_call_uses): Update comment.
13156 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
13157 (IPA_PROP_H): Likewise.
13159 2010-09-10 Martin Jambor <mjambor@suse.cz>
13161 PR tree-optimization/44972
13162 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
13163 calling build_ref_for_offset.
13165 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13167 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
13168 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
13169 * config/arm/arm-tune.md: Regenerate.
13170 * doc/invoke.texi (ARM Options): Document it.
13172 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
13174 * config/i386/i386.c: Include sched-int.h.
13175 (TARGET_SCHED_DISPATCH): Defined.
13176 (TARGET_SCHED_DISPATCH_DO): Defined.
13177 (DISPATCH_WINDOW_SIZE): Defined.
13178 (MAX_DISPATCH_WINDOWS): Defined.
13179 (MAX_INSN): Defined.
13180 (MAX_IMM): Defined.
13181 (MAX_IMM_SIZE): Defined.
13182 (MAX_IMM_32): Defined.
13183 (MAX_IMM_64): Defined.
13184 (MAX_LOAD): Defined.
13185 (MAX_STORE): Defined.
13187 (dispatch_group): New.
13188 (num_allowable_groups): New.
13190 (sched_insn_info_s): New.
13191 (dispatch_windows_s): New.
13193 (dispatch_window_list): New.
13194 (dispatch_window_list1): New.
13195 (get_mem_group): New.
13197 (dispatch_violation): New.
13199 (is_prefetch): New.
13200 (init_window): New.
13201 (allocate_window): New.
13202 (init_dispatch_sched): New.
13203 (is_end_basic_block): New.
13204 (process_end_window): New.
13205 (allocate_next_window): New.
13206 (find_constant_1): New.
13207 (find_constant): New.
13208 (get_num_immediates): New.
13209 (has_immediate): New.
13210 (get_insn_path): New.
13211 (get_insn_group): New.
13212 (count_num_restricted): New.
13213 (fits_dispatch_window): New.
13214 (add_insn_window): New.
13215 (add_to_dispatch_window): New.
13216 (debug_dispatch_window_file): New.
13217 (debug_dispatch_window): New.
13218 (debug_insn_dispatch_info_file): New.
13219 (debug_ready_dispatch): New.
13220 (do_dispatch): New.
13221 (has_dispatch): New.
13222 * config/i386/i386.h (debug_ready_dispatch): Declared.
13223 (debug_dispatch_window): Declared.
13224 * config/i386/i386.opt (mdispatch-scheduler): New flag.
13225 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
13226 (TARGET_SCHED_DISPATCH_DO): New.
13227 * doc/tm.texi: Regererated.
13228 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
13229 ready_remove_first_dispatch
13230 (schedule_block): Call targetm.sched.dispatch and
13231 targetm.sched.dispatch_do.
13232 (sched_init): Call targetm.sched.dispatch and
13233 targetm.sched.dispatch_do.
13234 (ready_remove_first_dispatch): New.
13235 (number_in_ready): New.
13236 (get_ready_element): New.
13237 * hooks.c (hook_bool_rtx_int_false): New.
13238 (hook_void_rtx_int): New.
13239 * hooks.h (hook_bool_rtx_int_false): Declared.
13240 (hook_void_rtx_int): Declared.
13241 * sched-int.h (IS_DISPATCH_ON): Defined.
13243 (DISPATCH_VIOLATION): Defined.
13244 (FITS_DISPATCH_WINDOW): Defined.
13245 (DISPATCH_INIT): Defined.
13246 (ADD_TO_DISPATCH_WINDOW): Defined.
13247 (get_ready_element): Declared.
13248 (number_in_ready): Declared.
13249 * target.def (dispatch): Defined.
13250 (dispatch_do): Defined.
13252 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13254 PR middle-end/45312
13255 * reload1.c (merge_assigned_reloads): Remove.
13256 (reload_as_needed): Don't call it.
13258 2010-09-09 Anatoly Sokolov <aesok@post.ru>
13260 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
13261 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13262 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13264 2010-09-09 Matthias Klose <doko@ubuntu.com>
13267 * configure.ac (--enable-plugin): Enhance for cross builds.
13268 * configure: Regenerate.
13270 2010-09-09 Jan Hubicka <jh@suse.cz>
13272 PR tree-optimization/45598
13273 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
13274 string folding is of integral type.
13276 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13278 * configure.ac (gnu_indirect_function): New test.
13279 * configure: Rebuilt.
13280 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
13281 * defaults.h (IFUNC_ASM_TYPE): Provide default.
13283 * doc/extend.texi (Function Attributes): Document ifunc.
13284 * varasm.c (do_assemble_alias): Deal with ifuncs too.
13286 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13288 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
13289 epilogue instruction move.
13291 2010-09-09 Jan Hubicka <jh@suse.cz>
13293 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
13294 command line to allow more partitions than input files.
13296 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13298 PR middle-end/44554
13299 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
13301 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13303 PR middle-end/40386
13304 * ira.c (pseudo_for_reload_consideration_p): Don't use
13305 flag_ira_share_spill_slots.
13307 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13309 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
13310 point zero operands that fit into a single GPR.
13311 (s390_preferred_reload_class): Ensure we only return general-purpose
13313 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
13314 floating-point zero operands into GPRs.
13315 ("*mov<mode>_64"): Likewise.
13316 ("mov<mode>"): Likewise using lhi.
13318 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13320 * config/s390/s390.c (s390_symref_operand_p): Return false for
13321 literal pool references.
13322 (s390_check_qrst_address): Update caller.
13324 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
13326 * config/i386/predicates.md (ext_register_operand): Check that
13327 SUBREG_REG is really a register before looking for REGNO.
13328 (reg_not_xmm0_operand): Handle SUBREGs correctly.
13329 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
13331 2010-09-09 Jakub Jelinek <jakub@redhat.com>
13333 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
13334 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
13335 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
13336 * print-rtl.c (print_rtx): Likewise.
13337 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13338 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
13339 for ADDR_EXPR with non-addressable object.
13340 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
13341 (struct dw_val_struct): Add v.val_decl_ref.
13342 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
13343 Handle DW_OP_GNU_implicit_pointer.
13344 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
13345 (get_ref_die_offset_label): New function.
13346 (implicit_ptr_descriptor): New function.
13347 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
13348 (loc_descriptor): Likewise.
13349 (gen_variable_die): Put even definitions into decl_die_table.
13350 (resolve_addr_in_expr): Resolve still unresolved
13351 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
13353 (dwarf2out_finish): Call output_location_lists after outputting
13354 .debug_info and .debug_abbrev instead of before.
13356 2010-09-09 Roland McGrath <roland@redhat.com>
13358 * dwarf2out.c (DWARF_REF_SIZE): Define.
13359 (size_of_loc_descr): Use it for DW_OP_call_ref.
13361 2010-09-09 Alan Modra <amodra@gmail.com>
13363 * doc/invoke.text: Reinstate mcmodel=medium.
13364 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13365 CMODEL_MEDIUM as default.
13366 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
13367 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
13368 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
13369 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
13371 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13374 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
13375 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
13376 (builtin_longjmp): Likewise.
13377 (allocate_stack): Use hard_frame_pointer_rtx instead of
13379 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
13380 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
13381 (pa_can_eliminate): Likewise.
13382 (TARGET_INTERNAL_ARG_POINTER): Define.
13383 (TARGET_CAN_ELIMINATE): Define.
13384 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
13386 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
13387 (pa_internal_arg_pointer, pa_can_eliminate,
13388 pa_initial_elimination_offset): New.
13389 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
13390 (HARD_FRAME_POINTER_REGNUM): Set to register three.
13391 (INITIAL_FRAME_POINTER_OFFSET): Delete.
13392 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
13394 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
13395 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
13396 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
13397 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
13398 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
13399 new soft frame pointer.
13400 * config/pa/pa64-regs.h: Likewise.
13402 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
13404 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
13405 numerical constant.
13406 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
13408 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
13411 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
13413 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
13417 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13418 qualifiers in otherwise equal MEM_REF pointer types.
13419 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
13420 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
13422 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13425 * config/arm/arm.md (bswapsi2): Handle condition correctly
13426 for armv6 and optimize_size.
13428 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13431 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
13433 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
13435 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
13436 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
13437 ix86_expand_strlen, legitimate_pic_address_disp_p,
13438 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
13439 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
13440 ix86_check_movabs, ix86_secondary_memory_needed): Change function
13442 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
13443 return_in_memory_ms_64, ix86_check_movabs,
13444 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
13445 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
13446 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
13447 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
13448 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
13449 ix86_secondary_memory_needed): Change to bool. Return
13450 "true" and "false" values.
13451 * config/i386/i386.md: Return "true" and "false" values.
13453 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13455 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13456 run_expensive_tests.
13458 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13460 * toplev.c (output_stack_usage): Use lbasename instead of basename.
13462 2010-09-08 Martin Jambor <mjambor@suse.cz>
13465 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
13468 2010-09-08 Richard Guenther <rguenther@suse.de>
13470 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
13472 (iterative_hash_gimple_type): Likewise.
13473 (gimple_type_hash): Likewise.
13474 (gimple_register_type): Likewise.
13475 (print_gimple_types_stats): Likewise.
13476 (free_gimple_type_tables): Likewise.
13478 2010-09-08 Michael Matz <matz@suse.de>
13480 PR tree-optimization/43430
13481 * tree-vect-stmts.c (vectorizable_condition): Support multiple
13482 copies for conditional statements if it's not part of a reduction.
13484 2010-09-08 Michael Matz <matz@suse.de>
13486 PR tree-optimization/33244
13487 * tree-ssa-sink.c (statement_sink_location): Don't sink into
13488 empty loop latches.
13490 2010-09-08 Richard Guenther <rguenther@suse.de>
13492 PR tree-optimization/45578
13493 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
13494 Be more careful when transfering alignment information to
13495 the new induction variable.
13496 (copy_ref_info): Likewise.
13498 2010-09-08 Richard Guenther <rguenther@suse.de>
13500 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
13501 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
13503 2010-09-08 Arnaud Charlet <charlet@adacore.com>
13505 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
13506 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
13508 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13511 * doc/md.texi: Fixed modes on several standard pattern names.
13513 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
13515 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
13516 (ashl<mode>3): ...this.
13517 (loongson_psra<V_suffix>): Rename to...
13518 (ashr<mode>3): ...this.
13519 (loongson_psrl<V_suffix>): Rename to...
13520 (lshr<mode>3): ...this.
13521 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
13522 (CODE_FOR_loongson_psllw): Define.
13523 (CODE_FOR_loongson_psrlh): Define.
13524 (CODE_FOR_loongson_psrlw): Define.
13525 (CODE_FOR_loongson_psrah): Define.
13526 (CODE_FOR_loongson_psraw): Define.
13528 2010-09-07 Richard Henderson <rth@redhat.com>
13530 * tree-vect-data-refs.c: Include tm_p.h.
13531 * Makefile.in (tree-vect-data-refs.o): Update deps.
13532 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
13533 Move delarations outside #ifdef RTX_CODE.
13535 2010-09-07 Richard Henderson <rth@redhat.com>
13537 * final.c (rest_of_handle_final): Unconditionally do
13538 output_function_exception_table before assemble_end_function.
13540 2010-09-07 Jan Hubicka <jh@suse.cz>
13542 * tree-inline.c (tree_inlinable_function_p): Do not test
13543 DECL_REPLACEABLE_P.
13544 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
13545 update_callee_keys, cgraph_decide_inlining): Test function availability.
13546 * cif-code.def (OVERWRITABLE): New code.
13548 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
13549 Jack Howarth <howarth@bromo.med.uc.edu>
13554 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
13555 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
13556 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
13559 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13561 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
13562 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
13564 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13566 * config.gcc: Don't append t-android for Android targets.
13568 * config/t-android: Removed.
13570 2010-09-07 Richard Henderson <rth@redhat.com>
13572 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
13573 * doc/tm.texi.in: Add doc marker.
13574 * doc/tm.texi: Rebuild.
13575 * except.c (switch_to_exception_section): Always build.
13576 (output_one_function_exception_table): Move section switch,
13577 personality output, and label output ...
13578 (output_function_exception_table): ... here. Use the new
13581 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
13582 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
13583 TARGET_ASM_INIT_SECTIONS): New.
13584 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
13586 (TARGET_ASM_UNWIND_EMIT): Update to match.
13587 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
13589 * config/arm/arm.c (arm_asm_emit_except_personality): New.
13590 (arm_asm_init_sections): New.
13591 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
13593 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13595 * config/arm/arm.md: Remove unused variable.
13597 2010-09-07 Anatoly Sokolov <aesok@post.ru>
13599 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13600 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
13601 (m32r_memory_move_cost): New function.
13603 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13605 * config.gcc: Append t-android for Android targets.
13607 * config/t-android: New.
13609 2010-09-07 Richard Henderson <rth@redhat.com>
13611 * target.def (unwind_emit_before_insn): New hook.
13612 * doc/tm.texi.in: Add @hook marker for it.
13613 * doc/tm.texi: Rebuild.
13614 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
13616 2010-09-07 Martin Jambor <mjambor@suse.cz>
13619 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
13620 are any type attributes.
13622 2010-09-07 Jan Hubicka <jh@suse.cz>
13624 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
13625 array_ref_low_bound in string access folding.
13627 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
13630 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
13631 eh_return fixup sequence.
13633 2010-09-07 Jan Hubicka <jh@suse.cz>
13635 * gimple-fold.c (maybe_fold_reference): Verify that operand is
13636 gimple_min_invariant.
13638 2010-09-07 Richard Guenther <rguenther@suse.de>
13640 PR middle-end/45569
13641 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
13642 nor CONSTRUCTOR can trap.
13643 * tree-complex.c (update_complex_assignment): Update EH info.
13645 2010-09-07 Richard Guenther <rguenther@suse.de>
13647 PR middle-end/45569
13648 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
13649 * passes.c (execute_function_todo): Do not verify anything if
13652 2010-09-07 Richard Guenther <rguenther@suse.de>
13654 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
13656 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
13659 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
13660 New define_mode_attrs.
13661 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
13662 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
13663 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
13664 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
13665 Remove pool_range attribute.
13666 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
13667 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13668 pool_range and neg_pool_range attributes.
13669 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
13670 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
13671 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
13673 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
13675 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
13678 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
13681 * config/i386/mmx.md (*mov<mode>_internal_rex64,
13682 *mov<mode>_internal_avx, *mov<mode>_internal,
13683 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
13684 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
13686 2010-09-06 Mark Mitchell <mark@codesourcery.com>
13688 * c-typeck.c (do_warn_double_promotion): Remove.
13689 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
13692 2010-09-06 Anatoly Sokolov <aesok@post.ru>
13694 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
13695 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
13696 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
13697 argument type to reg_class_t. Change result type to bool.
13698 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13700 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
13703 * gthr-posix.h (__gthread_objc_thread_detach): Use
13704 _objc_thread_attribs when detaching a thread.
13705 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
13707 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
13710 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
13711 * configure: Regenerated.
13713 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13715 * combine.c (try_combine): Set subst_low_luid to i0.
13717 2010-09-06 Richard Guenther <rguenther@suse.de>
13719 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
13720 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
13721 (build_aligned_type): Declare.
13722 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
13723 (check_aligned_type): New function.
13724 (build_aligned_type): Likewise.
13725 * expr.c (expand_assignment): Handle misaligned stores via
13726 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
13727 (expand_expr_real_1): Likewise.
13728 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
13729 * tree-vect-stmts.c (vectorizable_store): Do not build
13730 MISALIGNED_INDIRECT_REF but initialize alignment information.
13731 (vectorizable_load): Likewise.
13732 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
13734 * cfgexpand.c (expand_debug_expr): Likewise.
13735 * dwarf2out.c (loc_list_from_tree): Likewise.
13736 * fold-const.c (maybe_lvalue_p): Likewise.
13737 (operand_equal_p): Likewise.
13738 (build_fold_addr_expr_with_type_loc): Likewise.
13739 * gimplify.c (gimplify_addr_expr): Likewise.
13740 (gimplify_expr): Likewise.
13741 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13742 (verify_gimple_assign_single): Likewise.
13743 * tree-dump.c (dequeue_and_dump): Likewise.
13744 (tree_could_trap_p): Likewise.
13745 * tree-predcom.c (ref_at_iteration): Likewise.
13746 * tree-pretty-print.c (dump_generic_node): Likewise.
13747 (op_code_prio): Likewise.
13748 (op_symbol_code): Likewise.
13749 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13750 * tree-ssa-loop-im.c (for_each_index): Likewise.
13751 (gen_lsm_tmp_name): Likewise.
13752 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13753 (find_interesting_uses_address): Likewise.
13754 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13755 * tree-ssa-operands.c (get_expr_operands): Likewise.
13756 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13757 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13758 (ao_ref_init_from_vn_reference): Likewise.
13759 * tree.c (staticp): Likewise.
13760 (build1_stat): Likewise.
13761 (reference_alias_ptr_type): Likewise.
13762 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13763 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13764 MISALIGNED_INDIRECT_REF handling.
13766 2010-09-06 Richard Guenther <rguenther@suse.de>
13768 PR tree-optimization/45534
13769 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13770 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13772 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13773 valid on the target.
13775 2010-09-06 Andreas Schwab <schwab@redhat.com>
13777 * configure.ac: Quote argument of AC_MSG_WARN.
13778 * configure: Regenerate.
13780 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
13782 * sel-sched.c (move_cond_jump): Correct arguments to
13783 maybe_tidy_empty_bb.
13784 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13786 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
13788 PR rtl-optimization/44919
13789 * sel-sched.c (move_cond_jump): Remove assert, check that
13790 the several blocks case can only happen with mutually exclusive
13791 insns instead. Rewrite the movement code to support moving through
13792 several basic blocks.
13794 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
13796 * config/i386/i386.md (iptrsize): New mode attribute.
13798 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13800 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13801 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13802 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13803 (stack_tls_protect_set_<mode>): Ditto from
13804 stack_tls_protect_set_{si,di}. Use %@ to output segment register
13805 of thread base pointer load.
13806 (stack_tls_protect_test_<mode>): Ditto from
13807 stack_tls_protect_test_{si,di}. Use %@ to output segment register
13808 of thread base pointer load.
13809 (stack_protect_set): Rewrite using indirect functions.
13810 (stack_protect_test): Ditto.
13811 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13812 (ix86_print_operand): Handle '@'.
13814 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
13816 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13819 2010-09-05 Mark Mitchell <mark@codesourcery.com>
13821 * doc/invoke.texi: Document -Wdouble-promotion.
13822 * c-typeck.c (convert_arguments): Check for implicit conversions
13823 from float to double.
13824 (do_warn_double_promotion): New function.
13825 (build_conditional_expr): Use it.
13826 (build_binary_op): Likewise.
13828 2010-09-05 Richard Guenther <rguenther@suse.de>
13830 PR tree-optimization/45535
13831 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13832 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
13834 (indirect_refs_may_alias_p): Likewise.
13836 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
13838 * config/sh/sh.c (sh_option_override): Make static.
13839 Adjust comments. Declare.
13840 (sh_function_value_regno_p): Likewise.
13841 (sh_register_move_cost): Modify the arguments, make static.
13842 Adjust comments. Declare.
13843 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
13844 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13845 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
13846 REGISTER_MOVE_COST): Delete.
13847 * config/sh/sh-protos.h (sh_override_options): Delete.
13848 (sh_register_move_cost): Delete.
13849 (sh_function_value_regno_p): Delete.
13851 2010-09-04 Anatoly Sokolov <aesok@post.ru>
13853 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
13854 m32r_function_value_regno_p): New functions.
13855 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13856 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
13857 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
13858 FUNCTION_VALUE_REGNO_P): Remove.
13860 2010-09-04 Jan Hubicka <jh@suse.cz>
13862 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
13863 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
13864 fold_read_from_constant_string.
13866 * gimple.h (canonicalize_constructor_val): Declare.
13867 * gimple-fold.c (canonicalize_constructor_val): New function.
13868 (get_symbol_constant_value):Use it.
13869 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
13871 2010-09-04 Jan Hubicka <jh@suse.cz>
13873 * tree-switch-conversion.c (build_one_array): Set constructor to be
13875 * varpool.c (varpool_finalize_decl): Compute const_value_known.
13877 2010-09-04 Richard Guenther <rguenther@suse.de>
13880 * tree-flow.h (force_gimple_operand_1): Declare.
13881 (force_gimple_operand_gsi_1): Likewise.
13882 * gimplify.c (force_gimple_operand_1): New worker taking a
13883 gimple predicate for ...
13884 (force_gimple_operand): ... which now wraps it.
13885 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
13886 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
13888 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
13889 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
13890 (create_mem_ref): Likewise.
13892 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
13894 * config/i386/predicates.md (sse_reg_operand): New predicate.
13895 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
13896 predicate for operand 1.
13897 (XFmode push splitter): Use fp_register_operand predicate
13899 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
13900 (SF-DF float_extend push splitter): Add reload_completed insn
13902 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
13903 MODEF mode macro. Add reload_completed insn predicate.
13905 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
13907 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
13908 (struct df_extract_ref): Remove.
13909 (union df_ref_d): Remove extract_ref member.
13910 (df_ref_create): Remove last three arguments.
13911 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
13912 * df-scan.c (df_ref_record): Remove last three arguments, do not
13913 pass them to df_ref_create_structure.
13914 (df_uses_record): Remove first and last three arguments. Replace
13915 first argument with DF_REF_REGULAR, adjust calls to remove the
13916 width, offset and mode. Always call recursively on the second
13917 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
13918 (df_ref_create_structure): Remove first argument.
13919 (struct df_scan_problem_data): Remove ref_extract_pool.
13920 (df_scan_free_internal): Do not free it.
13921 (df_scan_alloc): Do not allocate it.
13922 (df_ref_create): Remove last three arguments, do not pass them to
13923 df_ref_create_structure.
13924 (df_free_ref): Remove DF_REF_EXTRACT case.
13925 (df_notes_rescan): Adjust call to df_uses_record.
13926 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
13927 Remove DF_REF_EXTRACT case.
13928 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
13929 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
13930 and SUBREG definitions.
13931 (df_get_conditional_uses): Remove references to width/offset/mode,
13932 adjust call to df_ref_create_structure.
13933 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
13934 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
13935 calls to df_uses_record and df_ref_record.
13936 * fwprop.c (update_df): Remove references to width/offset/mode,
13937 adjust call to df_ref_create.
13939 2010-09-03 Jan Hubicka <jh@suse.cz>
13941 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
13942 (build_cdtor_fns): Update use of build_cdtor.
13944 2010-09-03 Joseph Myers <joseph@codesourcery.com>
13946 * doc/options.texi (SeparateAlias): Document.
13947 * opt-functions.awk (switch_flags): Handle SeparateAlias.
13948 * opth-gen.awk: Generate enumeration names for options marked
13949 SeparateAlias, but not for those marked Ignore.
13950 * opts-common.c (generate_canonical_option): Don't output separate
13951 argument for options marked CL_SEPARATE_ALIAS.
13952 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
13953 * opts.h (CL_SEPARATE_ALIAS): New.
13954 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13955 CL_COMMON): Adjust definitions.
13956 * config/i386/darwin.opt, config/mips/sde.opt: New.
13957 * common.opt (fdump-final-insns): New.
13958 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13960 (mips*-sde-elf*): Add mips/sde.opt.
13961 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
13962 -mno-data-in-code and -mcode-xonly here.
13963 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
13964 * gcc.c (option_map): Add "j" to --dump entry.
13965 (translate_options): Don't translate -d to -foutput-class-dir= here.
13967 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
13969 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
13971 (compute_all_dependences): Same.
13972 (create_rdg_edge_for_ddr): Same.
13973 * tree-data-ref.h (DR_IS_WRITE): New.
13974 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
13975 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
13976 (write_memrefs_written_at_least_once): Same.
13977 * tree-predcom.c (suitable_component_p): Same.
13978 (determine_roots_comp): Same.
13979 (execute_load_motion): Same.
13980 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
13981 (vect_enhance_data_refs_alignment): Same.
13982 (vect_analyze_group_access): Same.
13984 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
13987 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
13988 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
13990 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
13992 * dwarf2out.c (file scope): Remove #if0'd code.
13993 (gen_subprogram_die): Same.
13995 2010-09-03 Jakub Jelinek <jakub@redhat.com>
13997 PR middle-end/45484
13998 * dwarf2out.c (flush_queued_reg_saves): Rename to...
13999 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
14000 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
14001 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
14002 * config/i386/i386.c (output_set_got): Call it.
14004 2010-09-03 Michael Matz <matz@suse.de>
14006 PR middle-end/45415
14007 * tree-sra.c (sra_modify_assign): If we modify the statement,
14010 * tree-ssa.c (verify_ssa): Check number of operands and links
14011 per statement to agree.
14013 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14014 Iain Sandoe <iains@gcc.gnu.org>
14017 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
14018 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
14019 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14021 2010-09-03 Richard Guenther <rguenther@suse.de>
14023 * lto-streamer-out.c (output_function): Output function
14024 start and end loci.
14025 * lto-streamer-in.c (input_function): Input function start
14028 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14030 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
14031 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
14032 * configure: Regenerate.
14033 * aclocal.m4: Regenerate.
14035 2010-09-03 Jan Hubicka <jh@suse.cz>
14038 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
14039 on functions/variables in other partition.
14041 2010-09-03 Jan Hubicka <jh@suse.cz>
14043 * cgraph.h (struct varpool_node): Add const_value_known.
14044 (varpool_decide_const_value_known): Declare.
14045 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
14046 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
14047 (input_varpool_node): Restore const_value_known.
14048 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
14049 initializer folding.
14050 * ipa.c (ipa_discover_readonly_nonaddressable_var,
14051 function_and_variable_visibility): Compute const_value_known.
14052 * gimple-fold.c (get_symbol_constant_value): Use varpool for
14053 initializer folding.
14054 * varpool.c (varpool_decide_const_value_known): New function.
14056 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14058 * config/i386/i386.md: Remove empty preparation statements
14061 2010-09-03 Jan Hubicka <jh@suse.cz>
14063 * passes.c (rest_of_decl_compilation): Do not add local vars into
14065 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
14066 static or extern vars are in varpool.
14067 (varpool_finalize_decl): Sanity check that only static vars are
14070 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14073 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
14074 not just generic vectors with BLKmode.
14076 2010-09-03 Richard Guenther <rguenther@suse.de>
14078 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
14079 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
14080 * tree.h (TMR_SYMBOL): Remove.
14081 (TMR_BASE, TMR_OFFSET): Adjust.
14083 * alias.c (ao_ref_from_mem): Use TMR_BASE.
14084 * builtins.c (get_object_alignment): Merge TMR_BASE and
14085 TMR_SYMBOL handling.
14086 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
14087 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
14088 handling. Also allow TARGET_MEM_REF as base address.
14089 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
14090 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
14091 base. Gimplify TMR_INDEX2.
14092 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
14093 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14094 (get_addr_base_and_unit_offset): Likewise.
14095 * tree-eh.c (tree_could_trap_p): Likewise.
14096 * tree-pretty-print.c (dump_generic_node): Likewise.
14097 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
14098 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
14100 (get_address_description): Reconstruct addres description
14101 from merged TMR_BASE and TMR_INDEX2.
14102 (maybe_fold_tmr): Fold propagated addresses.
14103 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
14104 MEM_REF and TARGET_MEM_REF paths.
14105 (indirect_refs_may_alias_p): Likewise.
14106 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
14107 instead of TMR_SYMBOL.
14108 * tree-ssa-operands.c (get_tmr_operands): Simplify.
14109 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
14110 according to changes ...
14111 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
14112 Split TARGET_MEM_REF into two fields plus the base.
14113 * tree.c (mem_ref_offset): Simplify.
14114 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
14115 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
14116 Strip NOPs when folding MEM_REF addresses.
14117 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
14118 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
14119 (fold_gimple_assign): ... not here.
14121 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
14123 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
14124 * config/mips/mips.c (mips_shift_truncation_mask): New function.
14125 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14127 2010-09-02 Richard Henderson <rth@redhat.com>
14129 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
14130 instead of readelf in the test.
14131 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
14132 in the .debug_frame section for coff targets.
14133 * configure: Rebuild.
14135 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14137 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
14138 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
14139 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14140 (m32c_class_likely_spilled_p): Make static. Change argument type to
14141 reg_class_t. Change result type to bool.
14143 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14145 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
14146 to convert (double)(long) into a single FRIZ instruction or not
14147 when -ffast-math is used.
14149 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
14150 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
14151 or FRIZ instruction if -ffast-math.
14152 * config/rs6000/rs6000.md (friz): Ditto.
14154 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
14156 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14158 * opth-gen.awk (quote, comma): Remove unused variables.
14160 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
14162 * arm.c (arm_override_options): Correct fall-back code to use
14163 SUBTARGET_CPU_DEFAULT.
14165 2010-09-02 Julian Brown <julian@codesourcery.com>
14167 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
14169 (vcond<mode>, vcondu<mode>): New expanders.
14170 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
14171 comparisons with zero.
14172 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
14173 * config/arm/constraints.md (Dz): New constraint.
14175 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14177 * target.def (class_likely_spilled_p): New hook.
14178 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
14179 * doc/tm.texi: Regenerate.
14180 * targhooks.c (default_class_likely_spilled_p): New function.
14181 * targhooks.h (default_class_likely_spilled_p): Declare.
14182 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
14183 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
14184 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
14185 Use fixed_reg_set instead of fixed_regs.
14186 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14187 * calls.c (avoid_likely_spilled_reg): Ditto.
14188 * ira-conflicts.c (ira_build_conflicts): Ditto.
14189 * ira.c (update_equiv_regs): Ditto.
14190 * mode-switching.c (create_pre_exit): Ditto.
14191 * regmove.c (find_matches): Ditto.
14192 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14193 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
14194 (small_register_class_p): New inline function.
14195 (push_secondary_reload, find_reusable_reload, find_reloads): Use
14196 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
14198 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
14199 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
14200 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14202 2010-09-02 Richard Guenther <rguenther@suse.de>
14204 PR tree-optimization/44937
14205 PR tree-optimization/45412
14206 * ipa-split.c (split_function): Properly remove PHI nodes.
14208 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14210 * opts.h (struct cl_option): Add warn_message field.
14211 (struct cl_decoded_option): Add warn_message field.
14212 * doc/options.texi (Ignore, Warn): Document.
14213 * opt-functions.awk (needs_state_p): Don't consider aliases or
14214 ignored options to need state saved.
14215 * optc-gen.awk: Handle Warn and Ignore.
14216 * opth-gen.awk: Output OPT_SPECIAL_ignore.
14217 * opts-common.c (decode_cmdline_option): Set warn_message field.
14218 Handle ignored options.
14219 (decode_cmdline_options_to_array, generate_option,
14220 generate_option_input_file): Set warn_message field.
14221 (read_cmdline_option): Generate warnings from warn_message field.
14222 Handle ignored options.
14223 * common.opt (Wunreachable-code, fargument-alias,
14224 fargument-noalias, fargument-noalias-global,
14225 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
14226 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
14227 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
14228 ftree-salias): Mark Ignore.
14229 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
14230 -mintel-syntax and -mno-intel-syntax here.
14231 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
14233 * opts.c (common_handle_option): Don't handle options marked as
14235 (enable_warning_as_error): Handle ignored options.
14237 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14240 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
14241 alias_target fields.
14242 * opt-functions.awk (opt_sanitized_name): Don't handle
14243 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
14244 * optc-gen.awk: Generate alias fields.
14245 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
14246 Don't generate such constants for aliases.
14247 * opts-common.c (generate_canonical_option): New.
14248 (decode_cmdline_option): Handle aliases. Use
14249 generate_canonical_option for known options instead of copying the
14251 * doc/options.texi (Alias): Document.
14252 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
14253 fstack-check, specs): Mark as aliases.
14254 * gcc.c (driver_handle_option): Canonicalize -L options to joined
14256 (driver_handle_option): Don't handle OPT_specs.
14257 * opts.c (common_handle_option): Don't handle options marked as
14259 (enable_warning_as_error): Handle aliases.
14260 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
14261 OPT_Wlarger_than_eq.
14262 * tree-optimize.c (tree_rest_of_compilation): Use
14263 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
14265 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
14267 * config/i386/i386.md (nonmemory_operand): New mode attribute.
14268 (push memory peephole2): Macroize peepholes using SWI mode iterator.
14269 (move immediate to memory peephole2): Macroize peepholes using
14270 SWI124 mode iterator.
14271 (non-pairable NOT peephole2): Macroize peepholes using SWI124
14273 (simple lea add peephole2): Macroize peepholes using SWI48
14275 (simple lea mult peephole2): Ditto.
14276 (imul by 3,5,9 to lea peephole2): Ditto.
14277 (mov $-1, reg peephole2): Macroize peepholes using SWI248
14279 (imul $32bit_imm,mem,reg peephole2): Ditto.
14280 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
14282 2010-09-02 Ian Bolton <ian.bolton@arm.com>
14284 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
14286 2010-09-02 Olivier Hainque <hainque@adacore.com>
14288 PR middle-end/44763
14289 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
14290 (allocno_priority_compare_func): Use it instead of a straight
14291 difference computation over priorities.
14293 2010-09-02 Andi Kleen <ak@linux.intel.com>
14295 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
14297 2010-09-02 Ira Rosen <irar@il.ibm.com>
14299 * tree-vectorizer.h (get_later_stmt): New function.
14300 (vect_analyze_data_ref_dependences): Add argument.
14301 * tree-vect-loop.c (vect_analyze_loop): Update call to
14302 vect_analyze_data_ref_dependences.
14303 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
14305 (vect_analyze_data_ref_dependence): Add argument for basic block
14306 dependencies. Check dependencies in basic block vectorization.
14307 (vect_analyze_data_ref_dependences): Add argument and update call to
14308 vect_analyze_data_ref_dependences.
14309 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
14310 (vect_bb_vectorizable_with_dependencies): New.
14311 (vect_slp_analyze_bb): Check dependencies in basic block.
14312 (vect_schedule_slp_instance): Insert stores before the last store in
14315 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
14318 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
14319 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14321 2010-09-01 Jakub Jelinek <jakub@redhat.com>
14323 PR middle-end/45458
14324 * bb-reorder.c (add_labels_and_missing_jumps): Treat
14325 bbs ending with throwing insns like blocks ending with a call.
14326 (fix_up_fall_thru_edges): Likewise.
14328 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
14330 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
14331 (m32c_function_arg_advance): Delete.
14332 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14333 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
14334 comments. Take a const_tree and a bool. Declare.
14335 (m32c_function_arg_advance): Likewise.
14336 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14338 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14341 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
14342 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
14343 * config/i386/mingw32.h: ... here.
14345 2010-09-01 Andi Kleen <ak@linux.intel.com>
14348 * lto-streamer-in.c (lto_input_ts_target_option): Add.
14349 (lto_input_tree_pointers): Call lto_input_ts_target_option.
14350 * lto-streamer-out (lto_output_ts_target_option): Add.
14351 (lto_output_tree_pointers): Call lto_output_ts_target_option.
14353 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
14356 * config/i386/cygwin.h: Change order of specified import libraries.
14357 * config/i386/mingw32.h: Likewise.
14358 * config/i386/t-cygwin: Likewise.
14359 * config/i386/t-mingw32: Likewise.
14360 * config/i386/t-mingw-w32: Likewise.
14361 * config/i386/t-mingw-w64: Likewise.
14363 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14365 * config/arm/neon-schedgen.ml (core): New type.
14366 (allCores): List of supported cores.
14367 (availability_table): Add supported cores.
14368 (collate_bypasses): Accept core as a parameter.
14369 (worst_case_latencies_and_bypasses): Accept core as a parameter.
14370 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
14371 and coreStr to get tune attribute and prefix for functional units.
14372 (emit_bypasses): Accept core name and use it.
14373 (calculate_per_core_availability_table): New.
14374 (filter_core): New.
14375 (calculate_core_availability_table): New.
14376 (main): Use calculate_core_availablity_table.
14377 * config/arm/cortex-a8-neon.md: Update copyright year.
14378 Regenerated from ml file and merged in.
14379 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
14380 cortex_a8_neon_mrc.
14382 2010-09-01 Ian Bolton <ian.bolton@arm.com>
14384 * Makefile.in (tree-switch-conversion.o): Update dependencies.
14386 2010-09-01 Richard Guenther <rguenther@suse.de>
14388 * alias.c (ao_ref_from_mem): Adjust.
14389 * builtins.c (get_object_alignment): Likewise.
14390 * cfgexpand.c (expand_debug_expr): Likewise.
14391 * gimple.c (get_base_address): Likewise.
14392 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14393 (get_addr_base_and_unit_offset): Likewise. Fix for
14394 both TMR_SYMBOL and TMR_BASE being set.
14395 * tree-eh.c (tree_could_trap_p): Likewise.
14396 * gimplify.c (gimplify_expr): Do not attempt to gimplify
14397 TMR_SYMBOL. Always gimplify TMR_BASE.
14398 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14399 TMR_BASE if there is a TMR_SYMBOL.
14400 * tree-pretty-print.c (dump_generic_node): Adjust.
14401 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14402 (tree_mem_ref_addr): Likewise.
14403 (create_mem_ref_raw): Likewise.
14404 (move_fixed_address_to_symbol): Likewise.
14405 (create_mem_ref): Likewise.
14406 (dump_mem_address): Likewise.
14407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
14408 Fix for both TMR_SYMBOL and TMR_BASE being set.
14409 (indirect_refs_may_alias_p): Likewise.
14410 * tree-ssa-operands.c (get_tmr_operands): Adjust.
14411 * tree.def (TARGET_MEM_REF): Adjust documentation.
14413 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14415 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
14416 Rename from X86_TUNE_ADD_ESP_4.
14417 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
14418 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
14419 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
14420 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
14421 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
14422 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
14423 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
14424 * config/i386/i386.c (initial_ix86_tune_features)
14425 <X86_TUNE_SINGLE_POP>: Invert members.
14426 <X86_TUNE_DOUBLE_POP>: Ditto.
14427 <X86_TUNE_SINGLE_PUSH>: Ditto.
14428 <X86_TUNE_DOUBLE_PUSH>: Ditto.
14429 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
14430 No longer exported.
14431 (push peephole2 patterns): Macroize peepholes using P mode iterator.
14432 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
14433 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
14434 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
14436 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
14438 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
14439 a volatile LHS if the constructor has only one element.
14441 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
14444 * tree.c (stdarg_p): Make fntype parameter const.
14445 * tree.h (stdarg_p): Likewise.
14446 (function_args_iterator): Remove unused fntype field.
14447 (function_args_iter_init): Do not initialize fntype
14448 field. Make fntype parameter const.
14450 2010-09-01 Richard Guenther <rguenther@suse.de>
14452 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
14454 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
14455 (execute_vrp): Compute number of iteration estimates.
14456 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
14457 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
14458 * tree-data-ref.c (estimated_loop_iterations): Adjust.
14459 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
14460 Infer loop bounds from undefined behavior based on a new parameter.
14461 (estimate_numbers_of_iterations): Likewise.
14462 (scev_probably_wraps_p): Adjust.
14463 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
14465 2010-09-01 Nick Clifton <nickc@redhat.com>
14467 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
14469 (xstormy16_legitimate_address_p): Use true and false instead of 1
14471 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
14472 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
14474 (xstormy16_expand_call): Fix comment at start of function.
14476 2010-09-01 Nick Clifton <nickc@redhat.com>
14478 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
14479 when pushing accumulator register.
14480 (rx_get_stack_layout): Always save call clobbered registers inside
14481 interrupt handlers.
14482 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
14484 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14486 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
14487 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14489 * libgcc-std.ver (GCC_4.6.0): Define version.
14491 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
14493 * tree-nested.c (convert_all_function_calls): Iterate until after the
14494 sum of static chains in the nest doesn't change.
14496 2010-08-31 Anatoly Sokolov <aesok@post.ru>
14498 * config/m32c/m32c.c (classes_intersect): Remove.
14499 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
14500 reg_classes_intersect_p instead of classes_intersect.
14501 (class_can_hold_mode): Change arguments type from enum reg_class to
14502 reg_class_t. Use reg_class_contents instead of class_contents.
14503 (m32c_register_move_cost): Make static. Change arguments type from
14504 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
14505 classes_intersect. Use reg_class_contents instead of class_contents.
14506 (m32c_memory_move_cost): Make static. Change arguments type from
14507 enum reg_class to reg_class_t.
14508 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14509 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14510 * config/m32c/m32c-protos.h (m32c_register_move_cost,
14511 m32c_memory_move_cost): Remove.
14513 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14515 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
14516 (arm_function_arg): Delete.
14517 (arm_needs_doubleword_align): Take a const_tree.
14518 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14519 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
14520 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
14521 (arm_function_arg): Make static. Take a const_tree and a bool.
14522 (arm_function_arg_advance): Likewise.
14523 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14525 2010-08-31 Andi Kleen <ak@linux.intel.com>
14527 * common.opt (fwhopr=): Update for -fwhopr=jobserver
14528 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
14529 * lto-wrapper.c (run_gcc): Add jobserver mode.
14530 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
14533 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
14535 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
14537 (*popdi1_epilogue): Ditto.
14538 (*popsi1_epilogue): Ditto.
14539 (popsi, popdi peephole2 patterns): Update peepholes for changed
14540 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
14542 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
14543 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
14545 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
14546 (override_options): Do not initialize removed ix86_gen_pop1.
14547 (gen_pop): New static function.
14548 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
14549 (release_scratch_register_on_entry): Ditto.
14550 (ix86_restore_reg_using_pop): Ditto.
14551 (ix86_expand_epilogue): Ditto.
14553 2010-08-31 Jakub Jelinek <jakub@redhat.com>
14555 PR middle-end/45461
14556 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
14558 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14560 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
14563 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14565 * doc/extend.texi: Fix documentation of the return value of
14566 __builtin_choose_expr.
14568 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14570 * config/v850/v850-protos.h (function_arg): Delete.
14571 * config/v850/v850.h (FUNCTION_ARG): Delete.
14572 (FUNCTION_ARG_ADVANCE): Move code to...
14573 * config/v850/v850.c (v850_function_arg_advance): ...here.
14574 (v850_function_arg): Make static. Take a const_tree and a bool.
14575 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14577 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14579 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
14581 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14583 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
14585 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14587 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14589 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14591 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
14593 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14594 * config/rx/rx.c (rx_function_arg_size): Make static.
14595 (rx_function_arg): Likewise.
14596 (rx_function_arg_advance): New function.
14597 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14599 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
14601 * config/arm/arm.c (arm_override_options): Remove superfluous test.
14604 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
14606 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
14607 (dwarf2out_decl) <CONST_DECL>: Likewise.
14609 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
14611 Stack usage support
14612 * common.opt (-fstack-usage): New option.
14613 * doc/invoke.texi (Debugging options): Document it.
14614 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
14615 allocate_dynamic_stack_space.
14616 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
14617 and propagate it to allocate_dynamic_stack_space.
14618 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
14619 * calls.c (initialize_argument_information): Pass TRUE as 4th
14620 argument to allocate_dynamic_stack_space.
14621 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
14622 to 1 when pushing a variable-sized argument onto the stack. Pass
14623 TRUE as 4th argument to allocate_dynamic_stack_space.
14624 Update current_function_pushed_stack_size.
14625 (emit_library_call_value_1): Likewise.
14626 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
14627 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
14628 attempt to find an upper bound. Remove redundant code for the
14629 SETJMP_VIA_SAVE_AREA case.
14630 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
14631 * function.h (struct stack_usage): New structure.
14632 (current_function_static_stack_size): New macro.
14633 (current_function_dynamic_stack_size): Likewise.
14634 (current_function_pushed_stack_size): Likewise.
14635 (current_function_dynamic_alloc_count): Likewise.
14636 (current_function_has_unbounded_dynamic_stack_size): Likewise.
14637 (current_function_allocates_dynamic_stack_space): Likewise.
14638 (struct function): Add new field 'su'.
14639 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
14640 add the value of the dynamic offset to the dynamic stack usage.
14641 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
14642 for variable-sized objects.
14643 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
14644 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
14645 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
14646 BUILT_IN_ALLOCA for variable-sized objects.
14647 * output.h (output_stack_usage): Declare.
14648 * toplev.c (stack_usage_file): New file pointer.
14649 (output_stack_usage): New function.
14650 (open_auxiliary_file): Likewise.
14651 (lang_dependent_init): Open file if flag_stack_usage is set.
14652 (finalize): Close file if stack_usage_file is not null.
14653 * tree.h (ALLOCA_FOR_VAR_P): New macro.
14654 * config/alpha/alpha.c (compute_frame_size): New function.
14655 (alpha_expand_prologue): Use it.
14656 (alpha_start_function): Likewise.
14657 (alpha_expand_epilogue): Likewise. Set stack usage info.
14658 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14659 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14660 * config/mips/mips.c (mips_expand_prologue): Likewise.
14661 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14662 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14663 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14665 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
14667 PR tree-optimization/45427
14668 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
14669 Handle the case that the exit is never taken correctly.
14670 (number_of_iterations_ne): Pass exit_must_be_taken to
14671 number_of_iterations_ne_max.
14673 2010-08-30 Catherine Moore <clm@codesourcery.com>
14675 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
14676 Infer -mdspr2 for the the 74K.
14678 2010-08-30 Jakub Jelinek <jakub@redhat.com>
14681 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
14683 PR middle-end/45423
14684 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
14685 and TRUTH_{AND,OR,XOR}_EXPR.
14686 * c-parser.c (c_parser_omp_atomic): Handle boolean
14687 {PRE,POST}_{INC,DEC}REMENT.
14689 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
14691 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
14692 (function_arg): Delete.
14693 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14694 (FUNCTION_INCOMING_ARG): Delete.
14695 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
14696 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
14698 (function_arg): Rename to...
14699 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
14701 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
14702 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14703 (TARGET_FUNCTION_INCOMING_ARG): Define.
14705 2010-08-30 Richard Guenther <rguenther@suse.de>
14707 PR tree-optimization/21602
14708 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
14709 using points-to information.
14711 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
14713 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
14715 2010-08-30 Richard Guenther <rguenther@suse.de>
14717 PR tree-optimization/45449
14718 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
14721 2010-08-30 Joseph Myers <joseph@codesourcery.com>
14723 * opts.h (CL_ERR_NEGATIVE): Define.
14724 * opts.c (unknown_option_callback): Don't postpone warnings for
14725 options marked with CL_ERR_NEGATIVE.
14726 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
14727 for negative versions of CL_REJECT_NEGATIVE options.
14729 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
14731 * config/i386/i386.md (zero_extendsidi2_1): Rename from
14732 zero_extendsidi2_32.
14733 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
14734 using SWI12 mode iterator.
14735 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
14736 to define_insn_and_split pattern.
14737 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
14738 using SWI24 mode iterator.
14739 (*zero_extendqi<mode>2_and): Macroize insn from
14740 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
14741 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
14742 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
14743 SWI24 mode iterator.
14744 (*zero_extendqi<mode>2_movzbl): Ditto from
14745 *zero_extendqi{hi,si}2_movzbl.
14746 (extendsidi2_1): Rename from extendsidi2_32.
14747 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
14748 SWI12 mode iterator.
14750 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
14752 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
14753 general purpose registers.
14754 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14755 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
14756 with general purpose registers and memory operands. Add associated
14757 CCImode post-reload splitter.
14758 * config/ia64/div.md: Change BImode to CCImode throughout.
14760 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
14762 * config/ia64/ia64.md (cstorebi4): Fix thinko.
14764 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
14766 * config/picochip/picochip.c (reorder_var_tracking_notes): This
14767 function was dropping debug insns which caused PR45299.
14769 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
14771 * config/i386/sse.md (extsuffix): New code attribute.
14772 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14773 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14774 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14775 and sse4_1_zero_extendv4qiv4si2.
14776 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14777 and sse4_1_zero_extendv2qiv2di2.
14778 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14779 and sse4_1_zero_extendv4hiv4si2.
14780 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14781 and sse4_1_zero_extendv2hiv2di2.
14782 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14783 and sse4_1_zero_extendv2siv2di2
14785 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14786 using any_extend code iterator.
14787 (*avx_<s>mulv8hi3_highpart): Macroize insn from
14788 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14789 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14791 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14792 gen_sse4_1_sign_extend* functions.
14793 (struct builtin_description bdesc_args): Ditto.
14795 2010-08-27 Xinliang David Li <davidxl@google.com>
14798 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14799 (iv_ca_set_no_cp): Update used inv expr count.
14800 (iv_ca_set_cp): Ditto.
14801 (iv_ca_new): Initialize new member.
14802 (iv_ca_free): Free memory.
14804 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
14806 * config/sh/sh-protos.h (sh_function_arg): Delete.
14807 (sh_function_arg_advance): Delete.
14808 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14809 (PASS_IN_REG_P): Eliminate cast.
14810 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
14811 const_tree and a bool.
14812 (sh_function_arg): Likewise.
14813 (sh_output_mi_thunk): Call sh_function_arg_advance) and
14815 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14817 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
14818 Kaz Kojima <kkojima@gcc.gnu.org>
14820 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14822 (sh_expand_epilogue): Likewise.
14823 * config/sh/sh.md (movml_push_banked): New insn.
14824 (movml_pop_banked): Likewise.
14826 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
14828 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14829 gen_regexp_oneof, gen_regexp_sequence): Use the string found
14830 in vector element 0 rather than the original string when there's
14832 (gen_regexp): Remove extra semicolon.
14834 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14835 thumb2_movsf_vfp): Set attribute "insn".
14836 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14837 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14838 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14839 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14840 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14841 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14842 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14843 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
14844 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
14845 if_not_arith, if_arith_not, cond_move_not): Likewise.
14847 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14849 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
14851 (rs6000_allocate_stack_temp): Ditto.
14852 (rs6000_expand_convert_si_to_sfdf): Ditto.
14854 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
14855 line. Update the options set if power6 or power7 server/embedded
14856 type options are used. If we give a warning for no vsx under
14857 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
14858 (rs6000_allocate_stack_temp): New function to allocate a stack
14859 tempoary and adjust the address so it meets either REG+OFFSET or
14860 REG+REG addressing requirements.
14861 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
14862 that they can be used with the LFIWAX/LFIWZX instrucitons.
14863 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
14864 converting signed/unsigned SImode to either SFmode/DFmode.
14866 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
14867 whether certain instructions can be generated.
14868 (TARGET_FCTIDZ): Ditto.
14869 (TARGET_STFIWX): Ditto.
14870 (TARGET_LFIWAX): Ditto.
14871 (TARGET_LFIWZX): Ditto.
14872 (TARGET_FCFIDS): Ditto.
14873 (TARGET_FCFIDU): Ditto.
14874 (TARGET_FCFIDUS): Ditto.
14875 (TARGET_FCTIDUZ): Ditto.
14876 (TARGET_FCTIWUZ): Ditto.
14878 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
14879 (UNSPEC_FCTID): Ditto.
14880 (UNSPEC_LFIWAX): Ditto.
14881 (UNSPEC_LFIWZX): Ditto.
14882 (UNSPEC_FCTIWUZ): Ditto.
14883 (rreg): Use correct constraints.
14884 (SI_CONVERT_FP): New mode attribute for floating point conversion
14886 (E500_CONVERT): Ditto.
14887 (lfiwax): New insns for converting from integer to floating point
14888 utilizing newer instructions. Attempt to optimize conversions
14889 that come from memory so that we don't load the value into a GPR,
14890 spill it to the stack and reload it into a FPR.
14891 (floatsi<mode>2_lfiwax): Ditto.
14892 (floatsi<mode>2_lfiwax_mem): Ditto.
14893 (floatsi<mode>2_lfiwax_mem2): Ditto.
14895 (floatunssi<mode>2_lfiwzx): Ditto.
14896 (floatunssi<mode>2_lfiwzx_mem): Ditto.
14897 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
14898 (floatdidf2_mem): Ditto.
14899 (floatunsdidf2_fcfidu): Ditto.
14900 (floatunsdidf2_mem): Ditto.
14901 (floatunsdisf2): Ditto.
14902 (floatunsdisf2_fcfidus): Ditto.
14903 (floatunsdisf2_mem): Ditto.
14904 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
14905 Use FCFID on 32-bit hosts that support it.
14906 (floatsidf2_internal): Ditto.
14907 (floatunssisf2): Ditto.
14908 (floatunssidf2): Ditto.
14909 (floatunssidf2_internal): Ditto.
14910 (floatsisf2): Ditto.
14911 (floatdidf2): Ditto.
14912 (floatdidf2_fpr): Ditto.
14913 (floatunsdidf2): Ditto.
14914 (floatdisf2): Ditto.
14915 (floatdisf2_fcfids): Ditto.
14916 (floatdisf2_internal1): Ditto.
14917 (fixuns_truncsfsi2): Delete, merge into common pattern for both
14918 SF/DF. Add power7 support.
14919 (fix_truncsfsi2): Ditto.
14920 (fixuns_truncdfsi2): Ditto.
14921 (fixuns_truncdfdi2): Ditto.
14922 (fix_truncdfsi2): Ditto.
14923 (fix_truncdfsi2_internal): Ditto.
14924 (fix_truncdfsi2_internal_gfxopt): Ditto.
14925 (fix_truncdfsi2_mfpgpr): Ditto.
14927 (btruncdf2): Ditto.
14928 (btruncdf2_fpr): Ditto.
14929 (btructsf2): Ditto.
14931 (ceildf2_fpr): Ditto.
14934 (floordf2_fpr): Ditto.
14937 (rounddf2_fpr): Ditto.
14939 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
14940 (fix_trunc<mode>di2): Ditto.
14941 (fixuns_trunc<mode>si2): Ditto.
14942 (fixuns_trunc<mode>di2): Ditto.
14943 (fctiwz_<mode>): Ditto.
14944 (btrunc<mode>2): Ditto.
14945 (btrunc<mode>2_fpr): Ditto.
14946 (ceil<mode>2): Ditto.
14947 (ceil<mode>2_fpr): Ditto.
14948 (floor<mode>2): Ditto.
14949 (float<mode>2_fpr): Ditto.
14950 (round<mode>2): Ditto.
14951 (round<mode>2_fpr): Ditto.
14952 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
14953 (fixuns_trunc<mode>si2_stfiwx): Ditto.
14954 (fix_truncdfsi2_internal): Ditto.
14955 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
14956 converted value on stack, loaded into GPR, and then stored into
14957 the final destination.
14958 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
14960 (lrint<mode>di2): New insn, provide the lrint builtin functions.
14961 (ftruncdf2): Delete, unused.
14962 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
14964 * config/rs6000/vsx.md (toplevel): Update copyright year.
14965 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
14968 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
14969 Jeremie Salvucci <jeremie.salvucci@free.fr>
14971 * gengtype.c (output_type_enum): Test the right union member.
14973 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
14976 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
14977 operands for operand 1.
14978 (sse4_1_extendv4qiv4si2): Ditto.
14979 (sse4_1_extendv2qiv2di2): Ditto.
14980 (sse4_1_extendv4hiv4si2): Ditto.
14981 (sse4_1_extendv2hiv2di2): Ditto.
14982 (sse4_1_extendv2siv2di2): Ditto.
14983 (sse4_1_zero_extendv8qiv8hi2): Ditto.
14984 (sse4_1_zero_extendv4qiv4si2): Ditto.
14985 (sse4_1_zero_extendv2qiv2di2): Ditto.
14986 (sse4_1_zero_extendv4hiv4si2): Ditto.
14987 (sse4_1_zero_extendv2hiv2di2): Ditto.
14988 (sse4_1_zero_extendv2siv2di2): Ditto.
14989 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
14990 (*sse4_1_extendv4qiv4si2): Ditto.
14991 (*sse4_1_extendv2qiv2di2): Ditto.
14992 (*sse4_1_extendv4hiv4si2): Ditto.
14993 (*sse4_1_extendv2hiv2di2): Ditto.
14994 (*sse4_1_extendv2siv2di2): Ditto.
14995 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
14996 (*sse4_1_zero_extendv4qiv4si2): Ditto.
14997 (*sse4_1_zero_extendv2qiv2di2): Ditto.
14998 (*sse4_1_zero_extendv4hiv4si2): Ditto.
14999 (*sse4_1_zero_extendv2hiv2di2): Ditto.
15000 (*sse4_1_zero_extendv2siv2di2): Ditto.
15002 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15004 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
15005 (mips_function_arg): Delete.
15006 (mips_function_arg_boundary): Take a const_tree.
15007 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
15008 (mips_arg_info): Likewise.
15009 (mips_setup_incoming_varargs): Call mips_function_arg_advance
15010 instead of FUNCTION_ARG_ADVANCE.
15011 (mips_function_arg_advance): Adjust prototype. Make static.
15012 (mips_function_arg): Likewise.
15013 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15014 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
15016 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15018 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15019 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
15020 (function_arg): Delete.
15021 (function_arg_boundary): Take a const_tree.
15022 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
15023 (rs6000_spe_function_arg): Likewise.
15024 (rs6000_parm_start): Likewise.
15025 (rs6000_arg_size): Likewise.
15026 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
15027 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
15028 (rs6000_mixed_function_arg): Likewise.
15029 (function_arg): Rename to...
15030 (rs6000_function_arg): ...this.
15031 (function_arg_advance): Rename to...
15032 (rs6000_function_arg_advance_1): ...this
15033 (rs6000_function_arg_advance): New function. Call it.
15034 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
15035 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
15036 (rs6000_function_value): Likewise.
15037 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15039 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15041 * config/arm/arm.md (enabled): Test the value of arch_enabled
15042 rather than just using it.
15044 2010-08-27 Olivier Hainque <hainque@adacore.com>
15045 Eric Botcazou <ebotcazou@adacore.com>
15047 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
15048 cover all the possible offsets from this base.
15049 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
15051 2010-08-26 Jakub Jelinek <jakub@redhat.com>
15053 PR tree-optimization/44485
15054 * calls.c (flags_from_decl_or_type): For const or pure
15055 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
15056 together with ECF_CONST resp. ECF_PURE.
15057 * builtins.c (expand_builtin): Use flags_from_decl_or_type
15058 instead of querying flags directly.
15059 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
15060 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15062 2010-08-26 Richard Guenther <rguenther@suse.de>
15064 PR tree-optimization/45255
15065 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
15066 and externals are also invariant.
15068 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15070 PR rtl-optimization/44858
15071 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
15072 newi2pat, make sure they don't affect newpat.
15074 PR rtl-optimization/45400
15075 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
15076 SUBREG_REG if both modes are of MODE_INT class.
15078 2010-08-25 Julian Brown <julian@codesourcery.com>
15080 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
15081 * config/arm/arm.md (generic_sched): No for Cortex-A5.
15082 (generic_vfp): Likewise.
15083 (cortex-a5.md): Include.
15084 * config/arm/cortex-a5.md: New.
15086 2010-08-25 Richard Guenther <rguenther@suse.de>
15088 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
15089 * gimple.c (gimple_get_alias_set): Remove special handling
15092 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
15094 PR middle-end/45355
15095 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
15096 dead_or_set_p when computing i0_feeds_i2_n.
15098 * combine.c (find_split_point): Undo canonicalization of multiply-add
15099 to (minus x (mult)) when it seems likely that this will increase the
15100 chances of a split.
15102 2010-08-25 Richard Guenther <rguenther@suse.de>
15105 * lto-streamer.c (lto_record_common_node): Do not mess with
15106 TYPE_CANONICAL when not in lto.
15107 * gimple.c (gimple_register_type): Likewise.
15109 2010-08-25 Richard Guenther <rguenther@suse.de>
15111 PR tree-optimization/45316
15112 * tree-ssa-pre.c (eliminate): Properly clean EH info.
15114 2010-08-25 Richard Guenther <rguenther@suse.de>
15116 PR tree-optimization/45393
15117 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
15118 and clean EH info. Avoid SSA update.
15119 (execute_cse_sincos): Cleanup the CFG if it has changed.
15121 2010-08-25 Richard Guenther <rguenther@suse.de>
15123 PR middle-end/45379
15124 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
15125 TARGET_MEM_REF in alignment computation.
15127 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15129 PR tree-optimization/45059
15130 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
15131 type conversions from newop{1,2}. Assert t is a comparison and
15132 newop{1,2} after the stripping are gimple vals.
15134 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
15136 * config/arm/iterators.md (VU, SE, V_widen_l): New.
15137 (V_unpack, US): New.
15138 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
15139 (vec_unpack<US>_lo_<mode>): Likewise.
15140 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
15141 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15142 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
15143 (vec_widen_<US>mult_hi_<mode>): Likewise.
15144 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
15145 (neon_vec_<US>mult_hi_<mode>"): Likewise.
15146 (neon_unpack<US>_<mode>): Widening move intermediate step for
15147 vectorizing without -mvectorize-with-neon-quad.
15148 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
15149 for vectorizing without -mvectorize-with-neon-quad.
15150 * config/arm/predicates.md (vect_par_constant_high): Check for
15151 high-half lanes of a vector.
15152 (vect_par_constant_low): Check for low-half lanes of a vector.
15154 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15156 * tree-if-conv.c (struct ifc_dr): New.
15158 (DR_WRITTEN_AT_LEAST_ONCE): New.
15159 (DR_RW_UNCONDITIONALLY): New.
15160 (memref_read_or_written_unconditionally): Use the cached values
15162 (write_memref_written_at_least_once): Same.
15163 (if_convertible_loop_p): Initialize and free DR->aux fields.
15165 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15167 * gimple.c (gimple_could_trap_p_1): Not static anymore.
15168 Pass an extra bool parameter include_mem.
15169 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
15170 (gimple_assign_rhs_could_trap_p): Same.
15171 * gimple.h (gimple_could_trap_p_1): Declared.
15172 * tree-data-ref.h (same_data_refs_base_objects): New.
15173 (same_data_refs): New.
15174 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
15175 (write_memrefs_written_at_least_once): New.
15176 (ifcvt_memrefs_wont_trap): New.
15177 (operations_could_trap): New.
15178 (ifcvt_could_trap_p): New.
15179 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
15180 Gets a vector of data refs.
15181 (if_convertible_stmt_p): Same.
15182 (if_convertible_loop_p_1): New.
15183 (if_convertible_loop_p): Call if_convertible_loop_p_1.
15185 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15187 * common.opt (ftree-loop-if-convert-stores): New flag.
15188 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
15189 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
15190 the created statement before GSI.
15191 (if_convertible_phi_p): Allow virtual phi nodes when
15192 flag_loop_if_convert_stores is set.
15193 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
15194 Do not handle types that do not match is_gimple_reg_type.
15195 Remove loop and bb parameters. Call gimple_could_trap_p instead of
15196 when flag_loop_if_convert_stores is set, as LHS can contain
15198 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
15199 to if_convertible_gimple_assign_stmt_p.
15200 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
15201 (replace_phi_with_cond_gimple_assign_stmt): Renamed
15202 predicate_scalar_phi. Do not handle virtual phi nodes.
15203 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
15204 Call predicate_scalar_phi.
15205 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
15206 just after the labels for flag_loop_if_convert_stores, otherwise
15207 insert the predicate in the end of the BB.
15208 (predicate_mem_writes): New.
15209 (combine_blocks): Call predicate_all_scalar_phis. When
15210 flag_loop_if_convert_stores is set, call predicate_mem_writes.
15211 (tree_if_conversion): Call mark_sym_for_renaming when
15212 flag_loop_if_convert_stores is set.
15213 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
15214 flag_loop_if_convert_stores is set.
15216 2010-08-24 Anatoly Sokolov <aesok@post.ru>
15218 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
15219 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
15220 (pa_function_value): Make static.
15221 (override_options): Rename to...
15222 (pa_option_override): ...this. Make static.
15223 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
15224 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
15225 TARGET_OPTION_OVERRIDE): Define.
15226 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
15227 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
15229 * config/pa/pa-protos.h (override_options): Remove.
15231 2010-08-24 Richard Guenther <rguenther@suse.de>
15233 PR middle-end/45379
15234 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
15235 if addr->index is NULL or zero.
15236 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
15237 TARGET_MEM_REF more properly.
15238 (indirect_ref_may_alias_decl_p): Likewise.
15239 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
15240 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
15242 2010-08-23 Anatoly Sokolov <aesok@post.ru>
15244 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
15245 (m32c_override_options): Rename to...
15246 (m32c_option_override): ...this. Make static.
15247 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
15248 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
15250 * config/m32c/m32c-protos.h (m32c_override_options,
15251 m32c_function_value_regno_p): Remove.
15253 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
15255 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
15256 Fix a typo in a previous commit.
15258 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
15260 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
15261 Pre-initialize innerloop_iters to one.
15263 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
15265 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
15266 existing static function global.
15268 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
15269 is changed to global.
15271 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
15272 may_be_nonaddressable_p on base, and don't collect this reference
15273 if the address of the base could not be taken.
15275 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15277 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
15278 enable the compiler to autovectorize mathmetical functions for
15279 power7 using the Mathematical Acceleration Subsystem library.
15281 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
15282 handle which vector math library we have.
15283 (rs6000_override_options): Add -mveclibabi=mass support.
15284 (rs6000_builtin_vectorized_libmass): New function to handle auto
15285 vectorizing math functions that are in the MASS library.
15286 (rs6000_builtin_vectorized_function): Call it.
15288 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15291 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15294 * gthr-posix.h (__gthread_active_init): Delete.
15295 (__gthread_active_p): Do activity check here.
15296 Don't include errno.h on hppa-hpux. Update comment.
15297 * gthr-posix95.h (__gthread_active_init): Delete.
15298 (__gthread_active_p): Do activity check here.
15299 Don't include errno.h on hppa-hpux. Update comment.
15300 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
15301 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
15302 add -lpthread when -mt or -pthread is specified.
15303 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
15304 (LINK_GCC_C_SEQUENCE_SPEC): Define.
15305 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
15306 (stublib.c, pthread_default_stacksize_np-stub.o,
15307 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
15308 $(T)libgcc_stub.a): Add methods.
15309 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
15310 (stublib.c, pthread_default_stacksize_np-stub.o,
15311 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
15312 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15313 pthread_mutex_unlock): New stubs.
15315 2010-08-22 Joseph Myers <joseph@codesourcery.com>
15317 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
15318 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
15320 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
15321 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
15322 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
15323 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
15324 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
15326 * cppspec.c: Include opts.h.
15327 (lang_specific_driver): Use cl_decoded_option structures.
15328 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
15329 * doc/tm.texi: Regenerate.
15330 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
15331 (driver_handle_option): Allow driver options needing no special
15333 (process_command): Decode options before call to
15334 lang_specific_driver. Pass decoded options to
15335 lang_specific_driver.
15336 * gcc.h (lang_specific_driver): Update prototype.
15337 * gccspec.c: Include opts.h.
15338 (lang_specific_driver): Use cl_decoded_option structures.
15339 * opts-common.c (option_ok_for_language, generate_option,
15340 generate_option_input_file): New.
15341 (decode_cmdline_option): Use option_ok_for_language.
15342 (decode_cmdline_options_to_array): Use generate_option_input_file.
15343 (handle_generated_option): Use generate_option.
15344 * opts.h (generate_option, generate_option_input_file): Declare.
15346 2010-08-22 Anatoly Sokolov <aesok@post.ru>
15348 * config/mips/mips.c (mips_override_options): Rename to...
15349 (mips_option_override): ...this. Make static.
15350 (TARGET_OPTION_OVERRIDE): Define.
15351 (mips_in_small_data_p): Update comment.
15352 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
15353 (FIXED_REGISTERS): Update comment.
15354 * config/mips/mips-protos.h (mips_override_options): Remove.
15356 2010-08-21 Olivier Hainque <hainque@adacore.com>
15358 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
15360 2010-08-21 Olivier Hainque <hainque@adacore.com>
15362 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
15363 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
15365 2010-08-20 Jan Hubicka <jh@suse.cz>
15367 * tree-pass.h (pass_ipa_cdtor_merge): New function.
15368 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
15370 (record_cdtor_fn): Move to ipa.c; do not test for
15372 (build_cdtor): Move to ipa.c; add code avoiding construction
15373 when target have ctors/dtors and there is only one ctor/dtor at given
15375 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
15376 sort; reverse order of constructors.
15377 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
15378 (cgraph_finalize_function): Do not call record_cdtor_fn.
15379 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
15380 (cgraph_build_static_cdtor): Move to ipa.c.
15381 * ipa.c: Include target.h and tree-iterator.h.
15382 (cgraph_build_static_cdtor, static_ctors, static_dtors,
15383 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
15384 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
15385 pass_ipa_cdtor_merge): New.
15386 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
15387 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
15390 2010-08-20 Jan Hubicka <jh@suse.cz>
15394 * cgraph.h (cgraph_only_called_directly_p,
15395 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
15397 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
15399 (cgraph_finalize_function): Static cdtors are reachable.
15400 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
15402 2010-08-20 Jan Hubicka <jh@suse.cz>
15404 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
15406 * lto-streamer-out.c (lto_output): Likewise.
15407 * passes.c (ipa_write_optimization_summaries): Initialize statement
15410 2010-08-20 Olivier Hainque <hainque@adacore.com>
15412 * tree.h (alias_diag_flags): New enum.
15413 (alias_pair): Add an 'emitted_diags' field.
15414 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
15415 (assemble_alias): Initialize emitted_diags of new pairs.
15417 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
15419 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15420 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15421 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15422 (STACK_CHECK_PROTECT): Define.
15423 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
15424 (output_probe_stack_range): Likewise.
15425 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
15426 builtin stack checking is enabled.
15427 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
15428 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15429 (probe_stack_range): New insn.
15431 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
15434 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
15437 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
15440 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15443 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
15444 to cover zero extension into 64-bit register.
15445 (*sse2_pextrw): Likewise.
15446 (*sse4_1_pextrd_zext): New insn.
15448 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
15450 revert r163410, partially revert r163267.
15451 * config/rs6000/darwin.h (LIB_SPEC): Remove.
15452 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
15455 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15457 PR middle-end/44974
15458 * builtins.c (expand_builtin): Don't optimize away
15459 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
15461 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
15463 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
15464 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
15465 alternative 1 of operand 2.
15467 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15468 Paolo Bonzini <bonzini@gnu.org>
15470 * simplify-rtx.c (simplify_unary_operation_1): Optimize
15471 (sign_extend (zero_extend (...)) and
15472 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
15474 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15476 PR rtl-optimization/45353
15477 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
15478 after bb_note is a BARRIER.
15480 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
15482 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
15485 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15486 Michael Matz <matz@suse.de>
15488 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
15490 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
15492 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
15493 (ggc_mark_roots): ...here.
15495 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
15497 * vec.h (FOR_EACH_VEC_ELT): Define.
15498 * c-decl.c: Use it.
15499 * cfgloop.c: Likewise.
15500 * cfgloopmanip.c: Likewise.
15501 * cgraph.c: Likewise.
15502 * cgraphunit.c: Likewise.
15503 * combine.c: Likewise.
15504 * config/bfin/bfin.c: Likewise.
15505 * config/mips/mips.c: Likewise.
15506 * config/rs6000/rs6000.c: Likewise.
15507 * dbxout.c: Likewise.
15508 * df-scan.c: Likewise.
15509 * dominance.c: Likewise.
15511 * dwarf2out.c: Likewise.
15512 * except.c: Likewise.
15513 * expr.c: Likewise.
15514 * function.c: Likewise.
15515 * gcse.c: Likewise.
15516 * genattr.c: Likewise.
15517 * ggc-common.c: Likewise.
15518 * gimplify.c: Likewise.
15519 * graphite-blocking.c: Likewise.
15520 * graphite-clast-to-gimple.c: Likewise.
15521 * graphite-dependences.c: Likewise.
15522 * graphite-interchange.c: Likewise.
15523 * graphite-poly.c: Likewise.
15524 * graphite-scop-detection.c: Likewise.
15525 * graphite-sese-to-poly.c: Likewise.
15526 * graphite.c: Likewise.
15527 * haifa-sched.c: Likewise.
15528 * ifcvt.c: Likewise.
15529 * implicit-zee.c: Likewise.
15530 * ipa-prop.c: Likewise.
15531 * ipa-struct-reorg.c: Likewise.
15533 * ira-build.c: Likewise.
15534 * ira-color.c: Likewise.
15535 * ira-emit.c: Likewise.
15536 * lambda-code.c: Likewise.
15537 * loop-invariant.c: Likewise.
15538 * loop-unroll.c: Likewise.
15539 * lower-subreg.c: Likewise.
15540 * lto-cgraph.c: Likewise.
15541 * lto-opts.c: Likewise.
15542 * lto-streamer-in.c: Likewise.
15543 * lto-streamer-out.c: Likewise.
15544 * lto-streamer.c: Likewise.
15545 * lto-symtab.c: Likewise.
15546 * matrix-reorg.c: Likewise.
15547 * opts.c: Likewise.
15548 * predict.c: Likewise.
15549 * print-tree.c: Likewise.
15550 * sdbout.c: Likewise.
15551 * sel-sched-dump.c: Likewise.
15552 * sel-sched-ir.c: Likewise.
15553 * sel-sched.c: Likewise.
15554 * sese.c: Likewise.
15555 * stor-layout.c: Likewise.
15556 * tree-cfg.c: Likewise.
15557 * tree-cfgcleanup.c: Likewise.
15558 * tree-chrec.c: Likewise.
15559 * tree-data-ref.c: Likewise.
15560 * tree-emutls.c: Likewise.
15561 * tree-inline.c: Likewise.
15562 * tree-into-ssa.c: Likewise.
15563 * tree-loop-distribution.c: Likewise.
15564 * tree-loop-linear.c: Likewise.
15565 * tree-mudflap.c: Likewise.
15566 * tree-outof-ssa.c: Likewise.
15567 * tree-parloops.c: Likewise.
15568 * tree-predcom.c: Likewise.
15569 * tree-pretty-print.c: Likewise.
15570 * tree-scalar-evolution.c: Likewise.
15571 * tree-ssa-live.c: Likewise.
15572 * tree-ssa-loop-im.c: Likewise.
15573 * tree-ssa-loop-ivcanon.c: Likewise.
15574 * tree-ssa-loop-ivopts.c: Likewise.
15575 * tree-ssa-loop-manip.c: Likewise.
15576 * tree-ssa-loop-niter.c: Likewise.
15577 * tree-ssa-loop-prefetch.c: Likewise.
15578 * tree-ssa-phiprop.c: Likewise.
15579 * tree-ssa-pre.c: Likewise.
15580 * tree-ssa-reassoc.c: Likewise.
15581 * tree-ssa-sccvn.c: Likewise.
15582 * tree-ssa-structalias.c: Likewise.
15583 * tree-ssa.c: Likewise.
15584 * tree-vect-data-refs.c: Likewise.
15585 * tree-vect-loop-manip.c: Likewise.
15586 * tree-vect-loop.c: Likewise.
15587 * tree-vect-patterns.c: Likewise.
15588 * tree-vect-slp.c: Likewise.
15589 * tree-vect-stmts.c: Likewise.
15590 * tree-vrp.c: Likewise.
15591 * tree.c: Likewise.
15592 * value-prof.c: Likewise.
15593 * var-tracking.c: Likewise.
15594 * varasm.c: Likewise.
15595 * vmsdbgout.c: Likewise.
15597 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
15598 Richard Guenther <richard.guenther@gmail.com>
15600 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
15601 copy the src value and return a copy.
15602 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
15603 (C++ Volatiles): Adjust to describe C++ semantics only.
15605 2010-08-20 Joseph Myers <joseph@codesourcery.com>
15607 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
15608 be zero or nonzero.
15609 * doc/tm.texi: Regenerate.
15610 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
15611 * df-scan.c (df_get_exit_block_use_set), reginfo.c
15612 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
15613 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
15614 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
15617 2010-08-20 Olivier Hainque <hainque@adacore.com>
15619 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
15620 an extra nop past a sibling call at the very end.
15622 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
15625 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
15628 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
15630 * target.def (function_arg, function_incoming_arg): Remove const
15631 qualifier on CUMULATIVE_ARGS parameter.
15632 * targhooks.h (default_function_arg, default_function_incoming_arg):
15634 * targhooks.c (default_function_arg, default_function_incoming_arg):
15636 * config/i386/i386.c (ix86_function_arg): Likewise.
15638 2010-08-19 Jakub Jelinek <jakub@redhat.com>
15641 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
15642 SIGN_EXTENDs or ZERO_EXTENDs.
15644 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
15647 * combine.c (combine_validate_cost): New arg I0. All callers changed.
15648 Take its cost into account if nonnull.
15649 (insn_a_feeds_b): New static function.
15650 (combine_instructions): Look for four-insn combinations.
15651 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
15652 them into account when computing all_adjacent and looking for other
15654 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
15655 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
15656 (try_combine): New arg I0. Handle four-insn combinations.
15657 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
15660 2010-08-19 Jason Merrill <jason@redhat.com>
15663 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
15665 (gimplify_modify_expr_rhs): Adjust.
15667 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
15669 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
15671 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
15672 * dominance.c (iterate_fix_dominators): Likewise.
15673 * dse.c (set_usage_bits): Likewise.
15674 (set_position_unneeded, record_store): Likewise.
15675 * gimple-fold.c (get_maxval_strlen): Likewise.
15676 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
15677 * ipa-inline.c (update_caller_keys): Likewise.
15678 * ipa-split.c (verify_non_ssa_vars): Likewise.
15679 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
15680 (close_type_exposed_parameter, close_type_full_escape): Likewise.
15681 (close_addressof_down): Likewise.
15682 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
15683 (setup_allocno_left_conflicts_size): Likewise.
15684 (ira_reassign_conflict_allocnos): Likewise.
15685 (ira_reassign_pseudos): Likewise.
15686 * ira-emit.c (change_loop): Likewise.
15687 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
15688 * lto-streamer-out.c (write_symbol): Likewise.
15689 * predict.c (expr_expected_value_1): Likewise.
15690 * regstat.c (regstat_bb_compute_ri): Likewise.
15691 * sel-sched.c (create_block_for_bookkeeping): Likewise.
15692 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
15693 * stmt.c (expand_case): Likewise.
15694 * tree-eh.c (emit_eh_dispatch): Likewise.
15695 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
15696 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
15698 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
15699 (rdg_build_components): Likewise.
15700 * tree-object-size.c (collect_object_sizes_for): Likewise.
15701 * tree-sra.c (convert_callers): Likewise.
15702 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
15703 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
15704 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
15706 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
15708 * config/i386/i386.md (*lea_1): Use P mode iterator.
15709 (lea add splitter): Also handle DImode operands.
15710 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
15711 predicate. Do not use ix86_lea_for_add_ok.
15712 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
15713 (lea ashift splitter): Also handle DImode operands.
15714 (DImode lea ashift splitter): Remove splitter.
15716 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
15718 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
15719 ix86_binary_operator_ok.
15721 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
15723 PR rtl-optimization/44691
15724 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
15727 2010-08-19 Ian Bolton <ian.bolton@arm.com>
15730 * config/arm/arm.c (arm_output_epilogue): Ensure that return
15731 value of size 1-3 is handled correctly.
15733 2010-08-19 Ian Bolton <ian.bolton@arm.com>
15735 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
15736 type for the conditional has wide enough range.
15738 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
15741 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
15742 ix86_binary_operator_ok.
15744 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
15746 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
15747 <default>: Swap operands 1 and 2 for alternative 2 to use existing
15748 code to output insn mnemonic. Fix comment.
15749 (*addsi_1_zext): Add r-r-0 alternative 1.
15750 <TYPE_LEA>: Split insn to lea.
15751 <default>: Handle alternative 1.
15752 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
15753 multi-level if_then_else RTX to set "type" attribute.
15754 <default>: Handle alternative 2.
15755 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15756 Use cond RTX instead of multi-level if_then_else RTX to set
15758 <default>: Handle alternatives 2 and 4.
15759 (lea splitters): Update calls to ix86_lea_for_add_ok.
15761 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15763 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15765 2010-08-18 Richard Guenther <rguenther@suse.de>
15767 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15768 use operand helpers.
15770 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
15772 PR middle-end/45292
15773 * optabs.c (expand_bool_compare_and_swap): Expand pending
15774 pops before trying the optab.
15776 2010-08-18 Yao Qi <yao@codesourcery.com>
15779 * config/arm/arm.c (output_move_double): Fix typo generating
15780 instructions ('ldr'->'str').
15782 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15784 PR rtl-optimization/42575
15785 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15788 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
15790 * config/arm/arm-protos.h (arm_expand_sync): New.
15791 (arm_output_memory_barrier, arm_output_sync_insn): New.
15792 (arm_sync_loop_insns): New.
15793 * config/arm/arm.c (FL_ARCH7): New.
15794 (FL_FOR_ARCH7): Include FL_ARCH7.
15796 (arm_print_operand): Support %C markup.
15797 (arm_legitimize_sync_memory): New.
15798 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15799 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15800 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15801 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15802 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15803 (arm_process_output_sync_insn, arm_output_sync_insn): New.
15804 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15805 * config/arm/arm.h (struct arm_sync_generator): New.
15806 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15807 (TARGET_HAVE_MEMORY_BARRIER): New.
15808 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15809 * config/arm/arm.md: Include sync.md.
15810 (UNSPEC_MEMORY_BARRIER): New.
15811 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15812 (VUNSPEC_SYNC_OP):New.
15813 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15814 (sync_result, sync_memory, sync_required_value): New attributes.
15815 (sync_new_value, sync_t1, sync_t2): Likewise.
15816 (sync_release_barrier, sync_op): Likewise.
15817 (length): Add logic to length attribute defintion to call
15818 arm_sync_loop_insns when appropriate.
15819 * config/arm/sync.md: New file.
15821 2010-08-17 Jakub Jelinek <jakub@redhat.com>
15823 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15824 ENABLE_TREE_CHECKING.
15825 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15828 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
15830 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15831 or optimizing for size, always avoid lea if possible.
15833 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15835 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
15837 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15838 Dunmmy function with NULL return unless the target is
15839 OSX >= 10.6 (Darwin10).
15841 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
15843 * gcc.c (spec_function): Add remove-outfile.
15844 (remove_outfile_spec_function): New function.
15845 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
15846 * invoke.texi (replace-outfile): Document.
15848 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
15851 * reginfo.c (globalize_reg): Reject stack registers.
15853 2010-08-17 Richard Guenther <rguenther@suse.de>
15855 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
15856 list of conditional equivalences.
15857 (free_all_edge_infos): Adjust.
15858 (record_equivalences_from_incoming_edge): Likewise.
15859 (record_cond): Likewise.
15860 (build_and_record_new_cond): Likewise.
15861 (record_conditions): Likewise.
15862 (dom_opt_leave_block): Likewise.
15864 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
15866 * doc/invoke.texi (ms-extension): Add documentation.
15868 2010-08-17 Richard Guenther <rguenther@suse.de>
15870 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
15872 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
15875 * c-decl.c (diagnose_uninitialized_cst_member): New function.
15876 (finish_decl): Use it to issue a -Wc++-compat warning about
15877 uninitialized const field in struct or union.
15879 (finish_struct): Use strip_array_types.
15881 2010-08-17 Jakub Jelinek <jakub@redhat.com>
15883 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
15885 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
15886 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
15887 call block_nreverse here.
15888 (blocks_nreverse): Rename decl temporary to block.
15890 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
15892 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
15893 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
15894 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
15895 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
15896 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
15897 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
15898 thumb2_iorsi3): Delete.
15899 (orsi_notsi_si): No longer a named pattern.
15900 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
15901 * config/arm/predicates.md (shift_amount_operand): New.
15902 (mult_operator): New.
15903 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
15904 attr enabled): New.
15905 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
15907 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
15908 (not_shiftsi_compare0): Likewise, renamed from
15909 arm_notsi_shiftsi_compare0.
15910 (not_shiftsi_compare0_scratch): Likweise, renamed from
15911 arm_notsi_shiftsi_compare0_scratch.
15912 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
15913 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
15914 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
15915 so that the register alternative is disabled when the shift_operator
15916 is MULT. Use "M" as the constraint for constants.
15917 (arith_shiftsi splitter): Enable for TARGET_32BIT.
15918 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
15919 constraint for constants.
15920 (arith_shiftsi_compare0_scratch): Likewise.
15921 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
15922 Handle Thumb2 alternative.
15924 2010-08-16 Joseph Myers <joseph@codesourcery.com>
15926 * doc/options.texi (NoDriverArg): Document.
15927 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
15929 * opt-functions.awk (switch_flags): Handle NoDriverArg.
15930 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
15931 marking for CL_NO_DRIVER_ARG options when in the driver.
15932 * opts.h (CL_NO_DRIVER_ARG): Define.
15933 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15934 CL_COMMON): Update values.
15936 2010-08-16 Joseph Myers <joseph@codesourcery.com>
15938 * common.opt: Add driver options.
15939 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
15940 * doc/options.texi (Driver, RejectDriver): Document.
15941 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
15942 print_prog_name, print_multi_directory, print_sysroot,
15943 print_multi_os_directory, print_multi_lib,
15944 print_sysroot_headers_suffix, report_times, combine_flag,
15945 use_pipes, wrapper_string): Remove.
15946 (save_switch, driver_unknown_option_callback,
15947 driver_wrong_lang_callback, driver_post_handling_callback,
15948 driver_handle_option): New.
15949 (spec_lang, last_language_n_infiles): Make file-scope static
15950 instead of local to process_command.
15951 (process_command): Use decode_cmdline_options_to_array and
15952 read_cmdline_option for option processing. Compute have_c in
15953 prescan of decoded options.
15954 * opt-functions.awk (switch_flags): Handle Driver and
15956 (var_type, var_type_struct): Handle Separate options as generating
15957 const char * variables.
15958 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
15959 CL_TARGET to be passed by caller if required.
15960 (decode_cmdline_options_to_array): Update comment.
15961 * opts.c (complain_wrong_lang): Handle options only valid for the
15963 (decode_options): Update call to decode_cmdline_options_to_array.
15964 (print_filtered_help): Ignore driver-only options.
15965 (print_specific_help): Ignore CL_DRIVER.
15966 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
15967 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
15968 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
15971 2010-08-16 Richard Guenther <rguenther@suse.de>
15973 * tree-cfg.c (verify_types_in_gimple_reference): Verify
15974 TARGET_MEM_REF a bit.
15975 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
15976 (create_mem_ref_raw): Always create TMR_OFFSET, store the
15977 alias pointer type via it.
15978 (copy_mem_ref_info): Adjust.
15979 (maybe_fold_tmr): Likewise.
15980 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
15981 (reference_alias_ptr_type): Likewise.
15982 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
15983 adjust documentation of TMR_OFFSET operand.
15984 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
15985 use the alias pointer type.
15986 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
15987 initialize mem attrs but the TMR itself.
15988 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
15989 similar to MEM_REF.
15990 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
15991 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
15992 (unshare_and_remove_ssa_names): Likewise.
15993 (copy_ref_info): Adjust.
15994 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
15995 TARGET_MEM_REF case.
15996 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
15998 * tree.h (TMR_ORIGINAL): Remove.
15999 * gimple.c (get_base_address): For TARGET_MEM_REF with a
16000 symbol return that.
16001 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
16003 (get_addr_base_and_unit_offset): Likewise.
16004 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
16006 (indirect_ref_may_alias_decl_p): Likewise.
16007 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
16009 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
16011 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
16012 with GCC version 4.6, the default setting (when not optimizing
16013 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
16014 been changed to -fomit-frame-pointer.
16016 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
16018 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
16019 Darwin10. Do not link libgcc.a for Darwin >= 9.
16021 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
16023 * doc/invoke.texi (Warning Options): Fix terminology and markup
16024 in the description of how unknown warning options are handled.
16026 2010-08-15 Ira Rosen <irar@il.ibm.com>
16028 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
16030 (vect_supportable_dr_alignment): Check alignment for basic blocks.
16031 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
16033 (vect_bb_vectorization_profitable_p): New function.
16034 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
16035 check if it's worthwhile to vectorize the basic block.
16037 2010-08-14 Anatoly Sokolov <aesok@post.ru>
16039 * reload.h (register_move_cost, memory_move_secondary_cost,
16040 secondary_reload_class): Adjust prototype.
16041 * rtl.h (reg_class_subset_p): Adjust prototype.
16042 * reload.c (secondary_reload_class): Change arguments type from
16043 enum reg_class to reg_class_t. Change result type to reg_class_t.
16044 * reginfo.c (register_move_cost, reg_class_subset_p): Change
16045 arguments type from enum reg_class to reg_class_t.
16046 (memory_move_secondary_cost): Change arguments type from
16047 enum reg_class to reg_class_t. Change type of saved_flags to
16050 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16052 (mips_cost): Remove.
16053 (struct mips_rtx_cost_data): Moved to mips.c.
16054 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
16055 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
16056 (mips_cost): Make static.
16057 (mips_canonicalize_move_class): Change argument type to reg_class_t.
16058 Change result type to reg_class_t.
16059 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
16060 type from enum reg_class to reg_class_t.
16061 (mips_register_move_cost): Make static. Change arguments
16062 type from enum reg_class to reg_class_t.
16063 (mips_memory_move_cost): New function.
16064 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16066 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
16068 PR rtl-optimization/43358
16069 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
16070 of a single hard register, using simplify_subreg_regno to decide
16071 what that register should be.
16073 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
16075 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
16076 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
16077 (loongson_pmull<V_suffix>): Rename to...
16078 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
16080 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
16082 * configure.ac: Enable -fomit-frame-pointer on darwin
16083 which support dwarf2.
16084 * config/i386/i386.c (override_options): Same.
16086 2010-08-13 Jie Zhang <jie@codesourcery.com>
16088 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
16090 2010-08-12 Joseph Myers <joseph@codesourcery.com>
16092 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
16095 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
16097 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
16098 up dot_prod pattern searching if a stmt is outside the loop.
16100 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
16101 Uros Bizjak <ubizjak@gmail.com>
16103 * config.gcc: Handle --enable-frame-pointer.
16105 * configure.ac: Add --enable-frame-pointer.
16106 * configure: Regenerated.
16108 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
16109 (override_options): If not configured with --enable-frame-pointer,
16110 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
16111 optimizing for size), -fasynchronous-unwind-tables and
16112 -maccumulate-outgoing-args by default.
16114 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16116 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
16118 PR middle-end/45262
16119 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
16120 -a overflows. Normalize the range.
16122 2010-08-12 Richard Guenther <rguenther@suse.de>
16124 PR tree-optimization/45232
16125 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
16126 for types with undefined overflow.
16127 (reassociate_bb): Allow re-associating of bit and min/max
16128 operations for types with undefined overflow.
16129 * tree-ssa-forwprop.c (associate_plusminus): New function.
16130 (tree_ssa_forward_propagate_single_use_vars): Call it.
16132 2010-08-12 Richard Guenther <rguenther@suse.de>
16134 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
16135 * tree-ssa-alias.c (get_ptr_info): Move ...
16136 * tree-ssanames.c (get_ptr_info): ... here. Initialize
16137 align and misalign fields conservatively.
16138 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
16139 derive alignment information.
16140 (evaluate_stmt): Derive alignment information from memory
16141 allocation functions.
16142 * tree.h (get_pointer_alignment): Make unsigned.
16143 * builtins.c (get_object_alignment): Use alignment information we
16144 have computed for pointers.
16145 (get_pointer_alignment): Likewise. Make conservative, return
16146 and unsigned value.
16147 (expand_builtin_strlen): Adjust.
16148 (expand_builtin_memcmp): Likewise.
16149 (expand_builtin_strcmp): Likewise.
16150 (expand_builtin_strncmp): Likewise.
16151 (get_builtin_sync_mem): Use at least mode alignment.
16152 (fold_builtin_memset): Adjust.
16153 (fold_builtin_memory_op): Likewise.
16154 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
16155 information also dump pointer alignment knowledge.
16156 (dump_gimple_stmt): Likewise.
16158 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
16160 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
16161 (EMPTY_FIELD_BOUNDARY): Remove.
16162 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
16164 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16167 * caller-save.c (save_call_clobbered_regs): Only swap notes with
16168 DEBUG_INSNs if n_regs_saved.
16170 2010-08-12 Wei Guozhi <carrot@google.com>
16173 * config/arm/arm.md (andsi3): Change to zero extension if possible.
16174 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
16176 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
16178 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
16180 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
16182 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16184 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
16185 the case removed in the previous patch, when the only phi argument
16186 is defined in the same loop as the phi node itself. Handle it
16187 separately from the invariant case by both propagating it outside
16188 the region and replacing the phi node with an assign.
16190 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16192 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
16193 constant phi nodes with one argument are is_gimple_min_invariant
16194 and SSA_NAME_IS_DEFAULT_DEF.
16196 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16198 * graphite-cloog-util.c (oppose_constraint):
16199 Extend loop counter's value range (CLOOG_ORG).
16200 (cloog_matrix_to_ppl_constraint): Same.
16201 (new_Constraint_System_from_Cloog_matrix): Same.
16202 * graphite-cloog-compat.h (matrix_num_type): New.
16204 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16206 * graphite.c (graphite_initialize): Do not initialize
16207 CLooG and initialize the Parma Polyhedra Library
16208 manually when using CLOOG_ORG.
16209 (graphite_finalize): Do not finalize CLooG and finalize
16210 the Parma Polyhedra Library manually when using CLOOG_ORG.
16211 * graphite-cloog-compat.h (cloog_initialize): Hide function
16212 when using CLOOG_ORG.
16213 (cloog_finalize): Same.
16215 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16217 * graphite-clast-to-gimple.c (free_scattering): Change
16218 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
16220 (build_cloog_prog): Same.
16221 * graphite-cloog-compat.h (cloog_domain): Removed.
16222 (cloog_scattering): New.
16223 (cloog_set_domain): Removed.
16224 (cloog_set_scattering): New.
16225 (cloog_next_domain): Removed.
16226 (cloog_next_scattering): New.
16227 (cloog_set_next_domain): Removed.
16228 (cloog_set_next_scattering): New.
16229 (CloogScatteringList): New.
16230 (CloogScattering): New.
16231 (cloog_scattering_free): New.
16232 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
16233 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
16236 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16238 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
16240 (set_cloog_options): Same.
16241 (print_clast_stmt): Same.
16242 (scop_to_clast): Same.
16243 (print_generated_program): Same.
16245 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
16246 (scop_to_clast): Extend with CloogState.
16247 * graphite-cloog-util.c: Include graphite-cloog-compat.h
16248 (new_Cloog_Domain_from_ppl_Polyhedron):
16249 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
16250 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
16251 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16252 * graphite-cloog-util.h (build_cloog_prog): Same.
16253 * graphite-cloog-copat.h (build_cloog_prog): New.
16255 (cloog_state_malloc): New.
16256 (cloog_state_free): New.
16257 (cloog_loop_malloc): New.
16258 (cloog_options_malloc): New.
16259 (cloog_statement_alloc): New.
16260 (cloog_domain_from_cloog_matrix): New.
16261 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
16262 (new_Cloog_Domain_from_ppl_Polyhedron): New.
16264 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16266 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
16267 type of NAME now depends on used CLooG version.
16268 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
16269 (gcc_type_for_clast_expr): Same.
16270 (print_clast_stmt): Replace pprint with clast_pprint.
16271 * graphite-cloog-compat.h: Provide compatibility macros for
16273 (clast_name_p): New.
16274 (clast_expr_term): New.
16275 (clast_expr_red): New.
16276 (clast_expr_bin): New.
16277 (clast_pprint): New.
16279 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16281 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
16282 compatible to newer CLooG releases (CLOOG_ORG).
16283 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
16284 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
16285 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
16286 (build_cloog_prog) : New.
16287 (cloog_program_extract_scalars): New.
16288 (cloog_program_scatter): New.
16290 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16292 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
16293 conditionally (CLOOG_ORG).
16294 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
16295 (cloog_statement_usr): New.
16296 (cloog_domain): Same.
16297 (cloog_set_domain): Same.
16298 (cloog_next_domain): Same.
16299 (cloog_set_next_domain): Same.
16300 (cloog_program_nb_scattdims): Same.
16301 (cloog_program_set_nb_scattdims): Same.
16302 (cloog_program_names): Same.
16303 (cloog_program_set_names): Same.
16304 (cloog_program_set_context): Same.
16305 (cloog_program_set_loop): Same.
16306 (cloog_program_blocklist): Same.
16307 (cloog_program_set_blocklist): Same.
16308 (cloog_program_scaldims): Same.
16309 (cloog_program_set_scaldims): Same.
16310 (cloog_names_nb_parameters): Same.
16311 (cloog_names_set_nb_parameters): Same.
16312 (cloog_names_parameters): Same.
16313 (cloog_names_set_parameters): Same.
16314 (cloog_names_set_nb_iterators): Same.
16315 (cloog_names_set_iterators): Same.
16316 (cloog_names_set_nb_scattering): Same.
16317 (cloog_names_set_scattering): Same.
16318 (cloog_statement_set_usr): Same.
16319 (cloog_loop_set_next): Same.
16320 (cloog_loop_set_domain): Same.
16321 (cloog_loop_set_block): Same.
16322 (cloog_block_list_next): Same.
16323 (cloog_block_list_set_next):
16324 (cloog_block_list_set_block): Same.
16326 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16328 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
16330 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
16331 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
16332 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
16333 when something has been changed.
16334 (rewrite_commutative_reductions_out_of_ssa): Same.
16336 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16338 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
16339 handle the case when def is in the sese region.
16340 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
16341 for invariant expressions.
16342 (rewrite_cross_bb_phi_deps): Removed.
16343 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
16344 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
16345 rewrite_cross_bb_phi_deps.
16347 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16349 * graphite-sese-to-poly.c
16350 (rewrite_commutative_reductions_out_of_ssa_loop): Call
16351 scev_analyzable_p only on is_gimple_reg
16353 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16355 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
16356 (rewrite_close_phi_out_of_ssa): Propagate constant values or
16357 parametric expressions outside the scop region.
16358 (rewrite_cross_bb_scalar_deps): Same.
16359 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
16361 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16363 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
16364 SSA_NAME_DEF_STMT only on SSA_NAMEs.
16366 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16368 * tree-scalar-evolution.c (instantiate_scev_name): Do not
16369 instantiate default definitions.
16371 2010-08-11 Vladimir Kargov <kargov@gmail.com>
16372 Sebastian Pop <sebastian.pop@amd.com>
16374 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
16375 (loop_exits_from_bb_p): New.
16376 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
16377 (loop_exits_from_bb_p): Declared.
16378 * graphite-scop-detection.c (scopdet_basic_block_info): Call
16379 loop_exits_to_bb_p.
16381 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16383 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
16384 extra parameter for the region. Call scev_analyzable_p.
16385 (rewrite_reductions_out_of_ssa): Update call to
16386 rewrite_close_phi_out_of_ssa.
16387 (rewrite_cross_bb_phi_deps): Same.
16388 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
16389 parameter for the region. Call scev_analyzable_p.
16390 (rewrite_commutative_reductions_out_of_ssa): Update call to
16391 rewrite_commutative_reductions_out_of_ssa_loop.
16393 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16395 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
16397 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16399 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
16400 SSA scalar phi nodes that can be scev_analyzable_p.
16402 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16404 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
16405 handle SSA_NAME_IS_DEFAULT_DEF.
16407 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16409 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
16411 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16413 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
16414 case non close-phi nodes with one argument.
16416 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16418 * sese.h (scev_analyzable_p): Scevs could be expressions without
16419 chrecs and still be scev_analyzable_p.
16421 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16423 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16425 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16427 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
16428 * cfgloop.h (struct loop): Remove single_iv field.
16429 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
16430 (scop_canonicalize_loops): Removed.
16431 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
16432 over all the loop phi nodes in loop->header.
16433 (build_poly_scop): Remove use of scop_canonicalize_loops.
16435 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16437 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
16438 handle GIMPLE_CALL.
16440 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16442 * tree-chrec.c (chrec_apply): Should only apply to the specified
16443 variable. Also handle multivariate chains of recurrences that
16444 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
16446 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16448 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
16449 (debug_clast_name_indexes_1): Removed.
16450 (debug_clast_name_indexes): Removed.
16451 (pbb_to_depth_to_oldiv): Removed.
16452 (build_iv_mapping): Replace the use of rename_map with iv_map.
16453 (translate_clast_user): Remove uses of rename_map. Allocate and
16455 (translate_clast_for_loop): Remove uses of rename_map.
16456 (translate_clast_for): Same.
16457 (translate_clast_guard): Same.
16458 (translate_clast): Same.
16460 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
16461 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
16462 * sese.c (set_rename): Now static.
16463 (rename_variables_in_stmt): Removed.
16464 (rename_uses): New.
16465 (is_parameter): Removed.
16467 (expand_scalar_variables_call): Removed.
16468 (expand_scalar_variables_ssa_name): Removed.
16469 (expand_scalar_variables_expr): Removed.
16470 (expand_scalar_variables_stmt): Removed.
16471 (expand_scalar_variables): Removed.
16472 (rename_variables): Removed.
16473 (remove_condition): Removed.
16474 (get_true_edge_from_guard_bb): Removed.
16475 (get_false_edge_from_guard_bb): Removed.
16476 (struct igp): Removed.
16477 (default_before_guard): Removed.
16478 (convert_for_phi_arg): Removed.
16479 (add_guard_exit_phis): Removed.
16480 (insert_guard_phis): Removed.
16481 (graphite_copy_stmts_from_block): Now also uses iv_map and a
16482 region. Do not copy conditions. Do not copy induction variables.
16484 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
16485 the translated statement. Use the iv_map for the induction
16487 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
16488 (set_rename): Removed declaration.
16489 (scev_analyzable_p): ...here.
16490 * tree-chrec.c (chrec_apply_map): New.
16491 * tree-chrec.h (chrec_apply_map): Declared.
16493 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16495 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
16496 insert_loop_close_phis.
16497 * sese.c (name_defined_in_loop_p): Removed.
16498 (expr_defined_in_loop_p): Removed.
16499 (alive_after_loop): Removed.
16500 (close_phi_not_yet_inserted_p): Removed.
16501 (struct alep): Removed.
16502 (add_loop_exit_phis): Removed.
16503 (insert_loop_close_phis): Removed.
16505 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16507 * graphite-cloog-util.c
16508 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
16510 (psct_scattering_dim_for_loop_depth): Same.
16512 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16514 * graphite-cloog-util.h: Added cloog.h.
16515 * graphite-blocking.c: Removed cloog.h.
16516 * graphite-dependences.c: Same.
16517 * graphite-interchange.c: Same.
16518 * graphite-poly.c: Same.
16519 * graphite-ppl.c: Same.
16520 * graphite-scop-detection.c: Same.
16521 * graphite-sese-to-poly.c:
16523 Removed graphite-clast-to-gimple.h.
16524 (check_poly_representation): Removed (unused).
16525 * graphite-sese-to-poly.h
16526 (check_poly_representation): Removed (unused).
16528 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16530 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
16531 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
16532 (graphite-cloog-util.o): New.
16533 (graphite-ppl.o): Added graphite-cloog-util.h.
16534 * graphite-clast-to-gimple.c:
16535 Added graphite-cloog-util.h to include statements.
16536 * graphite-cloog-util.c: New.
16537 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
16538 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16539 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16540 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16541 (insert_constraint_into_matrix): Same.
16542 (ppl_Constrain_System_number_of_constraints): Same.
16543 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16544 (oppose_constraint): Same.
16545 (cloog_matrix_to_ppl_constraint): Same.
16546 (new_Constraint_System_from_Cloog_Matrix): Same.
16547 * graphite-cloog-util.h: New.
16548 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
16549 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16550 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16551 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16552 (insert_constraint_into_matrix): Same.
16554 Added graphite-cloog-util.h to include statements.
16555 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
16556 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16557 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16558 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16559 (insert_constraint_into_matrix): Same.
16560 (ppl_Constrain_System_number_of_constraints): Same.
16561 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16562 (oppose_constraint): Same.
16563 (cloog_matrix_to_ppl_constraint): Same.
16564 (new_Constraint_System_from_Cloog_Matrix): Same.
16566 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
16567 graphite-cloog-util.h.
16568 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16569 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16570 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16571 (insert_constraint_into_matrix): Same.
16573 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16575 * graphite-clast-to-gimple.c
16576 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
16577 (precision_for_interval): Same.
16578 (gcc_type_for_interval): Same.
16579 (compute_type_for_level): Same.
16580 * graphite-interchange.c
16581 (lst_interchange_profitable_p): Same.
16583 (psct_scattering_dim_for_loop_depth): Same.
16585 (ppl_max_for_le_pointset): Same.
16586 (ppl_min_for_le_pointset): Same.
16588 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16590 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
16591 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
16593 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16595 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
16596 rewrite_close_phi_out_of_ssa.
16598 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16600 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
16602 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16604 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
16606 * sese.c (debug_rename_map): Same.
16607 (get_rename): Same.
16608 (set_rename): Same.
16609 (rename_variables_in_stmt): Same.
16610 (expand_scalar_variables_call): Same.
16611 (expand_scalar_variables_ssa_name): Same.
16612 (expand_scalar_variables_expr): Same.
16613 (expand_scalar_variables_stmt): Same.
16614 (expand_scalar_variables): Same.
16615 (rename_variables): Same.
16616 (graphite_copy_stmts_from_block): Same.
16617 (copy_bb_and_scalar_dependences): Same.
16619 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16621 * graphite-clast-to-gimple.c (copy_renames): Removed.
16622 (translate_clast_for): Do not call copy_renames.
16623 (translate_clast_guard): Same.
16625 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16627 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
16628 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
16629 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
16630 before rewrite_cross_bb_scalar_deps.
16632 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16634 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
16635 Early return in when flag_associative_math is not set.
16637 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16639 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
16640 of SSA copies on edges except for loop->latch.
16642 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16644 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
16645 Split out of rewrite_reductions_out_of_ssa.
16646 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
16648 * graphite.c (graphite_transform_loops): Call it.
16650 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16652 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
16654 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
16656 * dbgcnt.def (graphite_scop): New counter.
16657 * graphite.c: Include dbgcnt.h.
16658 (graphite_transform_loops): Use new counter to limit transformations.
16659 * Makefile.in (graphite.o): Depend on DBGCNT_H.
16661 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16663 * passes.c (init_optimization_passes): Add pass_graphite.
16664 Schedule a pass_copy_prop before pass_graphite_transforms.
16665 * timevar.def (TV_GRAPHITE): Declared.
16666 * tree-pass.h (pass_graphite): Declared.
16667 * tree-ssa-loop.c (pass_graphite): New.
16669 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16671 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
16672 Remove calls to rename_nb_iterations and rename_sese_parameters.
16673 * graphite-clast-to-gimple.h (gloog): Update declaration.
16674 * graphite.c (graphite_transform_loops): Update call to gloog.
16675 * sese.c (rename_variables_in_expr): Removed.
16676 (rename_nb_iterations): Removed.
16677 (rename_sese_parameters): Removed.
16678 * sese.h (rename_nb_iterations): Removed.
16679 (rename_sese_parameters): Removed.
16681 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16683 * graphite-clast-to-gimple.c (gloog): Remove call to
16684 sese_adjust_liveout_phis.
16685 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
16686 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
16687 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
16688 rewrite_phi_out_of_ssa.
16689 * sese.c (get_vdef_before_sese): Removed.
16690 (sese_adjust_vphi): Removed.
16691 (sese_adjust_liveout_phis): Removed.
16692 * sese.h (sese_adjust_liveout_phis): Removed.
16694 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16696 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
16697 argument for the place after which to insert the out of SSA copy.
16698 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
16699 (rewrite_phi_out_of_ssa): Same.
16700 (rewrite_cross_bb_scalar_deps): Same.
16701 (insert_copyout): Removed.
16702 (insert_copyin): Removed.
16703 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
16704 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
16707 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16709 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
16710 (rewrite_reductions_out_of_ssa): Same.
16711 (rewrite_commutative_reductions_out_of_ssa): Same.
16712 (build_poly_scop): Do not call these functions.
16713 * graphite-sese-to-poly.h (build_poly_scop): Declared.
16714 (rewrite_reductions_out_of_ssa): Declared.
16715 (rewrite_commutative_reductions_out_of_ssa): Declared.
16716 * graphite.c (graphite_transform_loops): Call on every scop
16717 rewrite_commutative_reductions_out_of_ssa before calling
16718 rewrite_reductions_out_of_ssa and build_scop_bbs.
16720 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16722 * graphite-dependences.c (dot_deps): Make system call to dotty run
16724 (dot_deps_stmt): Same.
16725 * graphite-poly.c (dot_lst): Same.
16727 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16729 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
16730 phi_arg_in_outermost_loop.
16731 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
16732 (remove_invariant_phi): Same.
16734 2010-08-11 Anatoly Sokolov <aesok@post.ru>
16736 * target.def (output_addr_const_extra): New hook.
16737 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
16738 * doc/tm.texi: Regenerate.
16739 * targhooks.c (default_asm_output_addr_const_extra): New function.
16740 * targhooks.h (default_asm_output_addr_const_extra): Declare.
16741 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16744 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16745 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
16746 * config/i386/i386.h (output_addr_const_extra): Rename to...
16747 (i386_asm_output_addr_const_extra): ...this. Make static.
16748 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16750 2010-08-11 Richard Henderson <rth@redhat.com>
16752 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
16754 2010-08-11 Nick Clifton <nickc@redhat.com>
16756 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16757 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16758 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16759 stormy16-lib2-cmpsi.c.
16761 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16764 2010-08-11 Joseph Myers <joseph@codesourcery.com>
16766 * opts.h (struct cl_option_handler_func): Make handler take
16767 cl_decoded_option structure as parameter, not individual elements.
16768 (struct cl_option_handlers): Make callbacks take cl_decoded_option
16769 structure as parameter, not individual elements.
16770 (handle_option): Take cl_decoded_option structure as parameter,
16771 not individual elements.
16772 (handle_generated_option): Declare.
16773 * opts-common.c (handle_option): Take cl_decoded_option structure
16774 as parameter, not individual elements. Update calls to callback
16775 and handler functions.
16776 (handle_generated_option): New.
16777 (read_cmdline_option): Update calls to callback functions and
16779 * opts.c (common_handle_option, complain_wrong_lang,
16780 unknown_option_callback, post_handling_callback,
16781 lang_handle_option, target_handle_option): Take cl_decoded_option
16782 structure as parameter, not individual elements.
16783 (lang_handle_option, target_handle_option, common_handle_option):
16784 Assert option has at most one argument.
16785 (enable_warning_as_error): Call handle_generated_option instead of
16786 handle_option. Do not pass -Werror argument as argument of
16789 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16791 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16792 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16793 (SUBWORD_BOOL_CAS): Likewise.
16794 (SUBWORD_SYNC_OP): Likewise.
16795 (SUBWORD_TEST_AND_SET): Likewise.
16796 (FETCH_AND_OP_WORD): Parenthesise INF_OP
16797 (SUBWORD_SYNC_OP): Likewise.
16798 (OP_AND_FETCH_WORD): Likewise.
16800 2010-08-10 Xinliang David Li <davidxl@google.com>
16802 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16803 compute max/min offset in address.
16805 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
16807 * ira-live.c: Include sbitmap.h.
16808 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16809 Compress live ranges even more.
16811 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16813 * coverage.c (ctr_labels): Delete.
16815 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
16818 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16819 test here from arm_gen_load_multiple_1.
16820 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16821 multiple_operation_profitable_p.
16823 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16825 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16826 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
16828 2010-08-10 Richard Henderson <rth@redhat.com>
16830 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16831 after saving registers. Assert that SSE registers are only saved
16832 with a sufficiently aligned frame.
16833 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16834 remove stack_realign_fp handling.
16835 (ix86_expand_prologue): Save int registers before stack_realign_fp,
16836 and do not mark the stack alignment as frame related.
16837 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16839 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16840 saves when re-aligning the stack.
16842 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16844 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
16845 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
16846 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
16848 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16850 * dwarf2out.c (struct die_struct): Move die_tag to the end.
16852 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
16854 * config/arm/iterators.md: New file.
16855 * config/arm/arm.md: Include iterators.md.
16856 (QHSI): Move to new file.
16857 (LTUGEU, cnb, optab, ior_xor): Likewise.
16858 * config/arm/iwmmxt.md (VMMX): Move to new file.
16859 (VSHFT, MMX_char): Likewise.
16860 * config/arm/neon.md (VD): Move to new file.
16861 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
16862 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
16863 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
16864 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
16865 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
16866 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
16867 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
16868 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
16869 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
16870 (Is_d_reg, V_mode_nunits): Likewise.
16871 * config/arm/vec-common.md (VALL): Move to new file.
16872 (VALLW, VINT, VINTW): Likewise.
16874 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
16876 PR middle-end/45182
16877 * combine.c (make_compound_operation): Don't try to convert
16878 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
16880 2010-08-10 Richard Guenther <rguenther@suse.de>
16882 * tree.h (get_object_alignment): Adjust prototype.
16883 * builtins.c (get_object_alignment): Return unsigned int,
16884 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
16885 and TARGET_MEM_REF properly.
16886 (get_pointer_alignment): Adjust.
16887 * emit-rtl.c (get_mem_align_offset): Adjust comment.
16888 (set_mem_attributes_minus_bitpos): Adjust.
16889 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
16891 2010-08-10 Richard Guenther <rguenther@suse.de>
16893 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
16894 (copy_prop_visit_assignment): Simplify.
16895 (copy_prop_visit_stmt): Also visit assignments from
16897 (copy_prop_visit_phi_node): Use operand_equal_p.
16899 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16901 * ipa-split.c (find_split_points): Free stack.
16903 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16905 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
16906 * tree.c (tree_node_kind): Delete corresponding entries.
16908 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
16910 * alias.c (may_alias_p): Remove unused ret.
16912 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
16914 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
16915 alias_sets_conflict_p.
16916 (walk_mems_1): Moved from alias.c.
16917 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
16919 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
16920 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
16921 * alias.c (walk_mems_2): Moved to ddg.c.
16922 (walk_mems_1): Ditto.
16923 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
16925 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
16927 *(may_alias_p): New function to check whether two memory expression
16928 may alias or not. Currently used in buidling inter-iteration memory
16930 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
16931 (insn_alias_sets_conflict_p): Removed
16932 *rtl.h (may_alias_p): New function prototype.
16934 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16936 * tree.c (nreverse): Assert that we don't have a BLOCK.
16938 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16940 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
16941 * config/arm/arm.c (arm_get_pcs_model): Likewise.
16942 * config/avr/avr.c (init_cumulative_args): Likewise.
16943 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16944 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16945 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
16946 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
16947 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
16948 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16949 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
16950 * dwarf2out.c (gen_subprogram_die): Likewise.
16951 * function.c (allocate_struct_function): Likewise.
16952 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
16953 (deserves_ellipsis): Delete.
16955 2010-08-09 Richard Guenther <rguenther@suse.de>
16957 * tree-ssa-copy.c (cached_last_copy_of): Remove.
16958 (valueize_val): New function.
16959 (get_last_copy_of): Remove.
16960 (set_copy_of_val): Simplify.
16961 (dump_copy_of): Likewise.
16962 (copy_prop_visit_cond_stmt): Use valueize_val.
16963 (copy_prop_visit_phi_node): Properly handle unvisited names.
16964 Drop code managing copy-of chains.
16965 (init_copy_prop): Adjust.
16966 (fini_copy_prop): Likewise.
16967 (execute_copy_prop): Remove obsolete comment.
16969 2010-08-09 Richard Guenther <rguenther@suse.de>
16971 PR middle-end/44632
16972 * function.c (gimplify_parameters): Do not clear addressable
16973 bit of the original parameter.
16975 2010-08-09 Richard Guenther <rguenther@suse.de>
16977 PR middle-end/45212
16978 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
16979 alignment from MEM_REF offset only if we took it from the
16982 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
16984 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
16986 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
16988 * c-tree.h (build_arg_info): Declare.
16989 * c-decl.c (build_arg_info): Define.
16990 (get_parm_info): Call it. Delete initialization code.
16991 * c-parser.c (c_parser_parms_declarator): Likewise.
16992 (c_parser_parms_list_declaractor): Likewise.
16994 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
16996 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
16997 (struct c_arg_info): Change type of tags field.
16998 * c-decl.c (grokdeclarator): Update for changed type of tags field.
16999 (get_parm_info): Likewise.
17000 (store_parm_decls_newstyle): Likewise.
17002 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17004 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
17005 (branch_island_list): Delete.
17006 (branch_islands): Declare.
17007 (add_compiler_branch_island): Adjust for branch_islands instead of
17008 branch_island_list.
17009 (macho_branch_islands): Likewise.
17010 (no_previous_def): Likewise.
17011 (get_prev_label): Likewise.
17013 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17016 * gthr-posix.h (__gthread_start): Delete.
17017 (__gthread_active_init): Use pthread_default_stacksize_np instead of
17018 pthread_create to determine if hpux pthreads are active.
17019 * gthr-posix95.h (__gthread_start): Delete.
17020 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
17022 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
17024 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
17025 _WIN64 not expanded.
17027 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
17028 H.J. Lu <hongjiu.lu@intel.com>
17031 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
17032 to output 32bit SFmode immediate as 8 byte sign extended value.
17034 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
17036 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17037 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17038 (SUBWORD_BOOL_CAS): Likewise.
17039 (SUBWORD_SYNC_OP): Likewise.
17040 (SUBWORD_TEST_AND_SET): Likewise.
17041 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17042 (SUBWORD_SYNC_OP): Likewise.
17043 (OP_AND_FETCH_WORD): Likewise.
17045 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17047 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
17048 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
17049 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
17050 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
17052 (cortex_a9_sched_adjust_cost): New function.
17053 (xscale_sched_adjust_cost): New function.
17054 * config/arm/arm-protos.h (struct tune_params): New field
17056 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
17058 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
17061 * config/sparc/sparc.c (function_arg_advance): Always take into account
17062 the padding, if any.
17064 2010-08-06 Richard Guenther <rguenther@suse.de>
17066 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
17067 (dump_lattice_value): Dump it.
17068 (get_default_value): Adjust.
17069 (get_constant_value): Likewise.
17070 (set_value_varying): Likewise.
17071 (set_lattice_value): Make sure to not go up the lattice
17072 with bitwise constant values.
17073 (get_value_for_expr): Handle ADDR_EXPRs.
17074 (value_to_double_int): New function.
17075 (get_value_from_alignment): Likewise.
17076 (do_dbg_cnt): Adjust.
17077 (ccp_lattice_meet): Handle partially constant values.
17078 (bit_value_unop_1): New function.
17079 (bit_value_binop_1): Likewise.
17080 (bit_value_unop): Likewise.
17081 (bit_value_binop): Likewise.
17082 (evaluate_stmt): Track partially constant values if
17083 flag_tree_bit_ccp is set.
17084 (ccp_fold_stmt): Dump if we folded a predicate.
17085 (ccp_visit_stmt): Adjust.
17086 * common.opt (ftree-bit-ccp): New flag.
17087 * doc/invoke.texi (ftree-bit-ccp): Document.
17088 * opts.c (decode_options): Enable bit-CCP at -O1.
17090 2010-08-06 Alan Modra <amodra@gmail.com>
17092 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
17093 and -mrelocatable-lib description.
17095 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
17097 From Martin Thuresson <martint@google.com>
17098 * postreload.c (reload_cse_simplify_operands): Use
17099 SET_REGNO_RAW instead of SET_REGNO.
17100 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
17102 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
17103 instead of SET_REGNO.
17104 * rtl.h (SET_REGNO_RAW): New macro.
17106 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
17108 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
17109 computations. Fix formatting issues.
17110 (num_sign_bit_copies1): Likewise.
17111 (canonicalize_condition): Likewise.
17113 2010-08-05 Richard Henderson <rth@redhat.com>
17115 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
17116 (floor_log2): Use clz_hwi.
17117 (exact_log2): Use ctz_hwi.
17118 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
17119 * builtins.c (fold_builtin_bitop): Use them.
17120 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17121 * combine.c (get_pos_from_mask): Use ctz_hwi.
17122 * double-int.c (double_int_ctz): Likewise.
17123 * explow.c (force_reg): Likewise.
17124 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
17126 2010-08-05 Richard Henderson <rth@redhat.com>
17129 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
17130 the alignment constant is properly sign-extended.
17132 2010-08-05 Richard Guenther <rguenther@suse.de>
17134 * expr.c (store_expr): Use emit_block_move only if both
17135 source and target are MEMs. Use store_bit_field if only
17136 the target is a MEM.
17138 2010-08-05 Richard Henderson <rth@redhat.com>
17141 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
17142 (INCOMING_RETURN_ADDR_RTX): Likewise.
17143 (dwarf2out_do_frame): Remove conditional compilation.
17144 (dwarf2out_frame_init): Likewise.
17146 2010-08-05 Nicolas Setton <setton@adacore.com>
17148 * gcov.c (flag_display_progress): New static variable.
17149 (main): Display progress info on standard output if requested.
17150 (options): Add -d/--display-progress.
17151 (print_usage): Print them.
17152 (process_args): Handle them.
17153 * doc/gcov.texi: Document them.
17155 2010-08-05 Martin Jambor <mjambor@suse.cz>
17157 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
17158 (ipcp_insert_stage): Redirect only edges not flagged with
17159 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
17160 discovered constants.
17162 2010-08-05 Martin Jambor <mjambor@suse.cz>
17164 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
17165 (struct ipa_param_descriptor): New fields types and
17166 cannot_devirtualize.
17167 (ipa_param_cannot_devirtualize_p): New function.
17168 (ipa_param_types_vec_empty): Likewise.
17169 (ipa_make_edge_direct_to_target): Declare.
17170 * ipa-cp.c: Fixed first stage driver name in initial comment,
17171 described devirtualization there too.
17172 (ipcp_analyze_node): Call ipa_analyze_params_uses.
17173 (ipcp_print_all_lattices): Print devirtualization info.
17174 (ipa_set_param_cannot_devirtualize): New function.
17175 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
17177 (ipcp_init_stage): Merged into...
17178 (ipcp_generate_summary): ...its caller.
17179 (ipcp_change_tops_to_bottom): Also process type lists.
17180 (ipcp_add_param_type): New function.
17181 (ipcp_copy_types): Likewise.
17182 (ipcp_propagate_types): Likewise.
17183 (ipcp_propagate_stage): Also propagate types.
17184 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
17185 Also return true if propagated types require it.
17186 (ipcp_update_callgraph): Dump redirection info.
17187 (ipcp_process_devirtualization_opportunities): New function.
17188 (ipcp_const_param_count): Include known type information.
17189 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
17190 on new node. Fixed formatting.
17191 * ipa-prop.c (make_edge_direct_to_target): Renamed to
17192 ipa_make_edge_direct_to_target and changed all callers. Made
17193 externally visible.
17194 (ipa_node_duplication_hook): Duplicate types vector.
17195 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
17196 redirect outgoing calls for which we can't get a decl from the
17197 statement. Check that we can get a decl from the call statement.
17198 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17199 ipa_analyze_params_uses only when ipa-cp is disabled.
17200 * tree-inline.c (get_indirect_callee_fndecl): Removed.
17201 (expand_call_inline): Do not call get_indirect_callee_fndecl.
17202 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
17203 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
17205 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17207 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
17208 temporary. Emit move from temporary to accum, so REG_EQUAL note will
17209 be attached to this insn in correct mode.
17211 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17213 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
17214 using REGNO of base_reg directly.
17216 2010-08-05 Jie Zhang <jie@codesourcery.com>
17218 PR tree-optimization/45144
17219 * tree-sra.c (type_consists_of_records_p): Return false
17220 if the record contains bit-field.
17222 2010-08-04 Richard Henderson <rth@redhat.com>
17224 * config/i386/i386.c (struct ix86_frame): Remove padding and
17225 to_allocate members.
17226 (ix86_compute_frame_layout): Don't store them.
17227 (ix86_can_use_return_insn_p): Use a more direct and more obviously
17228 correct condition for the position of the stack pointer.
17229 (ix86_expand_prologue): Compute remaining stack allocation based
17230 on the ultimate stack pointer offset.
17231 (ix86_expand_epilogue): Use more obvious expressions testing for
17232 the stack pointer already pointing to the saved registers.
17234 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
17235 duplication deconstructing the frame pointer. Simplify
17236 deallocation of the local stack frame.
17238 * reg-notes.def (CFA_EXPRESSION): New.
17239 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17240 (dwarf2out_frame_debug_cfa_expression): New.
17241 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
17243 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
17244 * config/i386/i386.c (ix86_expand_prologue): Set it.
17245 (ix86_expand_epilogue): Clear it.
17246 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
17247 context, add REG_CFA_EXPRESSION notes.
17249 * config/i386/i386.h (struct machine_frame_state): Rename from
17250 machine_cfa_state. Add members tracking SP and FP regardless
17251 of the current CFA register.
17252 (ix86_cfa_state): Remove.
17253 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
17254 and sse_reg_save_offset members.
17255 (ix86_compute_frame_layout): Set them.
17256 (gen_push): Increment sp_offset too.
17257 (choose_baseaddr_len, choose_baseaddr): New.
17258 (ix86_emit_save_reg_using_mov): New.
17259 (ix86_emit_save_regs_using_mov): Use it.
17260 (ix86_emit_save_sse_regs_using_mov): Likewise.
17261 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
17262 compare vs the saved red_zone_offset.
17263 (pro_epilogue_adjust_stack): Adjust sp_offset.
17264 (ix86_adjust_stack_and_probe): Likewise.
17265 (ix86_expand_prologue): Set up, use, and validate the new
17266 frame_state_info members. Use gen_frame_mem.
17267 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
17268 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
17269 new frame_state_info members.
17270 (ix86_emit_leave): Likewise.
17271 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
17272 out-of-range stack pointer offsets here.
17273 (ix86_emit_restore_sse_regs_using_mov): Likewise.
17274 (ix86_expand_epilogue): Use and validate the new frame_state_info
17275 members. Break up and simplify the logic selecting the
17276 restore_regs_via_mov code path. Ensure that there will be no
17277 out-of-range stack pointer offsets.
17279 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
17281 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
17282 argument name to reflect the expected tree; fix indentation.
17283 (ix86_asm_output_function_label): Output the entire 32-bit
17284 ms_hook here as bytes ...
17285 (ix86_expand_prologue): ... not here as insns. Attach the
17286 unwind info for the ms_hook to a blockage insn.
17287 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
17288 (ix86_ms_bitfield_layout_p): Fix indentation.
17289 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
17291 * config/i386/i386.c (ix86_using_red_zone): New.
17292 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
17293 ix86_expand_prologue, ix86_force_to_memory): Use it.
17295 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
17296 saving the int registers.
17298 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
17299 and DWARF2_UNWIND_INFO conditional compilation.
17301 2010-08-04 Richard Henderson <rth@redhat.com>
17304 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
17305 an is_naming_typedef_decl.
17307 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
17309 PR rtl-optimization/45162
17310 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
17311 * dce.c (word_dce_process_block): Likewise.
17313 2010-08-04 Steve Ellcey <sje@cup.hp.com>
17316 * config/ia64/constraints.md (Z): New.
17317 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
17318 (xfreg_or_signed_fp01_operand): New.
17319 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
17320 with fr_reg_or_signed_fp01_operand and constraint G with Z.
17325 (adddf3_trunc): Ditto.
17327 (*subdf3_trunc): Ditto.
17329 (*madddf4_trunc): Ditto.
17331 (*msubdf4_trunc): Ditto.
17332 (addxf3): Replace xfreg_or_fp01_operand with
17333 xfreg_or_signed_fp01_operand and constraint G with Z.
17334 (*addxf3_truncsf): Ditto.
17335 (*addxf3_truncdf): Ditto.
17337 (*subxf3_truncsf): Ditto.
17338 (*subxf3_truncdf): Ditto.
17340 (*maddxf4_truncsf): Ditto.
17341 (*maddxf4_truncdf): Ditto.
17343 (*msubxf4_truncsf): Ditto.
17344 (*msubxf4_truncdf): Ditto.
17346 2010-08-04 Richard Guenther <rguenther@suse.de>
17348 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
17349 if either alias-set is zero.
17351 2010-08-04 Richard Guenther <rguenther@suse.de>
17353 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
17354 * tree-ssa-ccp.c: ... here.
17355 * tree-ssa-copy.c: ... and here.
17356 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
17357 value_range_t): Move ...
17358 * tree-vrp.c: ... here.
17359 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
17360 (substitute_and_fold): Adjust prototype.
17361 * tree-ssa-propagate.c (replace_uses_in): Adjust.
17362 (replace_phi_args_in): Likewise.
17363 (substitute_and_fold): Take callback to query lattice instead
17364 of pointer to lattice. Replace SSA name defs with lattice
17366 * tree-ssa-ccp.c (ccp_finalize): Adjust.
17367 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
17368 (get_value): New function.
17369 (fini_copy_prop): Adjust.
17370 * tree-vrp.c (vrp_finalize): Adjust.
17372 2010-08-04 Richard Guenther <rguenther@suse.de>
17374 PR middle-end/45176
17375 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
17376 points-to set for original MEM_REF.
17378 2010-08-04 Richard Guenther <rguenther@suse.de>
17380 * tree-ssa-ccp.c (get_constant_value): New function.
17381 (get_rhs_assign_op_for_ccp): Remove.
17382 (valueize_op): New function.
17383 (ccp_fold): Use get_constant_value and valueize_op.
17384 (fold_const_aggregate_ref): Likewise.
17385 (ccp_fold_stmt): Likewise.
17386 (visit_assignment): Simplify.
17388 2010-08-04 Richard Guenther <rguenther@suse.de>
17390 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
17391 * double-int.h (double_int_ctz): Declare.
17392 * double-int.c (double_int_ctz): New function.
17394 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
17396 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
17398 picochip_expand_movmemhi : Expand movmem pattern.
17399 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
17401 * config/picochip/picochip.md (movmemhi) : New pattern.
17403 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
17405 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
17407 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
17409 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
17410 NEG as operand of a MULT by merging it with the other operand.
17411 * combine.c (make_compound_operation): Use trunc_int_for_mode when
17412 generating a MULT with constant. Canonicalize PLUS and MINUS involving
17414 * config/arm/constraints.md (M): Examine only 32 bits of a
17416 * config/arm/predicates.md (power_of_two_operand): Likewise.
17418 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17420 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
17423 2010-08-03 Jan Hubicka <jh@suse.cz>
17425 * ipa-split.c (struct split_point): Add split_part_set_retval.
17426 (find_retval): Forward declare.
17427 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
17428 (consider_split): Compute current->split_part_set_retval.
17429 (visit_bb): Do not look into return value.
17430 (split_function): Handle !split_part_set_retval
17432 2010-08-03 Martin Jambor <mjambor@suse.cz>
17434 * tree-sra.c (completely_scalarize_record): New parameter REF, create
17435 its own access->expr intead of using build_ref_for_offset.
17437 2010-08-03 Joseph Myers <joseph@codesourcery.com>
17439 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
17440 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
17441 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
17442 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
17443 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
17444 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
17445 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
17446 DEFAULT_SWITCH_TAKES_ARG.
17447 * config/rx/rx.opt (-patch=): Remove option.
17448 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
17449 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
17450 * doc/invoke.texi (RX Options): Remove -patch=.
17451 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
17452 (option_map): Remove --profile-blocks, --quiet and --silent.
17454 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
17456 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
17457 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
17458 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
17459 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17460 Update calls to ix86_expand_compare and ix86_expand_branch.
17461 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
17462 ix86_expand_compare.
17463 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
17464 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17466 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
17467 and ix86_compare_op1. Update calls to ix86_expand_compare.
17468 (ix86_expand_int_movcc): Ditto.
17469 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
17470 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
17471 (ix86_expand_setcc): Ditto.
17472 (ix86_expand_compare): Remove prototype.
17473 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
17474 ix86_compare_op0 and ix86_compare_op1. Update calls
17475 to ix86_expand_branch to directly pass operands[1] and operands[2].
17476 (cbranchxf4): Ditto.
17477 (cbranch<MODEF:mode>4): Ditto.
17478 (cbranchcc4): Ditto.
17479 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
17480 Update calls to ix86_expand_setcc to directly pass operands[2] and
17482 (cstorexf4): Ditto.
17483 (cstore<MODEF:mode>4): Ditto.
17484 (cstorecc4): Ditto.
17486 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
17489 * caller-save.c (save_call_clobbered_regs): Remove regs from
17490 hard_regs_saved when they are set.
17492 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
17495 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
17498 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
17500 * common.opt (ftree-loop-distribute-patterns): New.
17501 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
17502 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
17504 * tree-data-ref.c (stores_zero_from_loop): New.
17505 * tree-data-ref.h (stores_zero_from_loop): Declared.
17506 * tree-loop-distribution.c (tree_loop_distribution): Call
17507 stores_zero_from_loop.
17508 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
17510 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
17512 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
17515 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
17516 * config/arm/arm.c (thumb1_code): New variable.
17517 (arm_override_options): Set it.
17518 (thumb1_final_prescan_insn): Keep track of condition code status.
17519 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
17520 jumps that depend on them.
17521 * config/arm/arm.h (thumb1_code): Declare variable.
17522 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
17523 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
17525 (CC_STATUS_INIT): New macro.
17526 * config/arm/constraints.md (Pd): New constraint.
17527 * config/arm/predicates.md (noov_comparison_operator): New predicate.
17528 * config/arm/arm.md (is_thumb1): New define_attr.
17529 (conds): Set default to "clob" when generating Thumb1 code.
17530 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
17531 code are set. Use two-operand assembly syntax.
17532 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
17534 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
17535 codes are set. Use two-operand assembly syntax.
17536 (zero_extendhisi splitter): Remove constraints.
17537 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
17538 thumb1_movsf_insn): Set conds attribute as appropriate.
17539 (cbranchsi4_insn): Use condition code status from struct
17540 machine_function to determine whether the comparison can be eliminated.
17541 Discourage the alternative using high registers.
17542 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
17543 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
17544 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
17545 subsi3_cbranch): Delete.
17546 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
17547 one subtract and one cbranch insn.
17549 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
17550 thumb2_movdf_soft_insn): Delete patterns.
17551 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
17552 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
17553 (pool_range, neg_pool_range): Use them to define defaults.
17554 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
17555 and allow for TARGET_32BIT.
17558 * config/arm/arm.h (arm_regs_in_sequence): Declare.
17559 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
17560 load_multiple_sequence, store_multiple_sequence): Delete
17562 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
17564 * config/arm/ldmstm.md: New file.
17565 * config/arm/arm.c (arm_regs_in_sequence): New array.
17566 (load_multiple_sequence): Now static. New args SAVED_ORDER,
17567 CHECK_REGS. All callers changed.
17568 If SAVED_ORDER is nonnull, copy the computed order into it.
17569 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
17570 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
17571 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
17572 If SAVED_ORDER is nonnull, copy the computed order into it.
17573 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
17574 like REGS. Handle Thumb mode.
17575 (arm_gen_load_multiple_1): New function, broken out of
17576 arm_gen_load_multiple.
17577 (arm_gen_store_multiple_1): New function, broken out of
17578 arm_gen_store_multiple.
17579 (arm_gen_multiple_op): New function, with code from
17580 arm_gen_load_multiple and arm_gen_store_multiple moved here.
17581 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
17582 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
17584 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
17585 * config/arm/predicates.md (commutative_binary_operator): New.
17586 (load_multiple_operation, store_multiple_operation): Handle more
17587 variants of these patterns with different starting offsets. Handle
17589 * config/arm/arm.md: Include "ldmstm.md".
17590 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
17591 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
17592 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
17593 peepholes): Delete.
17594 * config/arm/ldmstm.md: New file.
17595 * config/arm/arm-ldmstm.ml: New file.
17597 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
17598 if statement which adds extra costs to frame-related expressions.
17600 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17602 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
17604 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
17607 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
17609 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
17610 split V4SI operands.
17612 2010-08-01 Anatoly Sokolov <aesok@post.ru>
17614 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17615 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
17616 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
17617 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17619 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
17621 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
17624 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17626 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
17627 used in the call to optab_for_tree_code. Fix the second
17628 is_widening_mult_p call. Check that both unwidened operands
17629 have the same sign.
17631 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
17633 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
17635 2010-07-31 Anatoly Sokolov <aesok@post.ru>
17637 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17639 2010-07-30 DJ Delorie <dj@redhat.com>
17641 * config/rx/predicates.md (rx_constshift_operand): New.
17642 * config/rx/rx.md (zs_cond): New.
17643 (cbranchsi4): Remove mode.
17644 (*cbranchsi4_<code>): Likewise.
17645 (*tstbranchsi4_<code>): New.
17646 (*tstbranchsi4r_<code>): New.
17647 (*tstbranchsi4m_eq): New.
17648 (*tstbranchsi4m_ne): New.
17649 (cbranchsf4): Remove mode.
17650 (*cbranchsf4_<code>): Likewise.
17652 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
17654 * rtlanal.c (simplify_subreg_regno): Don't treat
17655 HARD_FRAME_POINTER_REGNUM specially.
17657 2010-07-30 Joseph Myers <joseph@codesourcery.com>
17659 * common.opt (-G): Don't define option here.
17660 * config/g.opt: New.
17661 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
17662 rs6000/powerpc and score targets.
17663 * opts.c (common_handle_option): Don't handle -G here.
17664 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
17665 * config/frv/frv.c (frv_handle_option): Handle -G.
17666 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
17667 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
17668 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
17669 * config/mips/mips.c (mips_handle_option): Handle -G.
17670 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
17671 * config/score/score.c (score_handle_option): Handle -G.
17673 2010-07-30 Anatoly Sokolov <aesok@post.ru>
17675 * config/mmix/mmix.c: Include basic-block.h.
17677 2010-07-30 Jakub Jelinek <jakub@redhat.com>
17680 PR rtl-optimization/45137
17681 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
17683 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
17685 * combine.c (next_nonnote_nondebug_insn): Removed.
17686 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
17687 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
17688 * sched-deps.c (sched_analyze_insn): Likewise.
17689 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
17690 * rtlanal.c (canonicalize_condition): Likewise.
17691 * postreload.c (reload_combine_recognize_pattern): Likewise.
17692 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
17694 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
17696 * config/i386/i386.md (int_cond): Remove code iterator.
17698 (cbranch<mode>4): Use ordered_comparison_operator predicate
17700 (cstore<mode>4): Ditto for operator1.
17701 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
17702 (add<mode>cc): ditto.
17704 2010-07-30 Richard Guenther <rguenther@suse.de>
17706 PR middle-end/45141
17707 * expr.c (expand_expr_real_1): Check for not handled base address.
17709 2010-07-30 Richard Guenther <rguenther@suse.de>
17711 * ipa-prop.c (ipa_modify_formal_parameters): Use
17712 build_distinct_type_copy.
17714 2010-07-30 Anthony Green <green@moxielogic.com>
17716 * config/moxie/rtems.h: New file.
17717 * config.gcc: Add moxie-rtems support.
17719 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
17721 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
17722 df flags as in run_fast_df_dce.
17724 2010-07-29 Jakub Jelinek <jakub@redhat.com>
17727 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
17729 * rtl.def (NOTE): Swap operands 4 and 5.
17730 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
17731 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
17732 Adjust accordingly.
17733 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
17735 2010-07-29 Jakub Jelinek <jakub@redhat.com>
17738 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
17739 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
17740 (gen_subprogram_die): Likewise. Remove it when removing declaration's
17742 (gen_decl_die): Change return type to dw_die_ref, return what
17743 gen_formal_parameter_die returned.
17745 2010-07-29 Martin Jambor <mjambor@suse.cz>
17747 * dbgcnt.def (eipa_sra): New counter.
17748 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
17750 2010-07-29 Xinliang David Li <davidxl@google.com>
17753 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
17754 in revision 162652.
17756 2010-07-29 Richard Guenther <rguenther@suse.de>
17758 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17759 (TV_TREE_STORE_CCP): Likewise.
17760 (TV_TREE_REDPHI): Likewise.
17762 2010-07-29 Richard Guenther <rguenther@suse.de>
17764 * double-int.h (double_int_and_not): New function.
17765 * combine.c (try_combine): Use it.
17766 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17768 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
17770 PR rtl-optimization/42575
17771 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17772 Argument AU removed. All callers changed. Ignore artificial refs.
17773 Use return value of df_word_lr_simulate_defs to decide whether an insn
17775 (fast_dce): Rename arg to WORD_LEVEL.
17776 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
17778 (pass_fast_rtl_byte_dce): Delete.
17779 * dce.h (run_word_dce): Declare.
17780 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17781 All callers changed. Simplify code to only deal with two-word regs.
17782 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17783 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17784 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17785 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17786 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17787 (df_word_lr_mark_ref): Declare.
17788 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17789 df_word_lr_simulate_uses): Declare or rename from byte variants.
17790 (df_byte_lr_simulate_artificial_refs_at_top,
17791 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17792 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17794 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17795 (enum df_mm): Delete.
17796 * df-byte-scan.c: Delete file.
17797 * df-problems.c (df_word_lr_problem_data): Renamed from
17798 df_byte_lr_problem_data, all members deleted except for
17799 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
17800 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17801 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17802 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17803 df_byte_lr_confluence_0): Delete functions.
17804 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17806 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17807 Don't initialize members that were deleted, don't try to discover data
17808 about registers. Ignore hard regs.
17809 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17810 (df_word_lr_mark_ref): New function.
17811 (df_word_lr_bb_local_compute): Renamed from
17812 df_byte_bb_lr_local_compute; all callers changed. Use
17813 df_word_lr_mark_ref. Assert that artificial refs don't include
17814 pseudos. Ignore hard registers.
17815 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17816 Assert that exit block uses don't contain pseudos.
17817 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17818 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17819 callers changed. Ignore hard regs.
17820 (df_word_lr_transfer_function): Renamed from
17821 df_byte_lr_transfer_function; all callers changed.
17822 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17823 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17825 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17827 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17828 confluence operator 0 set to NULL.
17829 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17831 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17832 Return bool, true if bitmap changed or insn otherwise necessary.
17833 All callers changed. Simplify using df_word_lr_mark_ref.
17834 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17835 all callers changed. Simplify using df_word_lr_mark_ref.
17836 * lower-subreg.c: Include "dce.h"
17837 (decompose_multiword_subregs): Call run_word_dce if df available.
17838 * Makefile.in (lower-subreg.o): Adjust dependencies.
17839 (df-byte-scan.o): Delete.
17840 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17842 2010-07-29 Richard Guenther <rguenther@suse.de>
17844 * tree.c (build_vector): Assert that the vector constant
17845 has enough elements.
17846 (build_vector_from_ctor): Pad with trailing zeros.
17848 2010-07-29 Richard Guenther <rguenther@suse.de>
17850 PR tree-optimization/45120
17851 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17852 Handle offset in DEREFs properly.
17853 (get_constraint_for_1): Handle MEM_REF offset properly.
17855 2010-07-29 Richard Guenther <rguenther@suse.de>
17857 PR middle-end/45034
17858 * convert.c (convert_to_integer): Always use an unsigned
17859 type for narrowed negate and bitwise not.
17861 2010-07-29 Ira Rosen <irar@il.ibm.com>
17863 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
17864 to outer loop when creating reduction epilogue for double reduction,
17865 and switch back to the inner loop when updating the phi nodes.
17866 Update uses of outer loop exit phi nodes in double reduction (instead
17867 of uses of reduction).
17869 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
17871 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
17872 popcount on power7 and parity on power6 systems.
17873 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
17874 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
17877 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
17878 (UNSPEC_PARITY): Ditto.
17879 (SFDF): New iterator for SF/DF.
17880 (rreg2): New mode attribute for floating register constraint.
17881 (TARGET_FLOAT): New mode attribute for whether single/double float
17883 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
17885 (parity<mode>2_cmpb): New insn for parity on power6 and newer
17887 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
17888 pattern. Add support for fcpsgn instruction added in power6.
17889 (copysignsf3): Delete.
17890 (copysigndf3): Delete.
17891 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
17892 instead of if_then_else in RTL to avoid problems with -0.
17894 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
17895 of if_then_else to mirror scalar code.
17896 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
17899 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
17900 instead of if_then_else.
17902 2010-07-28 Xinliang David Li <davidxl@google.com>
17904 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
17905 (dump_cand): Dump var_before/after.
17906 (htab_inv_expr_eq): New function.
17907 (htab_inv_expr_hash): New function.
17908 (tree_ssa_iv_optimize_init): Support pseudo invariants.
17909 (add_candidate_1): consider base type precision.
17910 (set_use_iv_cost): New parameter.
17911 (adjust_setup_cost): Use profile information.
17912 (get_address_cost): Do not hard code width in computing address
17914 (compare_aff_trees): New function.
17915 (get_loop_invariant_expr_id): New function.
17916 (get_computation_cost_at): New parameter and use profile information.
17917 (get_computation_cost): New parameter.
17918 (determine_use_iv_cost_generic): Pass new parameter.
17919 (determine_use_iv_cost_address): Ditto.
17920 (determine_use_iv_cost_condition): Ditto.
17921 (autoinc_possible_for_pair): Ditto.
17922 (determine_use_iv_costs): More dumps.
17923 (iv_ca_get_num_inv_exprs): New function.
17924 (iv_ca_recount_cost): Consider loop invariants in register pressure
17926 (iv_ca_add_use): New parameter.
17927 (iv_ca_dump): Better dumping.
17928 (iv_ca_extend): New parameter.
17929 (try_add_cand_for): Attempt to get better partial solution.
17930 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
17931 (create_new-ivs): More dumps.
17932 (rewrite_use_compare): Ditto.
17933 (free_loop_data): More cleanup.
17934 (treee_ssa_iv_optimize_finalize): Ditto.
17936 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
17938 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
17939 * config/i386/i386.c (ix86_profile_before_prologue): New.
17940 (override_options): Add special handling for -mfentry.
17941 (ix86_function_regparm): Likewise.
17942 (ix86_function_sseregparm): Likewise.
17943 (ix86_frame_pointer_required): Likewise.
17944 (ix86_expand_prologue): Check for ms_hook_prologue.
17945 (x86_function_profiler): Adjust mcount output.
17946 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
17947 * config/i386/i386.opt (mfentry): New.
17948 * doc/invoke.texi (mfentry): Add documentation.
17949 * doc/tm.texi: Regenerated..
17950 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
17951 * final.c (final_start_function): Replace macro
17952 PROFILE_BEFORE_PROLOGUE by target hook.
17953 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17954 * target.def (profile_before_prologue): New hook.
17955 * targhooks.c (default_profile_before_prologue): New.
17956 * targhooks.h (default_profile_before_prologue): New.
17958 2010-07-28 Jakub Jelinek <jakub@redhat.com>
17961 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
17964 * dwarf2out.c (dwarf2out_var_location): Always consider
17965 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
17967 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
17969 PR rtl-optimization/45107
17970 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
17972 2010-07-28 Richard Guenther <rguenther@suse.de>
17974 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
17975 (set_lattice_value): Do not query an old default value.
17976 (get_value_for_expr): New function. Properly canonicalize
17978 (ccp_visit_phi_node): Use it.
17980 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
17982 * config/arm/arm.c (arm_pcs_default): Remove static.
17983 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
17984 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
17985 (arm_pcs_default): Declare.
17987 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
17989 * config/rs6000/rs6000.c (rs6000_override_options):
17990 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
17991 ... to darwin_rs6000_override_options.
17992 (rs6000_return_in_memory): Update preceding comment for darwin
17993 64 bit ABI. Use TARGET_MACHO inline.
17994 (rs6000_darwin64_struct_check_p): New.
17995 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
17996 (function_arg): Likewise.
17997 (rs6000_arg_partial_bytes): Likewise.
17998 (rs6000_function_value): Likewise.
18000 2010-07-28 Andi Kleen <ak@linux.intel.com>
18002 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
18004 2010-07-28 Richard Guenther <rguenther@suse.de>
18006 PR middle-end/44903
18007 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
18008 targets try harder to not generate unaligned accesses.
18010 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18012 PR rtl-optimization/45101
18013 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
18016 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18018 PR tree-optimization/44885
18019 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
18020 with non-aliased component.
18022 2010-07-28 Joseph Myers <joseph@codesourcery.com>
18024 * config/darwin-driver.c (SWITCH_TAKES_ARG,
18025 WORD_SWITCH_TAKES_ARG): Remove.
18026 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
18027 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
18028 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
18029 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
18030 definitions from gcc.c.
18031 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
18033 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
18034 Move to defaults.h.
18035 * opts-common.c: Include tm.h.
18036 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
18037 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
18038 Handle more than one argument. Set canonical_option_num_elements.
18039 (decode_cmdline_options_to_array): Set
18040 canonical_option_num_elements and trailing elements of
18042 * opts.h (struct cl_decoded_option): Allow four elements in
18043 canonical_option. Add field canonical_option_num_elements.
18044 * Makefile.in (opts-common.o): Update dependencies.
18046 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18048 PR middle-end/44790
18049 PR middle-end/44993
18050 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
18051 sure the base has address_mode before adding the offset.
18053 2010-07-27 Xinliang David Li <davidxl@google.com>
18055 * tree-flow.h (create_mem_ref): Add one new parameter.
18056 * tree-ssa-address.c (create_mem_ref): New parameter.
18057 (addr_to_parts): Ditto.
18058 (move_variant_to_index): New function.
18059 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
18061 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18063 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
18065 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
18066 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
18067 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
18068 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
18069 CODE_LABELs and NOTEs.
18070 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
18071 * combine.c (try_combine): Likewise.
18072 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18073 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
18075 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18077 * coretypes.h (struct cl_option_handlers): Declare.
18078 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
18079 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
18080 * langhooks-def.h (lhd_handle_option): Declare.
18081 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
18082 * langhooks.c (lhd_handle_option): New.
18083 * langhooks.h (struct lang_hooks): Update prototype and return
18084 value type of handle_option hook.
18085 * optc-gen.awk: Generate target_flags_explicit definition for the
18087 * opts-common.c: Include diagnostic.h.
18088 (handle_option): Move from opts.c. Update prototype and return
18089 value type. Use handlers structure.
18090 (read_cmdline_option): Move from opts.c. Update prototype. Use
18091 handlers structure.
18092 (set_option): Move from opts.c.
18093 * opts.c (common_handle_option): Update prototype and return value
18094 type. Update calls to handle_option and enable_warning_as_error.
18095 (unknown_option_callback, post_handling_callback,
18096 lang_handle_option, target_handle_option): New.
18097 (handle_option, read_cmdline_option): Move to opts-common.c.
18098 (read_cmdline_options): Update prototype. Update call to
18099 read_cmdline_option.
18100 (decode_options): Initialize and use handlers structure.
18101 (set_option): Move to opts-common.c.
18102 (enable_warning_as_error): Update prototype. Update call to
18104 * opts.h (struct cl_option_handler_func, struct
18105 cl_option_handlers): New.
18106 (handle_option, enable_warning_as_error): Update prototypes.
18107 (read_cmdline_option): Declare.
18108 * Makefile.in (opts-common.o): Update dependencies.
18110 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18112 * config/arm/arm.c (params.h): Include.
18113 (arm_override_options): Tune gcse-unrestricted-cost.
18114 * config/arm/t-arm (arm.o): Define dependencies.
18116 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18119 PR middle-end/42574
18120 * basic-block.h (get_dominated_to_depth): Declare.
18121 * dominance.c (get_dominated_to_depth): New function, use
18122 get_all_dominated_blocks as a base.
18123 (get_all_dominated_blocks): Use get_dominated_to_depth.
18125 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
18126 (hoist_exprs): Remove.
18127 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
18128 (compute_code_hoist_vbeinout): Add debug print outs.
18129 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
18131 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
18132 quadratic behavior.
18133 * params.h (MAX_HOIST_DEPTH): New macro.
18134 * doc/invoke.texi (max-hoist-depth): Document.
18136 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18138 PR rtl-optimization/40956
18139 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
18142 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18145 PR middle-end/42574
18146 * config/arm/arm.c (legitimize_pic_address): Use
18147 gen_calculate_pic_address pattern to emit calculation of PIC address.
18148 (will_be_in_index_register): New function.
18149 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
18150 (thumb1_legitimate_address_p): Use it provided !strict_p.
18151 * config/arm/arm.md (calculate_pic_address): New expand and split.
18153 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18156 PR middle-end/42574
18157 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
18158 * config/arm/arm.md (define_split "J", define_split "K"): Make
18159 IRA/reload friendly.
18161 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18163 * gcse.c (insert_insn_end_basic_block): Update signature, remove
18165 (pre_edge_insert, hoist_code): Update.
18167 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18170 PR middle-end/42574
18171 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
18173 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18175 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
18177 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18179 PR rtl-optimization/40956
18181 PR middle-end/42574
18182 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
18184 (hoist_code): Count occurences in current block too.
18186 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18188 * gcse.c (struct expr:max_distance): New field.
18189 (doing_code_hoisting_p): New static variable.
18190 (want_to_gcse_p): Change signature. Allow constrained hoisting of
18191 simple expressions, don't change behavior for PRE. Set max_distance.
18192 (insert_expr_in_table): Set new max_distance field.
18193 (hash_scan_set): Update.
18194 (hoist_expr_reaches_here_p): Stop search after max_distance
18196 (find_occr_in_bb): New static function. Use it in ...
18197 (hoist_code): Calculate sizes of basic block before any changes are
18198 done. Pass max_distance to hoist_expr_reaches_here_p.
18199 (one_code_hoisting_pass): Set doing_code_hoisting_p.
18201 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
18202 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
18203 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
18205 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
18208 2010-07-27 Jeff Law <law@redhat.com>
18209 Maxim Kuvyrkov <maxim@codesourcery.com>
18211 * gcse.c (compute_transpout, transpout): Remove, move logic
18212 to prune_expressions.
18213 (compute_pre_data): Move pruning of trapping expressions ...
18214 (prune_expressions): ... here. New static function.
18215 (compute_code_hoist_data): Use it.
18216 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
18218 2010-07-27 Xinliang David Li <davidxl@google.com>
18220 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
18221 (rewrite_use_address): Adjust iv update position when needed.
18223 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18225 * dbgcnt.def (hoist_insn): New debug counter.
18226 * gcse.c (hoist_code): Use it.
18228 2010-07-27 Xinliang David Li <davidxl@google.com>
18230 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
18231 (niter_for_single_dom_exit): Passes additional parameter.
18232 (iv_period): Fix comments.
18233 (may_eliminate_iv): Handles multiple exit loops properly.
18234 (free_tree_niter_desc): New function.
18235 (free_loop_data): Frees up loop iteration descriptors.
18237 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18240 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
18241 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
18242 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
18243 (expand_one_var): Don't consider DECL_ALIGN for variables for
18244 which expand_one_stack_var_at has been already called.
18247 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
18248 constraints on IA-64.
18250 2010-07-27 Jie Zhang <jie@codesourcery.com>
18254 2010-07-23 Jie Zhang <jie@codesourcery.com>
18256 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18257 false if ! tree_versionable_function_p.
18259 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18261 * dwarf2out.c (add_data_member_location_attribute): Use
18262 add_AT_unsigned instead of add_AT_int if offset is non-negative.
18264 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18266 * postreload.c (try_replace_in_use): New static function.
18267 (reload_combine_recognize_const_pattern): Use it here. Allow
18268 substituting into a final add insn, and substituting into a memory
18269 reference in an insn that sets the reg.
18271 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18273 * common.opt (o): Add MissingArgError.
18274 * doc/options.texi (MissingArgError): Document.
18275 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
18276 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
18277 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
18278 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
18279 * langhooks.h (struct lang_hooks): Remove missing_argument.
18280 * optc-gen.awk: Handle MissingArgError and output new structure
18281 field initializers.
18282 * opts.c (read_cmdline_option): Use missing_argument_error field
18283 instead of missing_argument langhook.
18284 * opts.h (struct cl_option): Add missing_argument_error field.
18285 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
18287 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
18290 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
18291 Darwin64 ABI, for zero-sized objects.
18293 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
18298 Merge from Apple local 4.2.1.
18299 2005-05-11 Stan Shebs <shebs@apple.com>
18300 Fix 64-bit varargs for Darwin (Radar 4028089).
18301 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
18302 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
18303 Add argument, add case for 8-byte register half-filled with a float.
18304 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
18305 single-precision floats specially.
18307 2010-07-27 Ira Rosen <irar@il.ibm.com>
18309 PR tree-optimization/44152
18310 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
18311 complex numbers for further check.
18312 (vect_supported_load_permutation_p): Check nodes with
18315 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18317 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
18318 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
18319 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
18320 (LANG_HOOKS_INITIALIZER): Add new hooks.
18321 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
18322 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
18323 and complain_wrong_lang_p. Update init_options prototype.
18324 * c-objc-common.c (c_initialize_diagnostics): First call
18325 c_common_initialize_diagnostics.
18326 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
18327 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
18328 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
18329 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
18330 (hook_uint_void_0): New.
18331 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
18332 (hook_uint_void_0): New.
18333 * opts-common.c (decode_cmdline_option,
18334 decode_cmdline_options_to_array): Also fill in canonical_option field.
18335 * opts.c (complain_wrong_lang): Use langhook to determine whether
18336 to complain instead of special-casing LTO.
18337 (decode_options): Separate lang_mask determination with
18338 option_lang_mask hook from call of init_options hook.
18339 * opts.h (struct cl_decoded_option): Add canonical_option.
18341 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18343 PR tree-optimization/45083
18344 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
18346 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18348 * postreload.c (reload_combine_recognize_const_pattern): Move test
18349 for limiting the insn movement to the right scope.
18351 PR rtl-optimization/45051
18352 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
18353 than reg_mentioned_p.
18355 2010-07-26 Richard Henderson <rth@redhat.com>
18358 * tree-emutls.c: New file.
18359 * Makefile.in (OBJS-common): Add it.
18360 * tree-pass.h (pass_ipa_lower_emutls): Declare.
18361 * passes.c (init_optimization_passes): Add it.
18363 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
18364 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
18365 * expr.c (emutls_var_address): Delete.
18366 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
18367 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
18368 (emutls_finish): Delete.
18369 * toplev.c (compile_file): Don't call it.
18370 * tree.h (emutls_decl): Delete.
18371 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
18372 (emutls_finish, emutls_finalize_control_var): Delete.
18373 (emutls_object_type): Move to tree-emutls.c.
18374 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
18375 default_emutls_var_fields, get_emutls_object_type,
18376 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
18377 default_emutls_var_init): Likewise.
18378 (get_variable_section): Don't special case emutls.
18379 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
18380 default_elf_select_section, default_unique_section,
18381 default_encode_section_info): Likewise.
18382 * varpool.c (decide_is_variable_needed): Likewise.
18383 * gimple-iterator.c (update_call_edge_frequencies): New
18384 (gsi_insert_on_edge_immediate): Use it.
18385 (gsi_insert_seq_on_edge_immediate): Likewise.
18386 (gsi_commit_one_edge_insert): Likewise.
18388 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
18389 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
18390 (x86_64_elf_unique_section): Likewise.
18392 2010-07-26 Jan Hubicka <jh@suse.cz>
18394 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
18397 2010-07-26 Anatoly Sokolov <aesok@post.ru>
18399 * target.def (output_source_filename): New hook.
18400 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
18401 * doc/tm.texi: Regenerate.
18402 * toplev.c (output_file_directive) Remove function.
18403 * toplev.h (output_file_directive) Remove.
18404 * output.h (default_asm_output_source_filename,
18405 output_file_directive): Declare.
18406 * varasm.h (default_asm_output_source_filename,
18407 output_file_directive): New functions.
18409 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18410 * config/mips/mips-protos.h (mips_output_filename): Remove.
18411 * config/mips/mips.c (mips_output_filename): Make Static.
18412 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18414 2010-07-26 Richard Guenther <rguenther@suse.de>
18416 PR tree-optimization/43784
18417 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
18418 if the destination is used by the call.
18420 2010-07-26 Richard Guenther <rguenther@suse.de>
18422 PR middle-end/45073
18423 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
18424 SSA updating on being in SSA form.
18426 2010-07-26 Richard Guenther <rguenther@suse.de>
18428 PR middle-end/45056
18429 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
18431 2010-07-26 Richard Guenther <rguenther@suse.de>
18433 PR tree-optimization/45071
18434 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
18437 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
18439 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
18440 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
18441 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
18442 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
18443 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
18444 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
18445 save_r31, return_r31, save_interrupt, return_interrupt,
18446 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
18447 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
18448 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
18449 new ABI requirements.
18450 (save_r6_r9, L_callt_save_r6_r9): Remove.
18451 * config/v850/predicates.md (even_reg_operand, disp23_operand,
18452 const_float_1_operand const_float_0_operand): New Predicates.
18453 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
18454 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
18455 * config/v850/t-v850: Update multilibs for new target variants.
18456 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
18457 * config/v850/t-v850e: Likewise.
18458 * config/v850/v850.c (v850_issue_rate): New.
18459 (v850_strict_argument_naming): New.
18460 (function_arg): Modify to generate a different ABI.
18461 (print_operand): Update case 'z' to support float modes.
18462 (output_move_single): Modify to generate appropriate and better
18464 (v850_float_z_comparison_operator, v850_select_cc_mode,
18465 v850_float_nz_comparison_operator, v850_gen_float_compare,
18466 v850_gen_compare): New functions to support comparison of float values.
18467 (ep_memory_offset): Add support for V850E2 targets.
18468 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
18469 (INTERRUPT_REGPARM_NUM): Remove.
18470 (compute_register_save_size): Add extra case to save/restore long call.
18471 (use_prolog_function): New function to support prologue.
18472 (expand_prologue): Add support for V850E2 targets and modified
18473 as per the current ABI requirements.
18474 (expand_epilogue): Likewise.
18475 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
18476 (construct_save_jarl): Likewise.
18477 (construct_dispose_instruction): Update as per the current ABI
18479 (construct_prepare_instruction): Likewise.
18480 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
18481 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
18482 (CPP_SPEC): Updated to support v850e2 targets.
18483 (STRICT_ALIGNMENT): Modified.
18484 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
18485 (FIXED_REGISTERS): Likewise.
18486 (CALL_USED_REGISTERS): Likewise.
18487 (CONDITIONAL_REGISTER_USAGE): Updated.
18488 (HARD_REGNO_MODE_OK): Updated.
18489 (reg_class): Updated to add even registers.
18490 (REG_CLASS_NAMES): Likewise.
18491 (REG_CLASS_CONTENTS): Likewise.
18492 (REGNO_REG_CLASS): Updated for CC registers.
18493 (REG_CLASS_FROM_LETTER): Added support for even registers.
18494 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
18495 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
18496 ARG_POINTER_REGNUM): Updated.
18497 (FUNCTION_ARG_ADVANCE): Define.
18498 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
18499 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
18500 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
18501 (GO_IF_LEGITIMATE_ADDRESS): Updated.
18502 (SELECT_CC_MODE): Define.
18503 (REGISTER_NAMES): Updated to add psw and fcc registers.
18504 (ADDITIONAL_REGISTER_NAMES): Updated.
18505 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
18506 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
18507 * config/v850/v850.md (define_constants): Define new constants.
18508 (type): Update store,bit1,macc,div,fpu and single attributes.
18509 (cpu): New attribute.
18510 (cc): Add set_z attribute.
18511 (unsign23byte_load, sign23byte_load, unsign23hword_load,
18512 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
18513 23word_store): New instructions for 23-bit displacement load and store.
18514 (movqi_internal, movhi_internal): Update the attributes.
18515 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
18516 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
18518 (v850_tst1): Modified using CC_REGNUM.
18520 (cmpsi): Modified as define_expand from define_insn.
18521 (cmpsi_insn, cmpsf, cmpdf): New instructions.
18522 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
18523 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
18524 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
18525 one_cmplsi2): Clobber the CC_REGNUM register.
18526 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
18527 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
18528 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
18529 (setf_insn, set_z_insn, set_nz_insn): New instructions for
18531 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
18532 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
18534 (sasf_1, sasf_2): Remove.
18535 (sasf): New instruction.
18536 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
18537 targets. CC_REGNUM register is clobbered and attributes are
18539 (branch_z_normal, branch_z_invert, branch_nz_normal,
18540 branch_nz_invert): New branch related instructions.
18541 (jump): Updated the attributes.
18542 (switch): Update to support new targets. CC_REGNUM register is
18543 clobbered and attributes are updated.
18544 (call_internal_short, call_internal_long, call_value_internal_short,
18545 call_value_internal_long): Updated the attributes.
18546 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
18547 clobbered and attributes are updated.
18548 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
18549 Update to support new targets. CC_REGNUM register is clobbered.
18550 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
18552 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
18554 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
18555 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
18556 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
18557 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
18558 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
18559 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
18560 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
18561 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
18562 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
18563 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
18564 point instructions defined for V850e2v3 target.
18565 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
18566 Add support for V850E2 targets and CC_REGNUM register is clobbered.
18567 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
18568 support for new targets.
18569 * config/v850/v850-modes.def: New file.
18570 * config/v850/v850.opt(mstrict-align): Remove.
18571 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
18572 mv850e2v3): New command line options for V850.
18573 * config.gcc: Update the newly added files.
18574 * doc/invoke.texi: Update the newly added command line options for
18577 2010-07-26 Richard Guenther <rguenther@suse.de>
18579 PR tree-optimization/45052
18580 * ipa-pure-const.c (check_stmt): Check volatileness.
18582 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
18585 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
18586 * config/sparc/sparc.c: Include reload.h.
18587 (legitimize_tls_address): Rename into...
18588 (sparc_legitimize_tls_address): ...this.
18589 (legitimize_pic_address): Rename into...
18590 (sparc_legitimize_pic_address): ...this.
18591 (sparc_expand_move): Adjust to above renaming.
18592 (sparc_tls_referenced_p): Likewise.
18593 (sparc_legitimize_tls_address): Likewise.
18594 (sparc_legitimize_pic_address): Likewise.
18595 (sparc_legitimize_address): Likewise.
18596 (sparc_output_mi_thunk): Likewise.
18597 (sparc_legitimize_reload_address): New global function. Recognize
18598 (lo_sum (high ...) ...) patterns generated by earlier passes.
18599 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
18601 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
18604 * config/sparc/predicates.md (memory_reg_operand): Delete.
18605 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
18606 (*sync_compare_and_swap): Encode the address form in the pattern.
18607 (*sync_compare_and_swapdi_v8plus): Likewise.
18609 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
18611 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
18612 Streamline paragraph on compatibility with the system compiler.
18614 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
18616 PR middle-end/45035
18617 * alias.c (true_dependence_1): Fix thinko in merge of old
18618 true_dependence and canon_true_dependence.
18620 2010-07-23 Jan Hubicka <jh@suse.cz>
18622 * lto-streamer-out.c (write_symbol): Fix visibilities of external
18625 2010-07-23 Le-Chun Wu <lcwu@google.com>
18627 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
18628 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
18629 and an unnecessary assignment.
18630 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
18631 self-assign warning.
18632 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
18633 unnecessary self-init.
18635 2010-07-23 Richard Guenther <rguenther@suse.de>
18638 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
18639 for -flto and -fwhopr.
18641 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
18644 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
18645 (stmp-int-hdrs): Prefix/postfix headers by include_next.
18646 * config.gcc (user_headers_inc_next_pre): New.
18647 (user_headers_inc_next_post): Likewise.
18648 (*-w64-mingw*): Use for float.h post-fixing, and for
18649 stddef.h/stdarg.h pre-fixing by include_next.
18650 * configure.ac (user_headers_inc_next_post): New.
18651 (user_headers_inc_next_pre): New.
18652 * configure: Regenerated.
18654 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18656 * configure.ac: Don't disable TLS on Solaris 8/9 by default
18657 Set tga_func for Solaris 2/x86 resp. SPARC.
18658 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
18659 (LIB_THREAD_LDFLAGS_SPEC): Define.
18660 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
18661 * configure: Regenerate.
18662 * config.in: Regenerate.
18663 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
18664 -pthread, -threads, LIB_TLS_SPEC with -pthread.
18665 * doc/install.texi (Specific, *-*-solaris2*): Document use of
18666 alternate thread libraries on Solaris 8.
18667 Document TLS patch requirements.
18668 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
18672 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
18675 2010-07-23 Jakub Jelinek <jakub@redhat.com>
18677 * tree.h (struct tree_base): Add nameless_flag bitfield.
18678 (TYPE_NAMELESS, DECL_NAMELESS): Define.
18679 * omp-low.c (create_omp_child_function, scan_omp_parallel,
18680 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
18681 DECL_ARTIFICIAL where needed.
18682 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
18683 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
18684 has DECL_NAMELESS set.
18686 2010-07-23 Martin Jambor <mjambor@suse.cz>
18688 PR tree-optimization/44915
18689 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
18690 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
18691 (analyze_function): Likewise.
18693 2010-07-23 Martin Jambor <mjambor@suse.cz>
18695 PR tree-optimization/44914
18696 * tree-sra.c (sra_modify_function_body): Return true if CFG was
18697 changed, add purging dead eh edges.
18698 (ipa_sra_modify_function_body): Return true if CFG was changed,
18699 simplify purging dead eh edges.
18700 (modify_function): Return true if CFG was changed.
18701 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
18703 (ipa_early_sra): Likewise.
18705 2010-07-23 Jie Zhang <jie@codesourcery.com>
18708 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
18710 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18711 false if ! tree_versionable_function_p.
18713 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
18715 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
18716 * ipa-pure-const.c (special_builtlin_state): Remove
18717 BUILT_IN_ARGS_INFO case.
18718 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18719 * builtins.c (expand_builtin): Likewise.
18720 (expand_builtin_args_info): Remove.
18721 * doc/tm.texi (__builtin_args_info): Remove.
18722 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
18723 * doc/tm.text.in: Likewise.
18725 2010-07-23 Richard Guenther <rguenther@suse.de>
18727 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
18728 (lto_symtab_merge_decls_2): Likewise.
18729 * tree-ssa.c (useless_type_conversion_p): Likewise.
18730 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18731 * gimple.c (gtc_visited2, gtc_ob2): Remove.
18732 (struct type_pair_d): Make same_p an array indexed by mode.
18734 (lookup_type_pair): Update initialization.
18735 (struct sccs): Adjust same_p type.
18736 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
18738 (print_gimple_types_stats): Likewise.
18739 * gimple.h (enum gtc_mode): New.
18740 (gimple_types_compatible_p): Adjust prototype.
18742 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
18744 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
18745 again after processing insn.
18747 2010-07-23 Jie Zhang <jie@codesourcery.com>
18749 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
18750 proper words when !tree_versionable_function_p.
18752 2010-07-23 Richard Guenther <rguenther@suse.de>
18754 PR tree-optimization/45037
18755 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18757 2010-07-23 Jie Zhang <jie@codesourcery.com>
18759 * doc/extend.texi: Remove IP2K from the description of naked attribute.
18762 2010-07-10 Andi Kleen <ak@linux.intel.com>
18765 * lto-opts.c (lto_write_options): Add NULL file_data argument to
18766 lto_get_section_name.
18767 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18768 * lto-streamer-out.c (produce_asm): Likewise.
18769 (copy_function): Likewise.
18770 (produce_symtab): Likewise.
18771 (produce_asm_for_decls): Likewise.
18772 * lto-streamer.c (lto_get_section_name): Add file_data argument.
18773 Rewrite to add random postfix to LTO sections.
18774 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18775 (lto_get_section_name): Add file_data argument to prototype.
18777 2010-07-10 Andi Kleen <ak@linux.intel.com>
18779 * lto-section-in.c (lto_section_name): Synchronize names
18780 with lto_get_section_name.
18782 2010-07-10 Andi Kleen <ak@linux.intel.com>
18784 * lto-opts.c (lto_read_file_options): Check for missing section.
18786 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
18788 * ira.c (check_allocation): Correctly handle the case where an allocno
18789 with two objects was allocated to a single reg.
18791 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
18793 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18794 (is_widening_mult_p): Likewise.
18795 (convert_to_widen): Use them.
18796 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
18797 well as integer ones.
18799 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
18801 * alias.c (true_dependence_1): New function, merged version of
18802 true_dependence and canon_true_dependence.
18803 (true_dependence): Simplify.
18804 (canon_true_dependence): Simplify.
18806 2010-07-22 Richard Henderson <rth@redhat.com>
18809 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18810 of V4SFmode for the SSE saves; increase stack alignment if needed.
18811 (ix86_gimplify_va_arg): Don't increase stack alignment here.
18813 2010-07-22 Jakub Jelinek <jakub@redhat.com>
18816 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18817 call cprop_find_used_regs again via note_uses.
18819 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
18821 * alias.c (get_alias_set): Fix formatting issues.
18823 2010-07-22 Steve Ellcey <sje@cup.hp.com>
18825 PR middle-end/44878
18826 * stmt.c (expand_value_return): Call promote_function_mode with
18827 a for_return argument of 2 when returning by reference.
18829 2010-07-22 Dodji Seketeli <dodji@redhat.com>
18832 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18833 unit DIE if we can find the scope DIE.
18835 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
18837 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18838 changed. Initialize OBJECT_SUBWORD.
18839 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18840 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18841 all callers changed.
18842 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18843 (finish_allocno): Likewise.
18844 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
18845 (remove_low_level_allocnos): Likewise.
18846 (update_bad_spill_attribute): Likewise.
18847 (setup_min_max_allocno_live_range_point): Likewise.
18848 (sort_conflict_id_map): Likewise.
18849 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
18850 (ior_hard_reg_conflicts): New function.
18851 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
18852 (compress_conflict_vecs): Iterate over objects, not allocnos.
18853 (ira_add_live_range_to_object): New function.
18854 (object_range_compare_func): Renamed from allocno_range_compare_func.
18855 All callers changed.
18856 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
18857 subobjects, widen the min/max range of the lowest-order object to
18858 potentially include all other such low-order objects.
18859 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
18860 (check_allocation): Likewise. Use more fine-grained tests for register
18862 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
18863 allocno subobjects.
18864 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
18865 choices about which bits to set in each set. Don't use
18866 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
18867 using the multiple sets we computed.
18868 (push_allocno_to_stack): Iterate over allocno subobjects.
18869 (all_conflicting_hard_regs_coalesced): New static function.
18870 (setup_allocno_available_regs_num): Use it.
18871 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
18873 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
18874 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18875 by ALLOCNO_NUM_OBJECTS.
18876 (calculate_spill_cost): Likewise.
18877 (color_pass): Express if statement in a more normal way.
18878 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
18879 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
18880 (setup_slot_coalesced_allocno_live_ranges): Likewise.
18881 (allocno_reload_assign): Likewise.
18882 (ira_reassign_pseudos): Likewise.
18883 (fast_allocation): Likewise.
18884 * ira-conflicts.c (build_conflict_bit_table): Likewise.
18885 (print_allocno_conflicts): Likewise.
18886 (ira_build_conflicts): Likewise.
18887 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
18888 callers changed. Test subword 0 of each allocno for conflicts.
18889 (build_object_conflicts): Renamed from build_allocno_conflicts. All
18890 callers changed. Iterate over allocno subobjects.
18891 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
18892 * ira-int.h (struct ira_allocno): New member: num_objects.
18893 Rename object to objects and change it into an array.
18894 (ALLOCNO_OBJECT): Add new argument N.
18895 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
18896 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
18897 (ior_hard_reg_conflicts): Declare.
18898 (ira_add_live_range_to_object): Declare.
18899 (ira_allocno_object_iterator): New.
18900 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
18901 (FOR_EACH_ALLOCNO_OBJECT): New macro.
18902 * ira-lives.c (objects_live): Renamed from allocnos_live; all
18904 (allocnos_processed): New sparseset.
18905 (make_object_born): Renamed from make_allocno_born; take an
18906 ira_object_t argument. All callers changed.
18907 (make_object_dead): Renamed from make_allocno_dead; take an
18908 ira_object_t argument. All callers changed.
18909 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
18910 All callers changed.
18911 (mark_pseudo_regno_live): Iterate over allocno subobjects.
18912 (mark_pseudo_regno_dead): Likewise.
18913 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
18915 (mark_ref_live): Detect subword accesses and call
18916 mark_pseudo_regno_subword_live as appropriate.
18917 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
18918 (process_bb_nodes_live): Deal with object-related updates first; set
18919 and test bits in allocnos_processed to avoid computing allocno
18920 statistics more than once.
18921 (create_start_finish_chains): Iterate over objects, not allocnos.
18922 (print_object_live_ranges): New function.
18923 (print_allocno_live_ranges): Use it.
18924 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
18927 2010-07-22 Richard Guenther <rguenther@suse.de>
18930 * gimple.c (gtc_next_dfs_num): New global.
18931 (struct sccs): Make value a union, add integer same_p member.
18932 (gtc_visit): New function.
18933 (gimple_types_compatible_p_1): New function, split out from ...
18934 (gimple_types_compatible_p): ... here. Start a DFS walk here.
18935 (iterative_hash_gimple_type): Adjust for sccs change.
18937 2010-07-22 Martin Jambor <mjambor@suse.cz>
18939 PR tree-optimization/44891
18940 * tree-sra.c: Include gimple-pretty-print.h.
18941 (replace_uses_with_default_def_ssa_name): Renamed to
18942 get_repl_default_def_ssa_name, return the new SSA name instead of
18943 replacing the old one.
18944 (sra_modify_assign): Dump a message when removing a load, if the LHS
18945 is an SSA_NAME, do not do any propagation, just set the RHS to a
18946 default definition SSA NAME, type convert if necessary.
18947 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
18949 2010-07-22 Richard Guenther <rguenther@suse.de>
18951 PR tree-optimization/45017
18952 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
18953 TYPE_PRECISION of integral types in addition to size.
18955 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
18957 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
18958 when no C library is specified.
18960 2010-07-22 Martin Jambor <mjambor@suse.cz>
18962 * ipa-prop.h (struct ipa_node_params): Updated comment.
18963 (struct ipa_edge_args): Likewise.
18964 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
18966 2010-07-22 Martin Jambor <mjambor@suse.cz>
18968 * cgraphunit.c (verify_edge_count_and_frequency): New function.
18969 (verify_cgraph_node): Verify frequencies of indirect edges.
18970 * tree-inline.c (tree_function_versioning): Update frequencies of
18973 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18976 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
18977 Set *arm_rev to be predicable.
18979 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
18981 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
18982 (LINK_COMMAND_SPEC_A): New.
18984 (DSYMUTIL_SPEC): New.
18985 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
18986 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
18988 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
18990 * calls.c (load_register_parameters): Move check for zero
18991 sized items so that only the call to
18992 mem_overlaps_already_clobbered_arg_p () is protected.
18994 2010-07-22 Jan Hubicka <jh@suse.cz>
18996 * ipa-pure-const.c (varying_state): Break out from ...
18997 (get_function_state): ... here; always return varying_state
18998 when state would be NULL otherwise.
18999 (remove_node_data): Do not free varying state.
19001 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19004 PR middle-end/45009
19005 * postreload.c: Include "target.h".
19006 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
19008 (fixup_debug_insns): Don't copy the rtx.
19009 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
19010 Don't copy when replacing. Call fixup_debug_insns in the case where
19011 we merged one add with another.
19012 (reload_combine_recognize_pattern): Fail if there aren't any uses.
19013 Try harder to determine whether we're picking a valid index register.
19014 Don't set store_ruid for an insn we're going to scan in the
19016 (reload_combine): Remove unused code.
19017 (reload_combine_note_use): When updating use information for
19018 an old insn, ignore a use that occurs after store_ruid.
19019 * Makefile.in (postreload.o): Update dependencies.
19021 * function.c (record_hard_reg_sets): Restrict the previous change
19022 to cases where the incoming nominal mode is the same as the
19023 incoming promoted mode and everything happens in MODE_INT.
19025 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19028 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
19029 ASM_OPERANDS_OUTPUT_IDX.
19030 (adjust_insn): For inline asm with multiple sets ensure first
19031 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
19034 2010-07-21 Richard Henderson <rth@redhat.com>
19036 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
19037 comparison for avoiding xmm register saves. Emit the xmm register
19039 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
19040 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
19041 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
19042 Remove patterns and the associated splitters.
19044 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
19046 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
19047 and imagine parts of a complex, so that they can have the same
19048 base and fall into the same group.
19050 2010-07-21 Richard Guenther <rguenther@suse.de>
19053 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
19054 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
19055 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
19057 2010-07-21 Martin Jambor <mjambor@suse.cz>
19059 PR tree-optimization/44900
19060 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
19061 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
19063 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
19065 PR middle-end/44738
19066 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
19068 2010-07-21 Richard Guenther <rguenther@suse.de>
19070 PR middle-end/45013
19071 * tree-ssa.c (useless_type_conversion_p): Dispatch to
19072 gimple_types_compatible_p only when in lto.
19073 * gimple.c (gimple_types_compatible_p): Use canonical types
19074 to speed up comparison.
19076 2010-07-21 Richard Guenther <rguenther@suse.de>
19078 * tree-flow.h (referenced_var): Move define ...
19079 * tree-flow-inline.h (referenced_var): ... here as an inline
19080 function. Assert here ...
19081 * tree-dfa.c (referenced_var_lookup): ... instead of here.
19082 * tree-ssa.c (maybe_optimize_var): Check if the variable
19083 is in referenced vars.
19084 (execute_update_addresses_taken): Remove old broken check.
19085 * gimple-pretty-print.c (pp_points_to_solution): Use
19086 referenced_var_lookup.
19087 * tree-into-ssa.c (dump_decl_set): Likewise.
19089 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19092 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
19093 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
19096 2010-07-20 Richard Henderson <rth@redhat.com>
19098 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
19100 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19102 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
19103 computing the sum of the stack pointer and a large constant.
19104 * config/arm/constraints.md (M): Remove superfluous parentheses.
19105 (Pc): New constraint.
19107 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19110 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
19111 operand's type if exp is tcc_unary class tree.
19113 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19115 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
19116 Reverse sense of if_then_else condition.
19118 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19120 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
19121 * config/rs6000/rs6000.c (rs6000_override_options): Set
19122 rs6000_block_move_inline_limit appropriately.
19123 (expand_block_move): Use rs6000_block_move_inline_limit.
19124 * doc/invoke.texi (mblock-move-inline-limit): Document.
19126 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19128 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
19129 FROM and TO. All callers changed. Don't look for tracked uses,
19130 just scan the RTL for DEBUG_INSNs and substitute.
19131 (reload_combine_recognize_pattern): Call fixup_debug_insns.
19132 (reload_combine): Ignore DEBUG_INSNs.
19134 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19136 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
19140 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
19141 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
19142 instead of the result's type.
19144 2010-07-20 Richard Guenther <rguenther@suse.de>
19146 PR tree-optimization/44977
19147 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
19150 2010-07-20 Richard Guenther <rguenther@suse.de>
19152 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
19153 (lto_symtab_merge_decls_2): Likewise.
19154 * gimple.h (gimple_types_compatible_p): Declare.
19155 * gimple.c (gimple_queue_type_fixup): Remove.
19156 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
19157 (gimple_compatible_complete_and_incomplete_type_p): New function.
19158 (gimple_types_compatible_p): Adjust.
19159 (gimple_register_type): Remove type fixup code.
19160 (print_gimple_types_stats): Adjust.
19161 (free_gimple_type_tables): Likewise.
19162 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
19163 * tree-ssa.c (useless_type_conversion_p): Likewise.
19165 2010-07-20 Richard Guenther <rguenther@suse.de>
19167 PR middle-end/44971
19168 PR middle-end/44988
19169 * tree-ssa.c (maybe_optimize_var): New function split out from ...
19170 (execute_update_addresses_taken): ... here.
19171 (non_rewritable_mem_ref_base): Likewise.
19172 (execute_update_addresses_taken): Do not iterate over all referenced
19173 vars but just all local decls and parms.
19174 Properly check call and asm arguments and rewrite call arguments.
19176 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
19178 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
19180 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
19182 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
19184 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
19186 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
19188 * gengtype.c (start_root_entry): New function, split out from
19189 write_root. Check whether V is null and raise an error if so.
19190 (write_field_root): Check for V being null. Don't raise an error here;
19191 set V to null instead.
19192 (write_root): Update comment above function. Use start_root_entry.
19194 2010-07-19 Xinliang David Li <davidxl@google.com>
19197 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
19199 (find_uninit_use): Add dump.
19200 (is_use_properly_guarded): Ditto.
19201 (warn_uninitialized_phi): Ditto.
19202 (execute_late_warn_uninitialized): Ditto.
19204 2010-07-19 Richard Guenther <rguenther@suse.de>
19206 PR middle-end/44941
19207 * expr.c (emit_block_move_hints): Move zero size check first.
19208 Move asserts to more useful places.
19209 * calls.c (load_register_parameters): Check for zero size.
19211 2010-07-19 Richard Henderson <rth@redhat.com>
19213 * tree-optimize.c (execute_all_early_local_passes): New. Change
19214 cgraph_state here ...
19215 (execute_early_local_optimizations): ... not here. Remove.
19216 (pass_early_local_passes, pass_all_early_optimizations): Update.
19218 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
19220 * postreload.c (reload_combine_closest_single_use): Ignore the
19221 number of uses for DEBUG_INSNs.
19222 (fixup_debug_insns): New static function.
19223 (reload_combine_recognize_const_pattern): Use it. Don't let the
19224 main loop be affected by DEBUG_INSNs.
19225 Really disallow moving adds past a jump insn.
19226 (reload_combine_recognize_pattern): Don't update use_ruid here.
19227 (reload_combine_note_use): Do it here.
19228 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
19230 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
19232 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
19234 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
19236 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
19238 * config/i386/darwin.h: Define darwin_emit_branch_islands.
19239 (TARGET_MACHO_BRANCH_ISLANDS): New.
19240 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
19241 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
19243 * config/i386/i386.c (output_pic_addr_const): Do not emit
19244 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
19245 (x86_output_mi_thunk): Adjust symbol creation.
19246 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
19247 Remove out of date comment.
19248 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
19249 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19250 (DARWIN_GENERATE_ISLANDS): Ditto.
19251 (output_call): Do not emit branch islands unless
19252 darwin_emit_branch_islands is set.
19253 * config/darwin.c: Declare darwin_emit_branch_islands.
19254 (machopic_indirect_data_reference): Do not emit unless
19255 darwin_emit_branch_islands is set.
19256 (darwin_override_options): Set darwin_emit_branch_islands
19257 where it is needed.
19258 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19260 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19262 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19263 sse_runtime, sse2_runtime.
19265 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
19267 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
19268 low half of a single-register SCmode return value before ORing
19269 it with the high half.
19270 * config/mips/mips16.S (MERGE_GPRf): Likewise.
19272 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19275 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
19278 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
19281 * postreload.c (reload_cse_move2add): Return bool, true if anything.
19282 changed. All callers changed.
19283 (move2add_use_add2_insn): Likewise.
19284 (move2add_use_add3_insn): Likewise.
19285 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
19287 (RELOAD_COMBINE_MAX_USES): Bump to 16.
19288 (last_jump_ruid): New static variable.
19289 (struct reg_use): New members CONTAINING_MEM and RUID.
19290 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
19291 (reload_combine_split_one_ruid, reload_combine_split_ruids,
19292 reload_combine_purge_insn_uses, reload_combine_closest_single_use
19293 reload_combine_purge_reg_uses_after_ruid,
19294 reload_combine_recognize_const_pattern): New static functions.
19295 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
19296 is true for our reg and that we have available index regs.
19297 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
19298 callers changed. Use them to initialize fields in struct reg_use.
19299 (reload_combine): Initialize last_jump_ruid. Be careful when to
19300 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
19301 Call reload_combine_recognize_const_pattern.
19302 (reload_combine_note_store): Update REAL_STORE_RUID field.
19304 2010-07-16 Jason Merrill <jason@redhat.com>
19306 * Makefile.in (opts-common.o): Depend on options.h.
19308 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
19310 * tree.c (build_common_builtin_nodes): Use build_function_type_list
19311 instead of build_function_type.
19312 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
19313 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19315 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
19317 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
19319 (rs6000_emit_int_cmove): Use function pointers for insn generation.
19320 Don't force values into registers unnecessarily.
19321 (output_isel): Assert that we're not given conditions we can't handle.
19322 Delete corresponding code.
19323 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
19324 scc_comparison_operator constraint. Permit 0 for the consequent
19325 operand. Permit any GPR for the alternative operand.
19326 (isel_unsigned_<mode>): Likewise.
19328 2010-07-16 Jakub Jelinek <jakub@redhat.com>
19331 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
19332 argument to const_tree.
19333 * config/i386/i386.c (function_arg_advance): If padding needs to be
19334 inserted before argument, increment cum->words by number of padding
19336 (contains_aligned_value_p): Change argument to const_tree.
19337 (ix86_function_arg_boundary): Change second argument to const_tree.
19339 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
19342 * function.c (record_hard_reg_sets): New static function.
19343 (assign_parm_setup_reg): If an optab for extending exists and the
19344 generated code clobbbers no hard regs, emit the insn directly and
19345 create a REG_EQUIV note.
19347 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19349 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
19351 * c-typeck.c (push_init_level): Likewise.
19352 (process_init_element): Likewise.
19354 2010-07-15 Anatoly Sokolov <aesok@post.ru>
19356 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
19357 (integer_three_node): Add.
19358 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
19359 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
19360 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
19361 of call build_int_cst.
19362 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
19363 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
19364 (find_interesting_uses_address): Ditto.
19365 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
19366 * tree-eh.c (lower_eh_constructs_2): Ditto.
19367 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
19368 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
19369 * expmed.c (expand_divmod): Ditto.
19370 * tree-mudflap.c (mx_register_decls): Ditto.
19371 * varasm.c (array_size_for_constructor): Ditto.
19372 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
19373 * c-parser.c (c_parser_postfix_expression): Ditto.
19375 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
19377 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
19378 New static variables.
19379 (reload_combine_recognize_pattern): New static function, broken out
19381 (reload_combine): Use it. Only initialize first_index_reg and
19382 last_index_reg once.
19384 2010-07-15 Richard Henderson <rth@redhat.com>
19386 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
19389 2010-07-15 Jan Hubicka <jh@suse.cz>
19391 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
19392 comdats for broken gold.
19393 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
19395 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19397 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
19399 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19401 * tree.h (DECL_CHAIN): Define.
19402 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
19403 * c-decl.c: Likewise.
19404 * c-parser.c: Likewise.
19405 * c-typeck.c: Likewise.
19406 * cfgexpand.c: Likewise.
19407 * cgraph.c: Likewise.
19408 * cgraphunit.c: Likewise.
19409 * combine.c: Likewise.
19410 * config/alpha/alpha.c: Likewise.
19411 * config/arm/arm.c: Likewise.
19412 * config/frv/frv.c: Likewise.
19413 * config/i386/i386.c: Likewise.
19414 * config/i386/winnt-cxx.c: Likewise.
19415 * config/ia64/ia64.c: Likewise.
19416 * config/iq2000/iq2000.c: Likewise.
19417 * config/mep/mep.c: Likewise.
19418 * config/mips/mips.c: Likewise.
19419 * config/pa/som.h: Likewise.
19420 * config/rs6000/rs6000.c: Likewise.
19421 * config/s390/s390.c: Likewise.
19422 * config/sh/sh.c: Likewise.
19423 * config/sh/symbian-cxx.c: Likewise.
19424 * config/sparc/sparc.c: Likewise.
19425 * config/spu/spu.c: Likewise.
19426 * config/stormy16/stormy16.c: Likewise.
19427 * config/vxworks.c: Likewise.
19428 * config/xtensa/xtensa.c: Likewise.
19429 * coverage.c: Likewise.
19430 * dbxout.c: Likewise.
19431 * dwarf2out.c: Likewise.
19432 * emit-rtl.c: Likewise.
19433 * expr.c: Likewise.
19434 * function.c: Likewise.
19435 * gimple-low.c: Likewise.
19436 * gimple-pretty-print.c: Likewise.
19437 * gimplify.c: Likewise.
19438 * integrate.c: Likewise.
19439 * ipa-inline.c: Likewise.
19440 * ipa-prop.c: Likewise.
19441 * ipa-split.c: Likewise.
19442 * ipa-struct-reorg.c: Likewise.
19443 * ipa-type-escape.c: Likewise.
19444 * langhooks.c: Likewise.
19445 * lto-cgraph.c: Likewise.
19446 * omp-low.c: Likewise.
19447 * stor-layout.c: Likewise.
19448 * tree-cfg.c: Likewise.
19449 * tree-complex.c: Likewise.
19450 * tree-dfa.c: Likewise.
19451 * tree-dump.c: Likewise.
19452 * tree-inline.c: Likewise.
19453 * tree-mudflap.c: Likewise.
19454 * tree-nested.c: Likewise.
19455 * tree-object-size.c: Likewise.
19456 * tree-pretty-print.c: Likewise.
19457 * tree-sra.c: Likewise.
19458 * tree-ssa-live.c: Likewise.
19459 * tree-ssa-loop-niter.c: Likewise.
19460 * tree-ssa-math-opts.c: Likewise.
19461 * tree-ssa-reassoc.c: Likewise.
19462 * tree-ssa-sccvn.c: Likewise.
19463 * tree-ssa-structalias.c: Likewise.
19464 * tree-tailcall.c: Likewise.
19465 * tree-vrp.c: Likewise.
19466 * tree.c: Likewise.
19467 * var-tracking.c: Likewise.
19468 * varasm.c: Likewise.
19470 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19473 * config/spu/spu.c (spu_expand_builtin_1): Allow references
19474 (as well as pointers) as argument to mask_for_load builtins.
19476 2010-07-15 Richard Guenther <rguenther@suse.de>
19478 PR tree-optimization/44946
19479 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
19480 with accessing only padding properly.
19482 2010-07-15 Jan Hubicka <jh@suse.cz>
19484 * ipa.c (function_and_variable_visibility): Variables marked as used
19485 should not be localized.
19487 2010-07-15 Jan Hubicka <jh@suse.cz>
19489 * cgraph.c: Include lto-streamer.h
19490 (change_decl_assembler_name): Work when assembler name hash is at place.
19491 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
19492 be sure to rename it to avoid name clash.
19493 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
19494 Localize hidden symbols only when locally defined.
19496 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
19498 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
19500 2010-07-15 Magnus Granberg <zorry@gentoo.org>
19501 Kevin F. Quinn <kevquinn@gentoo.org>
19503 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
19504 * common.opt: Add -Wtrampolines.
19505 * doc/invoke.texi: Add -Wtrampolines.
19507 2010-07-15 Jie Zhang <jie@codesourcery.com>
19509 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
19510 cortex_a8_issue_ls.
19512 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
19514 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
19515 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
19517 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19519 * config/spu/spu.c (reg_names): Remove prototype.
19520 (call_used_regs): Likewise.
19522 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
19524 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
19525 "unused" with attribute "used".
19526 (__JCR_END__): Likewise.
19527 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
19529 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
19531 2010-07-14 Richard Guenther <rguenther@suse.de>
19533 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
19534 (maybe_fixup_decls): Likewise.
19535 (input_gimple_stmt): Do not fixup anything.
19536 * lto-streamer-out.c (output_gimple_stmt): Make sure all
19537 non-automatic variable uses are wrapped inside a MEM_REF.
19539 2010-07-14 Richard Henderson <rth@redhat.com>
19541 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
19543 * varasm.c (assemble_variable): Remove early exit for functions;
19544 assert that we're given a variable.
19546 2010-07-14 Jie Zhang <jie@codesourcery.com>
19548 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
19549 cortex_a8_default when neon_type is not none.
19551 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19553 * lower-subreg.c (subreg_context): New static bitmap.
19554 (decompose_multiword_subregs): Allocate and free it.
19555 (find_decomposable_subregs): Set a bit in it for a register that
19556 occurs in a subreg that changes mode but not size.
19557 (can_decompose_p): Test it instead of non_decomposable_context.
19559 2010-07-14 Richard Guenther <rguenther@suse.de>
19561 PR tree-optimization/44824
19562 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
19563 is_gimple_mem_ref_addr.
19564 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
19565 non-decl_address_invariant_p addresses.
19567 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19569 * reload.c (find_reloads): Revert code to penalize small register
19570 classes that was brought in with the IRA merge.
19572 2010-07-14 Richard Guenther <rguenther@suse.de>
19574 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
19575 as base of ARRAY_REFs.
19577 2010-07-14 Richard Guenther <rguenther@suse.de>
19579 PR middle-end/44930
19580 * tree-pretty-print.c (do_niy): Do not print a newline.
19582 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19584 * ira-int.h (struct ira_object): New.
19585 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
19586 (struct ira_allocno): Remove members min, max,
19587 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
19588 conflict_allocnos_num and conflict_vec_p. Add new member object.
19589 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
19590 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
19591 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
19592 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
19593 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19594 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
19595 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
19596 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
19597 an ira_object_t rather than ira_allocno_t. All uses changed.
19598 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19599 contains a vector of ira_object_t; all uses changed.
19600 (ira_objects_num): Declare variable.
19601 (ira_create_allocno_object): Declare function.
19602 (ira_conflict_vector_profitable_p): Adjust prototype.
19603 (ira_allocate_conflict_vec): Renamed from
19604 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
19605 (ira_allocate_object_conflicts): Renamed from
19606 ira_allocate_allocno_conflicts; first arg now ira_object_t.
19607 (struct ira_object_iterator): New.
19608 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
19609 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
19610 to conflict_vec_p. All uses changed.
19611 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
19612 Changed to take into account that conflicts are now tracked for
19614 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
19615 Args changed to accept ira_object_t. All uses changed.
19616 (allocnos_conflict_p): New static function.
19617 (collected_conflict_objects): Renamed from collected_allocno_objects;
19618 now a vector of ira_object_t. All uses changed.
19619 (build_conflict_bit_table): Changed to take into account that
19620 conflicts are now tracked for objects.
19621 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
19622 (print_allocno_conflicts, ira_build_conflicts): Likewise.
19623 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
19624 setup_allocno_left_conflicts_size, allocno_reload_assign,
19625 fast_allocation): Likewise.
19626 * ira-lives.c (make_hard_regno_born, make_allocno_born)
19627 process_single_reg_class_operands, process_bb_node_lives): Likewise.
19628 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
19630 * ira-build.c (ira_objects_num): New variable.
19631 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19632 contains a vector of ira_object_t; all uses changed.
19633 (ira_object_id_map_vec): Corresponding change.
19634 (object_pool): New static variable.
19635 (initiate_allocnos): Initialize it.
19636 (finish_allocnos): Free it.
19637 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
19639 (ira_create_allocno): Don't set members that were removed.
19640 (ira_set_allocno_cover_class): Don't change conflict hard regs.
19641 (merge_hard_reg_conflicts): Changed to take into account that
19642 conflicts are now tracked for objects.
19643 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
19644 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
19645 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
19646 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
19647 setup_min_max_conflict_allocno_ids, ): Likewise.
19648 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
19649 to ira_object_t; all callers changed.
19650 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
19651 to ira_object_t, all callers changed.
19652 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
19653 to ira_object_t, all callers changed.
19654 (conflict_check, curr_conflict_check_tick): Renamed from
19655 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
19657 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
19658 arg changed to ira_object_t, all callers changed.
19659 (create_cap_allocno): Call ira_create_allocno_object.
19660 (finish_allocno): Free the corresponding object.
19661 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
19662 callers changed. Adjusted for dealing with objects.
19663 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
19664 dealing with objects.
19665 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
19667 * ira-int.h (struct live_range): Rename allocno member to object
19668 and change type to ira_object_t.
19669 (struct ira_object): New member live_ranges.
19670 (struct ira_allocno): Remove member live_ranges.
19671 (ALLOCNO_LIVE_RANGES): Remove.
19672 (OBJECT_LIVE_RANGES): New macro.
19673 (ira_create_live_range, ira_copy_live_range_list,
19674 ira_merge_live_range_list, ira_live_ranges_intersect_p,
19675 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
19676 * ira-build.c (ira_create_object): Initialize live ranges here.
19677 (ira_create_allocno): Not here.
19678 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
19679 changed to ira_object_t, all callers changed.
19680 (copy_live_range): Rename from copy_allocno_live_range, all callers
19682 (ira_copy_live_range_list): Rename from
19683 ira_copy_allocno_live_range_list, all callers changed.
19684 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
19685 all callers changed.
19686 (ira_live_ranges_intersect_p): Rename from
19687 ira_allocno_live_ranges_intersect_p, all callers changed.
19688 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
19690 (ira_finish_live_range_list): Rename from
19691 ira_finish_allocno_live_range_list, all callers changed.
19692 (change_object_in_range_list): Rename from change_allocno_in_range_list,
19693 last arg changed to ira_object_t, all callers changed.
19694 (finish_allocno): Changed to expect live ranges in the allocno's object.
19695 (move_allocno_live_ranges, copy_allocno_live_ranges,
19696 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
19697 ira_flattening, ira_build): Likewise.
19698 * ira-color.c (allocnos_have_intersected_live_ranges_p,
19699 slot_coalesced_allocno_live_ranges_intersect,
19700 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
19701 * ira-conflicts.c (build_conflict_bit_table): Likewise.
19702 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
19703 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
19704 make_allocno_dead, create_start_finish_chains,
19705 remove_some_program_points_and_update_live_ranges,
19706 ira_debug_live_range_list): Likewise.
19708 * ira-int.h (ira_object_conflict_iterator): Rename from
19709 ira_allocno_conflict_iterator.
19710 (ira_object_conflict_iter_init): Rename from
19711 ira_allocno_conflict_iter_init, second arg changed to
19712 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
19713 FOR_EACH_ALLOCNO_CONFLICT.
19714 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
19715 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
19716 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
19717 * ira-conflicts.c (print_allocno_conflicts): Likewise.
19719 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
19722 * tree-dump.c (dump_options): Add enumerate_locals entry.
19723 Add TDF_NOID exclusion to all entry.
19724 * tree-dump.h (dump_enumerated_decls): Declare.
19725 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
19726 Don't display type uid.
19727 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
19728 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
19729 * tree-ssa-live.c: Include gimple.h.
19730 (numbered_tree_d): New struct.
19731 (numbered_tree): New typedef.
19732 (DEF_VEC_O (numbered_tree): New.
19733 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
19734 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
19735 (dump_enumerated_decls): Likewise.
19736 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
19737 debug info and flag_dump_final_insns, call dump_enumerated_decls.
19738 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
19739 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
19741 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
19743 * expmed.h (MAX_BITS_PER_WORD): Move to...
19744 * defaults.h (MAX_BITS_PER_WORD): ...here.
19746 2010-07-13 DJ Delorie <dj@redhat.com>
19748 * config/h8300/h8300.c (h8300_init_once): Default to
19749 -fstrict_volatile_bitfields.
19751 * config/sh/sh.c (sh_override_options): Default to
19752 -fstrict_volatile_bitfields.
19754 * config/rx/rx.c (rx_option_override): New.
19756 * config/m32c/m32c.c (m32c_override_options): Default to
19757 -fstrict_volatile_bitfields.
19759 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
19761 * tree.h (build_function_call_expr): Delete.
19762 (build_call_expr_loc_array): New function.
19763 (build_call_expr_loc_vec): New function.
19764 * tree-flow.h (struct omp_region): Change type of ws_args field
19766 * builtins.c (build_function_call_expr): Delete.
19767 (build_call_expr_loc_array): New function.
19768 (build_call_expr_loc): Call it. Use XALLOCAVEC.
19769 (build_call_expr): Likewise.
19770 (build_call_expr_loc_vec): New function.
19771 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19772 build_function_call_expr.
19773 * expr.c (emutls_var_address): Likewise.
19774 * varasm.c (emutls_common_1): Likewise.
19775 * omp-low.c (expand_omp_atomic_mutex): Likewise.
19776 (expand_omp_taskreg): Adjust for new type of region->ws_args.
19777 (get_ws_args_for): Return a VEC instead of a tree.
19778 (expand_parallel_call): Call build_call_expr_loc_vec instead of
19779 build_function_call_expr.
19780 * stor-layout.c (self_referential_size): Likewise.
19782 2010-07-13 Jakub Jelinek <jakub@redhat.com>
19785 * recog.c (constrain_operands): Allow side-effects in memory
19786 operands if either < or > constraint is used, rather than if
19787 both < and > is used.
19789 2010-07-13 Richard Guenther <rguenther@suse.de>
19791 PR middle-end/44911
19792 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19793 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
19796 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
19799 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19800 to variable emited.
19801 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19802 * config/sh/sh.md (symGOT_load): Likewise.
19803 (symDTPOFF2reg): Likewise.
19804 (symTPOFF2reg): Likewise.
19806 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19808 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19809 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19811 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19813 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19815 Find ucontext_t * on Solaris 11.
19816 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19817 Handle new Solaris 11 __sighndlr patterns.
19819 2010-07-13 Jakub Jelinek <jakub@redhat.com>
19822 * vec.h (VEC_block_remove): Fix comment.
19823 * tree-ssa-live.c (remove_unused_locals): Don't use
19824 VEC_unordered_remove on local_decls, instead replace a single
19825 vector element in each iteration if at least one element had
19826 to be removed and VEC_truncate at the end.
19827 * omp-low.c (expand_omp_taskreg): Likewise.
19829 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
19831 * c-decl.c (finish_function): Fix typo in comment.
19833 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
19836 * postreload.c (move2add_use_add3_insn): Silence gcc warning
19839 2010-07-12 Jakub Jelinek <jakub@redhat.com>
19841 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19842 (simplify_stmt_using_ranges): Use it.
19844 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19846 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19847 member. Do not mark as GTY(()).
19848 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
19849 (spu_builtin_decls): New static variable.
19850 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
19851 (spu_init_builtins): Likewise.
19852 (spu_builtin_mul_widen_even): Likewise.
19853 (spu_builtin_mul_widen_odd): Likewise.
19854 (spu_builtin_mask_for_load): Likewise.
19855 (spu_builtin_vec_perm): Likewise.
19856 * config/spu/spu-c.c: Include "target.h".
19857 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
19858 of using spu_builtins[].fndecl.
19860 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19862 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
19863 imply -minterlink-mips16.
19865 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19867 * config/mips/mips.h (mips16_globals): Declare.
19868 (SWITCHABLE_TARGET): Define.
19869 * config/mips/mips.c: Include target-globals.h.
19870 (mips16_globals): New variable.
19871 (mips_set_mips16_mode): Use save_target_globals and
19872 restore_target_globals instead of target_reinit.
19874 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19876 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
19877 to say that the function can be called more than once.
19878 * target-globals.c (save_target_globals): Call init_reg_sets.
19880 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19882 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
19883 * bb-reorder.h: New file.
19884 * bb-reorder.c (default_target_bb_reorder): New variable.
19885 (this_target_bb_reorder): New conditional variable.
19886 (uncond_jump_length): Redefine as a macro.
19887 * target-globals.h (this_target_bb_reorder): Declare.
19888 (target_globals): Add a bb_reorder field.
19889 (restore_target_globals): Copy the bb_reorder field to
19890 this_target_bb-reorder.
19891 * target-globals.c: Include bb-reorder.h.
19892 (default_target_globals): Initialize the bb_reorder field.
19893 (save_target_globals): Likewise.
19895 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19897 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
19898 * gcse.h: New file.
19899 * gcse.c: Include gcse.h.
19900 (default_target_gcse): New variable.
19901 (this_target_gcse): New conditional variable.
19902 (can_copy): Redefine as a macro.
19903 (can_copy_init_p): New macro.
19904 (can_copy_p): Remove can_copy_init_p.
19905 * target-globals.h (this_target_gcse): Declare.
19906 (target_globals): Add a gcse field.
19907 (restore_target_globals): Copy the gcse field to this_target_gcse.
19908 * target-globals.c: Include gcse.h.
19909 (default_target_globals): Initialize the gcse field.
19910 (save_target_globals): Likewise.
19912 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19914 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
19915 and x_ira_prohibited_mode_move_regs_initialized_p.
19916 (ira_prohibited_mode_move_regs): Redefine as a macro.
19917 * ira.c (ira_prohibited_mode_move_regs): Delete.
19918 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
19920 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19922 * reload.h (target_reload): Add x_cached_reg_save_code and
19923 x_cached_reg_restore_code.
19924 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
19925 Redefine as macros.
19927 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19929 * Makefile.in (target-globals.o): Depend on builtins.h.
19930 * builtins.h: New file.
19931 * builtins.c: Include builtins.h.
19932 (default_target_builtins): New variable.
19933 (this_target_builtins): New conditional variable.
19934 (apply_args_mode, apply_result_mode): Redefine as macros.
19935 * target-globals.h (this_target_builtins): Declare.
19936 (target_globals): Add a builtins field.
19937 (restore_target_globals): Copy the builtins field to
19938 this_target_builtins.
19939 * target-globals.c: Include builtins.h.
19940 (default_target_globals): Initialize the builtins field.
19941 (save_target_globals): Likewise.
19943 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19945 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
19946 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
19948 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
19949 (alg_hash, alg_hash_used_p): New macros.
19950 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
19951 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
19952 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
19954 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19956 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
19957 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
19958 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
19959 (this_op_costs, costs_classes): Redefine as macros.
19960 (record_reg_classes): Don't take op_costs as a parameter.
19961 (record_operand_costs): Likewise. Update calls to record_reg_classes.
19962 (scan_one_insn): Update call to record_operand_costs.
19964 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19966 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
19967 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
19968 (target_ira_int): New structure.
19969 (default_target_ira_int): Declare.
19970 (this_target_ira_int): Declare as a variable or define as a macro.
19971 (ira_reg_mode_hard_regset, ira_register_move_cost)
19972 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
19973 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
19974 (prohibited_class_mode_regs, ira_important_classes_num)
19975 (ira_important_classes, ira_reg_class_intersect)
19976 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
19977 (ira_reg_class_union): Redefine as macros.
19978 * ira.h (target_ira): New structure.
19979 (default_target_ira): Declare.
19980 (this_target_ira): Declare as a variable or define as a macro.
19981 (ira_available_class_regs, ira_hard_regno_cover_class)
19982 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
19983 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
19984 (ira_class_hard_regs_num): Redefine as macros.
19985 * ira.c (default_target_ira, default_target_ira_int): New variables.
19986 (this_target_ira, this_target_ira_int): New conditional variables.
19987 (ira_reg_mode_hard_regset, ira_memory_move_cost)
19988 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
19989 (ira_class_subset_p): Delete.
19990 (no_unit_alloc_regs): Redefine as a macro.
19991 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
19992 (ira_class_hard_regs_num, ira_class_hard_reg_index)
19993 (ira_available_class_regs): Delete.
19994 (alloc_reg_class_subclasses): Redefine as a macro.
19995 (ira_reg_class_cover_size, ira_reg_class_cover)
19996 (ira_important_classes_num, ira_important_classes)
19997 (ira_important_class_nums, ira_class_translate): Delete.
19998 (cover_class_order): Document the variable's lifetime.
19999 (reorder_important_classes): Don't set ira_important_class_nums.
20000 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
20001 (ira_reg_class_super_classes, ira_reg_class_union)
20002 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
20004 (setup_reg_class_nregs): Don't set ira_max_regs.
20005 (prohibited_class_mode_regs): Delete.
20006 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
20007 (target_globals): Add ira and ira_int fields.
20008 (restore_target_globals): Copy the ira field to this_target_ira
20009 and the ira_int field to this_target_ira_int.
20010 * target-globals.c: Include ira-int.h.
20011 (default_target_globals): Initialize the ira and ira_int fields.
20012 (save_target_globals): Likewise.
20014 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20016 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
20017 * cfgloop.h (target_cfgloop): New structure.
20018 (default_target_cfgloop): Declare.
20019 (this_target_cfgloop): Declare as a variable or define as a macro.
20020 (target_avail_regs, target_clobbered_regs, target_res_regs)
20021 (target_reg_cost, target_spill_cost): Redefine as macros.
20022 * cfgloopanal.c (default_target_cfgloop): New variable.
20023 (this_target_cfgloop): New conditional variable.
20024 (target_avail_regs, target_clobbered_regs, target_res_regs)
20025 (target_reg_cost, target_spill_cost): Delete.
20026 * target-globals.h (this_target_cfgloop): Declare.
20027 (target_globals): Add a cfgloop field.
20028 (restore_target_globals): Copy the cfgloop field to
20029 this_target_cfgloop.
20030 * target-globals.c: Include cfgloop.h.
20031 (default_target_globals): Initialize the cfgloop field.
20032 (save_target_globals): Likewise.
20034 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20036 * regs.h (target_regs): Add x_direct_load, x_direct_store and
20037 x_float_extend_from_mem.
20038 (direct_load, direct_store, float_extend_from_mem): New macros.
20039 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
20041 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20043 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
20044 (target-globals.o): Depend on $(LIBFUNCS_H).
20045 * libfuncs.h: Include hashtab.h.
20046 (libfunc_entry): Moved from optabs.c.
20047 (target_libfuncs): New structure.
20048 (default_target_libfuncs): Declare.
20049 (this_target_libfuncs): Declare as a variable or define as a macro.
20050 (libfunc_table): Redefine as a macro.
20051 * optabs.c (default_target_libfuncs): New variable.
20052 (this_target_libfuncs): New conditional variable.
20053 (libfunc_table): Delete.
20054 (libfunc_entry): Moved to optabs.h.
20055 (libfunc_hash): Redefine as a macro.
20056 (hash_libfunc, eq_libfunc): Fix comments.
20057 (init_optabs): Use libfunc_hash to detect cases where the function
20058 has already been called. Clear the hash table instead of
20060 * target-globals.h (this_target_libfuncs): Declare.
20061 (target_globals): Add a libfuncs field.
20062 (restore_target_globals): Copy the libfuncs field to
20063 this_target_libfuncs.
20064 * target-globals.c: Include libfuncs.h.
20065 (default_target_globals): Initialize the libfuncs field.
20066 (save_target_globals): Likewise.
20068 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20070 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
20071 in all dependency lists.
20073 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20075 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
20076 * optabs.h (target_optabs): New structure.
20077 (default_target_optabs): Declare.
20078 (this_target_optabs): Declare as a variable or define as a macro.
20079 (optab_table, convert_optab_table, direct_optab_table): Redefine
20081 * optabs.c (default_target_optabs): New variable.
20082 (this_target_optabs): New conditional variable.
20083 (optab_table, convert_optab_table, direct_optab_table): Delete.
20084 * target-globals.h (this_target_optabs): Declare.
20085 (target_globals): Add a optabs field.
20086 (restore_target_globals): Copy the optabs field to
20087 this_target_optabs.
20088 * target-globals.c: Include expr.h and optabs.h.
20089 (default_target_globals): Initialize the optabs field.
20090 (save_target_globals): Likewise.
20092 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20094 * flags.h (target_flagstate): Add x_flag_excess_precision.
20095 (flag_excess_precision): Redefine as a macro.
20096 * toplev.c (flag_excess_precision): Delete.
20098 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20100 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
20101 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
20102 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
20103 (no_caller_save_reg_set): Redefine as a macro.
20104 * reload.h (target_reload): Add x_caller_save_initialized_p and
20106 (caller_save_initialized_p): Redefine as a macro.
20107 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
20108 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
20109 (regno_save_mode): Redefine as a macro.
20111 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20113 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
20114 * expmed.h: New file.
20115 * expmed.c (default_target_costs): New variable.
20116 (this_target_costs): New conditional variable.
20117 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
20118 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
20119 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
20120 * target-globals.h (this_target_expmed): Declare.
20121 (target_globals): Add a expmed field.
20122 (restore_target_globals): Copy the expmed field to
20123 this_target_expmed.
20124 * target-globals.c: Include expmed.h.
20125 (default_target_globals): Initialize the expmed field.
20126 (save_target_globals): Likewise.
20128 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20130 * Makefile.in (target-globals.o): Depend on reload.h.
20131 * reload.h (target_reload): New structure.
20132 (default_target_reload): Declare.
20133 (this_target_reload): Declare as a variable or define as a macro.
20134 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
20135 * reload1.c (default_target_reload): New variable
20136 (this_target_reload): New conditional variable.
20137 (indirect_symref_ok, double_reg_address_ok): Delete.
20138 (spill_indirect_levels): Redefine as a macro.
20139 * target-globals.h (this_target_reload): Declare.
20140 (target_globals): Add a reload field.
20141 (restore_target_globals): Copy the reload field to
20142 this_target_reload.
20143 * target-globals.c: Include hard-reg-set.h.
20144 (default_target_globals): Initialize the reload field.
20145 (save_target_globals): Likewise.
20147 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20149 * rtl.h (target_rtl): Add x_static_reg_base_value.
20150 * alias.c (static_reg_base_value): Redefine as a macro.
20152 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20154 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
20155 (GTFILES): Remove reginfo.c.
20156 * rtl.h (target_rtl): Add x_top_of_stack.
20157 (top_of_stack): New macro.
20158 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
20159 (top_of_stack): Delete.
20161 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20163 * regs.h (target_regs): Add x_hard_regs_of_mode,
20164 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
20165 x_may_move_out_cost and x_last_mode_for_init_move_cost.
20166 (have_regs_of_mode, contains_reg_of_mode, move_cost)
20167 (may_move_in_cost, may_move_out_cost): Redefine as macros.
20168 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
20169 (may_move_in_cost, may_move_out_cost): Delete.
20170 (last_mode_for_init_move_cost): Redefine as a macro.
20172 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20174 * hard-reg-set.h (target_hard_regs): New structure.
20175 (default_target_hard_regs): Declare.
20176 (this_target_hard_regs): Declare as a variable or define as a macro.
20177 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
20178 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
20179 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
20180 (reg_class_size, reg_class_subclasses, reg_class_subunion)
20181 (reg_class_superunion, reg_names): Redefine as macros.
20182 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
20183 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
20184 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
20185 (reg_class_contents, reg_class_size, reg_class_subclasses)
20186 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
20187 (default_target_hard_regs): New variable
20188 (this_target_hard_regs, initial_call_really_used_regs)
20189 (initial_reg_alloc_order): New conditional variables.
20190 (initial_reg_names): New variable.
20191 (init_reg_sets): Assert that initial_call_really_used_regs,
20192 initial_reg_alloc_order and initial_reg_names
20193 are all the same size as their variable counterparts. Use them to
20194 initialize those counterparts.
20195 * target-globals.h (this_target_hard_regs): Declare.
20196 (target_globals): Add a hard_regs field.
20197 (restore_target_globals): Copy the hard_regs field to
20198 this_target_hard_regs.
20199 * target-globals.c: Include hard-reg-set.h.
20200 (default_target_globals): Initialize the hard_regs field.
20201 (save_target_globals): Likewise.
20203 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20205 * Makefile.in (target-globals.o): Depend on $(RTL_H).
20206 * rtl.h (target_rtl): New structure.
20207 (default_target_rtl): Declare.
20208 (this_target_rtl): Declare as a variable or define as a macro.
20209 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
20210 Redefine as macros.
20211 * emit-rtl.c (default_target_rtl): New variable.
20212 (this_target_rtl): New conditional variable.
20213 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
20214 (return_address_pointer_rtx): Delete.
20215 (initial_regno_reg_rtx): New macro.
20216 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
20217 (init_emit_regs): Likewise.
20218 * target-globals.h (this_target_rtl): Declare.
20219 (target_globals): Add a rtl field.
20220 (restore_target_globals): Copy the rtl field to this_target_rtl.
20221 * target-globals.c: Include rtl.h.
20222 (default_target_globals): Initialize the rtl field.
20223 (save_target_globals): Likewise.
20225 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20227 * Makefile.in (target-globals.o): Depend on $(REGS_H).
20228 * regs.h (target_reg_modes): New structure.
20229 (default_target_reg_modes): Declare.
20230 (this_target_reg_modes): Declare as a variable or define as a macro.
20231 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
20232 * reginfo.c (default_target_reg_modes): New variable.
20233 (this_target_reg_modes): New conditional variable.
20234 (hard_regno_nregs, reg_raw_mode): Delete.
20235 * target-globals.h (this_target_regs): Declare.
20236 (target_globals): Add a regs field.
20237 (restore_target_globals): Copy the regs field to this_target_regs.
20238 * target-globals.c: Include regs.h.
20239 (default_target_globals): Initialize the regs field.
20240 (save_target_globals): Likewise.
20242 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20244 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
20245 * doc/tm.texi: Regenerate.
20246 * Makefile.in (OBJS-common): Add target-globals.o.
20247 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
20248 and target-globals.h.
20249 (target-globals.o): New rule.
20250 (GTFILES): Include $(srcdir)/target-globals.h.
20251 * defaults.h (SWITCHABLE_TARGET): Define.
20252 * gengtype.c (open_base_files): Add target-globals.h to the
20254 * target-globals.h: New file.
20255 * target-globals.c: Likewise.
20257 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
20258 * flags.h (target_flag_state): New structure.
20259 (default_target_flag_state): Declare.
20260 (this_target_flag_state): Declare as a variable or define as a macro.
20261 (align_loops_log): Redefine as a macro.
20262 (align_loops_max_skip, align_jumps_log): Likewise.
20263 (align_jumps_max_skip, align_labels_log): Likewise.
20264 (align_labels_max_skip, align_functions_log): Likewise.
20265 * toplev.c (default_target_flag_state): New variable.
20266 (this_target_flag_state): New conditional variable.
20267 (align_loops_log): Delete.
20268 (align_loops_max_skip, align_jumps_log): Likewise.
20269 (align_jumps_max_skip, align_labels_log): Likewise.
20270 (align_labels_max_skip, align_functions_log): Likewise.
20271 * target-globals.h (this_target_flag_state): Declare.
20272 (target_globals): Add a flag_state field.
20273 (restore_target_globals): Copy the flag_state field to
20274 this_target_flag_state.
20275 * target-globals.c: Include flags.h.
20276 (default_target_globals): Initialize the flag_state field.
20277 (save_target_globals): Likewise.
20279 2010-07-12 Jie Zhang <jie@codesourcery.com>
20281 * postreload.c (reg_symbol_ref[]): New.
20282 (move2add_use_add2_insn): New.
20283 (move2add_use_add3_insn): New.
20284 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
20285 (move2add_note_store): Likewise.
20287 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
20289 PR rtl-optimization/44752
20290 * genautomata.c (main): Don't emit an empty file even if there
20293 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20295 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
20296 ix86_solaris_return_in_memory.
20297 * config/i386-protos.h: Reflect this.
20298 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20299 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20301 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
20303 2010-07-12 Jie Zhang <jie@codesourcery.com>
20305 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
20306 align the stack when it's going to be saved.
20308 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20311 * config/host-solaris.c (mmap_fixed): New function.
20312 (sol_gt_pch_get_address): Use it.
20313 (sol_gt_pch_use_address): Likewise.
20315 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20317 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
20318 pentiumpro on Solaris 8 and 9/x86.
20319 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
20320 Document SSE/SSE2 support.
20321 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
20323 2010-07-12 Andi Kleen <ak@linux.intel.com>
20325 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
20326 instead of gcc_assert to print better error message for multiple
20329 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
20331 * config/i386/i386.c (ix86_asm_output_function_label): Change format
20332 string placeholder from 0x%x to %#x.
20333 (ix86_code_end): Use putc to output '\n'.
20334 (ix86_print_operand) <case ';'>: Use putc to output ';'.
20336 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
20338 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
20339 in directive -export.
20341 2010-07-10 Anatoly Sokolov <aesok@post.ru>
20343 * reginfo.h (reg_classes_intersect_p): Change arguments type to
20345 * rtl.h (reg_classes_intersect_p): Adjust prototype.
20347 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20349 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
20350 rs6000_memory_move_cost): Remove
20351 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
20352 TARGET_MEMORY_MOVE_COST): Define.
20353 (rs6000_register_move_cost): Make static. Change arguments type from
20354 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
20355 (rs6000_memory_move_cost): Make static. Change arguments type from
20356 'enum reg_class' to reg_class_t.
20358 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
20360 PR middle-end/42505
20361 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
20362 lookup code into....
20363 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
20365 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
20366 * cfgloopanal.c (target_clobbered_regs): Define.
20367 (init_set_costs): Initialize target_clobbered_regs.
20368 (estimate_reg_pressure_cost): Add call_p argument. When true,
20369 adjust the number of available registers to exclude the
20370 call-clobbered registers.
20371 * cfgloop.h (target_clobbered_regs): Declare.
20372 (estimate_reg_pressure_cost): Adjust declaration.
20373 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
20374 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
20375 (determine_set_costs): Dump target_clobbered_regs.
20376 (loop_body_includes_call): New function.
20377 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
20378 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
20379 call_p flag through.
20380 (best_gain_for_invariant): Likewise.
20381 (find_invariants_to_move): Likewise.
20382 (move_single_loop_invariants): Likewise, using already-computed
20385 2010-07-10 Richard Guenther <rguenther@suse.de>
20386 Joern Rennecke <joern.rennecke@embecosm.com>
20389 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
20390 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
20391 unless they have DECL_IGNORED_P set.
20393 2010-07-10 Richard Guenther <rguenther@suse.de>
20396 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
20398 (gimple_types_compatible_p): Similar to pointed-to
20399 types allow and merge a mix of complete and incomplete aggregate.
20400 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
20401 (iterative_hash_gimple_type): Adjust for that.
20403 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
20405 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
20407 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
20410 * config/darwin.c (output_objc_section_asm_op): Save and restore
20411 section when outputting ObjC section list.
20413 2010-07-09 Jan Hubicka <jh@suse.cz>
20415 * lto-streamer-out.c (produce_symtab): Do not write alias
20416 cgraph/varpool nodes.
20418 2010-07-09 Jan Hubicka <jh@suse.cz>
20420 * tree-inline.c (declare_return_variable): Fix ICE while
20421 inlining DECL_BY_VALUE function not in SSA form
20423 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
20425 PR tree-optimization/44576
20426 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
20427 New. Pull out from is_loop_prefetching_profitable to implement
20428 the trip count to ahead ratio heuristic.
20429 (mem_ref_count_reasonable_p): New. Pull out from
20430 is_loop_prefetching_profitable to implement the instruction to
20431 memory reference ratio heuristic. Also consider not reasonable if
20432 the memory reference count is above a threshold (to avoid
20433 explosive compilation time.
20434 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
20435 is_loop_prefetching_profitable to implement the instruction to
20436 prefetch ratio heuristic.
20437 (is_loop_prefetching_profitable): Removed.
20438 (loop_prefetch_arrays): Distribute the cost analysis across the
20439 function to allow early exit of the prefetch analysis.
20440 is_loop_prefetching_profitable is splitted into three functions,
20441 with each one called as early as possible.
20442 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
20443 number of memory references in a loop is considered too many.
20445 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
20447 * reload.c (find_reloads): Don't clear badop if we have a winreg
20448 alternative, but not win, and the class only has fixed regs.
20449 * hard-reg-set.h (class_only_fixed_regs): Declare.
20450 * reginfo.c (class_only_fixed_regs): New array.
20451 (init_reg_sets_1): Initialize it.
20452 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
20453 discourage alternatives using the stack pointer.
20455 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
20457 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
20459 * config/arm/arm.md (cbranchqi4): Fix array size.
20460 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
20461 calculating length.
20463 2010-07-09 Richard Guenther <rguenther@suse.de>
20465 * gimple.c (struct type_fixup_s): New struct and VEC type.
20466 (gimple_register_type_fixups): New static global.
20467 (gimple_queue_type_fixup): New function.
20468 (gimple_types_compatible_p): Queue type fixups instead of
20469 applying them here.
20470 (gimple_register_type): Apply queued fixups for the
20471 canonical type. Empty the type fixup queue.
20473 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20475 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
20476 * configure: Regenerate.
20477 * config.in: Ditto.
20479 2010-07-09 Jakub Jelinek <jakub@redhat.com>
20480 Denys Vlasenko <dvlasenk@redhat.com>
20481 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20483 PR tree-optimization/28632
20484 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
20485 (extract_range_from_binary_expr): Further optimize
20486 BIT_AND_EXPR and BIT_IOR_EXPR.
20488 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
20490 * tree-if-conv.c (fold_or_predicates): New.
20491 (add_to_predicate_list): Call it.
20493 2010-07-09 Richard Guenther <rguenther@suse.de>
20495 PR middle-end/44890
20496 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
20497 if base is a pointer.
20498 * tree-cfg.c (verify_expr): Update MEM_REF checking.
20500 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
20503 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
20504 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
20505 builtin mask for load/store builtins.
20507 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20509 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
20511 * configure: Regenerate.
20512 * config/i386/i386.c (ix86_print_operand) <case ';'>:
20513 Remove TARGET_MACHO.
20515 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
20517 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
20519 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
20521 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
20523 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
20525 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
20527 * config/picochip/picochip.md (commsTestPort): Emit more
20528 efficient sequence for tstport instruction.
20530 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20532 * config/i386/i386.c (ix86_veclib_handler): Make static.
20534 2010-07-09 Richard Guenther <rguenther@suse.de>
20536 PR tree-optimization/44852
20537 * tree-ssa-alias.c: Include toplev.h for exact_log2.
20538 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
20540 (indirect_refs_may_alias_p): Likewise.
20541 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
20543 2010-07-09 Richard Guenther <rguenther@suse.de>
20545 PR tree-optimization/44882
20546 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
20548 (vectorizable_load): Likewise.
20550 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
20553 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
20554 All callers changed.
20555 Handle the case when we're called for the epilogue.
20556 (thumb_unexpanded_epilogue): Use it.
20557 (thumb1_expand_epilogue): Likewise.
20559 2010-07-09 Jakub Jelinek <jakub@redhat.com>
20561 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
20562 both ranges are range_int_cst_p with non-negative minimum,
20563 try harder to derive smaller range.
20565 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
20567 * genrecog.c: Include diagnostic-core.h before toplev.h.
20568 * genoutput.c: Likewise.
20569 * genextract.c: Likewise.
20570 * genautomata.c: Likewise.
20571 * genemit.c: Likewise.
20572 * genpeep.c: Likewise.
20573 * genattrtab.c: Likewise.
20574 * genconditions.c: Likewise.
20575 * genpreds.c: Likewise.
20577 2010-07-08 Andi Kleen <ak@linux.intel.com>
20579 * lto-section-in.c (lto_section_name): Add missing comma.
20581 2010-07-08 Anatoly Sokolov <aesok@post.ru>
20583 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20584 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
20585 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
20586 (ia64_override_options): Rename to...
20587 (ia64_option_override): ... this one. Make static.
20589 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20591 PR middle-end/44843
20592 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
20593 pointed-to type of the offset in a MEM_REF to compute the alignment.
20595 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
20597 * final.c (final_scan_insn): Replace
20598 TARGET_UNWIND_INFO macro check by unwind_emit
20600 * targhooks.c (default_unwind_emit): Removed.
20601 * targhooks.h (default_unwind_emit): Likewise.
20602 * target.def (unwind_emit): Set default value to NULL.
20604 * config/i386/i386-protos.h (ix86_asm_output_function_label):
20606 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
20607 for NULL fntype argument and allow 64-bit targets.
20608 (ix86_asm_output_function_label): New function.
20609 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
20610 (ix86_handle_fndecl_attribute): Likewise.
20611 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
20612 * doc/doc/tm.texi: Regenerated.
20613 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
20614 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
20615 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
20616 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20617 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20618 * config/elfos.h: Likewise.
20619 * config/i386/cygming.h: Likewise.
20620 * config/netbsd-aout.h: Likewise.
20621 * config/openbsd.h: Likewise.
20622 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
20623 by ix86_asm_output_function_label function call.
20624 * varasm.c (assemble_start_function): Use
20625 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20627 2010-07-08 Jan Hubicka <jh@suse.cz>
20629 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
20631 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
20633 * ipa-cp.c (ipcp_estimate_growth): Use it.
20634 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
20637 2010-07-08 Jan Hubicka <jh@suse.cz>
20639 * tree-inline.c (declare_return_variable): Allocate annotation for new
20642 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
20644 PR tree-optimization/44710
20645 * tree-if-conv.c (parse_predicate): New.
20646 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
20647 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
20649 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
20651 * common.opt (ftree-loop-if-convert): New flag.
20652 * doc/invoke.texi (ftree-loop-if-convert): Documented.
20653 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
20654 when flag_tree_loop_if_convert is set.
20656 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
20658 * config/i386/i386.c: Use short syntax for function calls
20659 through function pointers.
20660 * config/i386/i386.md: Ditto.
20662 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20664 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
20666 2010-07-08 Richard Guenther <rguenther@suse.de>
20668 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
20669 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
20671 2010-07-08 Jakub Jelinek <jakub@redhat.com>
20673 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
20674 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
20675 (loc_list_from_tree): Likewise.
20676 (output_loc_operands): Handle outputting DW_OP_const[48]u
20677 with loc->dtprel set.
20678 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
20680 2010-07-08 Jan Hubicka <jh@suse.cz>
20682 * ipa.c: Include pointer-set.h
20683 (cgraph_externally_visible_p): New attribute ALIASED;
20684 when in LTO, hidden symbols are local unless they are aliased.
20685 (function_and_variable_visibility): Compute aliased nodes;
20686 handle LTO and hidden symbol on functions and vars.
20687 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
20688 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
20690 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20692 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20693 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20694 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20695 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20696 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20697 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
20698 (ix86_gen_probe_stack_range): Likewise.
20699 (override_options): Set them.
20700 (ix86_target_stack_probe): New function.
20701 (ix86_compute_frame_layout): Force use of push instructions to
20702 save registers if stack checking with probes is enabled.
20703 (get_scratch_register_on_entry): New function.
20704 (release_scratch_register_on_entry): Likewise.
20705 (ix86_adjust_stack_and_probe): Likewise.
20706 (output_adjust_stack_and_probe): Likewise.
20707 (ix86_emit_probe_stack_range): Likewise.
20708 (output_probe_stack_range): Likewise.
20709 (ix86_expand_prologue): Emit stack checking code if static built-in
20710 stack checking is enabled.
20711 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
20712 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
20713 (output_adjust_stack_and_probe): Likewise.
20714 (output_probe_stack_range): Likewise.
20715 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20716 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
20717 TARGET_STACK_PROBE.
20718 (allocate_stack_worker_64): Likewise.
20719 (allocate_stack): Likewise.
20720 (adjust_stack_and_probe): New insn.
20721 (probe_stack_range): Likewise.
20723 2010-07-08 Richard Guenther <rguenther@suse.de>
20725 PR tree-optimization/44831
20726 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
20727 a MEM_REF preserving TBAA info of the original dereference.
20728 Dereference the original pointer if the address is not invariant.
20729 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
20730 at least one invariant address that we are going to dereference.
20732 2010-07-08 Richard Guenther <rguenther@suse.de>
20734 PR tree-optimization/44861
20735 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
20736 information when building MEM_REFs.
20737 (vectorizable_load): Likewise.
20738 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
20740 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20742 * config/sol2-c.c: Do not include diagnostic-core.h.
20744 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20747 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
20748 with respect to current_function_decl. Pass decl of the function.
20749 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
20750 * ipa-inline.c (compute_inline_parameters): Pass decl to
20751 estimated_stack_frame_size.
20753 2010-07-08 Richard Guenther <rguenther@suse.de>
20755 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20757 (valueize_refs): Call it.
20759 2010-07-08 Richard Guenther <rguenther@suse.de>
20761 PR rtl-optimization/44838
20762 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20763 SSA form do not use pointer equivalence.
20765 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20767 * dwarf2out.c (AT_linkage_name): Delete.
20768 (add_linkage_attr): New function.
20769 (add_linkage_name): Call it to emit the linkage attribute.
20770 (dwarf2out_finish): Likewise.
20771 (move_linkage_attr): Explicitly accept both attribute variants.
20773 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20775 * toplev.h: Do not include diagnostic-core.h.
20776 Include diagnostic-core.h in every file that includes toplev.h.
20777 * c-tree.h: Do not include toplev.h.
20778 * pretty-print.h: Update comment.
20779 * Makefile.in: Update dependencies.
20780 * alias.c: Include diagnostic-core.h in every file that includes
20782 * attribs.c: Likewise.
20783 * auto-inc-dec.c: Likewise.
20784 * bb-reorder.c: Likewise.
20785 * bt-load.c: Likewise.
20786 * caller-save.c: Likewise.
20787 * calls.c: Likewise.
20789 * cfganal.c: Likewise.
20790 * cfgbuild.c: Likewise.
20791 * cfgcleanup.c: Likewise.
20792 * cfghooks.c: Likewise.
20793 * cfgloop.c: Likewise.
20794 * combine.c: Likewise.
20795 * config/alpha/alpha.c: Likewise.
20796 * config/arc/arc.c: Likewise.
20797 * config/arm/arm.c: Likewise.
20798 * config/arm/pe.c: Likewise.
20799 * config/avr/avr.c: Likewise.
20800 * config/bfin/bfin.c: Likewise.
20801 * config/cris/cris.c: Likewise.
20802 * config/crx/crx.c: Likewise.
20803 * config/darwin-c.c: Likewise.
20804 * config/darwin.c: Likewise.
20805 * config/fr30/fr30.c: Likewise.
20806 * config/frv/frv.c: Likewise.
20807 * config/h8300/h8300.c: Likewise.
20808 * config/host-darwin.c: Likewise.
20809 * config/i386/i386.c: Likewise.
20810 * config/i386/netware.c: Likewise.
20811 * config/i386/nwld.c: Likewise.
20812 * config/i386/winnt-cxx.c: Likewise.
20813 * config/i386/winnt-stubs.c: Likewise.
20814 * config/i386/winnt.c: Likewise.
20815 * config/ia64/ia64-c.c: Likewise.
20816 * config/ia64/ia64.c: Likewise.
20817 * config/iq2000/iq2000.c: Likewise.
20818 * config/lm32/lm32.c: Likewise.
20819 * config/m32c/m32c-pragma.c: Likewise.
20820 * config/m32c/m32c.c: Likewise.
20821 * config/m32r/m32r.c: Likewise.
20822 * config/m68hc11/m68hc11.c: Likewise.
20823 * config/m68k/m68k.c: Likewise.
20824 * config/mcore/mcore.c: Likewise.
20825 * config/mep/mep-pragma.c: Likewise.
20826 * config/mep/mep.c: Likewise.
20827 * config/mmix/mmix.c: Likewise.
20828 * config/mn10300/mn10300.c: Likewise.
20829 * config/moxie/moxie.c: Likewise.
20830 * config/pa/pa.c: Likewise.
20831 * config/pdp11/pdp11.c: Likewise.
20832 * config/picochip/picochip.c: Likewise.
20833 * config/rs6000/rs6000-c.c: Likewise.
20834 * config/rs6000/rs6000.c: Likewise.
20835 * config/rx/rx.c: Likewise.
20836 * config/s390/s390.c: Likewise.
20837 * config/score/score.c: Likewise.
20838 * config/score/score3.c: Likewise.
20839 * config/score/score7.c: Likewise.
20840 * config/sh/sh.c: Likewise.
20841 * config/sh/symbian-base.c: Likewise.
20842 * config/sh/symbian-c.c: Likewise.
20843 * config/sh/symbian-cxx.c: Likewise.
20844 * config/sol2-c.c: Likewise.
20845 * config/sol2.c: Likewise.
20846 * config/sparc/sparc.c: Likewise.
20847 * config/spu/spu.c: Likewise.
20848 * config/stormy16/stormy16.c: Likewise.
20849 * config/v850/v850-c.c: Likewise.
20850 * config/v850/v850.c: Likewise.
20851 * config/vax/vax.c: Likewise.
20852 * config/vxworks.c: Likewise.
20853 * config/xtensa/xtensa.c: Likewise.
20854 * convert.c: Likewise.
20856 * cselib.c: Likewise.
20857 * dbgcnt.c: Likewise.
20858 * dbxout.c: Likewise.
20860 * dominance.c: Likewise.
20861 * emit-rtl.c: Likewise.
20862 * explow.c: Likewise.
20863 * expmed.c: Likewise.
20864 * fixed-value.c: Likewise.
20865 * fold-const.c: Likewise.
20866 * fwprop.c: Likewise.
20867 * gcse.c: Likewise.
20868 * ggc-common.c: Likewise.
20869 * ggc-page.c: Likewise.
20870 * ggc-zone.c: Likewise.
20871 * gimple-low.c: Likewise.
20872 * gimplify.c: Likewise.
20873 * graph.c: Likewise.
20874 * haifa-sched.c: Likewise.
20875 * ifcvt.c: Likewise.
20876 * implicit-zee.c: Likewise.
20877 * integrate.c: Likewise.
20878 * ira-build.c: Likewise.
20879 * ira-color.c: Likewise.
20880 * ira-conflicts.c: Likewise.
20881 * ira-costs.c: Likewise.
20882 * ira-lives.c: Likewise.
20884 * lists.c: Likewise.
20885 * loop-doloop.c: Likewise.
20886 * loop-iv.c: Likewise.
20887 * lto-opts.c: Likewise.
20888 * lto-symtab.c: Likewise.
20889 * main.c: Likewise.
20890 * modulo-sched.c: Likewise.
20891 * optabs.c: Likewise.
20892 * params.c: Likewise.
20893 * plugin.c: Likewise.
20894 * postreload-gcse.c: Likewise.
20895 * postreload.c: Likewise.
20896 * predict.c: Likewise.
20897 * profile.c: Likewise.
20898 * real.c: Likewise.
20899 * regcprop.c: Likewise.
20900 * reginfo.c: Likewise.
20901 * regmove.c: Likewise.
20902 * reorg.c: Likewise.
20903 * resource.c: Likewise.
20905 * rtlanal.c: Likewise.
20906 * sched-deps.c: Likewise.
20907 * sched-ebb.c: Likewise.
20908 * sched-rgn.c: Likewise.
20909 * sdbout.c: Likewise.
20910 * sel-sched-dump.c: Likewise.
20911 * sel-sched-ir.c: Likewise.
20912 * simplify-rtx.c: Likewise.
20913 * stmt.c: Likewise.
20914 * stor-layout.c: Likewise.
20915 * store-motion.c: Likewise.
20916 * targhooks.c: Likewise.
20917 * tree-cfg.c: Likewise.
20918 * tree-cfgcleanup.c: Likewise.
20919 * tree-dump.c: Likewise.
20920 * tree-eh.c: Likewise.
20921 * tree-inline.c: Likewise.
20922 * tree-nomudflap.c: Likewise.
20923 * tree-object-size.c: Likewise.
20924 * tree-optimize.c: Likewise.
20925 * tree-outof-ssa.c: Likewise.
20926 * tree-phinodes.c: Likewise.
20927 * tree-profile.c: Likewise.
20928 * tree-ssa-ccp.c: Likewise.
20929 * tree-ssa-coalesce.c: Likewise.
20930 * tree-ssa-live.c: Likewise.
20931 * tree-ssa-loop-niter.c: Likewise.
20932 * tree-ssa-loop-prefetch.c: Likewise.
20933 * tree-ssa-loop.c: Likewise.
20934 * tree-ssa-structalias.c: Likewise.
20935 * tree-ssa-uninit.c: Likewise.
20936 * tree-ssa.c: Likewise.
20937 * tree-vect-data-refs.c: Likewise.
20938 * tree-vect-loop-manip.c: Likewise.
20939 * tree-vect-loop.c: Likewise.
20940 * tree-vect-patterns.c: Likewise.
20941 * tree-vect-stmts.c: Likewise.
20942 * tree-vrp.c: Likewise.
20943 * varasm.c: Likewise.
20946 * xcoffout.c: Likewise.
20948 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
20950 * gengtype.c (write_field_root): New function.
20951 (write_root): Use it.
20953 2010-07-07 Wei Guozhi <carrot@google.com>
20955 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20956 of lowest bits to lshift/compare): Add a missing line.
20958 2010-07-07 Wei Guozhi <carrot@google.com>
20960 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20961 of lowest bits to lshift/compare): New.
20963 2010-07-07 Tom Tromey <tromey@redhat.com>
20965 * doc/tm.texi: Update.
20966 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
20968 * target.def (want_debug_pub_sections): New hook.
20969 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
20970 * dwarf2out.c (add_pubname_string): Check
20971 targetm.want_debug_pub_sections.
20972 (add_pubname): Likewise.
20973 (add_pubtype): Likewise.
20975 2010-07-07 Jie Zhang <jie@codesourcery.com>
20977 * genautomata.c (output_automata_list_min_issue_delay_code):
20978 Correctly decompress min_issue_delay.
20980 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
20982 PR rtl-optimization/44404
20983 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
20984 possible, use reg_overlap_mentioned_p instead.
20986 2010-07-07 Duncan Sands <baldrick@free.fr>
20988 PR middle-end/41355
20989 * tree.c (build_function_type_skip_args): Copy the original type using
20990 build_distinct_type_copy rather than copy_node.
20992 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
20995 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
20997 (ix86_expand_prologue): Likewise.
20998 (ix86_handle_fndecl_attribute): Likewise.
20999 (ix86_asm_declare_function_name): Likewise.
21000 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21001 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21002 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
21003 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
21004 * doc/extend.texi: Likewise.
21006 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21009 * config/i386/i386.md (rdrand<mode>): Changed to expand to
21010 retry if the carry flag isn't valid.
21011 (rdrand<mode>_1): New.
21013 2010-07-07 Richard Guenther <rguenther@suse.de>
21015 PR middle-end/44790
21016 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
21017 for expanding the constant offset for MEM_REFs.
21019 2010-07-07 Richard Guenther <rguenther@suse.de>
21021 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
21022 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
21023 * gimple.h (is_gimple_operand): Remove.
21024 * gimple.c (is_gimple_operand): Likewise.
21025 (walk_gimple_op): Fix wi->val_only setting for calls.
21026 * tree-cfg.c (verify_gimple_call): Fix argument validation.
21027 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
21028 invalid gimple calls.
21030 2010-07-06 Jan Hubicka <jh@suse.cz>
21032 * lto-cgraph.c (output_cgraph): Add missing declaration.
21034 2010-07-06 Jan Hubicka <jh@suse.cz>
21036 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
21039 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
21041 * doc/gimple.texi (GIMPLE_DEBUG): Document.
21042 * doc/rtl.texi (Debug Information): New node.
21043 (NOTE_INSN_VAR_LOCATION): Document.
21044 (debug_insn): Likewise.
21045 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
21047 2010-07-07 Jan Hubicka <jh@suse.cz>
21049 With parts by Richard Guenther.
21051 PR middle-end/44813
21052 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
21053 for functions passed by reference.
21054 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
21055 in memory when passed by reference.
21056 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
21058 * ipa-split.c (split_function): Cleanup way return value is passed;
21059 handle SSA DECL_BY_REFERENCE retvals.
21060 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
21061 DECL_BY_REFERENCE is set.
21062 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
21063 find_what_p_points_to): Handle RESULT_DECL.
21064 * tree-inline.c (declare_return_variable): Get new entry_block argument;
21065 when passing by reference ensure that RESULT_DECL is gimple_val.
21066 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
21067 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
21069 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21071 PR rtl-optimization/44787
21072 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
21073 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
21075 2010-07-06 Jan Hubicka <jh@suse.cz>
21077 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
21078 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
21079 with body can prevail.
21080 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
21081 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
21082 * cgraph.c (cgraph_get_node_or_alias): New function.
21083 * cgraph.h (cgraph_get_node_or_alias): Declare.
21085 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
21087 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
21089 (ix86_expand_prologue): Likewise.
21090 (ix86_handle_fndecl_attribute): Likewise.
21091 (ix86_asm_declare_function_name): New function for
21092 ASM_DECLARE_FUNCTION_NAME.
21093 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
21094 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
21095 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
21096 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
21097 * doc/extend.texi: Adjust documentation about ms_hook_prologue
21100 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21102 * config/i386/i386.md (immediate_operand): New mode attribute.
21104 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
21105 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
21106 using P mode iterator.
21107 (pro_epilogue_adjust_stack_di_2): Rename from
21108 pro_epilogue_adjust_stack_rex64_2.
21110 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
21112 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21114 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
21115 through gen_mov_insv_1 function pointer.
21116 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
21117 gen_truncxf<mode>2 through gen_truncxf function pointer.
21118 (remainder<mode>3): Ditto.
21119 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21120 (allocate_stack): Call gen_allocate_stack_worker_64 or
21121 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
21123 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
21126 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21128 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
21129 operand constraint instead of <r><i>m.
21131 2010-07-06 Richard Guenther <rguenther@suse.de>
21133 PR middle-end/44828
21134 * convert.c (convert_to_integer): Watch out for overflowing
21137 2010-07-05 Jan Hubicka <jh@suse.cz>
21139 * lto-streamer.c (write_symbol_vec): Rename to ...
21140 (write_symbol) ... this one; write only symbol given and when
21141 present in cache. Sanity check that what is defined is present
21142 in cgraph/varpool with body/finalized decl.
21143 (write_symbols_of_kind): Remove.
21144 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
21145 pairs to produce symtab.
21146 (produce_asm_for_decls): Update call of produce_symtab; don't do so
21147 when doing WPA streaming.
21149 2010-07-05 Jan Hubicka <jh@suse.cz>
21151 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
21152 function is still available to fold into.
21154 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21156 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
21157 * function.h (struct_function): Change type of local_decls field
21159 (add_local_decl): New function.
21160 (FOR_EACH_LOCAL_DECL): New macro.
21161 * cfgexpand.c (init_vars_expansion): Adjust for new type of
21163 (estimated_stack_frame_size): Likewise.
21164 (expand_used_vars): Likewise.
21165 * cgraphbuild.c (build_cgraph_edges): Likewise.
21166 * function.c (instantiate_decls_1): Likewise.
21167 * ipa-struct-reorg.c (build_data_structure): Likewise.
21168 * ipa-type-escape.c (analyze_function): Likewise.
21169 * lto-streamer-in.c (input_function): Likewise.
21170 * lto-streamer-out.c (output_function): Likewise.
21171 * tree-ssa-live.c (remove_unused_locals): Likewise.
21172 * tree.c (free_lang_data_in_decl): Likewise.
21173 (find_decls_types_in_node): Likewise.
21174 * omp-low.c (remove_exit_barrier): Likewise.
21175 (expand_omp_taskreg): Likewise.
21176 (list2chain): Rename to...
21177 (vec2chain): ...this. Adjust.
21178 * cgraphunit.c (assemble_thunk): Call add_local_decl.
21179 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
21180 * gimple-low.c (record_vars_into): Likewise.
21181 * tree-inline.c (remap_decls): Likewise.
21182 (declare_return_variable): Likewise.
21183 (declare_inline_vars): Likewise.
21184 (copy_forbidden): Adjust for new type of cfun->local_decls.
21185 (add_local_variables): New function.
21186 (expand_call_inline): Call it.
21187 (tree_function_versioning): Likewise.
21189 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
21191 AVX Programming Reference (June, 2010)
21192 * config/i386/cpuid.h (bit_F16C): New.
21193 (bit_RDRND): Likewise.
21194 (bit_FSGSBASE): Likewise.
21196 * config/i386/i386-builtin-types.def: Add
21197 "DEF_FUNCTION_TYPE (UINT16)", function types for
21198 float16 <-> float conversions and
21199 "DEF_FUNCTION_TYPE (VOID, UINT64)".
21201 * config/i386/i386-c.c (ix86_target_macros_internal): Support
21202 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
21203 OPTION_MASK_ISA_F16C.
21205 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
21206 (OPTION_MASK_ISA_RDRND_SET): Likewise.
21207 (OPTION_MASK_ISA_F16C_SET): Likewise.
21208 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
21209 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
21210 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
21211 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
21212 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
21213 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
21214 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
21215 (override_options): Handle them.
21216 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
21217 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
21218 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
21219 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
21220 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
21221 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
21222 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
21223 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
21224 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
21225 (bdesc_args): Likewise.
21226 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
21227 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
21228 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
21229 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
21230 Handle non-memory store.
21232 * config/i386/i386.h (TARGET_FSGSBASE): New.
21233 (TARGET_RDRND): Likewise.
21234 (TARGET_F12C): Likewise.
21236 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
21237 (UNSPEC_VCVTPS2PH): Likewise.
21238 (UNSPECV_RDFSBASE): Likewise.
21239 (UNSPECV_RDGSBASE): Likewise.
21240 (UNSPECV_WRFSBASE): Likewise.
21241 (UNSPECV_WRGSBASE): Likewise.
21242 (UNSPECV_RDRAND): Likewise.
21243 (rdfsbase<mode>): Likewise.
21244 (rdgsbase<mode>): Likewise.
21245 (wrfsbase<mode>): Likewise.
21246 (wrgsbase<mode>): Likewise.
21247 (rdrand<mode>): Likewise.
21249 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
21251 * config/i386/immintrin.h (_rdrand_u16): New.
21252 (_rdrand_u32): Likewise.
21253 (_readfsbase_u32): Likewise.
21254 (_readfsbase_u64): Likewise.
21255 (_readgsbase_u32): Likewise.
21256 (_readgsbase_u64): Likewise.
21257 (_writefsbase_u32): Likewise.
21258 (_writefsbase_u64): Likewise.
21259 (_writegsbase_u32): Likewise.
21260 (_writegsbase_u64): Likewise.
21261 (_rdrand_u64): Likewise.
21262 (_cvtsh_ss): Likewise.
21263 (_mm_cvtph_ps): Likewise.
21264 (_mm256_cvtph_ps): Likewise.
21265 (_cvtss_sh): Likewise.
21266 (_mm_cvtps_ph): Likewise.
21267 (_mm256_cvtps_ph): Likewise.
21269 * config/i386/sse.md (vcvtph2ps): New.
21270 (*vcvtph2ps_load): Likewise.
21271 (vcvtph2ps256): Likewise.
21272 (vcvtps2ph): Likewise.
21273 (*vcvtps2ph): Likewise.
21274 (*vcvtps2ph_store): Likewise.
21275 (vcvtps2ph256): Likewise.
21277 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
21279 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
21281 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
21284 * genenums.c (main): Output include of insn-constants.h
21285 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
21287 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
21289 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
21290 (override_options): Initialize it.
21291 (ix86_expand_prologue): Use it.
21293 2010-07-05 Jakub Jelinek <jakub@redhat.com>
21295 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
21297 2010-07-05 Anatoly Sokolov <aesok@post.ru>
21299 * double-int.h (fit_double_type): Remove declaration.
21300 * double-int.c (fit_double_type): Remove function.
21301 * tree.h (int_fits_type_p): Adjust prototype.
21302 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
21303 instead of fit_double_type.
21304 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
21305 instead of fit_double_type and build_int_cst_wide.
21306 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
21307 instead of fit_double_type and build_int_cst_wide.
21308 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
21309 of fit_double_type.
21311 2010-07-05 Jan Hubicka <jh@suse.cz>
21313 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
21314 in_other_partition.
21315 * lto-cgraph.c (referenced_from_other_partition_p,
21316 reachable_from_other_partition_p): Use in_other_partition flags.
21317 (output_node, output_varpool_node): COMDAT nodes always have private
21318 copies and thus are never used from other partition.
21320 2010-07-05 Anatoly Sokolov <aesok@post.ru>
21322 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21323 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
21324 * config/ia64/ia64.c Include reload.h.
21325 (ia64_memory_move_cost): New function.
21326 (TARGET_MEMORY_MOVE_COST): Define.
21327 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
21330 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
21332 PR middle-end/42505
21333 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
21334 comments about cost model.
21335 (try_add_cand_for): Add second strategy for choosing initial set
21336 based on original IVs, controlled by ORIGINALP argument.
21337 (get_initial_solution): Add ORIGINALP argument.
21338 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
21339 (find_optimal_iv_set): Try two different strategies for choosing
21340 the IV set, and return the one with lower cost.
21342 2010-07-05 Richard Guenther <rguenther@suse.de>
21344 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
21346 2010-07-05 Richard Guenther <rguenther@suse.de>
21348 * tree.c (reference_alias_ptr_type): New function.
21349 * tree.h (reference_alias_ptr_type): Declare.
21350 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
21351 allow non-TARGET_MEM_REF new refs.
21352 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
21353 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
21354 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
21355 (create_mem_ref): Get alias pointer type. Adjust calls to
21356 create_mem_ref_raw.
21357 (maybe_fold_tmr): Likewise.
21358 * tree-flow.h (create_mem_ref): Adjust prototype.
21360 2010-07-05 Jakub Jelinek <jakub@redhat.com>
21363 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
21364 *from_p is VAR_DECL.
21366 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21368 * tree.h (build_call_list): Remove.
21369 * tree.c (build_call_list): Remove.
21371 2010-07-05 Richard Guenther <rguenther@suse.de>
21373 * double-int.h (double_int_sub): Declare.
21374 * double-int.c (double_int_sub): New function.
21375 * dwarf2out.c (field_byte_offset): Use it.
21376 * fixed-value.c (do_fixed_add): Likewise.
21377 (do_fixed_multiply): Likewise.
21378 (do_fixed_divide): Likewise.
21379 * tree-predcom.c (add_ref_to_chain): Likewise.
21380 (determine_roots_comp): Likewise.
21381 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21383 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21385 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
21388 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
21390 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
21391 * arm-modes.def (CC_NOTB): Don't define.
21392 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
21393 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
21394 (LTUGEU): New code_iterator.
21395 (cnb, optab): New corresponding code_attrs.
21396 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
21397 to canonical form. Operands 1 and 2 are commutative. Parametrize
21399 (addsi3_carryin_shift_<optab>): Likewise.
21400 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
21401 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
21402 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
21403 (subsi3_compare): Renamed from subsi3_compare0_c.
21404 Change CC_NOTB to CC.
21405 (arm_subsi3_insn): Allow constants for operand 0.
21406 (compare_scc peephole for eq case): New.
21407 (compare_scc splitters): Change CC_NOTB to CC.
21409 2010-07-05 Richard Guenther <rguenther@suse.de>
21411 * tree-ssa-loop-im.c (for_each_index): Do not handle
21412 ALIGN_INDIRECT_REF.
21413 (gen_lsm_tmp_name): Likewise.
21414 * tree-dump.c (dequeue_and_dump): Likewise.
21415 * tree-pretty-print.c (dump_generic_node): Likewise.
21416 (op_code_prio): Likewise.
21417 (op_symbol_code): Likewise.
21418 * tree.c (staticp): Likewise.
21419 (build1_stat): Likewise.
21420 * tree.h (INDIRECT_REF_P): Likewise.
21421 * fold-const.c (maybe_lvalue_p): Likewise.
21422 (operand_equal_p): Likewise.
21423 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21424 (ao_ref_init_from_vn_reference): Likewise.
21425 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
21426 (find_interesting_uses_address): Likewise.
21427 * dwarf2out.c (loc_list_from_tree): Likewise.
21428 * gimplify.c (gimplify_expr): Likewise.
21429 * tree-eh.c (tree_could_trap_p): Likewise.
21430 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21431 * cfgexpand.c (expand_debug_expr): Likewise.
21432 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
21433 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
21434 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
21435 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
21436 * tree-ssa-operands.c (get_expr_operands): Likewise.
21437 * expr.c (safe_from_p): Likewise.
21438 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
21439 * tree-vect-data-refs.c (vect_setup_realignment): Build
21440 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
21441 * tree-vect-stmts.c (vectorizable_load): Likewise.
21442 * tree.def (ALIGN_INDIRECT_REF): Remove.
21444 2010-07-05 Richard Guenther <rguenther@suse.de>
21446 PR tree-optimization/44784
21447 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
21448 for inserted stmts.
21449 (find_or_generate_expression): Fix SCCVN insertion check.
21451 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
21453 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
21454 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21455 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
21458 2010-07-05 Ira Rosen <irar@il.ibm.com>
21460 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
21461 statements that are not vectorized.
21462 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
21465 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
21468 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
21470 2010-07-05 Richard Guenther <rguenther@suse.de>
21472 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
21473 RESULT_DECLs properly.
21475 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
21477 PR rtl-optimization/44695
21478 * config/i386/i386.md (extract_code): Removed.
21479 (<u>divmodqi4): Likewise.
21481 (udivmodqi4): Likewise.
21482 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
21483 (udivmodhiqi3): Likewise.
21485 2010-07-04 Jan Hubicka <jh@suse.cz>
21487 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
21489 2010-07-04 Jan Hubicka <jh@suse.cz>
21491 * cgraphunit.c (init_cgraph): Only initialize dump file if it
21492 is not already initialized.
21494 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21496 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
21497 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
21498 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
21499 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
21500 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
21501 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
21502 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
21503 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
21504 (sync_new_nand_optab): Redefine as macros.
21505 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
21507 (direct_optab_index): New enum.
21508 (direct_optab_d): New structure.
21509 (direct_optab): New typedef.
21510 (direct_optab_table): Declare.
21511 (direct_optab_handler, set_direct_optab_handler): New functions.
21512 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
21513 (sync_lock_release_optab): New macros.
21514 * optabs.c (direct_optab_table): New variable.
21515 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
21516 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
21517 cmpstr_optab and cmpstrn_optab.
21518 (emit_conditional_move): Likewise for movcc_optab.
21519 (can_conditionally_move_p): Likewise for movcc_gen_code.
21520 (init_insn_codes): Clear direct_optab_table.
21521 (init_optabs): Don't initialize the new "direct optabs" here.
21522 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
21524 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
21525 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
21526 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
21527 (expand_sync_operation): Likewise other sync_*_optabs.
21528 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
21529 to sync_compare_and_swap_optab.
21530 (expand_sync_lock_test_and_set): Use direct_optab_handler for
21531 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
21532 to the names of both.
21533 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
21534 cmpstr_optab and cmpstrn_optab.
21535 (expand_builtin_lock_release): Likewise sync_lock_release.
21536 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
21537 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
21538 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
21539 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
21540 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
21541 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
21542 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
21543 (sync_lock_test_and_set, sync_lock_release): Delete.
21544 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
21545 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
21546 * genopinit.c (optabs): Use set_direct_optab_handler for the new
21548 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
21549 the "optab" local variable. Use direct_optab_handler for optab and
21550 sync_compare_and_swap_optab.
21551 * reload1.c (reload_in_optab, reload_out_optab): Delete.
21552 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
21553 reload_in_optab and reload_out_optab.
21554 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21555 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
21556 * config/pa/pa.c (pa_secondary_reload): Likewise.
21557 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
21558 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
21559 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
21560 (VMSupportsCS8_builtin): Likewise.
21562 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21564 * optabs.h (optab_handlers): Change type of insn_code to int.
21565 (optab_handler, set_optab_handler, convert_optab_handler)
21566 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
21568 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
21569 (init_insn_codes): Zero both the above arrays.
21570 (init_optabs): Never call init_insn_codes first time around.
21572 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21574 * optabs.h (optab_handler, convert_optab_handler): Turn into
21575 inline functions that return an insn code.
21576 (set_optab_handler, set_convert_optab_handler): New functions.
21577 * builtins.c: Replace optab_handler(X)->insn_code with
21578 optab_handler or set_optab_handler thoughout. Likewise
21579 convert_optab_handler(X)->insn_code with convert_optab_handler
21580 and set_convert_optab_handler.
21581 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
21582 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
21583 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
21584 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
21585 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
21586 config/spu/spu.c: Likewise.
21588 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
21591 * config.gcc (sh*-*-*): Use regular expressions instead of
21592 the 'i' modifier for sed substitutions.
21594 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
21596 * gimple.c (gimple_body): Comments added.
21598 2010-07-04 Richard Guenther <rguenther@suse.de>
21600 PR middle-end/44809
21601 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
21602 of an INDIRECT_REF.
21604 2010-07-04 Richard Guenther <rguenther@suse.de>
21606 PR tree-optimization/44479
21607 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
21608 extra SSA name copy statements which preserves points-to
21610 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21611 Copy points-to information for all pointers. Properly handle
21613 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
21615 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
21618 2010-07-04 Richard Guenther <rguenther@suse.de>
21620 PR middle-end/44785
21621 * tree-inline.c (initialize_inlined_parameters): Do not
21622 re-use pointer-map slot over remap_type call.
21624 2010-07-04 Richard Guenther <rguenther@suse.de>
21626 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
21628 2010-07-04 Richard Guenther <rguenther@suse.de>
21630 PR tree-optimization/44656
21631 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
21632 again after value-replacing in the defintions lhs.
21634 2010-07-04 Ira Rosen <irar@il.ibm.com>
21635 Revital Eres <eres@il.ibm.com>
21637 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
21638 Document new arguments.
21639 * doc/tm.texi: Regenerate.
21640 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
21641 Handle unaligned store.
21642 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
21643 * target.def (builtin_vectorization_cost): Add new arguments.
21644 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
21645 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
21646 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
21647 (vect_vfa_segment_size): Fix indentation.
21648 * tree-vectorizer.h (struct _vect_peel_info): New.
21649 (struct _vect_peel_extended_info): New.
21650 (struct _loop_vec_info): Add new field for peeling hash table and a
21651 macro for its access.
21652 (VECT_MAX_COST): Define.
21653 (vect_get_load_cost): Declare.
21654 (vect_get_store_cost, vect_get_known_peeling_cost,
21655 vect_get_single_scalar_iteraion_cost): Likewise.
21656 (vect_supportable_dr_alignment): Add new argument.
21657 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
21659 (destroy_loop_vec_info): Free peeling hash table.
21660 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
21661 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
21662 vect_analyze_slp. Fix indentation.
21663 (vect_get_single_scalar_iteraion_cost): New function.
21664 (vect_get_known_peeling_cost): Likewise.
21665 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
21666 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
21667 statement. Move outside cost calculation inside unknown peeling case.
21668 Call vect_get_known_peeling_cost for known amount of peeling.
21669 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
21670 reference to the print message of forced alignment.
21671 (vect_verify_datarefs_alignment): Update call to
21672 vect_supportable_dr_alignment.
21673 (vect_get_data_access_cost): New function.
21674 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
21675 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
21676 vect_peeling_hash_choose_best_peeling): Likewise.
21677 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
21678 to store all the accesses in the loop and find best possible access to
21679 align using peeling for known alignment case. For unknown alignment
21680 check if stores are preferred or if peeling is worthy.
21681 (vect_find_same_alignment_drs): Analyze pairs of loads too.
21682 (vect_supportable_dr_alignment): Add new argument and check aligned
21683 accesses according to it.
21684 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
21685 (cost_for_stmt): Call vect_get_stmt_cost.
21686 (vect_model_simple_cost): Likewise.
21687 (vect_model_store_cost): Call vect_get_stmt_cost. Call
21688 vect_get_store_cost to calculate the cost of the statement.
21689 (vect_get_store_cost): New function.
21690 (vect_model_load_cost): Call vect_get_stmt_cost. Call
21691 vect_get_load_cost to calculate the cost of the statement.
21692 (vect_get_load_cost): New function.
21693 (vectorizable_store): Update call to vect_supportable_dr_alignment.
21694 (vectorizable_load): Likewise.
21695 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
21696 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
21697 arguments. Handle unaligned store.
21698 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
21699 (rs6000_builtin_support_vector_misalignment): Return true for word and
21700 double word alignments for VSX.
21701 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
21702 vect_supportable_dr_alignment and builtin_vectorization_cost.
21704 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21707 * config/pa/predicates.md (prefetch_cc_operand): Remove.
21708 (prefetch_nocc_operand): Likewise.
21709 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
21710 (prefetch_20): New insn.
21711 (prefetch_cc): Remove.
21712 (prefetch_nocc): Likewise.
21714 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
21716 * expr.c (vector_mode_valid_p): Move to c-common.c.
21717 * expr.h (vector_mode_valid_p): Do not declare here.
21718 * system.h: Poison GCC_EXPR_H in front-ends.
21719 * Makefile.in: Update dependencies.
21721 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21724 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
21726 2010-07-03 Jan Hubicka <jh@suse.cz>
21728 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
21729 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
21730 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
21731 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
21734 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
21736 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
21737 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
21738 TV_IPA_LTO_DECL_OUT): New.
21739 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
21741 2010-07-03 Jan Hubicka <jh@suse.cz>
21743 * ipa-inline.c (update_edge_key): Break out from ...
21744 update_callers_keys): ... here;
21745 (update_callee_keys): Update only the edges from caller to callee.
21746 (update_all_calle_keys): Do what update_calle_keys did.
21747 (decide_inlining_of_small_functions): Avoid recomputing of all
21748 callees when badness increase.
21750 2010-07-03 Jie Zhang <jie@codesourcery.com>
21752 * config/arm/arm.c (arm_attr_length_move_neon): New.
21753 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
21754 * config/arm/neon.md (define_mode_attr V_slen): Remove.
21755 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21756 to compute length attribute.
21758 2010-07-03 Jie Zhang <jie@codesourcery.com>
21760 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21761 as predicate for operand 1 and remove its constraint.
21762 * config/arm/predicates.md (vfp_register_operand): New.
21763 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21764 (*push_fp_multi): Likewise.
21766 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
21768 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21770 2010-07-03 Jan Hubicka <jh@suse.cz>
21772 * config/i386/i386.c (override_options): Revert accidental commit.
21774 2010-07-02 Le-Chun Wu <lcwu@google.com>
21777 * doc/invoke.texi: Update documentation of -Wshadow.
21779 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21780 Julian Brown <julian@codesourcery.com>
21781 Sandra Loosemore <sandra@codesourcery.com>
21783 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21784 comparisons. Adjust to take both operands.
21785 (arm_select_cc_mode): Handle DImode comparisons.
21786 (arm_gen_compare_reg): Generate a scratch register for DImode
21787 comparisons which require one. Use xor for Thumb equality checks.
21788 (arm_const_double_by_immediates): New.
21789 (arm_print_operand): Allow 'Q' and 'R' for constants.
21790 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21791 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21792 arm_canonicalize_comparison.
21793 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21794 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21796 (arm_const_double_by_immediates): Declare.
21797 * config/arm/constraints.md (Di): New constraint.
21798 * config/arm/predicates.md (arm_immediate_di_operand)
21799 (arm_di_operand, cmpdi_operand): New.
21800 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21801 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21802 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21803 (cstoredi4): Handle non-Cirrus also.
21805 2010-07-02 Julian Brown <julian@codesourcery.com>
21806 Sandra Loosemore <sandra@codesourcery.com>
21809 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21810 (smax<mode>3): Disable for NEON float modes when
21811 flag_unsafe_math_optimizations is false.
21812 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21814 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21815 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21816 for NEON float modes when flag_unsafe_math_optimizations is false.
21817 (quad_halves_<code>v4sf): Only enable if
21818 flag_unsafe_math_optimizations is true.
21819 * doc/invoke.texi (ARM Options): Add note about floating point
21820 vectorization requiring -funsafe-math-optimizations.
21822 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
21823 Julian Brown <julian@codesourcery.com>
21825 * config/arm/neon.md (UNSPEC_VABA): Delete.
21826 (UNSPEC_VABAL): Delete.
21827 (UNSPEC_VABS): Delete.
21828 (UNSPEC_VMUL_N): Delete.
21829 (adddi3_neon): New.
21830 (subdi3_neon): New.
21831 (mul<mode>3add<mode>_neon): Make the pattern named.
21832 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21833 (neon_vadd<mode>): Replace with define_expand, and move the remaining
21835 (neon_vadd<mode>_unspec): ...to this.
21836 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21837 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21838 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21839 (neon_vaba<mode>): Rewrite in terms of vabd.
21840 (neon_vabal<mode>): Rewrite in terms of vabdl.
21841 (neon_vabs<mode>): Rewrite without unspec.
21842 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21843 (*arm_subdi3): Likewise.
21844 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
21845 No_op attribute to disable assembly output checks.
21846 * config/arm/arm_neon.h: Regenerated.
21847 * doc/arm-neon-intrinsics.texi: Regenerated.
21849 2010-07-02 Jan Hubicka <jh@suse.cz>
21851 * ipa-split.c (split_function): For aggregate values, set the return
21852 slot optimization bit. When passing DECL_BY_REFERENCE, produce
21853 *<retval> = fncall.part ().
21854 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
21856 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
21858 * config/arm/neon.md (UNSPEC_VAND): Delete.
21859 (UNSPEC_VBIC): Delete.
21860 (UNSPEC_VCLZ): Delete.
21861 (UNSPEC_VCNT): Delete.
21862 (UNSPEC_VEOR): Delete.
21863 (UNSPEC_VORN): Delete.
21864 (UNSPEC_VORR): Delete.
21865 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
21866 core registers too.
21867 (anddi3_neon): Likewise.
21868 (orndi3_neon): Likewise.
21869 (bicdi3_neon): Likewise.
21870 (xordi3_neon): Likewise.
21871 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
21872 rid of unspec and handle unused operand.
21873 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
21874 * config/arm/predicates.md (imm_for_neon_logic_operand):
21875 Require TARGET_NEON.
21876 (imm_for_neon_inv_logic_operand): Likewise.
21877 * config/arm/arm.md (define_split for logical_binary_operator):
21878 Disable for NEON registers.
21879 (anddi3): Add new define_expand, and rename the insn. Disable
21880 this insn for NEON, where anddi3_neon now applies.
21881 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
21882 (iordi3): As for anddi3.
21883 (xordi3): Likewise.
21884 * config/arm/neon.ml (Vand): Split DImode variants and mark them
21885 as No_op to disable testing for exact instruction match.
21890 * config/arm/arm_neon.h: Regenerated.
21891 * doc/arm-neon-intrinsics.texi: Regenerated.
21893 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
21895 * expr.h (emit_stack_probe): Declare.
21896 * explow.c (emit_stack_probe): Make global.
21897 (anti_adjust_stack_and_probe): Fix comments.
21898 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21899 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21900 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21901 * config/sparc/sparc.c: Include except.h.
21902 (sparc_emit_probe_stack_range): New function.
21903 (output_probe_stack_range): Likewise.
21904 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
21905 built-in stack checking is enabled.
21906 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
21907 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21908 (probe_stack_range): New insn.
21910 2010-07-02 Richard Guenther <rguenther@suse.de>
21913 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
21914 for argument alignment.
21916 2010-07-02 Jan Hubicka <jh@suse.cz>
21918 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
21919 walk backwards from entry_bb to check only those basic block of header
21920 that might lead to execution of split part.
21921 (consider_split) ... here.
21922 (find_return_bb): Allow assignment in return BB.
21923 (find_retval): New.
21924 (split_function): Fix name of cloned function; take care of updating
21925 return value in return_bb containing move.
21927 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
21930 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
21931 used variable insn.
21933 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
21935 * implicit-zee.c (combine_reaching_defs): Fix long lines.
21936 (is_set_with_extension_DI): Delete.
21937 (struct zero_extend_info): New structure.
21938 (add_removable_zero_extend): New function.
21939 (find_removable_zero_extends): Use note_stores to find SETs.
21940 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
21942 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
21944 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
21945 is_miss_rate_acceptable. Pull total_positions computation
21946 out of the loops. Early return if miss_positions exceeds
21947 the acceptable threshold.
21948 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
21949 is_miss_rate_acceptable after renaming of compute_miss_rate.
21951 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
21953 PR middle-end/44576
21954 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
21955 of 1000) for miss rate if the address diference is greater than or
21956 equal to the cache line size (the two reference will never hit the
21959 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
21962 * config/arm/arm-modes.def (CC_NOTB): New mode.
21963 * config/arm/arm.c (get_arm_condition_code): Handle it.
21964 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
21965 * config/arm/arm.md (subsi3_compare0_c): New pattern.
21966 (compare_scc): Now a define_and_split. Add a number of extra
21967 splitters before it.
21970 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
21972 (arm_rtx_costs_1): Likewise.
21973 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
21974 * config/arm/arm.md (is_arch6): New attribute.
21975 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
21976 extendqisi2): Tighten the code somewhat, avoiding invalid
21977 RTL to occur in the expander patterns.
21978 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
21979 (thumb1_zero_extendhisi2_v6): Delete.
21980 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
21981 (thumb1_extendhisi2_v6): Delete.
21982 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
21983 (thumb1_extendqisi2_v6): Delete.
21984 (zero_extendhisi2 for register input splitter): New.
21985 (zero_extendqisi2 for register input splitter): New.
21986 (thumb1_extendhisi2 for register input splitter): New.
21987 (extendhisi2 for register input splitter): New.
21988 (extendqisi2 for register input splitter): New.
21989 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
21990 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
21991 and add support for a register alternative requiring a split.
21992 (thumb1_zero_extendqisi2): Likewise.
21993 (arm_zero_extendqisi2): Likewise.
21994 (arm_extendhisi2): Likewise.
21995 (arm_extendqisi2): Likewise.
21997 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
21999 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
22000 instead of an unspec.
22001 (neon_expand_vector_init): Likewise.
22002 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
22003 (UNSPEC_VDUP_LANE): Delete.
22004 (UNSPEC VDUP_N): Delete.
22005 (UNSPEC_VGET_HIGH): Delete.
22006 (UNSPEC_VGET_LANE): Delete.
22007 (UNSPEC_VGET_LOW): Delete.
22008 (UNSPEC_VMVN): Delete.
22009 (UNSPEC_VSET_LANE): Delete.
22010 (V_double_vector_mode): New.
22011 (vec_set<mode>_internal): Make code emitted match that for the
22012 corresponding intrinsics.
22013 (vec_setv2di_internal): Likewise.
22014 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
22015 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
22016 (neon_vset_lane<mode>): Combine double and quad patterns and
22017 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
22018 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
22019 (neon_vdup_n<mode>): Rewrite RTL without unspec.
22020 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
22021 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
22022 with neon_vdup_lanev2di, adjusting the pattern from the latter
22023 to be predicable for consistency.
22024 (neon_vdup_lane<mode>_internal): New.
22025 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
22026 to avoid using an unspec.
22027 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
22028 (neon_vdup_lanev2di): Turn into a define_expand.
22029 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
22030 (neon_vget_high<mode>): Replace with....
22031 (neon_vget_highv16qi): New pattern using canonical RTL.
22032 (neon_vget_highv8hi): Likewise.
22033 (neon_vget_highv4si): Likewise.
22034 (neon_vget_highv4sf): Likewise.
22035 (neon_vget_highv2di): Likewise.
22036 (neon_vget_low<mode>): Replace with....
22037 (neon_vget_lowv16qi): New pattern using canonical RTL.
22038 (neon_vget_lowv8hi): Likewise.
22039 (neon_vget_lowv4si): Likewise.
22040 (neon_vget_lowv4sf): Likewise.
22041 (neon_vget_lowv2di): Likewise.
22043 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
22044 test for this emitting vmov.
22045 (Vset_lane): Likewise.
22046 (Vdup_n): Likewise.
22047 (Vmov_n): Likewise.
22049 * doc/arm-neon-intrinsics.texi: Regenerated.
22051 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22053 * config/arm/neon.md (vec_extractv2di): Correct error in register
22054 numbering to reconcile with neon_vget_lanev2di.
22056 2010-07-02 Richard Guenther <rguenther@suse.de>
22058 * tree-ssa-structalias.c (pt_solution_set_var): New function.
22059 * tree-ssa-alias.h (pt_solution_set_var): Declare.
22060 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
22061 points-to information.
22063 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
22065 * config/s390/s390.c (override_options): Adopt prefetching
22066 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
22068 2010-07-02 Jan Hubicka <jh@suse.cz>
22070 * df-problems.c (df_kill_notes): Do not collect dead notes.
22071 (df_set_note): Just call add_reg_note.
22072 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
22073 df_create_unused_note): Do not deal with lists of old notes.
22074 (df_note_bb_compute): Likewise.
22076 2010-07-02 Richard Guenther <rguenther@suse.de>
22078 * tree-ssa-structalias.c (find_func_aliases): Handle
22079 pointer alignment via BIT_AND_EXPR.
22080 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
22082 2010-07-02 Richard Guenther <rguenther@suse.de>
22084 * tree-data-ref.c (initialize_data_dependence_relation): Handle
22085 mismatching number of dimensions properly.
22087 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22090 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
22091 (lo_sum (high ...) ...) patterns generated by earlier passes.
22093 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22095 * doc/install.texi (Prerequisites): Document Perl requirement on
22097 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
22099 2010-07-02 Richard Guenther <rguenther@suse.de>
22101 PR middle-end/44777
22102 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
22104 2010-07-02 Jan Hubicka <jh@suse.cz>
22106 PR middle-end/44706
22107 * predict.c (predict_paths_for_bb): Handle case when control dependence
22108 BB has only abnormal edges.
22110 2010-07-02 Richard Guenther <rguenther@suse.de>
22112 PR tree-optimization/44748
22113 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
22114 the embedded conversion in MEM_REFs.
22116 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
22118 * reload.c: Include toplev.h.
22119 * recog.c: Likewise.
22120 * Makefile.in: Adjust dependencies.
22122 2010-07-01 Jakub Jelinek <jakub@redhat.com>
22125 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
22126 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
22128 2010-07-01 Richard Guenther <rguenther@suse.de>
22130 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
22133 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
22136 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
22137 Fix argument types.
22139 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
22142 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22143 Make sure operand 0 dies.
22145 2010-07-01 Richard Guenther <rguenther@suse.de>
22147 PR middle-end/42834
22148 PR middle-end/44468
22149 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
22150 * doc/generic.texi (References to storage): Document MEM_REF.
22151 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
22152 (print_call_name): Likewise.
22153 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
22154 (build_simple_mem_ref_loc): New function.
22155 (mem_ref_offset): Likewise.
22156 * tree.h (build_simple_mem_ref_loc): Declare.
22157 (build_simple_mem_ref): Define.
22158 (mem_ref_offset): Declare.
22159 * fold-const.c: Include tree-flow.h.
22160 (operand_equal_p): Handle MEM_REF.
22161 (build_fold_addr_expr_with_type_loc): Likewise.
22162 (fold_comparison): Likewise.
22163 (fold_unary_loc): Fold
22164 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
22165 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
22166 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
22167 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
22168 (ptr_deref_may_alias_ref_p_1): Likewise.
22169 (ao_ref_base_alias_set): Properly differentiate base object for
22171 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
22172 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
22173 (indirect_refs_may_alias_p): Likewise.
22174 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
22176 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
22177 (call_may_clobber_ref_p_1): Likewise.
22178 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
22179 * expr.c (expand_assignment): Handle MEM_REF.
22180 (store_expr): Handle MEM_REFs from STRING_CSTs.
22181 (store_field): If expanding a MEM_REF of a non-addressable
22182 decl use bitfield operations.
22183 (get_inner_reference): Handle MEM_REF.
22184 (expand_expr_addr_expr_1): Likewise.
22185 (expand_expr_real_1): Likewise.
22186 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
22187 * alias.c (ao_ref_from_mem): Handle MEM_REF.
22188 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
22189 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
22190 (dr_analyze_indices): Likewise.
22191 (dr_analyze_alias): Likewise.
22192 (object_address_invariant_in_loop_p): Likewise.
22193 * gimplify.c (mark_addressable): Handle MEM_REF.
22194 (gimplify_cond_expr): Build MEM_REFs.
22195 (gimplify_modify_expr_to_memcpy): Likewise.
22196 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
22197 (gimple_fold_indirect_ref): Adjust.
22198 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
22199 * tree.def (MEM_REF): New tree code.
22200 * tree-dfa.c: Include toplev.h.
22201 (get_ref_base_and_extent): Handle MEM_REF.
22202 (get_addr_base_and_unit_offset): New function.
22203 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
22204 * gimple-fold.c (may_propagate_address_into_dereference): Handle
22206 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
22207 accesses if the array has just one dimension. Remove always true
22208 parameter. Do not require type compatibility here.
22209 (maybe_fold_offset_to_component_ref): Remove.
22210 (maybe_fold_stmt_indirect): Remove.
22211 (maybe_fold_reference): Remove INDIRECT_REF handling.
22212 Fold back to non-MEM_REF.
22213 (maybe_fold_offset_to_address): Simplify. Deal with type
22215 (maybe_fold_reference): Likewise.
22216 (maybe_fold_stmt_addition): Likewise. Also handle
22217 &ARRAY + I in addition to &ARRAY[0] + I.
22218 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
22219 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
22220 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
22221 * tree-ssa.c (useless_type_conversion_p): Make most pointer
22222 conversions useless.
22223 (warn_uninitialized_var): Handle MEM_REF.
22224 (maybe_rewrite_mem_ref_base): New function.
22225 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
22227 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
22228 INDIRECT_REF handling.
22229 (copy_tree_body_r): Handle MEM_REF.
22230 * gimple.c (is_gimple_addressable): Adjust.
22231 (is_gimple_address): Likewise.
22232 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
22233 invariant base are invariant.
22234 (is_gimple_min_lval): Adjust.
22235 (is_gimple_mem_ref_addr): New function.
22236 (get_base_address): Handle MEM_REF.
22237 (count_ptr_derefs): Likewise.
22238 (get_base_loadstore): Likewise.
22239 * gimple.h (is_gimple_mem_ref_addr): Declare.
22240 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
22241 * tree-cfg.c (verify_address): New function, split out from ...
22242 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
22243 the address operand of MEM_REFs. Verify MEM_REFs. Reject
22245 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
22246 INDIRECT_REF. Allow conversions.
22247 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
22248 a register does not change its size.
22249 (verify_types_in_gimple_reference): Verify MEM_REF.
22250 (verify_gimple_assign_single): Disallow INDIRECT_REF.
22252 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
22254 (mark_address_taken): Handle MEM_REF.
22255 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
22256 (get_asm_expr_operands): Pass opf_not_non_addressable.
22257 (get_expr_operands): Handle opf_[not_]non_addressable.
22258 Handle MEM_REF. Remove INDIRECT_REF handling.
22259 * tree-vrp.c (check_array_ref): Handle MEM_REF.
22260 (search_for_addr_array): Likewise.
22261 (check_array_bounds): Likewise.
22262 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
22263 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
22264 (ref_always_accessed_p): Likewise.
22265 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
22266 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
22268 * cgraphbuild.c (mark_load): Properly check for NULL result
22269 from get_base_address.
22270 (mark_store): Likewise.
22271 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
22272 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
22273 handling for MEM_REF.
22274 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
22275 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
22276 * builtins.c (stabilize_va_list_loc): Use the function ABI
22277 valist type if we couldn't canonicalize the argument type.
22278 Always dereference with the canonical va-list type.
22279 (maybe_emit_free_warning): Handle MEM_REF.
22280 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
22282 * builtins.c (fold_builtin_memory_op): Use ref-all types
22283 for all memcpy foldings.
22284 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
22285 (build_outer_var_ref): Likewise.
22286 (scan_omp_1_op): Likewise.
22287 (lower_rec_input_clauses): Likewise.
22288 (lower_lastprivate_clauses): Likewise.
22289 (lower_reduction_clauses): Likewise.
22290 (lower_copyprivate_clauses): Likewise.
22291 (expand_omp_atomic_pipeline): Likewise.
22292 (expand_omp_atomic_mutex): Likewise.
22293 (create_task_copyfn): Likewise.
22294 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
22295 Remove old union trick. Initialize constant offsets.
22296 (ao_ref_init_from_vn_reference): Likewise. Do not handle
22297 INDIRECT_REF. Init base_alias_set properly.
22298 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
22299 (vn_reference_fold_indirect): Adjust for MEM_REFs.
22300 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
22302 (may_insert): Remove.
22303 (visit_reference_op_load): Do not test may_insert.
22304 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
22305 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
22306 a field to store the constant offset this op applies.
22307 (run_scc_vn): Adjust prototype.
22308 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
22309 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
22310 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
22311 bother about volatile qualifiers on pointers.
22312 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
22313 * tree-ssa-loop-ivopts.c
22314 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
22315 (strip_offset_1): Likewise.
22316 (find_interesting_uses_address): Replace INDIRECT_REF handling with
22318 (get_computation_cost_at): Likewise.
22319 * ipa-pure-const.c (check_op): Handle MEM_REF.
22320 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
22321 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
22323 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
22324 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
22325 (eliminate_local_variables_1): Likewise.
22326 (create_call_for_reduction_1): Likewise.
22327 (create_loads_for_reductions): Likewise.
22328 (create_loads_and_stores_for_name): Likewise.
22329 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
22330 (ssa_accessed_in_tree): Handle MEM_REF.
22331 (ssa_accessed_in_assign_rhs): Likewise.
22332 (update_type_size): Likewise.
22333 (analyze_accesses_for_call_stmt): Likewise.
22334 (analyze_accesses_for_assign_stmt): Likewise.
22335 (transform_access_sites): Likewise.
22336 (transform_allocation_sites): Likewise.
22337 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
22338 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
22339 not handle INDIRECT_REF.
22340 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
22341 (cond_store_replacement): Likewise.
22342 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22343 MEM_REF, no not handle INDIRECT_REFs.
22344 (insert_into_preds_of_block): Properly initialize avail.
22345 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
22346 for ARRAY_REFs. Properly handle reference lookups that
22347 require a bit re-interpretation.
22348 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
22349 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
22350 (build_ref_for_offset_1): Remove.
22351 (build_ref_for_offset): Build MEM_REFs.
22352 (gate_intra_sra): Disable for now.
22353 (sra_ipa_modify_expr): Handle MEM_REF.
22354 (ipa_early_sra_gate): Disable for now.
22355 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
22357 (disqualify_base_of_expr): Likewise.
22358 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
22360 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
22361 Use mem_ref_offset. Remove bogus folding.
22362 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
22363 (make_fancy_name_1): Add support for MEM_REF.
22364 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
22365 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
22366 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
22367 (compute_complex_ancestor_jump_func): Likewise.
22368 (ipa_analyze_virtual_call_uses): Likewise.
22369 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
22370 INDIRECT_REF folding with more generalized MEM_REF folding.
22371 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
22372 (forward_propagate_addr_into_variable_array_index): Also handle
22373 &ARRAY + I in addition to &ARRAY[0] + I.
22374 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
22375 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
22376 creates assignments with overlap.
22377 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
22378 (get_frame_field): Likewise.
22379 (get_nonlocal_debug_decl): Likewise.
22380 (convert_nonlocal_reference_op): Likewise.
22381 (struct nesting_info): Add mem_refs pointer-set.
22382 (create_nesting_tree): Allocate it.
22383 (convert_local_reference_op): Insert to be folded mem-refs.
22384 (fold_mem_refs): New function.
22385 (finalize_nesting_tree_1): Perform defered folding of mem-refs
22386 (free_nesting_tree): Free the pointer-set.
22387 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
22388 (vectorizable_load): Likewise.
22389 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
22390 (propagate_with_phi): Likewise.
22391 * tree-object-size.c (addr_object_size): Handle MEM_REFs
22392 instead of INDIRECT_REFs.
22393 (compute_object_offset): Handle MEM_REF.
22394 (plus_stmt_object_size): Handle MEM_REF.
22395 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
22397 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
22398 (symbol_marked_for_renaming): Likewise.
22399 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
22400 (fold-const.o): Add $(TREE_FLOW_H).
22401 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
22402 (find_func_clobbers): Likewise.
22403 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
22404 (decompose_access): Likewise.
22405 (replace_field_acc): Likewise.
22406 (replace_field_access_stmt): Likewise.
22407 (insert_new_var_in_stmt): Likewise.
22408 (get_stmt_accesses): Likewise.
22409 (reorg_structs_drive): Disable.
22410 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
22411 (ix86_canonical_va_list_type): Likewise.
22413 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
22416 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
22417 * target.def (struct gcc_target): Replace enum reg_class with
22418 reg_class_t in hook argument / return types.
22419 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
22420 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
22421 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
22422 * targhooks.h (default_branch_target_register_class): Likewise.
22423 (default_ira_cover_classes, default_secondary_reload): Likewise.
22424 (default_memory_move_cost, default_register_move_cost): Likewise.
22425 * targhooks.c (default_branch_target_register_class): Likewise.
22426 (default_ira_cover_classes, default_secondary_reload): Likewise.
22427 (default_memory_move_cost, default_register_move_cost): Likewise.
22428 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
22429 * bt-load.c (branch_target_load_optimize): Likewise.
22430 * ira.c (setup_cover_and_important_classes): Likewise.
22431 * ira-costs.c (copy_cost): Likewise.
22432 * reload1.c (emit_input_reload_insns): Likewise.
22433 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22434 * config/frv/frv.c (frv_secondary_reload): Likewise.
22435 * config/s390/s390.c (s390_secondary_reload): Likewise.
22436 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
22437 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
22438 (ix86_register_move_cost): Likewise.
22439 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
22440 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
22441 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
22442 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
22443 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
22444 (rs6000_ira_cover_classes): Likewise.
22445 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
22446 * config/picochip/picochip-protos.h (picochip_secondary_reload):
22448 * config/pa/pa.c (pa_secondary_reload): Likewise.
22449 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
22450 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
22451 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
22452 * doc/tm.texi: Regenerate.
22454 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
22456 PR bootstrrap/44726
22457 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
22459 (build_alias_set_optimal_p): Likewise.
22460 (build_base_obj_set_for_drs): Likewise.
22462 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
22464 * target.def: Remove comment about licensing problems of function
22467 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
22468 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
22469 * doc/tm.texi: Regenerate.
22471 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
22472 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
22474 * target.def (enum_va_list_p): Use DEFHOOK.
22475 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
22476 Rename ptype to ptree.
22477 * doc/tm.texi: Regenerate.
22479 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
22480 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
22481 * doc/tm.texi: Regenerate.
22483 * target.def (memory_move_cost): Use DEFHOOK.
22484 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
22485 Rename regclass AKA class to rclass.
22486 * doc/tm.texi: Regenerate.
22488 * target.def (pragma_parse): Use DEFHOOK.
22489 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
22490 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
22491 * doc/tm.texi: Regenerate.
22493 * target.def (pass_by_reference): Use DEFHOOK.
22494 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
22495 * doc/tm.texi: Regenerate.
22497 * target.def (resolve_overloaded_builtin): Rename params to arglist.
22499 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
22500 * doc/tm.texi: Regenerate.
22502 * target.def (return_pops_args): Use DEFHOOK.
22503 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
22504 Rename stack-size to size.
22505 * doc/tm.texi: Regenerate.
22507 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
22508 last-sched_cycle to last_clock, cur_cycle to clock.
22509 * doc/tm.texi.in: Use @hook.
22510 * doc/tm.texi: Regenerate.
22512 * target.def (print_operand, print_operand_address): Update comment.
22513 (print_operand_punct_valid_p): Likewise.
22515 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
22517 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
22519 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
22520 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
22521 * rtl-error.h: New.
22522 * regrename.c: Do not include toplev.h. Include rtl-error.h.
22523 * rtl-error.c: Likewise.
22524 * reload.c: Likewise.
22525 * recog.c: Likewise.
22526 * sel-sched.c: Likewise.
22527 * function.c: Likewise.
22528 * reg-stack.c: Likewise.
22529 * cfgrtl.c: Likewise.
22530 * reload1.c: Likewise.
22531 * final.c: Include rtl-error.
22532 * Makefile.in: Adjust dependencies.
22534 2010-06-30 Jan Hubicka <jh@suse.cz>
22536 PR middle-end/PR44706
22537 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
22538 to return the value.
22540 2010-06-30 Michael Matz <matz@suse.de>
22543 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
22544 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
22545 a gimple reg, attach the original VDEF to the last store in the
22548 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
22551 * config/darwin.c (darwin_override_options): Use renamed
22552 targetm.asm_out.emit_unwind_label.
22554 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
22556 PR tree-optimization/39799
22557 * tree-inline.c (remap_ssa_name): Initialize variable only if
22558 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22560 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
22562 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
22564 2010-06-30 Richard Guenther <rguenther@suse.de>
22567 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
22568 against oscillation with reverse peephole2.
22570 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
22573 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22576 2010-06-30 Nick Clifton <nickc@redhat.com>
22578 * config/rx/rx-modes.def: New file.
22579 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
22580 (CC_REGNUM): Define.
22581 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
22583 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22584 (SELECT_CC_MODE): Define.
22585 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
22586 (reg:CC CC_REG) instead of (cc0).
22587 (attr "cc"): Delete.
22588 (cbranchsi4): Do not split compare and branch here. Instead move
22590 (cbranchsi4_<code>): ... here. New patterns.
22591 (cmpsi): Call rx-compare_redundant to find out if it is necessary
22592 to emit the compare instruction.
22593 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
22595 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
22596 FIRST_PSEUDO_REGNUM.
22597 (rx_expand_prologue, rx_expand_epilogue): Likewise.
22598 (rx_notice_update_cc): Delete.
22599 (rx_cc_modes_compatible): New function.
22600 (flags_needed_for_conditional): New function.
22601 (flags_from_mode): New function.
22602 (rx_compare_redundant): New function - scans backwards through
22603 insn list to find out if condition flags are already set correctly.
22604 (TARGET_CC_MODES_COMPATIBLE): Define.
22605 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
22607 * config/rx/rx.h (BRANCH_COST): Define.
22608 (REGISTER_MOVE_COST): Define.
22609 * config/rx/predicates (rx_source_operand): Allow all constant types.
22610 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
22611 (tstsi4): New pattern.
22612 * config/rx/rx.c (rx_memory_move_cost): Define.
22613 (TARGET_MEMORY_MOVE_COST): Define.
22615 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
22617 * tree.h (block_may_fallthru): Declare here.
22618 * tree-flow.h (block_may_fallthru): Do not declare here.
22619 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
22621 * Makefile.in (c-typeck.o): Update dependencies.
22623 2010-06-30 Jakub Jelinek <jakub@redhat.com>
22626 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
22627 * cselib.c (cfa_base_preserved_regno): New static variable.
22628 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
22629 of REGNO (cfa_base_preserved_val->locs->loc).
22630 (cselib_preserve_cfa_base_value): Add regno argument, set
22631 cfa_base_preserved_regno to it.
22632 (cselib_invalidate_regno): Allow removal of registers other than
22633 cfa_base_preserved_regno from cfa_base_preserved_val.
22634 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
22635 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
22636 of MEM addresses, if not on LHS.
22637 (reverse_op): Don't add reverse ops for cfa_base_rtx.
22638 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
22640 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
22642 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
22644 (peep2_buf_position): New static function.
22645 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
22646 peephole2_optimize): Use it.
22647 (peep2_attempt, peep2_update_life): New static functions, broken out
22648 of peephole2_optimize.
22649 (peep2_fill_buffer): New static function.
22650 (peephole2_optimize): Change the main loop to try to fill the buffer
22651 with the maximum number of insns before matching them against
22652 peepholes. Use a forward scan. Remove special case for targets with
22653 conditional execution.
22654 * genrecog.c (change_state): Delete dead code.
22655 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22656 Rewrite so as not to expect the second insn to have had a peephole
22659 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22661 * genhooks.c (emit_findices): Cast field precision to int.
22662 (emit_documentation): Likewise.
22664 2010-06-29 Jakub Jelinek <jakub@redhat.com>
22666 PR tree-optimization/43801
22667 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
22668 if old_decl was DECL_ONE_ONLY.
22671 * dwarf2out.c (add_accessibility_attribute): New function.
22672 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
22673 instead of adding DW_AT_accessibility manually.
22674 (gen_enumeration_type_die, gen_struct_or_union_type_die,
22675 gen_typedef_die): Use it.
22677 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22679 * vmsdbgout.c (full_name): Just output the file name if not native.
22681 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22683 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
22684 (funcnam_table): New static table.
22685 (funcnum_table): New static table.
22686 (write_rtnbeg): Write value saved in funcnum_table.
22687 (write_rtnend): Write value saved in funcnum_table.
22688 (vmsdbgout_begin_function): Save current function info in
22689 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
22690 (vmsdbgout_finish): Iterate over funcnum_table.
22692 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22694 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
22695 (vmsdbgout_type_decl): Declare
22696 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
22697 (FUNC_EPILOGUE_LABEL): New macro
22698 (vmsdbgout_begin_epilogue): New function.
22699 (vmsdbgout_type_decl): New function.
22701 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22703 * vmsdbg.h: Update copyright.
22705 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22707 * vmsdbg.h (DST_K_TBG): New DST constant.
22708 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
22709 (write_modbeg): Cast module_language to avoid warning.
22710 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
22712 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
22715 * target.def, doc/tm.texi.in, genhooks.c: New files.
22716 * target.h: Instead of defining individual hook members,
22717 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
22718 include target.def.
22719 * target-def.h: Instead of defining individual hook initializers,
22720 include target-hooks-def.h.
22721 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
22722 targetm.live_on_entry -> targetm.extra_live_on_entry
22723 targetm.sched.md_finish ->targetm.sched.finish
22724 targetm.sched.md_init -> targetm.sched.init
22725 targetm.sched.md_init_global -> targetm.sched.init_global
22726 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
22727 targetm.asm_out.except_table_label ->
22728 targetm.asm_out.emit_except_table_label
22729 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
22730 targetm.target_help -> targetm.help
22731 targetm.vectorize.builtin_support_vector_misalignment ->
22732 targetm.vectorize.support_vector_misalignment
22733 targetm.file_start_app_off -> targetm.asm_file_start_app_off
22734 targetm.file_start_file_directive ->
22735 targetm.asm_file_start_file_directive
22736 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
22737 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
22738 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
22739 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
22740 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
22741 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
22742 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
22743 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
22744 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
22745 * Makefile.in (TARGET_H): Depend on target.def.
22746 (TARGET_DEF_H): Depend on target-hooks-def.h.
22747 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
22748 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
22749 * doc/tm.texi: Regenerate.
22751 * Makefile.in (s-tm-texi): Remove stray tab / rule.
22753 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
22754 (targetm.sched.init): Likewise.
22756 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22759 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22760 (function_arg_advance_32): Const-ify TYPE parameter.
22761 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
22762 (ix86_function_arg_advance): Change type of NAMED to bool.
22763 (function_arg_32): Const-ify CUM and TYPE parameters.
22764 (function_arg_64): Likewise. Change type of NAMED to bool.
22765 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22767 (ix86_function_arg): Change type of NAMED to bool.
22768 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
22769 last argument as a bool.
22771 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
22773 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22774 (OVERRIDE_OPTIONS): Add note of obsolescence.
22775 Replace references with references to TARGET_OPTION_OVERRIDE.
22776 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22778 * targhooks.c (default_target_option_override): New function.
22779 * targhooks.h (default_target_option_override): Declare.
22780 * target.h (struct gcc_target): Add override member to
22781 target_option member.
22782 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22783 targetm.target_option.override call.
22784 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22785 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22787 2010-06-29 Jan Hubicka <jh@suse.cz>
22789 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22791 2010-06-29 Jan Hubicka <jh@suse.cz>
22793 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22795 (rebuild_frequencies): New function.
22796 * predict.h (rebuild_frequencies): Declare.
22797 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22798 entry block and edge reaching new_entry.
22799 (tree_function_versioning): When doing partial cloning, rebuild
22800 frequencies when done.
22801 * passes.c (execute_function_todo): Use rebild_frequencies.
22803 2010-06-29 Richard Guenther <rguenther@suse.de>
22805 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22806 * tree-flow.h (enum noalias_state): Remove.
22807 (struct var_ann_d): Remove noalias_state member.
22809 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
22812 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22813 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
22814 (maddhidi4): Likewise.
22816 Revert parts of the change for PR25130.
22817 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22820 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22822 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22823 targetm.calls.function_incoming_arg, and
22824 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22825 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22826 * target.h (struct gcc_target): Add function_arg_advance,
22827 function_arg, and function_incoming_arg fields.
22828 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22829 (TARGET_FUNCTION_INCOMING_ARG): Define.
22830 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22831 and TARGET_FUNCTION_INCOMING_ARG.
22832 * targhooks.h (default_function_arg_advance): Declare.
22833 (default_function_arg, default_function_incoming_arg): Declare.
22834 * targhooks.c (default_function_arg_advance): New function.
22835 (default_function_arg, default_function_incoming_arg): New function.
22836 * config/i386/i386.c (function_arg_advance): Rename to...
22837 (ix86_function_arg_advance): ...this. Make static.
22838 (function_arg): Rename to...
22839 (ix86_function_arg): ...this. Make static.
22840 (TARGET_FUNCTION_ARG_ADVANCE): Define.
22841 (TARGET_FUNCTION_ARG): Define.
22842 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22843 (FUNCTION_ARG): Delete.
22844 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
22845 (function_arg): Delete prototype.
22847 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22849 * reginfo.c (init_reg_sets_1): Adjust comments.
22850 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
22851 * calls.c (prepare_call_address): Likewise.
22852 (emit_call_1): Use targetm.calls.return_pops_args.
22853 (expand_call): Likewise.
22854 * function.c (assign_parms): Likewise.
22855 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
22856 * target.h (struct gcc_target) [struct calls]: Add
22857 return_pops_args field.
22858 * targhooks.h (default_return_pops_args): Declare.
22859 * targhooks.c (default_return_pops_args): Define.
22860 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
22861 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
22862 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
22863 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
22865 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
22866 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
22867 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
22868 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
22869 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
22870 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
22871 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
22872 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
22873 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
22874 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
22875 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
22876 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
22877 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
22878 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
22879 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
22880 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
22881 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
22882 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
22883 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
22884 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
22885 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
22886 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
22887 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
22888 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
22889 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
22890 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
22891 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
22892 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
22893 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
22894 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
22895 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
22896 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
22897 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
22898 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
22899 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
22900 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
22901 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
22902 * config/i386/i386.c (ix86_return_pops_args): Make static.
22903 Constify arguments.
22904 (TARGET_RETURN_POPS_ARGS): Define.
22905 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
22906 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
22907 (TARGET_RETURN_POPS_ARGS): Define.
22908 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
22909 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
22910 (TARGET_RETURN_POPS_ARGS): Define.
22912 2010-06-29 Richard Guenther <rguenther@suse.de>
22914 PR middle-end/44667
22915 * tree-inline.c (initialize_inlined_parameters): Make sure
22916 to remap the inlined parameter variable substitutions types.
22918 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
22920 PR rtl-optimization/44659
22921 * combine.c (make_compound_operation) <SUBREG>: Do not return the
22922 result of force_to_mode if it partially re-expanded the compound.
22924 2010-06-28 Jan Hubicka <jh@suse.cz>
22926 PR middle-end/44671
22927 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
22930 2010-06-28 Anatoly Sokolov <aesok@post.ru>
22932 * double-int.h (force_fit_type_double): Remove declaration.
22933 * double-int.c (force_fit_type_double): Move to tree.c.
22934 * tree.h (force_fit_type_double): Declare.
22935 * tree.h (force_fit_type_double): Moved from double-int.c. Use
22936 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
22937 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
22938 * convert.c (convert_to_pointer): Adjust call to
22939 force_fit_type_double.
22940 * tree-vrp.c (extract_range_from_assert,
22941 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
22942 * fold-const.c: Update comment.
22943 (int_const_binop, fold_convert_const_int_from_int,
22944 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
22945 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
22946 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
22947 round_up_loc): Adjust call to force_fit_type_double.
22949 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22951 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
22953 2010-06-28 Martin Jambor <mjambor@suse.cz>
22955 * tree-sra.c (convert_callers): New parameter, change fndecls of
22957 (modify_function): Pass the old decl to convert_callers.
22959 2010-06-28 Martin Jambor <mjambor@suse.cz>
22961 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
22962 ipa_check_create_node_params and ipa_initialize_node_params with
22963 checking asserts they are not necessary.
22965 2010-06-28 Jan Hubicka <jh@suse.cz>
22967 PR tree-optimization/44687
22968 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
22970 2010-06-28 Martin Jambor <mjambor@suse.cz>
22973 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
22974 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
22975 instead of BINFO_BASE_BINFO.
22977 2010-06-28 Michael Matz <matz@suse.de>
22979 PR middle-end/44592
22980 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
22981 proper VDEF chain for intermediate stores in the sequence.
22983 2010-06-28 Jan Hubicka <jh@suse.cz>
22985 PR tree-optimization/44357
22986 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
22987 uninlinable functions.
22989 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22991 * config.gcc (powerpc*-*-*): Handle titan.
22992 * config/rs6000/rs6000.c (titan_cost): New costs.
22993 (rs6000_override_options): Add "titan" to processor_target_table.
22994 Add Titan to branch alignment logic.
22995 Correctly set rs6000_cost for titan.
22996 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
22997 * config/rs6000/titan.md: New file.
22998 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
23000 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23002 * tree-browser.c (TB_history_stack): Convert to a VEC.
23003 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
23004 (TB_history_prev): Likewise.
23006 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23008 * vec.h (vec_heap_free): Add parentheses around free.
23010 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
23012 * system.h: Poison GCC_EXCEPT_H for front-end files.
23014 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
23016 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
23017 Define to NULL by default.
23018 * except.h: Define GCC_EXCEPT_H.
23019 (doing_eh): Remove prototype.
23020 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
23021 (lang_protect_cleanup_actions): Remove.
23022 * except.c (lang_protect_cleanup_actions): Remove.
23023 (doing_eh): Remove.
23024 (gen_eh_region): Don't check doing_eh here.
23025 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
23026 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
23027 instead of lang_protect_cleanup_actions.
23028 * omp-low.c (maybe_catch_exception): Likewise.
23029 * Makefile.in: Update dependencies.
23031 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
23033 * cgraph.h (struct varpool_node): new used_from_object_file flag.
23034 (struct cgraph_local_info): new used_from_object_file flag.
23035 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
23036 (cgraph_clone_node): initialize used_from_object_file.
23037 (cgraph_create_virtual_clone): initialize used_from_object_file.
23038 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
23039 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
23040 when compiling with -fwhole-program.
23041 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
23043 * ipa.c (function_and_variable_visibility): Set externally_visible
23044 flag of varpool_node if used_from_object_file flag is set.
23045 (cgraph_externally_visible_p): check used_from_object_file flag.
23046 * doc/invoke.texi (-fwhole-program option): Change description of
23047 externally_visible attribute accordingly.
23048 * doc/extend.texi (externally_visible): Ditto.
23050 2010-06-27 Jan Hubicka <jh@suse.cz>
23052 * params.def (max-inline-insns-auto): Default to 40.
23053 * doc/invoke.texi (max-inline-insns-auto): Document the change.
23055 2010-06-27 Jan Hubicka <jh@suse.cz>
23057 PR middle-end/44671
23058 PR middle-end/44686
23059 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
23061 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
23062 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
23064 2010-06-27 Anatoly Sokolov <aesok@post.ru>
23066 * target.h (struct gcc_target): Add register_move_cost field.
23067 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
23068 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
23069 * targhooks.c (default_register_move_cost): New function.
23070 * targhooks.h (default_register_move_cost): Declare function.
23071 * defaults.h (REGISTER_MOVE_COST): Delete.
23072 * ira-int.h (ira_register_move_cost): Update comment.
23073 * ira.c (ira_register_move_cost): Update comment.
23074 * reload.h (register_move_cost): Declare.
23075 * reginfo.c (register_move_cost): New function.
23076 (move_cost): Update comment.
23077 (init_move_cost, memory_move_secondary_cost): Replace
23078 REGISTER_MOVE_COST with register_move_cost.
23079 * postreload.c (reload_cse_simplify_set): (Ditto.).
23080 * reload.c (find_valid_class, find_reloads): (Ditto.).
23081 * reload1.c (choose_reload_regs): (Ditto.).
23082 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
23083 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
23084 * doc/md.texi (can_create_pseudo_p): Update documentation.
23086 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23087 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23088 * config/i386/i386.h (ix86_memory_move_cost): Make static.
23089 (TARGET_MEMORY_MOVE_COST): Define.
23091 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
23092 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
23093 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
23094 (TARGET_MEMORY_MOVE_COST): Define.
23096 2010-06-27 Richard Guenther <rguenther@suse.de>
23098 PR tree-optimization/44683
23099 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
23100 false edge from the inverted condition.
23102 2010-06-27 Richard Guenther <rguenther@suse.de>
23104 PR middle-end/44684
23105 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
23106 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
23107 for register LHS. Or non-store assignments.
23109 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
23111 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
23112 (sparc_emit_set_const64): Likewise. Remove disabled code.
23113 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
23114 (sparc_emit_set_const64): Likewise.
23116 2010-06-26 Catherine Moore <clm@codesourcery.com>
23118 * config/mips/mips.md (alu_type): New attribute.
23119 (type): Infer type from alu_type.
23120 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
23121 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
23122 *subsi3_extended, negsi2, negdi2, *low<mode>,
23123 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
23124 xor<mode>3, *nor<mode>3,
23125 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
23126 *zero_extendhi_truncqi): Set alu_type instead of type.
23128 2010-06-26 Douglas B Rupp <rupp@gnat.com>
23130 * config/alpha/alpha.c (alpha_need_linkage): Adjust
23131 splay_tree_new_ggc call.
23132 (alpha_use_linkage): Likewise.
23134 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23136 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
23137 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
23138 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
23139 (static_specs): Remove switches_need_spaces.
23140 (process_command, do_self_spec): Hardcode handling "-o" instead of
23141 checking switches_need_spaces.
23142 * system.h (SWITCHES_NEED_SPACES): Poison.
23144 2010-06-26 Richard Guenther <rguenther@suse.de>
23146 PR tree-optimization/44393
23147 * tree-loop-distribution.c (generate_loops_for_partition): Fix
23148 stmt removal and VOP renaming.
23149 (generate_memset_zero): Remove redundant stmt updating.
23150 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
23151 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
23153 2010-06-26 Jan Hubicka <jh@suse.cz>
23155 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
23156 edges comming from header are equivalent.
23157 (visit_bb): Handle PHIs correctly.
23158 * tree-inline.c (copy_phis_for_bb): Be able to copy
23159 PHI from entry edge.
23160 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
23162 2010-06-26 Richard Guenther <rguenther@suse.de>
23164 PR middle-end/44674
23165 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
23166 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
23168 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23170 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
23171 add_infile, alloc_switch): New.
23172 (process_command): Remove variable lang_n_infiles. Process
23173 options in a single pass. Use new functions for allocating
23174 infiles and switches arrays. Properly skip operands of
23175 -Xpreprocessor and -Xassembler.
23177 2010-06-26 Jan Hubicka <jh@suse.cz>
23179 PR middle-end/44671
23180 * cgraphunit.c (cgraph_function_versioning): Remove wrong
23181 cgraph_make_decl_local call; fix typo copying RTL data.
23183 2010-06-25 DJ Delorie <dj@redhat.com>
23185 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
23186 (m32c_output_aligned_common): Likewise.
23187 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23188 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23189 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
23190 (m32c_register_pragmas): Register it.
23191 * config/m32c/m32c.c (m32c_get_pragma_address): New.
23192 (m32c_insert_attributes): Set #pragma address decls volatile.
23193 (pragma_entry_eq): New.
23194 (pragma_entry_hash): New.
23195 (m32c_note_pragma_address): New.
23196 (m32c_get_pragma_address): New.
23197 (m32c_output_aligned_common): New.
23198 * doc/extend.texi: Document the new pragma.
23200 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
23202 * config/m32c/predicates.md (m32c_any_operand): Check the code
23203 instead of memory_operand so as to allow matching volatile MEMs.
23204 (m32c_nonimmediate_operand): Likewise.
23205 (mra_operand): Allow volatiles.
23207 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
23210 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
23211 address if the offset is unknown.
23213 2010-06-25 Douglas B Rupp <rupp@gnat.com>
23215 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
23216 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
23217 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
23218 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
23219 to ia64_start_function. Invoke it.
23220 * config/ia64/ia64.c (ia64_start_function): Call new function
23221 dwarf2out_vms_debug_main_pointer.
23223 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23225 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
23226 statements computing the true predicate.
23228 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23230 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
23231 to boolean_true_node.
23232 (reset_bb_predicate): New.
23233 (predicate_bbs): Call reset_bb_predicate.
23235 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23237 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
23238 (tree_if_conversion): Returns true when something has been changed.
23239 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
23242 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23244 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
23245 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
23246 * tree-if-conv.c: Include dbgcnt.h.
23247 (tree_if_conversion): Use if_conversion_tree to count the number of
23248 if-convertible loops.
23250 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
23252 * common.opt (fprefetch-loop-arrays): Re-define
23253 -fprefetch-loop-arrays as a tri-state option with the initial
23255 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
23256 pass only when flag_prefetch_loop_arrays > 0.
23257 * toplev.c (process_options): Note that, with tri-states,
23258 flag_prefetch_loop_arrays>0 means prefetching is enabled.
23259 * config/i386/i386.c (override_options): Enable prefetching at -O3
23260 for a set of CPUs that sw prefetching is helpful.
23261 (software_prefetching_beneficial_p): New. Return TRUE if software
23262 prefetching is beneficial for the given CPU.
23264 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
23266 PR rtl-optimization/44326
23267 * implicit-zee.c (find_removable_zero_extends): Replace
23268 INSN_P with NONDEBUG_INSN_P.
23270 2010-06-25 Martin Jambor <mjambor@suse.cz>
23272 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
23273 (struct ipa_node_params): Removed the modification_analysis_done flag.
23274 (ipa_is_param_modified): Removed.
23275 (ipa_analyze_node): Declare.
23276 (ipa_compute_jump_functions): Remove declaration.
23277 (ipa_count_arguments): Likewise.
23278 (ipa_detect_param_modifications): Likewise.
23279 (ipa_analyze_params_uses): Likewise.
23280 * ipa-prop.c (struct param_analysis_info): New type.
23281 (visit_store_addr_for_mod_analysis): Removed.
23282 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
23283 moved down in the file.
23284 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
23285 (ipa_count_arguments): Made static.
23286 (mark_modified): New function.
23287 (is_parm_modified_before_call): New function.
23288 (compute_pass_through_member_ptrs): New parameter parms_info, call
23289 is_parm_modified_before_call instead of ipa_is_param_modified.
23290 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
23291 it to compute_pass_through_member_ptrs.
23292 (ipa_compute_jump_functions): New parameter parms_info, pass it to
23293 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
23294 on the callee if it is analyzed. Made static.
23295 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
23296 is_parm_modified_before_call instead of ipa_is_param_modified.
23297 (ipa_analyze_call_uses): New parameter parms_info, pass it to
23298 ipa_analyze_indirect_call_uses.
23299 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
23300 ipa_analyze_call_uses.
23301 (ipa_analyze_params_uses): New parameter parms_info, pass it to
23302 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
23303 (ipa_analyze_node): New function.
23304 (ipa_print_node_params): Do not dump the modified flag.
23305 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
23306 it. Do not stream the modified parameter flag.
23307 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
23308 it. Do not stream the modified parameter flag.
23309 * ipa-cp.c (ipcp_analyze_node): Removed.
23310 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
23311 with only a call to ipa_analyze_node.
23312 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
23313 node with only a call to ipa_analyze_node.
23315 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
23317 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
23319 2010-06-25 Jan Hubicka <jh@suse.cz>
23321 * tree-pass.h (pass_split_functions): Declare.
23322 * opts.c (decode_options): Enable function splitting at -O2
23323 * timevar.def (TV_IPA_FNSPLIT): New macro.
23324 * ipa-split.c: New file.
23325 * common.opt (-fpartial-inlining): New flag.
23326 * Makefile.in (ipa-split.o): New object file.
23327 * passes.c (init_optimization_passes): Add ipa-split.
23328 * params.def (partial-inlining-entry-probability): New parameters.
23329 * doc/invoke.texi (-fpartial-inlining): New.
23331 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
23334 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
23335 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
23336 (gimplify_expr): Likewise.
23338 2010-06-25 Martin Jambor <mjambor@suse.cz>
23340 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
23341 statements instead of bailing out on them.
23342 (ipa_analyze_indirect_call_uses): Do not require that loads from the
23343 parameter are in the same BB as the condition. Update comments.
23345 2010-06-25 Jakub Jelinek <jakub@redhat.com>
23347 PR middle-end/43866
23348 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
23349 true or always false, return NULL_TREE.
23350 (tree_unswitch_single_loop): Optimize conditions even when reaching
23351 max-unswitch-level parameter. If num > 0, optimize first all conditions
23352 using entry checks, then do still reachable block discovery and consider
23353 only conditions in still reachable basic blocks in the loop.
23355 PR tree-optimization/44539
23356 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
23357 the call doesn't have LHS, but has VDEF.
23359 2010-06-25 Joseph Myers <joseph@codesourcery.com>
23361 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
23362 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
23363 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
23364 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
23365 * system.h (MODIFY_TARGET_NAME): Poison.
23367 2010-06-25 Alan Modra <amodra@gmail.com>
23369 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
23370 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
23371 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23372 CMODEL_LARGE as default.
23373 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
23374 (offsettable_ok_by_alignment): Delete.
23375 (rs6000_emit_move): Remove mcmodel=medium optimization.
23377 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
23379 With large parts from Jim Wilson:
23381 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
23382 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23383 * optabs.c (optab_for_tree_code): Likewise.
23384 (expand_widen_pattern_expr): Likewise.
23385 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
23386 out of execute_optimize_widening_mul.
23387 (convert_plusminus_to_widen): New function.
23388 (execute_optimize_widening_mul): Use the two new functions.
23389 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
23390 Remove code to generate widening multiply-accumulate. Add support
23391 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23392 * gimple-pretty-print.c (dump_ternary_rhs): New function.
23393 (dump_gimple_assign): Call it when appropriate.
23394 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
23395 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
23396 (expand_gimple_stmt_1): Likewise.
23397 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
23398 WIDEN_MULT_MINUS_EXPR.
23399 * tree-ssa-operands.c (get_expr_operands): Likewise.
23400 * tree-inline.c (estimate_operator_cost): Likewise.
23401 * gimple.c (extract_ops_from_tree_1): Renamed from
23402 extract_ops_from_tree. Add new arg for a third operand; fill it.
23403 (gimple_build_assign_stat): Support operations with three operands.
23404 (gimple_build_assign_with_ops_stat): Likewise.
23405 (gimple_assign_set_rhs_from_tree): Likewise.
23406 (gimple_assign_set_rhs_with_ops_1): Renamed from
23407 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
23408 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
23409 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
23410 WIDEN_MULT_MINUS_EXPR.
23411 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
23412 (extract_ops_from_tree_1): Adjust declaration.
23413 (gimple_assign_set_rhs_with_ops_1): Likewise.
23414 (gimple_build_assign_with_ops): Pass NULL for last operand.
23415 (gimple_build_assign_with_ops3): New macro.
23416 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
23417 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
23419 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
23420 (verify_gimple_assign): Call it.
23421 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
23422 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
23423 functions for dealing with three-operand statements.
23424 * tree.c (commutative_ternary_tree_code): New function.
23425 * tree.h (commutative_ternary_tree_code): Declare it.
23426 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
23427 ternary statements.
23428 (gimple_assign_nonzero_warnv_p): Likewise.
23429 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
23430 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
23431 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
23432 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
23433 (struct hashtable_expr): New member ternary in the union.
23434 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
23435 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
23436 (iterative_hash_hashable_expr): Likewise.
23437 (print_expr_hash_elt): Handle EXPR_TERNARY.
23438 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
23439 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
23440 statements. Handle GIMPLE_TERNARY_RHS.
23442 2010-06-25 Jan Hubicka <jh@suse.cz>
23444 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
23446 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
23449 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
23450 parameters are not good.
23451 (c_parser_parameter_declaration): Error unknown type name if the type
23452 name can't start declaration specifiers.
23454 2010-06-25 Joseph Myers <joseph@codesourcery.com>
23456 * gcc.c (translate_options): Don't mention +e in comment.
23457 (process_command): Don't handle +e specially.
23459 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
23461 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
23463 * ira-build.c (merge_hard_reg_conflicts): New function.
23464 (create_cap_allocno, copy_info_to_removed_store_destinations,
23465 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
23466 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
23467 (remove_unnecessary_allocnos, remove_low_level_allocnos)
23468 copy_nifo_to_removed_store_destination): Use them.
23469 * ira-lives.c (make_hard_regno_born): New function, split out of
23471 (make_allocno_born): Likewise.
23472 (make_hard_regno_dead): New function, split out of make_regno_dead.
23473 (make_allocno_dead): Likewise.
23474 (inc_register_pressure): New function, split out of set_allocno_live.
23475 (dec_register_pressure): New function, split out of clear_allocno_live.
23476 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
23477 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
23478 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
23479 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
23480 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
23481 mark_pseudo_regno_live.
23482 (process_bb_node_lives): Use mark_pseudo_regno_live,
23483 make_hard_regno_born and make_allocno_dead.
23484 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
23485 set_allocno_live, clear_allocno_live): Delete functions.
23487 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
23488 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
23490 (ira_flattening): Use ira_parent_allocno.
23491 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
23492 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
23494 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
23497 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
23498 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
23499 minmax_set_iter_cond, minmax_set_iter_next,
23500 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
23501 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
23502 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
23503 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
23506 * ira-int.h (struct live_range, live_range_t): Renamed from struct
23507 ira_allocno_live_range and allocno_live_range_t; all uses changed.
23508 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
23511 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
23513 * thumb2.md (thumb2_tlobits_cbranch): Delete.
23514 (peephole2 to convert zero_extract/compare of single bit to
23515 lshift/compare): New.
23517 2010-06-24 Anatoly Sokolov <aesok@post.ru>
23519 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
23520 recursive call and call to 'int_const_binop'.
23521 (build_range_check, fold_cond_expr_with_comparison, unextend,
23522 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
23523 multiple_of_p): Adjust call to const_binop.
23525 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
23527 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
23528 determine size of XFmode operand.
23529 (XFmode extended DFmode push splitter): Ditto.
23530 (XFmode extended SFmode push splitter): Ditto.
23532 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
23535 * config/i386/i386.md (extract_code): New.
23536 (<u>divmodqi4): Likewise.
23537 (divmodhiqi3): Likewise.
23538 (udivmodhiqi3): Likewise.
23539 (<u>divqi3): Remvoved.
23541 2010-06-24 Jakub Jelinek <jakub@redhat.com>
23543 PR middle-end/44492
23544 * recog.h (struct recog_data): Add is_asm field.
23545 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
23546 present in constraints of inline-asm operand and memory operand
23547 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
23548 (extract_insn): Initialize recog_data.is_asm.
23549 * doc/md.texi (Constraints): Document operand side-effect rules.
23551 2010-06-24 Andi Kleen <ak@linux.intel.com>
23553 * c-parser.c (c_parser_conditional_expression): Call
23554 warn_for_omitted_condop.
23555 * doc/invoke.texi: Document omitted condop warning.
23557 2010-06-24 Nick Clifton<nickc@redhat.com>
23559 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
23560 insn in the sequence is a jump insn before setting its label.
23562 2010-06-24 Alan Modra <amodra@gmail.com>
23564 * collect2.c (main): Match exactly --version and --help.
23566 2010-06-24 DJ Delorie <dj@redhat.com>
23568 * config/m32c/m32c-pragma.c: Don't include rtl.h.
23570 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
23572 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
23573 using X87MODEF mode iterator.
23574 (pushsf splitter): Macroize splitter using P mode iterator.
23575 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
23578 (*movxf_internal): Rename from *movxf_integer.
23579 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
23580 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
23581 (*movdf_internal): Rename from *movdf_integer.
23582 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
23583 (*movsf_internal): Rename from *movdf_1.
23585 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
23587 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
23588 (const_gimple_seq_node): Removed typedefs.
23590 * gimple.h (gimple_seq_node_d, gimple_seq_node)
23591 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
23593 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
23595 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
23596 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
23597 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
23598 and CODE_FOR_vec_extract_lo_v4df.
23600 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
23601 Changed to define_insn_and_split.
23602 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
23603 (vec_extract_lo_v16hi): Likewise.
23604 (vec_extract_lo_v32qi): Likewise.
23605 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
23606 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
23608 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
23611 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
23612 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
23613 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
23614 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
23615 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
23618 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
23621 * df-core.c (struct df): Rename to df_d.
23622 * df.h (struct df): Likewise.
23623 * dse.h (struct df): Remove forward declaration.
23624 * recog.h (struct insn_data): Rename to:
23625 (struct_insn_data_d). Adjusted all users.
23627 2010-06-23 Arnaud Charlet <charlet@adacore.com
23630 * doc/install.texi: Update requirements to build GNAT.
23632 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
23634 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
23636 (m68k_sched_attr_opx_type): Remove unreachable return.
23637 (m68k_sched_attr_opy_type): Likewise.
23638 (m68k_sched_attr_size): Likewise.
23639 (sched_get_opxy_mem_type): Likewise.
23640 (m68k_sched_attr_op_mem): Likewise.
23642 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
23644 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
23645 new statement and adjust VDEF only if necessary. Remove superfluous
23646 call to maybe_clean_or_replace_eh_stmt.
23647 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
23649 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
23650 * tree-inline.c (copy_bb): ...and not there.
23652 2010-06-22 Cary Coutant <ccoutant@google.com>
23654 * dwarf2out.c (is_nested_in_subprogram): New function.
23655 (should_move_die_to_comdat): Use it.
23656 (copy_ancestor_tree): Don't mark DIEs here.
23657 (copy_decls_walk): Start walk from root of newly-added tree;
23658 mark DIEs here instead.
23660 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
23662 * config/i386/i386.md (unit): Also check sseishft1.
23664 2010-06-22 Jan Hubicka <jh@suse.cz>
23666 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
23669 2010-06-22 Jan Hubicka <jh@suse.cz>
23671 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
23672 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
23673 Return true if something changed.
23674 * df.h (df_confluence_function_n): Return bool.
23675 * df-core.c (df_worklist_propagate_forward,
23676 df_worklist_propagate_backward): Track changes and ages.
23677 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
23679 * dse.c (dse_confluence_n): Return always true.
23681 2010-06-22 Jan Hubicka <jh@suse.cz>
23683 * bitmap.c (bitmap_clear_bit): Micro optimize.
23685 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
23687 * config/i386/i386.md (SWI1248x): New mode iterator.
23692 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
23693 SWI1248x mode iterator.
23694 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
23695 using SWI124 mode iterator.
23696 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
23698 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
23699 *pushdi2_prologue_rex64 using P mode iterator.
23700 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
23701 using SWI48 mode iterator.
23702 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
23703 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
23704 using SWI1248x mode iterator.
23705 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
23706 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
23707 SWI48 mode iterator.
23708 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
23710 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
23711 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
23712 SWI12 mode iterator.
23713 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
23714 SWI12 mode iterator.
23715 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
23716 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
23717 SWI24 mode iterator.
23718 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
23719 SWI48 mode iterator.
23720 (mov<mode>_insn_1): New expander.
23721 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
23722 using SWI48x mode iterator.
23724 (*movoi_internal_avx): Rename from *movoi_internal.
23725 (*movti_internal_rex64): Rename from *movti_rex64.
23726 (*movti_internal_sse): Rename from *movti_sse.
23727 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
23728 (*movdi_internal): Rename from *movdi_2.
23729 (*movsi_internal): Rename from *movsi_1.
23730 (*movhi_internal): Rename from *movhi_1.
23731 (*movqi_internal): Rename from *movqi_1.
23733 (insv): Update the call to gen_movsi_insv_1 for rename.
23734 * config/i386/i386.c (promote_duplicated_reg): Ditto.
23736 2010-06-22 Jan Hubicka <jh@suse.cz>
23738 * passes.c (execute_function_todo): Move call of statistics_fini_pass
23740 (execute_todo) ... this one.
23742 2010-06-22 Alan Modra <amodra@gmail.com>
23745 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23746 * caller-save.c (insert_restore, insert_save): Use non-validate
23747 form of adjust_address.
23749 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23752 * config/pa/pa.c (override_options): Disable
23753 -freorder-blocks-and-partition.
23755 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
23758 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23760 * config/i386/i386.md (type): Add sseishft1
23762 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23763 (ppro_insn_load): Likewise.
23764 (ppro_insn_store): Likewise.
23765 (ppro_insn_both): Likewise.
23767 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23768 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23770 (*vec_extractv2di_1_avx): Likewise.
23771 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23772 type. Remove atom_unit.
23773 (*vec_extractv2di_1_sse2): Likewise.
23775 2010-06-21 DJ Delorie <dj@redhat.com>
23777 * diagnostic.h (diagnostic_classification_change_t): New.
23778 (diagnostic_context): Add history and push/pop list.
23779 (diagnostic_push_diagnostics): Declare.
23780 (diagnostic_pop_diagnostics): Declare.
23781 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23782 from pragmas in a history chain instead of the global table.
23783 (diagnostic_push_diagnostics): New.
23784 (diagnostic_pop_diagnostics): New.
23785 (diagnostic_report_diagnostic): Scan history chain to find state
23786 of diagnostics as of the diagnostic location.
23787 * opts.c (set_option): Pass UNKNOWN_LOCATION to
23788 diagnostic_classify_diagnostic.
23789 (enable_warning_as_error): Likewise.
23790 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23791 use in the history chain.
23792 * doc/extend.texi: Document pragma GCC diagnostic changes.
23794 2010-06-21 Jakub Jelinek <jakub@redhat.com>
23796 * dwarf2out.c (add_linkage_name): New function. Don't add
23797 anything to DW_TAG_member DIEs.
23798 (add_name_and_src_coords_attributes): Use it.
23799 (gen_variable_die): Call it for C++ static data members if
23800 specification is DW_TAG_member.
23802 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23803 C++ char16_t and char32_t.
23805 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23806 * genattrtab.c: Include vecprim.h.
23807 (cached_attrs, cached_attr_count, attrs_seen_once,
23808 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23809 attrs_cached_after): New variables.
23810 (find_attrs_to_cache): New function.
23811 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23812 (write_test_expr): Add attrs_cached argument, return it too,
23813 attempt to cache non-const attributes used more than once in
23814 a single case handling.
23815 (write_attr_get): Use find_attrs_to_cache, for caching candidates
23816 emit cached_* variables. Adjust write_attr_set callers.
23817 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23818 to find attributes that should be cached in this block. Adjust
23819 write_test_expr callers.
23820 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
23822 (make_automaton_attrs): Adjust write_test_expr caller.
23824 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23825 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23826 (make_automaton_attrs): If find_tune_attr returns non-NULL,
23827 write separate internal_dfa_insn_code_* and insn_default_latency_*
23828 functions for each attribute's value and emit init_sched_attrs
23829 function and function pointers.
23830 * genattr.c (const_attrs, reservations): New variables.
23831 (gen_attr): Add const attributes to const_attrs vector.
23832 (check_tune_attr, find_tune_attr): New functions.
23833 (main): Add reservations to reservations vector. If find_tune_attr
23834 returns true, add prototype for init_sched_attrs and make
23835 internal_dfa_insn_code and insn_default_latency function pointers,
23836 otherwise define init_sched_attrs as dummy macro.
23837 * cfgexpand.c: Include insn-attr.h.
23838 (gimple_expand_cfg): Call init_sched_attrs.
23840 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23843 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
23844 va_arg from a set of register save slots into a temporary,
23845 if the container is bigger than type size, do the copying
23846 using smaller mode or using memcpy.
23849 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
23851 (sel_print_to_dot): Remove macro.
23852 (sel_print): Likewise. New prototype.
23853 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
23854 (sel_print): New function.
23856 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23858 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
23859 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
23861 2010-06-21 Nick Clifton <nickc@redhat.com>
23863 * config/rx/rx.h (PTRDIFF_TYPE): Define.
23864 (SMALL_REGISTER_CLASS): Define (to zero).
23865 (PRINT_OPERAND): Delete.
23866 (PRINT_OPERAND_ADDRESS): Delete.
23867 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
23868 (rx_print_operand_address): Delete prototype.
23869 * config/rx/rx.c (rx_print_operand): Make static.
23870 Allow %H and %L to handle CONST_DOUBLEs.
23871 (rx_print_operand_address): Make static.
23872 (rx_gen_move_template): Rename local variable 'template' to
23874 (rx_function_arg): Do not pass unknown sized objects in registers.
23875 (TARGET_PRINT_OPERAND): Define.
23876 (TARGET_PRINT_OPERAND_ADDRESS): Define.
23878 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
23880 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
23882 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
23884 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
23885 stack-alignment for simple leaf-functions.
23887 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
23889 * doc/install.texi: Document bootstrap-lto.
23891 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
23894 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
23895 (input_function): Drop them here, if VTA is disabled.
23897 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
23900 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
23902 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
23903 ix86_swapped_fp_comparsion_operator instead of
23904 ix86_fp_comparison_operator.
23906 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
23907 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
23908 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
23909 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
23910 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
23911 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
23913 2010-06-20 Joseph Myers <joseph@codesourcery.com>
23916 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
23917 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
23918 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
23919 (decode_cmdline_option): Update for this return value. Set
23920 orig_option_with_args_text field. Set arg field for unknown
23921 options. Make static.
23922 (decode_cmdline_options_to_array): New.
23923 (prune_options): Update handling of find_opt return value.
23924 * opts.c (read_cmdline_option): Take decoded option. Return void.
23925 (read_cmdline_options): Take decoded options.
23926 (decode_options): Add parameters for decoded options. Use
23927 decode_cmdline_options_to_array. Use decoded options for -O
23928 scan. Use integral_argument for -O parameters. Update call to
23929 read_cmdline_options.
23930 (enable_warning_as_error): Update handling of find_opt return value.
23931 * opts.h: Update comment on unknown options.
23932 (struct cl_decoded_option): Update comments on opt_index and arg.
23933 Add orig_option_with_args_text.
23934 (decode_cmdline_option): Remove.
23935 (decode_cmdline_options_to_array): Declare.
23936 (decode_options): Update prototype.
23937 * toplev.c (save_argv): Remove.
23938 (save_decoded_options, save_decoded_options_count): New.
23939 (read_integral_parameter): Remove.
23940 (print_switch_values): Use decoded options.
23941 (toplev_main): Don't set save_argv. Update call to decode_options.
23942 * toplev.h (read_integral_parameter): Remove.
23943 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
23945 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
23948 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
23950 * constraints.md (Pw, Px): New constraints.
23951 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
23953 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
23955 * config/i386/sse.md (fma4modesuffixf4): Removed.
23956 (ssemodesuffixf2s): Likewise.
23957 (ssemodesuffixf4): Likewise.
23958 (ssemodesuffixf2c): Likewise.
23959 (ssescalarmodesuffix2s): Likewise.
23960 (avxmodesuffixf2c): Likewise.
23961 (ssemodesuffix): New.
23962 (ssescalarmodesuffix): Likewise.
23963 Update patterns with ssemodesuffix and ssescalarmodesuffix.
23965 2010-06-19 Philip Herron <herron.philip@googlemail.com>
23967 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
23969 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
23971 * stor-layout.c (debug_rli): Remove unused local variables.
23973 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
23975 PR rtl-optimization/40900
23976 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
23977 original expression for later reuse.
23978 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
23979 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
23981 2010-06-18 Anatoly Sokolov <aesok@post.ru>
23983 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
23984 double_int_fits_in_uhwi_p): Implement as static inline.
23985 (double_int_xor): New inline function.
23986 (double_int_lrotate, double_int_rrotate, double_int_max,
23987 double_int_umax, double_int_smax, double_int_min, double_int_umin,
23988 double_int_smin): Declare.
23989 (lrotate_double, rrotate_double): Remove declaration.
23990 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
23991 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
23992 (double_int_lrotate, double_int_rrotate, double_int_max,
23993 double_int_umax, double_int_smax, double_int_min, double_int_umin,
23994 double_int_smin): New function.
23995 * fold-const.c (int_const_binop): Clean up, use double_int_*
23997 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
23998 double_int_* and immed_double_int_const functions.
24000 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24002 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
24003 * function.c (types_used_by_cur_var_decl): Likewise.
24004 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
24006 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24008 * tree.h (record_layout_info): Change type of pending_statics field
24010 * stor-layout.c (start_record_layout): Store NULL into
24012 (debug_rli): Call debug_vec_tree instead of debug_tree.
24013 (place_field): Likewise.
24014 (finish_record_layout): Likewise.
24016 2010-06-18 Alan Modra <amodra@gmail.com>
24018 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
24020 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24023 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
24024 for SET source operand from SET destination operand.
24026 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
24028 PR rtl-optimization/39871
24029 * reload1.c (init_eliminable_invariants): For flag_pic, disable
24030 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
24031 (function_invariant_p): Rule out a plus of frame or arg pointer with
24033 * ira.c (find_reg_equiv_invariant_const): Likewise.
24035 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
24037 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
24038 print_operand_address and puts to output the operand for CONST.
24040 2010-06-17 Jakub Jelinek <jakub@redhat.com>
24043 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
24046 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24048 * v850-protos.h (print_operand): Delete.
24049 (print_operand_address): Delete.
24050 * v850.h (PRINT_OPERAND): Delete.
24051 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24052 (PRINT_OPERAND_ADDRESS): Delete.
24053 * v850.c (print_operand_address): Rename to...
24054 (v850_print_operand_address): ...this. Make static. Call
24055 v850_print_operand.
24056 (print_operand): Rename to...
24057 (v850_print_operand): ...this. Make static. Call
24058 v850_print_operand_address.
24059 (v850_print_operand_punct_valid_p): New function.
24060 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24061 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24063 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24065 * config/sh/sh-protos.h (print_operand): Delete.
24066 (print_operand_address): Delete.
24067 * config/sh/sh.h (PRINT_OPERAND): Delete.
24068 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24069 (PRINT_OPERAND_ADDRESS): Delete.
24070 * config/sh/sh.c (sh_print_operand_address): Make static.
24071 (sh_print_operand): Make static. Call sh_print_operand_address
24072 and sh_print_operand.
24073 (sh_print_operand_punct_valid_p): New function.
24074 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24075 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24077 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24079 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
24080 (mcore_print_operand_address): Delete.
24081 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
24082 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24083 (PRINT_OPERAND_ADDRESS): Delete.
24084 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
24085 (mcore_print_operand): Make static.
24086 (mcore_print_operand_punct_valid_p): New function.
24087 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
24088 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24090 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24092 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
24093 (print_operand_address): Delete.
24094 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
24095 (PRINT_OPERAND_ADDRESS): Delete.
24096 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
24098 (m68hc11_print_operand): Make static.
24099 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24101 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24103 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
24104 (m32r_print_operand_address): Delete.
24105 * config/m32r/m32r.h (m32r_punct_chars): Delete.
24106 (PRINT_OPERAND): Delete.
24107 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24108 (PRINT_OPERAND_ADDRESS): Delete.
24109 * config/m32r/m32r.c (m32r_punct_chars): Make static.
24110 (m32r_print_operand_address): Make static.
24111 (m32r_print_operand): Make static.
24112 (m32r_print_operand_punct_valid_p): New function.
24113 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24114 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24116 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24118 * config/iq2000/iq2000-protos.h (print_operand): Delete.
24119 (print_operand_address): Delete.
24120 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
24121 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24122 (PRINT_OPERAND_ADDRESS): Delete.
24123 (iq2000_print_operand_punct): Delete.
24124 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
24125 (iq2000_print_operand_address): Make static.
24126 (iq2000_print_operand): Make static.
24127 (iq2000_print_operand_punct_valid_p): New function.
24128 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24129 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24131 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24133 * config/frv/frv-protos.h (frv_print_operand): Delete.
24134 (frv_print_operand_address): Delete.
24135 * config/frv/frv.h (PRINT_OPERAND): Delete.
24136 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24137 (PRINT_OPERAND_ADDRESS): Delete.
24138 * config/frv/frv.c (frv_print_operand_address): Make static.
24139 (frv_print_operand): Make static.
24140 (frv_print_operand_punct_valid_p): New function.
24141 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24142 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24144 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24146 * tree.h (vec_member): Declare.
24147 * tree.c (vec_member): Define.
24149 2010-06-17 Richard Guenther <rguenther@suse.de>
24151 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
24152 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
24154 2010-06-17 Richard Guenther <rguenther@suse.de>
24156 * tree-inline.c (declare_return_variable): Remove bogus code.
24158 2010-06-17 Richard Guenther <rguenther@suse.de>
24160 * gimplify.c (gimplify_bind_expr): Always promote complex
24161 and vector variables to registers if possible.
24163 2010-06-17 Richard Guenther <rguenther@suse.de>
24165 * expr.c (get_inner_reference): Use double_int for bit_offset
24168 2010-06-16 DJ Delorie <dj@redhat.com>
24170 * common.opt (-fstrict-volatile-bitfields): new.
24171 * doc/invoke.texi: Document it.
24172 * fold-const.c (optimize_bit_field_compare): For volatile
24173 bitfields, use the field's type to determine the mode, not the
24175 * expr.c (expand_assignment): Likewise.
24176 (get_inner_reference): Likewise.
24177 (expand_expr_real_1): Likewise.
24178 * expmed.c (store_fixed_bit_field): Likewise.
24179 (extract_bit_field_1): Likewise.
24180 (extract_fixed_bit_field): Likewise.
24182 2010-06-16 Richard Guenther <rguenther@suse.de>
24184 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
24186 2010-06-16 Douglas B Rupp <rupp@gnat.com>
24188 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
24189 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
24190 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
24191 * debug.c: Likewise.
24192 * sdbout.c: Likewise.
24193 * vmsdbgout.c: Likewise.
24194 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
24195 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
24196 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
24197 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
24198 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
24199 * dwarf2out.c (dw_fde_struct): New fields
24200 dw_fde_vms_{end,begin}_prologue.
24201 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
24202 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
24203 (dwarf2out_vms_end_prologue): New function.
24204 (dwarf2out_vms_begin_epilogue): New function.
24205 (dw_val_struct): New value dw_val_class_vms_delta.
24206 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
24207 begin_epilogue for VMS.
24208 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
24209 new static functions.
24210 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
24211 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
24213 (print_die): New case dw_val_class_vms_delta.
24214 (attr_checksum): Likewise.
24215 (same_dw_val_p: Likewise.
24216 (size_of_die): Likewise.
24217 (value_format): Likewise.
24218 (output_die): Likewise.
24219 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
24220 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
24221 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
24222 dwarf2out_cfi_begin_epilogue
24223 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
24225 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24227 * config/cris/cris-protos.h (cris_print_operand): Delete.
24228 (cris_print_operand_address): Delete.
24229 * config/cris/cris.h (PRINT_OPERAND): Delete.
24230 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24231 (PRINT_OPERAND_ADDRESS): Delete.
24232 * config/cris/cris.c (cris_print_operand_address): Make static.
24233 (cris_print_operand): Make static.
24234 (cris_print_operand_punct_valid_p): New function.
24235 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24236 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24238 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24240 * config/arm/arm-protos.h (arm_print_operand): Delete.
24241 (arm_print_operand_address): Delete.
24242 * config/arm/arm.h (PRINT_OPERAND): Delete.
24243 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24244 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
24245 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
24246 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
24247 (arm_print_operand): Make static.
24248 (arm_print_operand_punct_valid_p): New function.
24249 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24250 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24252 2010-06-16 Nick Clifton <nickc@redhat.com>
24254 * config/rx/constraints.md (NEGint4): New constraint.
24255 * config/rx/rx.md (attr cc): Add set_zsc.
24256 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
24259 (call_internal): Clobber the cc0 register.
24260 (call_value_internal): Likewise.
24261 (cstoresi4): Likewise.
24262 (movsieq): Likewise.
24263 (movsine): Likewise.
24264 (addsi3): Add alternative to handle small negative constants.
24265 (sunsi3): Likewise.
24266 (addsi3): Do not set the O bit in the cc0 register.
24267 (adddi3): Likewise.
24268 (subsi3): Likewise.
24269 (subdi3): Likewise.
24270 (andsi3): Reorder alternatives to prefer shorter forms.
24271 (mulsi3): Likewise.
24272 (iorsi3): Likewise.
24273 (negsi2): Note that the cc0 flags are set.
24274 (rotlsi3): Note that only the Z and S bits are set in cc0.
24275 (lshrsi3): Likewise.
24276 (ashlsi3): Likewise.
24277 (subsf3): Use %Q for the MEM operand.
24278 (fix_truncsfsi2): Likewise.
24279 (floatsisf2): Likewise.
24280 (bitset): Remove early clobber from destination.
24281 (bitset_in_memory): Likewise.
24282 (lrintsf2): Clobber the cc0 register.
24283 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
24284 (rx_print_operand): Handle %N.
24286 2010-06-16 Jan Hubicka <jh@suse.cz>
24288 * df-core.c (df_compact_blocks): Free problem_temps vector.
24290 2010-06-16 Martin Jambor <mjambor@suse.cz>
24292 PR tree-optimization/43905
24293 * tree-sra.c: Include tree-inline.h.
24294 (create_abstract_origin): Removed.
24295 (modify_function): Version the call graph node instead of creating
24296 abstract origins and dealing with same_body aliases.
24297 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
24298 function is versionable.
24299 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
24301 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
24303 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
24304 (CHOOSE_DYNAMIC_LINKER): Update.
24306 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
24308 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
24309 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
24310 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
24311 *prefetch_3dnow_rex.
24313 2010-06-15 Anatoly Sokolov <aesok@post.ru>
24315 * target.h (struct asm_out):Add declare_constant_name field.
24316 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24317 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
24318 * output.h (default_asm_declare_constant_name): Declare.
24319 (assemble_label): Update prototype.
24320 * varasm.c (assemble_constant_contents): Use
24321 targetm.asm_out.declare_constant_name target hook.
24322 (assemble_label): Add 'file' argument.
24323 (default_asm_declare_constant_name): New function.
24324 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
24325 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
24326 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
24328 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
24329 * config/darwin.c (darwin_asm_declare_constant_name): New function.
24330 (machopic_output_indirection): Update assemble_label argument list.
24331 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
24332 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24334 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
24336 PR middle-end/44391
24337 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24338 size_one_node for pointer types. Do not call gmp_cst_to_tree.
24340 2010-06-15 Richard Guenther <rguenther@suse.de>
24342 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
24344 2010-06-15 Paul Brook <paul@codesourcery.com>
24346 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
24349 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
24351 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
24352 don't get a vector type for output.
24354 2010-06-15 Jakub Jelinek <jakub@redhat.com>
24357 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
24358 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
24359 (LANG_HOOKS_DECLS): Add it.
24360 * gimplify.c (omp_notice_variable): Call
24361 lang_hooks.decls.omp_report_decl.
24363 2010-06-15 Martin Jambor <mjambor@suse.cz>
24366 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
24367 on the newly dead SSA name.
24369 2010-06-15 Alan Modra <amodra@gmail.com>
24371 * doc/invoke.texi: Add mcmodel to powerpc options.
24372 * configure.ac: Add HAVE_LD_LARGE_TOC test.
24373 * configure: Regenerate.
24374 * config.in: Regenerate.
24375 * config/rs6000/linux64.opt (mcmodel): New.
24376 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
24377 (TARGET_CMODEL, SET_CMODEL): Define.
24378 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
24379 select CMODEL_MEDIUM default.
24380 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
24381 (TARGET_CMODEL): Define default.
24382 * config/rs6000/rs6000.c (cmodel): New variable.
24383 (rs6000_explicit_options): Add cmodel field.
24384 (rs6000_handle_option): Handle -mcmodel.
24385 (create_TOC_reference): Add largetoc_reg param. Generate high,
24386 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
24387 (rs6000_delegitimize_address): Recognise new toc reference rtl
24388 and minimal-toc rtl.
24389 (rs6000_legitimize_reload_address): Handle new toc references.
24390 (print_operand_address): Handle legitimate_constant_pool_address_p
24391 match before lo_sum.
24392 (rs6000_eliminate_indexed_memrefs): Tidy.
24393 (rs6000_emit_move): Tweak threshold for inlining constants.
24394 Keep rs6000_emit_allocate_stack large stack frame offsets
24395 loaded into r0 inline.
24396 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
24397 (tocrel_base, tocrel_offset): New variables.
24398 (toc_relative_expr_p): Set them here.
24399 (print_operand_address): Skip over any offset on constant pool address.
24400 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
24401 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
24402 (offsettable_ok_by_alignment): New function.
24403 (rs6000_emit_move): Address suitably aligned local symbol_refs
24404 relative to the toc pointer for -mcmodel=medium.
24405 (legitimate_constant_pool_address_p): Make param const_rtx. Add
24406 strict param. Allow lo_sum version of addressing. Verify reg
24407 used for -mminimal-toc and -mcmodel != small. Update all callers.
24408 * config/rs6000/constraints.md: Update for above change.
24409 * config/rs6000/predicates.md: Likewise.
24410 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
24412 (tls_gd): Split for -mcmodel=medium/large.
24413 (tls_gd_high, tls_gd_low): New.
24414 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
24415 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
24416 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
24417 (largetoc_high, largetoc_low): New.
24418 (cmptf_internal2): Add clobber.
24419 * config/rs6000/rs6000-protos.h: Update.
24421 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
24423 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
24424 true if no prefetch is going to be generated for a given group.
24425 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
24426 estimate the prefetch_count.
24427 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
24428 prefetch count by considering the unroll_factor and prefetch_mod
24429 for is_loop_prefetching_profitable.
24431 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
24433 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
24434 anything if the argument is not a MEM.
24436 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
24441 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
24443 (canonicalize_loop_ivs): Likewise.
24445 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
24448 * haifa-sched.c (setup_insn_reg_pressure_info,
24449 update_register_pressure): Reject debug insns.
24450 (ready_sort): Don't setup reg pressure for debug insns.
24451 (schedule_insn): Don't update reg pressure for debug insns.
24453 2010-06-14 Richard Guenther <rguenther@suse.de>
24455 * lto-streamer.c (cached_bp): Remove.
24456 (bitpack_delete): Likewise.
24457 (bitpack_create): Likewise.
24458 (bp_get_next_word): Likewise.
24459 (bp_pack_value, bp_unpack_value): Move ...
24460 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
24462 (struct bitpack_d): Likewise.
24463 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
24464 New inline functions.
24465 * lto-streamer-out.c (lto_output_bitpack): Remove.
24466 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
24467 (pack_value_fields): Adjust.
24468 (lto_write_tree): Likewise.
24469 (output_gimple_stmt): Likewise.
24470 (output_function): Likewise.
24471 * lto-streamer-in.c (input_gimple_stmt): Adjust.
24472 (input_function): Likewise.
24473 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
24474 (lto_input_bitpack): Remove.
24475 (lto_materialize_tree): Adjust.
24476 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
24477 * lto-cgraph.c (lto_output_edge): Adjust.
24478 (lto_output_node): Likewise.
24479 (lto_output_varpool_node): Likewise.
24480 (lto_output_ref): Likewise.
24481 (input_node): Likewise.
24482 (input_varpool_node): Likewise.
24483 (input_ref): Likewise.
24484 (input_edge): Likewise.
24485 (output_node_opt_summary): Likewise.
24486 (input_node_opt_summary): Likewise.
24487 * ipa-pure-const.c (pure_const_write_summary): Likewise.
24488 (pure_const_read_summary): Likewise.
24489 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
24490 (ipa_read_indirect_edge_info): Likewise.
24491 (ipa_write_node_info): Likewise.
24492 (ipa_read_node_info): Likewise.
24494 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
24497 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
24498 (vec_extract_lo_v16hi): Likewise.
24499 (vec_extract_lo_v32qi): Likewise.
24501 2010-06-14 Jakub Jelinek <jakub@redhat.com>
24504 * tree.h (build_call_expr): Don't define as vararg macro, instead
24506 * builtins.c (build_call_nofold): Remove.
24507 (expand_builtin_int_roundingfn, expand_builtin_pow,
24508 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
24509 expand_builtin_memset_args, expand_builtin_strcmp,
24510 expand_builtin_strncmp, expand_builtin_memory_chk): Use
24511 build_call_nofold_loc instead of build_call_nofold.
24512 (build_call_expr): New function.
24514 PR tree-optimization/44508
24515 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
24516 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
24517 don't eliminate trivially dead stmts.
24518 * tree-vrp.c (vrp_finalize): Pass false as last argument
24519 to substitute_and_fold.
24520 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
24521 to substitute_and_fold.
24522 * tree-ssa-ccp.c (ccp_finalize): Likewise.
24525 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
24527 2010-06-14 Ira Rosen <irar@il.ibm.com>
24529 PR tree-optimization/44507
24530 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
24531 to build initial vector for BIT_AND_EXPR.
24532 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
24534 2010-06-14 Jakub Jelinek <jakub@redhat.com>
24536 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
24537 adjust z10prop set_attr.
24539 2010-06-13 Jan Hubicka <jh@suse.cz>
24541 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
24542 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
24543 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
24544 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
24545 datastructure checks into checking asserts.
24546 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
24547 * tree-ssa-sccvn.c (VN_INFO): Likewise.
24548 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
24549 df_ref_create_structure): Likewise.
24550 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
24551 pool_free): Use gcc_checking_assert.
24552 * alias.c (get_alias_set): Likewise.
24553 * var-tracking.c (variable_htab_free, shared_hash_copy,
24554 canonicalize_values_mark, variable_merge_over_cur): Likewise.
24555 * lto-streamer.c (bp_unpack_value): Likewise.
24557 2010-06-13 Richard Guenther <rguenther@suse.de>
24559 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
24560 Do not stream but initialize TYPE_CANONICAL to NULL.
24561 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24562 * gimple.c (gimple_types_compatible_p): Disregard
24563 TYPE_STRUCTURAL_EQUALITY_P.
24564 (gimple_register_type): Use TYPE_CANONICAL as cache.
24565 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
24566 before registering common types.
24567 * config/i386/i386.c (ix86_function_arg_boundary): Do not
24568 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
24569 * tree.h (TYPE_CANONICAL): Clarify documentation.
24571 2010-06-13 Anatoly Sokolov <aesok@post.ru>
24573 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24574 LIBCALL_VALUE): Remove macros.
24575 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
24576 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24577 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24578 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
24579 (ia64_function_value): Make static. Handle receiving the function
24580 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
24582 2010-06-12 Jan Hubicka <jh@suse.cz>
24584 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
24587 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
24589 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
24591 2010-06-12 Jan Hubicka <jh@suse.cz>
24593 * df-core.c (df_clear_bb_info): New function.
24594 (df_set_blocks): bb_info is always allocated.
24595 (df_get_bb_info): Use block_info_elt_size.
24596 (df_set_bb_info): Likewise.
24597 (df_compact_blocks): Update for new block_info.
24598 (grow_bb_info): New function.
24599 * df-problems.c (df_grow_bb_info): Move to df-core.c
24600 (df_rd_set_bb_info): Remove.
24601 (df_rd_free_bb_info): Do not free block pool.
24602 (df_rd_alloc): Do not create pool, use check for
24603 obstack presence instead of NULL pointer for new blocks.
24604 (df_rd_free): DO not free alloc pool; clear block_info.
24605 (problem_RD): Add size of block info structure.
24606 (df_lr_set_bb_info): Remove.
24607 (df_lr_free_bb_info): Do not free block pool.
24608 (df_lr_alloc): Do not create pool, use check for
24609 obstack presence instead of NULL pointer for new blocks.
24610 (df_lr_free): DO not free alloc pool; clear block_info.
24611 (problem_LR): Add size of block info structure.
24612 (df_live_set_bb_info): Remove.
24613 (df_live_free_bb_info): Do not free block pool.
24614 (df_live_alloc): Do not create pool, use check for
24615 obstack presence instead of NULL pointer for new blocks.
24616 (df_live_free): DO not free alloc pool; clear block_info.
24617 (problem_LIVE): Add size of block info structure.
24618 (problem_CHAIN): Add size of block info structure.
24619 (df_byte_lr_set_bb_info): Remove.
24620 (df_byte_lr_free_bb_info): Do not free block pool.
24621 (df_byte_lr_alloc): Do not create pool, use check for
24622 obstack presence instead of NULL pointer for new blocks.
24623 (df_byte_lr_free): DO not free alloc pool; clear block_info.
24624 (problem_BYTE_LR): Add size of block info structure.
24625 (problem_NOTE): Add size of block info structure.
24626 (df_byte_MD_set_bb_info): Remove.
24627 (df_byte_MD_free_bb_info): Do not free block pool.
24628 (df_byte_MD_alloc): Do not create pool, use check for
24629 obstack presence instead of NULL pointer for new blocks.
24630 (df_byte_MD_free): DO not free alloc pool; clear block_info.
24631 (problem_BD): Add size of block info structure.
24632 * df-scan.c (df_scan_free_internal): Free block pool.
24633 (df_scan_set_bb_info): Remove.
24634 (df_scan_free_bb_info): Check for artificial_defs instead
24635 of bb_info being non-NULL.
24636 (df_scan_alloc): DO not create df_scan_block pool.
24637 (problem_SCAN): Set size of block info.
24638 (df_bb_refs_record): Do not allocate bb_info.
24639 * df.h (df_problem): Add block_info_elt_size.
24640 (struct dataflow): Change block_info to void *.
24641 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
24642 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
24643 in-line structures.
24645 2010-06-12 Jan Hubicka <jh@suse.cz>
24647 PR tree-optimize/44485
24648 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
24649 containing use of return value of noreturn function.
24651 2010-06-12 Anatoly Sokolov <aesok@post.ru>
24653 * targhooks.c (default_function_value): Don't use
24654 FUNCTION_OUTGOING_VALUE.
24655 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
24656 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
24658 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
24660 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
24661 Add crtfastmath.o to extra_parts.
24662 * config/mips/crtfastmath.c: New.
24663 * config/mips/linux.h (ENDFILE_SPEC): New.
24665 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
24667 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
24668 old_type in parameter.
24669 (gcc_type_for_value): Update call to gcc_type_for_interval.
24670 (compute_type_for_level_1): Renamed compute_type_for_level.
24671 Update call to gcc_type_for_interval.
24673 2010-06-11 Joseph Myers <joseph@codesourcery.com>
24675 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
24676 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
24678 2010-06-11 Joseph Myers <joseph@codesourcery.com>
24680 * opts-common.c: Include options.h.
24681 (integral_argument): Move from opts.c.
24682 (decode_cmdline_option): New. Based on read_cmdline_option.
24683 * opts.c (integral_argument): Move to opts-common.c.
24684 (read_cmdline_option): Move most contents to
24685 decode_cmdline_option. Use %qs in diagnostics.
24686 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
24687 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
24688 decode_cmdline_option): New.
24690 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24693 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
24694 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
24695 (partiysi2_cmp): Ditto.
24696 (*partiyhi2_cmp): Ditto.
24697 (*parityqi2_cmp): Remove.
24699 2010-06-11 Jan Hubicka <jh@suse.cz>
24701 * bitmap.h (bmp_iter_next_bit): New.
24702 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
24704 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
24705 Eric Botcazou <ebotcazou@adacore.com>
24707 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
24710 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24712 * config/i386/i386.md (unspec): New define_c_enum.
24715 2010-06-10 Jakub Jelinek <jakub@redhat.com>
24717 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
24719 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
24721 PR middle-end/44483
24722 * tree-if-conv.c (bb_predicate_s): New struct.
24723 (bb_predicate_p): New.
24724 (bb_has_predicate): New.
24725 (bb_predicate): New.
24726 (set_bb_predicate): New.
24727 (bb_predicate_gimplified_stmts): New.
24728 (set_bb_predicate_gimplified_stmts): New.
24729 (add_bb_predicate_gimplified_stmts): New.
24730 (init_bb_predicate): New.
24731 (free_bb_predicate): New.
24732 (is_predicated): Use bb_predicate.
24733 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24734 (predicate_bbs): Same. Gimplify the condition of the basic blocks
24735 before processing their successors.
24736 (clean_predicate_lists): Removed.
24737 (find_phi_replacement_condition): Use bb_predicate.
24738 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
24740 (insert_gimplified_predicates): New.
24741 (combine_blocks): Call insert_gimplified_predicates.
24742 (tree_if_conversion): Call free_bb_predicate instead of
24743 clean_predicate_lists.
24745 2010-10-11 Paul Brook <paul@codesourcery.com>
24747 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
24748 * config/arm/arm.c (all_architectures): Change v7e-m default to
24750 * config/arm/arm-cores.def: Add cortex-m4.
24751 * config/arm/arm-tune.md: Regenerate.
24753 2010-06-11 Jan Hubicka <jh@suse.cz>
24755 * ipa-pure-const.c (special_builtlin_state): New function.
24756 (check_call): Use it instead of special casign BUILT_IN_RETURN.
24757 (propagate_pure_const): Use it.
24759 2010-06-11 Jan Hubicka <jh@suse.cz>
24761 * df-problems.c (df_live_scratch): Convert to bitmap_head.
24762 (df_live_alloc): Initialize df_live_scratch when initializing
24764 (df_live_transfer_function): Update uses of df_live_scratch.
24765 (df_live_free): Free problem_data; clear df_live_scratch before
24766 releasing the obstack.
24767 (df_md_free): Free problem data.
24769 2010-06-11 Jan Hubicka <jh@suse.cz>
24771 * doc/invoke.texi (Wsuggest-attribute): Document.
24772 (Wmissing-noreturn): Remove.
24773 * ipa-pure-const.c (warn_function_noreturn): New function.
24774 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24775 warn_missing_noreturn.
24776 * common.opt (Wsuggest-attribute=noreturn): New.
24777 * tree-flow.h (warn_function_noreturn): Declare.
24778 * tree-cfg.c (execute_warn_function_noreturn): Use
24779 warn_function_noreturn.
24780 (gate_warn_function_noreturn): New.
24781 (pass_warn_function_noreturn): Update.
24783 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
24785 * c-typeck.c (handle_warn_cast_qual): Add loc
24786 parameter. Improve warning message.
24787 (build_c_cast): Pass location to handle_warn_cast_qual.
24789 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24791 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24792 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
24794 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24796 2010-06-10 Dodji Seketeli <dodji@redhat.com>
24798 Fix bootstap on mips
24799 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24800 be naming typedefs.
24802 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
24804 * system.h (helper_const_non_const_cast): New inline for
24805 gcc version <= 4.0.
24806 (CONST_CAST2): For gcc version <= 4.0 use
24807 new helper to do const/non-const casting.
24809 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24811 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24812 * Makefile.in (OBJS-common): Include insn-enums.o.
24813 (insn-enums.o): New rule.
24814 (simple_generated_c): Add insn-enums.c.
24815 (build/genenums.o): New rule.
24816 (genprogmd): Add "enums".
24817 * genconstants.c (print_enum_type): Declare a C string array
24819 * genenums.c: New file.
24820 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24821 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
24822 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24824 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24826 * doc/md.texi (define_enum_attr): Document.
24827 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24828 * read-md.h (lookup_enum_type): Declare.
24829 * read-md.c (lookup_enum_type): New function.
24830 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24831 * genattrtab.c (attr_desc): Add an enum_name field.
24832 (evaluate_eq_attr): Take the associated attribute as argument.
24833 Get the enum prefix from the enum_name field, if defined.
24834 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
24835 (simplify_test_exp): Pass attr to evaluate_eq_attr.
24836 (add_attr_value): New function, split out from...
24837 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
24838 (write_test_expr): Pass attr to evaluate_eq_attr.
24839 (write_attr_get): Use the enum_name as the enum tag, if defined.
24840 (write_attr_valueq): Use the enum_name as a prefix, if defined.
24841 (find_attr): Initialize enum_name.
24842 (main): Handle DEFINE_ENUM_ATTR.
24843 * gensupport.c (process_rtx): Likewise.
24844 * config/mips/mips.h (mips_tune_attr): Delete.
24845 * config/mips/mips.md (cpu): Use define_attr_enum.
24847 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24849 * doc/md.texi (define_c_enum, define_enum): Document.
24850 * read-md.h (md_constant): Add a parent_enum field.
24851 (enum_value, enum_type): New structures.
24852 (upcase_string, traverse_enum_types): Declare.
24853 * read-md.c (enum_types): New variable.
24854 (upcase_string, add_constant): New functions.
24855 (handle_constants): Don't create the hash table here.
24857 (traverse_md_constants): Don't check for a null md_constants.
24858 (decimal_string, handle_enum, traverse_enum_types): New functions.
24859 (read_md_files): Initialize md_constants and md_enums.
24860 * genconstants.c (print_md_constant): Ignore info argument.
24861 Only print constants that belong to no enum.
24862 (print_enum_type): New function.
24863 (main): Don't pass stdout to print_md_constant. Call print_enum_type
24864 for each defined enum type.
24865 * config/mips/mips.md (processor): New define_enum.
24866 (unspec): New define_c_enum.
24867 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
24868 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
24869 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
24870 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
24871 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
24872 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
24873 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
24874 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
24875 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
24876 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
24877 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
24878 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
24879 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
24880 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
24881 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
24882 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
24883 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
24884 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
24885 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
24886 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
24887 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
24888 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
24889 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24890 (UNSPEC_RDDSP): Move to mips-dsp.md.
24891 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
24892 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
24893 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
24894 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
24895 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
24896 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
24897 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
24898 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
24899 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
24900 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
24901 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
24902 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
24903 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
24904 Moved to mips-dspr2.md.
24905 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
24906 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
24907 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
24908 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
24909 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
24910 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
24911 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24912 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24913 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24914 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24915 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24916 UNSPEC_LOONGSON_PSADBH)
24917 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24918 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24919 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
24920 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24921 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24922 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24923 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
24924 (cpu): Update comment.
24925 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
24926 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
24927 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
24928 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
24929 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
24930 UNSPEC_LOONGSON_PCMPEQ)
24931 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
24932 UNSPEC_LOONGSON_PINSR_0)
24933 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24934 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24935 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24936 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24937 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24938 UNSPEC_LOONGSON_PSADBH)
24939 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24940 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24941 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
24942 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24943 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24944 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24945 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
24946 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
24947 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
24948 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
24949 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
24950 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
24951 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
24952 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
24953 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
24954 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
24955 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
24956 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
24957 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
24958 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
24959 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
24960 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
24961 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
24962 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
24963 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
24964 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
24965 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24966 (UNSPEC_RDDSP): Moved from mips.md.
24967 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
24968 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
24969 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
24970 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
24971 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
24972 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
24973 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
24974 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
24975 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
24976 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
24977 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
24978 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
24979 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
24980 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
24981 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
24982 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
24983 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
24984 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
24985 (UNSPEC_SCC): Moved from mips.md.
24986 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
24987 "processor_type" to "processor".
24988 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
24989 * config/mips/mips.h (processor_type): Delete.
24990 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
24991 "processor_type" to "processor".
24993 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24995 * configure.ac (tm_include_list): Add insn-constants.h.
24996 * configure: Regenerate.
24997 * Makefile.in (GTM_H): Move insn-constants.h here from...
24999 * mkconfig.sh: Remove special handling for insn-constants.h.
25001 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25003 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
25004 (BUILD_MD): ...this new variable.
25005 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
25006 that include the old contents of simple_generated_h and
25007 simple_generated_c.
25008 (simple_generated_h, simple_generated_c): Include them. Add
25010 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
25011 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
25012 Remove these dependencies from the main rule and include
25013 insn-conditions.md in the command line only if it appears
25014 in the dependency list.
25015 (insn-constants.h, s-constants): Delete.
25016 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
25018 (build/genmddeps.o): Likewise.
25019 (genprogrtl): New variable that contains everything from genprogmd
25020 except mddeps and constants.
25021 (genprogmd): Redefine in terms of genprogrtl. Make these programs
25022 depend on $(BUILD_MD)
25023 (genprog): New variable. Make these programs depend on
25025 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
25026 (main): Use read_md_files instead of init_rtx_reader_args.
25027 * genconstants.c: As for genmddeps.c.
25028 * read-md.h (read_skip_construct): Declare.
25029 * read-md.c (read_skip_construct): New function.
25030 (handle_file): Allow a null handle_directive, skipping the
25032 (parse_include): Update the comment accordingly.
25034 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25036 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
25037 * genmddeps.c: Include read-md.h.
25038 (main): Call init_rtx_reader_args instead of init_md_reader_args.
25039 * genattr.c (main): Likewise.
25040 * genattrtab.c (main): Likewise.
25041 * genautomata.c (main): Likewise.
25042 * gencodes.c (main): Likewise.
25043 * genconditions.c (main): Likewise.
25044 * genconfig.c (main): Likewise.
25045 * genconstants.c (main): Likewise.
25046 * genemit.c (main): Likewise.
25047 * genextract.c (main): Likewise.
25048 * genflags.c (main): Likewise.
25049 * genopinit.c (main): Likewise.
25050 * genoutput.c (main): Likewise.
25051 * genpeep.c (main): Likewise.
25052 * genrecog.c (main): Likewise.
25053 * genpreds.c (main): Likewise.
25054 * gensupport.h (in_fname): Move to read-md.h.
25055 (init_md_reader_args_cb): Rename to...
25056 (init_rtx_reader_args_cb): ...this and return a bool.
25057 (init_md_reader_args): Rename to...
25058 (init_rtx_reader_args): ...this and return a bool.
25059 (include_callback): Move to read-md.h.
25060 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
25061 (file_name_list, first_dir_md_include): Move to read-md.c
25062 (first_bracket_include): Delete unused variable.
25063 (last_dir_md_include): Move to read-md.c.
25064 (process_include): Delete, moving code to read-md.c:handle_include.
25065 (process_rtx): Don't handle INCLUDE.
25066 (save_string): Delete.
25067 (rtx_handle_directive): New function.
25068 (init_md_reader_args_cb): Rename to...
25069 (init_rtx_reader_args_cb): ...this and return a boolean success value.
25071 (init_md_reader_args): Rename to...
25072 (init_rtx_reader_args): ...this and return a boolean success value.
25073 * rtl.def (INCLUDE): Delete.
25074 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
25076 * read-rtl.c (read_conditions): Don't gobble ')' here.
25077 (read_mapping): Likewise.
25078 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
25079 Handle top-level non-rtx constructs here rather than in read_rtx_1.
25080 Store the whole queue in *X. Remove call to init_md_reader.
25081 (read_rtx_1): Rename to...
25082 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
25083 Don't handle top-level non-rtx constructs here. Don't handle (nil)
25085 (read_nested_rtx): New function. Handle (nil) here rather than
25087 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
25089 * read-md.h (directive_handler_t): New type.
25090 (in_fname, include_callback): Moved from read-md.h.
25091 (read_constants, init_md_reader): Delete.
25092 (read_md_files): Declare.
25093 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
25094 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
25096 (read_constants): Rename to...
25097 (handle_constants): ...this. Don't gobble ')' here.
25098 (handle_include, handle_file, handle_toplevel_file)
25099 (parse_include): New functions, mostly taken from gensupport.c.
25100 (init_md_reader): Subsume into...
25101 (read_md_files): ...this new function.
25103 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25105 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
25106 (unread_char): Decrement read_md_lineno after putting back '\n'.
25107 * read-md.c (fatal_with_file_and_line): Push back any characters
25108 that we decide not to add to the context.
25109 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
25110 fatal_expected_char in cases where '/' ends a line (for example).
25111 (read_name): Don't increment read_md_lineno here.
25112 (read_escape): Likewise.
25113 (read_quoted_string): Likewise.
25114 (read_braced_string): Likewise.
25116 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25118 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
25119 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
25120 * genconstants.c: Include read-md.h.
25121 * read-rtl.c (md_constants): Move to read-md.c.
25122 (md_name): Move to read-md.h.
25123 (initialize_iterators): Use leading_string_hash instead of def_hash
25124 and leading_string_eq_p instead of def_name_eq_p.
25125 (read_name): Move to read-md.c.
25126 (def_hash, def_name_eq_p): Delete.
25127 (read_constants, traverse_md_constants): Move to read-md.c.
25128 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
25129 * read-md.h: Include hashtab.h.
25130 (md_name): Moved from read-rtl.c.
25131 (md_constant): Moved from read-md.h.
25132 (leading_string_hash, leading_string_eq_p, read_name)
25133 (read_constants, traverse_md_constants): Declare.
25134 * read-md.c (md_constants): Moved from read-rtl.c.
25135 (leading_string_hash, leading_string_eq_p): New functions.
25136 (read_name, read_constants, traverse_md_constants): Moved from
25139 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25141 * read-rtl.c (md_name): New structure.
25142 (read_name): Take an md_name instead of a buffer pointer.
25143 Use the "string" field instead of strcpy when expanding constants.
25144 (read_constants): Remove the tmp_char argument. Update the calls
25145 to read_name, using two local name buffers instead of the tmp_char
25146 argument. Merge the constant-creation code.
25147 (read_conditions): Remove the tmp_char argument. Update the calls
25148 to read_name, using a local name buffer instead of the tmp_char
25150 (read_mapping): Replace tmp_char variable with a local name buffer.
25151 Update the calls to read_name.
25152 (read_rtx_1): Likewise. Update the calls to read_constants and
25155 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25157 * Makefile.in (build/read-md.o): Depend on errors.h.
25158 * read-md.h (error_with_line): Declare.
25159 * read-md.c: Include errors.h.
25160 (message_with_line_1): New function, extracted from...
25161 (message_with_line): ...here.
25162 (error_with_line): New function.
25163 * genattrtab.c: If a call to message_with_line is followed by
25164 "have_error = 1;", replace both statements with a call to
25166 * genoutput.c: Likewise.
25167 * genpreds.c: Likewise.
25168 * genrecog.c: If a call to message_with_line is followed by
25169 "error_count++;", replace both statements with a call to
25171 (errorcount): Delete.
25172 (main): Don't check it.
25173 * gensupport.c: If a call to message_with_line is followed by
25174 "errors = 1;", replace both statements with a call to error_with_line.
25176 (process_define_cond_exec): Check have_error instead of errors.
25177 (init_md_reader_args_cb): Likewise. Don't set errors.
25179 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25181 * read-md.h (read_md_file): Declare.
25182 (read_char, unread_char): New functions.
25183 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25184 (read_quoted_string, read_string): Remove FILE * argument.
25185 * read-md.c (read_md_file): New variable.
25186 (read_md_filename, read_md_lineno): Update comments and remove
25187 unnecessary initialization.
25188 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25189 (read_escape, read_quoted_string, read_braced_string, read_string):
25190 Remove FILE * argument. Update calls accordingly, using read_char
25191 and unread_char instead of getc and ungetc.
25192 * rtl.h (read_rtx): Remove FILE * argument.
25193 * read-rtl.c (iterator_group): Remove FILE * argument from
25195 (iterator_traverse_data): Remove "infile" field.
25196 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
25197 (add_mapping, read_name, read_constants, read_conditions)
25198 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
25199 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
25200 Remove file arguments from all calls, using read_char and unread_char
25201 instead of getc and ungetc.
25202 * gensupport.c (process_include): Preserve read_md_file around
25203 the include. Set read_md_file to the handle of the included file.
25204 Update call to read_rtx.
25205 (init_md_reader_args_cb): Set read_md_file to the handle of the file
25206 and remove local FILE *. Update calls to read_rtx.
25208 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25210 * read-md.h (read_rtx_lineno): Rename to...
25211 (read_md_lineno): ...this.
25212 (read_rtx_filename): Rename to...
25213 (read_md_filename): ...this.
25214 (copy_rtx_ptr_loc): Rename to...
25215 (copy_md_ptr_loc): ...this.
25216 (print_rtx_ptr_loc): Rename to...
25217 (print_md_ptr_loc): ...this.
25218 * read-md.c: Likewise. Update references after renaming.
25219 (string_obstack): Replace RTL with MD in comment.
25220 (set_rtx_ptr_loc): Rename to...
25221 (set_md_ptr_loc): ...this.
25222 (get_rtx_ptr_loc): Rename to...
25223 (get_md_ptr_loc): ...this.
25224 * genconditions.c: Update references after renaming.
25225 * genemit.c: Likewise.
25226 * genoutput.c: Likewise.
25227 * genpreds.c: Likewise.
25228 * gensupport.c: Likewise.
25229 * read-rtl.c: Likewise.
25231 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25233 * Makefile.in (READ_MD_H): New variable.
25234 (BUILD_RTL): Add build/read-md.o.
25235 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
25236 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
25237 (build/genattrtab.o, build/genconditions.o build/genemit.o)
25238 (build/genextract.o, build/genflags.o, build/genoutput.o)
25239 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
25240 (build/read-md.o): New rule.
25241 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
25242 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
25243 * coretypes.h: ...here.
25244 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
25245 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
25246 * genattr.c: Include read-md.h.
25247 * genattrtab.c: Likewise.
25248 * genconditions.c: Likewise.
25249 * genemit.c: Likewise.
25250 * genextract.c: Likewise.
25251 * genflags.c: Likewise.
25252 * genoutput.c: Likewise.
25253 * genpreds.c: Likewise.
25254 * genrecog.c: Likewise.
25255 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
25256 (join_c_conditions, print_c_condition, read_rtx_filename)
25257 (read_rtx_lineno): Move to read-md.h.
25258 * read-rtl.c: Include read-md.h.
25259 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
25260 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
25261 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
25262 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
25263 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
25264 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
25265 (read_braced_string, read_string): Move to read-md.c.
25266 (read_rtx): Move some initialization to init_md_reader and call
25267 init_md_reader here.
25268 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
25270 * gensupport.c: Include read-md.h.
25271 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
25272 * read-md.h, read-md.c: New files.
25274 2010-06-10 Anatoly Sokolov <aesok@post.ru>
25276 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25277 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25278 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
25279 * config/moxie/moxie.c (moxie_function_value): Make static.
25280 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
25281 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25283 2010-06-10 Martin Jambor <mjambor@suse.cz>
25285 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
25286 * dbgcnt.def (tree_sra): New counter.
25287 * tree-sra.c: Include dbgcnt.h.
25288 (gate_intra_sra): Check tree_sra debug counter.
25290 2010-06-10 Martin Jambor <mjambor@suse.cz>
25292 PR tree-optimization/44258
25293 * tree-sra.c (build_access_subtree): Return false iff there is a
25295 (build_access_trees): Likewise.
25296 (analyze_all_variable_accesses): Disqualify candidates if
25297 build_access_trees returns true for them.
25299 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
25302 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
25303 tail-recurse into canonical node. Fast-forward over
25304 non-canonical VALUEs.
25306 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
25309 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
25310 (*addsi_1_zext) <TYPE_LEA>: Likewise.
25311 (add lea splitter): Likewise.
25312 (add_zext lea splitter): Likewise.
25314 2010-06-10 Joseph Myers <joseph@codesourcery.com>
25316 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
25318 2010-06-10 Jan Hubicka <jh@suse.cz>
25320 * df-problems.c (df_live_problem_data): Add live_bitmaps.
25321 (df_live_alloc): Initialize problem data and live_osbtacks.
25322 (df_live_finalize): Remove obstack, problem data; do not
25324 (df_live_top_dump, df_live_bottom_dump): Do not dump old
25325 data when not allocated.
25326 (df_live_verify_solution_start): Do not allocate problem data.
25327 (df_live_verify_solution_end): Check if out is allocated.
25328 (struct df_md_problem_data): New structure.
25329 (df_md_alloc): Allocate problem data.
25330 (df_md_free): Free problem data; do not clear bitmaps.
25332 2010-06-10 Jan Beulich <jbeulich@novell.com>
25335 * configure.ac: Replace $() with ${} when intending to expand
25336 variables rather than invoking commands.
25337 * configure: Re-generate.
25339 2010-06-10 Jan Hubicka <jh@suse.cz>
25341 PR rtl-optimization/44460
25342 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
25343 TYPE_NEEDS_CONSTRUCTING sanity check.
25345 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
25347 * doc/include/fdl.texi: Move to GFDL version 1.3.
25349 * doc/cpp.texi: Move to GFDL version 1.3.
25350 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
25351 * doc/gccint.texi: Move to GFDL version 1.3.
25352 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
25353 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
25354 * doc/invoke.texi: Move to GFDL version 1.3.
25356 2010-06-09 Jan Hubicka <jh@suse.cz>
25358 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
25360 (propagate) ... here; swap the order.
25362 2010-06-09 Jan Hubicka <jh@suse.cz>
25364 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
25365 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
25366 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
25367 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
25369 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
25371 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
25372 Do not the gather memory reference in the outer loop if the step
25375 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
25377 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
25378 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
25379 8 to 4. Minor change of the related comments.
25381 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25383 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
25384 the scev analysis when the variable is not used outside the loop
25385 in a close phi node: call compute_overall_effect_of_inner_loop.
25387 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25389 * graphite-sese-to-poly.c (single_pred_cond): Renamed
25390 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
25391 (build_sese_conditions_before): Renamed call to single_pred_cond.
25392 (build_sese_conditions_after): Same.
25394 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25396 * graphite-poly.h: Fix comments and indentation.
25397 * graphite-sese-to-poly.c: Same.
25398 (build_sese_conditions_before): Compute stmt and gbb only when needed.
25399 * tree-chrec.c: Fix comments and indentation.
25400 (tree-ssa-loop-niter.c): Same.
25402 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
25404 PR rtl-optimization/42461
25405 * dce.c (deletable_insn_p): Return true for const or pure calls again.
25406 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
25408 2010-06-09 Jan Hubicka <jh@suse.cz>
25410 * bitmap.c (bitmap_and): Walk array forward.
25411 (bitmap_and_compl_into): Likewise.
25412 (bitmap_xor): Likewise.
25413 (bitmap_xor_into): Likewise.
25414 (bitmap_equal_p): Likewise.
25415 (bitmap_intersect_p): Likewise.
25416 (bitmap_intersect_compl_p): Likewise.
25417 (bitmap_ior_and_into): Likewise.
25418 (bitmap_elt_copy): Likewise.
25419 (bitmap_and_compl): Likewise.
25420 (bitmap_elt_ior): Likewise.
25422 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
25424 * opts-common.c (prune_options): Ensure replacement argv array
25425 is correctly terminated by a NULL entry.
25427 2010-06-09 Jan Hubicka <jh@suse.cz>
25429 * cgraph.h (varpool_first_static_initializer,
25430 varpool_next_static_initializer): Make checking only when
25432 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
25433 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
25434 gcc_assert to gcc_checking_assert.
25435 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
25436 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
25437 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
25438 op_iter_init_phiuse, op_iter_init_phidef,
25439 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
25440 gcc_checking_assert.
25441 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
25442 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
25443 partition_is_global, live_on_entry, live_on_exit,
25444 live_merge_and_clear): Likewise.
25445 * system.h (gcc_checking_assert): New macro.
25446 * gimple.h (set_bb_seq): Use gcc_checking_assert.
25448 2010-06-09 Jason Merrill <jason@redhat.com>
25450 * Makefile.in (TAGS): Collect tags info from c-family.
25452 2010-06-09 Jan Hubicka <jh@suse.cz>
25454 * gimple.h (gcc_gimple_checking_assert): New macro.
25455 (gimple_set_def_ops, gimple_set_use_ops,
25456 gimple_set_vuse, gimple_set_vdef,
25457 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
25458 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
25459 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
25460 gimple_asm_output_op, gimple_asm_output_op_ptr,
25461 gimple_asm_set_output_op, gimple_asm_clobber_op,
25462 gimple_asm_set_clobber_op, gimple_asm_label_op,
25463 gimple_asm_set_label_op, gimple_try_set_kind,
25464 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
25465 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
25466 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
25467 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
25468 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
25469 gimple_omp_for_set_initial, gimple_omp_for_final,
25470 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
25471 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
25472 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
25473 conditional with ENABLE_GIMPLE_CHECKING.
25474 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
25476 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
25478 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
25479 (get_computation_cost_at): Use it.
25480 (determine_use_iv_cost_condition): Likewise.
25481 (determine_iv_cost): Likewise.
25483 2010-06-09 Richard Guenther <rguenther@suse.de>
25485 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
25488 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
25490 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
25492 2010-06-09 Martin Jambor <mjambor@suse.cz>
25494 PR tree-optimization/44423
25495 * tree-sra.c (dump_access): Dump also grp_assignment_read.
25496 (analyze_access_subtree): Pass negative allow_replacements to children
25497 if the current type is scalar.
25499 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
25502 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
25503 * doc/plugins.texi (Plugin license check): Update information
25504 on type of plugin_is_GPL_compatible.
25505 * Makefile.in (PLUGINCC): Define as $(COMPILER).
25506 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
25508 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
25510 * config/arm/arm.c (thumb2_reorg): New function.
25511 (arm_reorg): Call it.
25512 * config/arm/thumb2.md (define_peephole2 for flag clobbering
25513 arithmetic operations): Delete.
25515 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
25518 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
25521 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
25524 * gcc-plugin.h: Encapsulate all declarations in extern "C".
25526 2010-06-08 Jan Hubicka <jh@suse.cz>
25528 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
25529 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
25531 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
25533 PR tree-optimization/39874
25534 PR middle-end/28685
25535 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
25537 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
25538 same_bool_result_p): New.
25539 (and_var_with_comparison, and_var_with_comparison_1,
25540 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
25541 (or_var_with_comparison, or_var_with_comparison_1,
25542 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
25543 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
25544 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25545 of combine_comparisons.
25546 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
25548 2010-06-08 Anatoly Sokolov <aesok@post.ru>
25550 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25551 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25552 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
25553 pdp11_function_value_regno_p): New functions.
25554 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25555 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25557 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
25559 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
25560 Thumb-2 in the MINUS case.
25562 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25564 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
25566 * doc/gty.texi (GTY Options): Document typed GC allocation and
25567 variable_size GTY option.
25569 * ggc-internal.h: New.
25571 * ggc.h: Update copyright year.
25572 (digit_string): Move to stringpool.c.
25573 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
25574 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
25575 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
25576 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
25577 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
25578 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
25579 (ggc_force_collect, ggc_get_size, ggc_statistics)
25580 (ggc_print_common_statistics): Move to ggc-internal.h.
25581 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
25582 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
25583 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
25584 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
25585 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
25586 (ggc_alloc_zone_pass_stat): Remove.
25587 (ggc_internal_alloc_stat, ggc_internal_alloc)
25588 (ggc_internal_cleared_alloc_stat): New.
25589 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
25590 (ggc_internal_vec_alloc_stat)
25591 (ggc_internal_cleared_vec_alloc_stat)
25592 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
25593 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
25594 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
25595 (ggc_cleared_alloc_ptr_array_two_args): New.
25596 (htab_create_ggc, splay_tree_new_ggc): Redefine.
25597 (ggc_splay_alloc): Change the type of the first argument to
25598 enum gt_types_enum.
25599 (ggc_alloc_string): Make macro.
25600 (ggc_alloc_string_stat): New.
25601 (ggc_strdup): Redefine.
25602 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
25603 (ggc_alloc_rtvec_sized): New.
25604 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
25605 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
25606 (ggc_internal_cleared_alloc_zone_stat)
25607 (ggc_internal_zone_alloc_stat)
25608 (ggc_internal_zone_cleared_alloc_stat)
25609 (ggc_internal_zone_vec_alloc_stat)
25610 (ggc_alloc_zone_rtx_def_stat)
25611 (ggc_alloc_zone_tree_node_stat)
25612 (ggc_alloc_zone_cleared_tree_node_stat)
25613 (ggc_alloc_cleared_gimple_statement_d_stat): New.
25615 * ggc-common.c: Include ggc-internal.h.
25616 (ggc_internal_cleared_alloc_stat): Rename from
25617 ggc_alloc_cleared_stat.
25618 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
25619 (ggc_calloc): Remove.
25620 (ggc_cleared_alloc_htab_ignore_args): New.
25621 (ggc_cleared_alloc_ptr_array_two_args): New.
25622 (ggc_splay_alloc): Add obj_type parameter.
25623 (init_ggc_heuristics): Formatting fixes.
25625 * ggc-none.c: Update copyright year.
25626 (ggc_alloc_stat): Rename to ggc_alloc_stat.
25627 (ggc_alloc_cleared_stat): Rename to
25628 ggc_internal_cleared_alloc_stat.
25629 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25631 * ggc-page.c: Update copyright year. Include ggc-internal.h.
25632 Remove references to ggc_alloc in comments.
25633 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
25634 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
25635 (new_ggc_zone, destroy_ggc_zone): Remove.
25636 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25638 * ggc-zone.c: Include ggc-internal.h. Remove references to
25639 ggc_alloc in comments.
25640 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
25641 (ggc_internal_alloc_zone_pass_stat): New.
25642 (ggc_internal_cleared_alloc_zone_stat): New.
25643 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
25644 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
25645 (new_ggc_zone, destroy_ggc_zone): Remove.
25647 * stringpool.c: Update copyright year. Include ggc-internal.h
25648 (digit_vector): Make static.
25649 (digit_string): Moved from ggc.h.
25650 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
25651 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
25653 * Makefile.in (GGC_INTERNAL_H): New.
25654 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
25655 $(GGC_INTERNAL_H) to dependencies.
25657 * gengtype.c: Update copyright year.
25658 (walk_type): Accept variable_size GTY option.
25659 (USED_BY_TYPED_GC_P): New macro.
25660 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
25661 whitespace at the end of strings.
25662 (get_type_specifier, variable_size_p): New functions.
25663 (alloc_quantity, alloc_zone): New enums.
25664 (write_typed_alloc_def): New function.
25665 (write_typed_struct_alloc_def): Likewise.
25666 (write_typed_typed_typedef_alloc_def): Likewise.
25667 (write_typed_alloc_defns): Likewise.
25668 (output_typename, write_splay_tree_allocator_def): Likewise.
25669 (write_splay_tree_allocators): Likewise.
25670 (main): Call write_typed_alloc_defns and
25671 write_splay_tree_allocators.
25673 * lto-streamer.h (lto_file_decl_data_ptr): New.
25675 * passes.c (order): Define using cgraph_node_ptr.
25677 * strinpool.c (struct string_pool_data): Declare nested_ptr using
25680 * gimple.h (union gimple_statement_d): Likewise.
25682 * rtl.h (struct rtx_def): Likewise.
25683 (struct rtvec_def): Likewise.
25685 * tree.h (union tree_node): Likewise.
25687 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
25689 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
25691 * tree-scalar-evolution.c (scev_initialize): Likewise.
25693 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
25695 * dwarf2asm.c (dw2_force_const_mem): Likewise.
25697 * omp-low.c (lower_omp_critical): Likewise.
25699 * bitmap.h (struct bitmap_head_def): Update comment to not
25700 reference ggc_alloc.
25702 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
25704 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
25706 * ipa-prop.c (duplicate_ggc_array): Rename to
25707 duplicate_ipa_jump_func_array. Use typed GC allocation.
25708 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
25710 * gimple.c (gimple_alloc_stat): Use
25711 ggc_alloc_cleared_gimple_statement_d_stat.
25713 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
25715 * tree.c (make_node_stat): Use
25716 ggc_alloc_zone_cleared_tree_node_stat.
25717 (make_tree_vec_stat): Likewise.
25718 (build_vl_exp_stat): Likewise.
25719 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
25720 (make_tree_binfo_stat): Likewise.
25721 (tree_cons_stat): Likewise.
25723 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
25724 (shallow_copy_rtx_stat): Likewise.
25725 (make_node_stat): Likewise.
25727 * lto-symtab.c: Fix comment.
25729 * tree-cfg.c (create_bb): Update comment to not reference
25731 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
25733 * varpool.c (varpool_node): Use typed GC allocation.
25734 (varpool_extra_name_alias): Likewise.
25736 * varasm.c (emutls_decl): Likewise.
25737 (get_unnamed_section): Likewise.
25738 (get_noswitch_section): Likewise.
25739 (get_section): Likewise.
25740 (get_block_for_section): Likewise.
25741 (build_constant_desc): Likewise.
25742 (create_constant_pool): Likewise.
25743 (force_const_mem): Likewise.
25745 * tree.c (build_vl_exp_stat): Likewise.
25746 (build_real): Likewise.
25747 (build_string): Likewise.
25748 (decl_debug_expr_insert): Likewise.
25749 (decl_value_expr_insert): Likewise.
25750 (type_hash_add): Likewise.
25751 (build_omp_clause): Likewise.
25753 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
25755 * tree-ssa.c (init_tree_ssa): Likewise.
25757 * tree-ssa-structalias.c (heapvar_insert): Likewise.
25759 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25761 * tree-ssa-loop-niter.c (record_estimate): Likewise.
25763 * tree-ssa-alias.c (get_ptr_info): Likewise.
25765 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25767 * tree-phinodes.c (allocate_phi_node): Likewise.
25769 * tree-iterator.c (tsi_link_before): Likewise.
25770 (tsi_link_after): Likewise.
25772 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25774 * tree-dfa.c (create_var_ann): Likewise.
25776 * tree-cfg.c (create_bb): Likewise.
25778 * toplev.c (alloc_for_identifier_to_locale): Likewise.
25779 (general_init): Likewise.
25781 * stringpool.c (stringpool_ggc_alloc): Likewise.
25782 (gt_pch_save_stringpool): Likewise.
25784 * sese.c (if_region_set_false_region): Likewise.
25786 * passes.c (do_per_function_toporder): Likewise.
25788 * optabs.c (set_optab_libfunc): Likewise.
25789 (set_conv_libfunc): Likewise.
25791 * lto-symtab.c (lto_symtab_register_decl): Likewise.
25793 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25794 (input_eh_region): Likewise.
25795 (input_eh_lp): Likewise.
25796 (make_new_block): Likewise.
25797 (unpack_ts_real_cst_value_fields): Likewise.
25799 * lto-section-in.c (lto_new_in_decl_state): Likewise.
25801 * lto-cgraph.c (input_node_opt_summary): Likewise.
25803 * loop-init.c (loop_optimizer_init): Likewise.
25805 * lambda.h (lambda_vector_new): Likewise.
25807 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25809 * ira.c (update_equiv_regs): Likewise.
25811 * ipa.c (cgraph_node_set_new): Likewise.
25812 (cgraph_node_set_add): Likewise.
25813 (varpool_node_set_new): Likewise.
25814 (varpool_node_set_add): Likewise.
25816 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25817 (duplicate_ipa_jump_func_array): Likewise.
25818 (ipa_read_node_info): Likewise.
25820 * ipa-cp.c (ipcp_create_replace_map): Likewise.
25822 * integrate.c (get_hard_reg_initial_val): Likewise.
25824 * gimple.c (gimple_alloc_stat): Likewise.
25825 (gimple_build_omp_for): Likewise.
25826 (gimple_seq_alloc): Likewise.
25827 (gimple_copy): Likewise.
25829 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25830 (gsi_insert_after_without_update): Likewise.
25832 * function.c (add_frame_space): Likewise.
25833 (insert_temp_slot_address): Likewise.
25834 (assign_stack_temp_for_type): Likewise.
25835 (allocate_struct_function): Likewise.
25836 (types_used_by_var_decl_insert): Likewise.
25838 * except.c (init_eh_for_function): Likewise.
25839 (gen_eh_region): Likewise.
25840 (gen_eh_region_catch): Likewise.
25841 (gen_eh_landing_pad): Likewise.
25842 (add_call_site): Likewise.
25844 * emit-rtl.c (get_mem_attrs): Likewise.
25845 (get_reg_attrs): Likewise.
25846 (start_sequence): Likewise.
25847 (init_emit): Likewise.
25849 * dwarf2out.c (new_cfi): Likewise.
25850 (queue_reg_save): Likewise.
25851 (dwarf2out_frame_init): Likewise.
25852 (new_loc_descr): Likewise.
25853 (find_AT_string): Likewise.
25854 (new_die): Likewise.
25855 (add_var_loc_to_decl): Likewise.
25856 (clone_die): Likewise.
25857 (clone_as_declaration): Likewise.
25858 (break_out_comdat_types): Likewise.
25859 (new_loc_list): Likewise.
25860 (loc_descriptor): Likewise.
25861 (add_loc_descr_to_each): Likewise.
25862 (add_const_value_attribute): Likewise.
25863 (tree_add_const_value_attribute): Likewise.
25864 (add_comp_dir_attribute): Likewise.
25865 (add_name_and_src_coords_attributes): Likewise.
25866 (lookup_filename): Likewise.
25867 (store_vcall_insn): Likewise.
25868 (dwarf2out_init): Likewise.
25870 * dbxout.c (dbxout_init): Likewise.
25872 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25874 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25876 * config/score/score7.c (score7_output_external): Likewise.
25878 * config/score/score3.c (score3_output_external): Likewise.
25880 * config/s390/s390.c (s390_init_machine_status): Likewise.
25882 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25883 (rs6000_init_machine_status): Likewise.
25884 (output_toc): Likewise.
25886 * config/pa/pa.c (pa_init_machine_status): Likewise.
25887 (get_deferred_plabel): Likewise.
25889 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25891 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25893 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25895 * config/mep/mep.c (mep_init_machine_status): Likewise.
25896 (mep_note_pragma_flag): Likewise.
25898 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25900 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25902 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25904 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25905 (i386_pe_maybe_record_exported_symbol): Likewise.
25907 * config/i386/i386.c (get_dllimport_decl): Likewise.
25908 (ix86_init_machine_status): Likewise.
25909 (assign_386_stack_local): Likewise.
25911 * config/frv/frv.c (frv_init_machine_status): Likewise.
25913 * config/darwin.c (machopic_indirection_name): Likewise.
25915 * config/cris/cris.c (cris_init_machine_status): Likewise.
25917 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25919 * config/avr/avr.c (avr_init_machine_status): Likewise.
25921 * config/arm/arm.c (arm_init_machine_status): Likewise.
25923 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25924 (alpha_need_linkage): Likewise.
25925 (alpha_use_linkage): Likewise.
25927 * cgraph.c (cgraph_allocate_node): Likewise.
25928 (cgraph_create_edge_1): Likewise.
25929 (cgraph_create_indirect_edge): Likewise.
25930 (cgraph_add_asm_node): Likewise.
25932 * cfgrtl.c (init_rtl_bb_info): Likewise.
25934 * cfgloop.c (alloc_loop): Likewise.
25935 (rescan_loop_exit): Likewise.
25937 * cfg.c (init_flow): Likewise.
25938 (alloc_block): Likewise.
25939 (unchecked_make_edge): Likewise.
25941 * c-parser.c (c_parse_init): Likewise.
25942 (c_parse_file): Likewise.
25944 * c-decl.c (bind): Likewise.
25945 (record_inline_static): Likewise.
25946 (push_scope): Likewise.
25947 (make_label): Likewise.
25948 (lookup_label_for_goto): Likewise.
25949 (finish_struct): Likewise.
25950 (finish_enum): Likewise.
25951 (c_push_function_context): Likewise.
25953 * bitmap.c (bitmap_element_allocate): Likewise.
25954 (bitmap_gc_alloc_stat): Likewise.
25956 * alias.c (record_alias_subset): Likewise.
25957 (init_alias_analysis): Likewise.
25959 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
25961 * fold-const.c (fold_comparison): Remove redundant parenthesis.
25962 * tree-inline.c (expand_call_inline): Pass translated return value of
25963 cgraph_inline_failed_string to diagnostic function.
25965 2010-06-08 Andrew Pinski <pinskia@gmail.com>
25966 Shujing Zhao <pearly.zhao@oracle.com>
25969 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
25970 implicit bad conversions is initialization.
25971 (error_init): Use gmsgid instead of msgid for argument name and change
25972 the call for error.
25973 (pedwarn_init): Use gmsgid instead of msgid for argument name and
25974 change the call for pedwarn.
25975 (warning_init): Use gmsgid instead of msgid for argument name and
25976 change the call for warning.
25978 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
25980 * config/mips/mips-protos.h (mips_print_operand): Delete.
25981 (mips_print_operand_address): Delete.
25982 * config/mips/mips.h (mips_print_operand_punct): Delete.
25983 (PRINT_OPERAND): Delete.
25984 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25985 (PRINT_OPERAND_ADDRESS): Delete.
25986 * config/mips/mips.c (mips_print_operand_punct): Make static.
25987 (mips_print_operand_address): Make static.
25988 (mips_print_operand): Make static. Call
25989 mips_print_operand_punct_valid_p.
25990 (mips_print_operand_punct_valid_p): New function.
25991 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25992 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25994 2010-06-07 Jan Hubicka <jh@suse.cz>
25996 PR middle-end/44454
25997 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
26000 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
26002 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
26005 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26007 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26008 attributes): Document gas.
26010 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
26012 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
26013 <TYPE_LEA>: Split instruction.
26014 <default>: Remove alternative 2 handling.
26015 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
26016 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
26017 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
26019 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
26020 (ashift_zext lea splitter): Use DImode for multiplication.
26022 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
26023 to generate addition.
26025 2010-06-07 Joseph Myers <joseph@codesourcery.com>
26027 * common.opt (fira-verbose): Use Var.
26028 (fpcc-struct-return): Use Init instead of VarExists.
26029 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
26031 * flags.h (flag_signed_char, flag_short_enums,
26032 flag_pcc_struct_return, flag_ira_verbose,
26033 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
26034 * toplev.c (flag_detailed_statistics, flag_signed_char,
26035 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
26036 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
26037 * toplev.h (flag_crossjumping, flag_if_conversion,
26038 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
26039 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
26040 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
26041 flag_cprop_registers, time_report, flag_ira_loop_pressure,
26042 flag_ira_coalesce, flag_ira_move_spills,
26043 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
26045 2010-06-07 Jan Hubicka <jh@suse.cz>
26047 * df-core.c (df_analyze_problem): Do verification after allocation.
26049 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
26050 (df_lr_alloc): Initialize problem data; move bitmaps to
26051 lr_bitmaps obstack.
26052 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
26053 (df_lr_verify_solution_start): Do not initialize problem data;
26054 allocate bitmaps in lr_bitmaps.
26055 (df_lr_verify_solution_end): Do not free problem data.
26057 2010-06-07 Jan Hubicka <jh@suse.cz>
26059 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
26060 if caller is noreturn.
26061 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
26062 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
26063 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
26064 * ipa-pure-const.c (check_decl): Add IPA parameter.
26065 (state_from_flags): New function.
26066 (better_state, worse_state): New functions.
26067 (check_call): When in IPA mode, do not care about callees.
26068 (check_load, check_store): Update.
26069 (check_ipa_load, check_ipa_store): New.
26070 (check_stmt): When in IPA mode, use IPA checkers.
26071 (analyze_function): Use state_from_flags.
26072 (propagate): Check indirect edges and references.
26074 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
26076 PR rtl-optimization/44404
26077 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
26078 of count_occurrences to see if it's safe to modify mem_insn.
26080 2010-06-07 Richard Guenther <rguenther@suse.de>
26082 * gimplify.c (gimplify_cleanup_point_expr): For empty body
26083 and EH-only cleanup drop the cleanup instead of inserting it
26086 2010-06-07 Ira Rosen <irar@il.ibm.com>
26088 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
26090 * targhooks.c (default_builtin_vectorization_cost): New function.
26091 * targhooks.h (default_builtin_vectorization_cost): Declare.
26092 * target.h (enum vect_cost_for_stmt): Define.
26093 (builtin_vectorization_cost): Change argument and comment.
26094 * tree-vectorizer.h: Remove cost model macros.
26095 * tree-vect-loop.c: Include target.h.
26096 (vect_get_cost): New function.
26097 (vect_estimate_min_profitable_iters): Replace cost model macros with
26098 calls to vect_get_cost.
26099 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
26100 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
26101 default implementation.
26102 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
26103 calls to target hook builtin_vectorization_cost.
26104 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
26106 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
26107 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
26108 implementation to return costs.
26109 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
26110 * config/spu/spu.h: Remove vectorizer cost model macros.
26111 * config/i386/i386.h: Likewise.
26112 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
26113 a call to target hook builtin_vectorization_cost.
26115 2010-06-06 Sriraman Tallam <tmsriram@google.com>
26118 * config/i386/i386.c (override_options): Turn zee pass on for level 2
26119 and above and defer till target is known.
26120 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
26121 turn off otherwise.
26123 2010-05-25 Jan Hubicka <jh@suse.cz>
26125 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
26126 (df_compact_blocks): Likewise.
26127 * df.h (struct df): Turn hardware_regs_used,
26128 regular_block_artificial_uses, eh_block_artificial_uses,
26129 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
26131 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
26132 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
26133 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
26134 df_scan_blocks, df_insn_delete, df_insn_rescan,
26135 df_insn_rescan_debug_internal, df_insn_rescan_all,
26136 df_process_deferred_rescans, df_process_deferred_rescans,
26137 df_notes_rescan, df_get_call_refs, df_get_call_refs,
26138 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
26139 df_record_entry_block_defs, df_record_exit_block_uses,
26140 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
26141 df_scan_verify): Update.
26143 2010-05-25 Dodji Seketeli <dodji@redhat.com>
26146 * c-common.c (is_typedef_decl): Move this definition ...
26147 * tree.c (is_typedef_decl): ... here.
26148 (typdef_variant_p): Move definition here from cp/tree.c.
26149 * c-common.h (is_typedef_decl): Move this declaration ...
26150 * tree.h (is_typedef_decl): ... here.
26151 (typedef_variant_p): Move declaration here from cp/cp-tree.h
26152 * dwarf2out.c (is_naming_typedef_decl): New function.
26153 (gen_tagged_type_die): Split out of ...
26154 (gen_type_die_with_usage): ... this function. When an anonymous
26155 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26156 is emitted for the typedef.
26157 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26158 anonymous tagged types.
26160 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
26163 * c-decl.c (grokdeclarator): Delete warning.
26165 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
26167 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
26168 newly built CALL_EXPR.
26169 * tree-profile.c (tree_profiling): Don't profile functions produced
26170 for built-in stuff.
26172 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
26176 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
26177 endianness-independent.
26179 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
26181 * c-common.c: Move to c-family/.
26182 * c-common.def: Likewise.
26183 * c-common.h: Likewise.
26184 * c-cppbuiltin.c: Likewise.
26185 * c-dump.c: Likewise.
26186 * c-format.c: Likewise.
26187 * c-format.h : Likewise.
26188 * c-gimplify.c: Likewise.
26189 * c-lex.c: Likewise.
26190 * c-omp.c: Likewise.
26192 * c-opts.c: Likewise.
26193 * c-pch.c: Likewise.
26194 * c-ppoutput.c: Likewise.
26195 * c-pragma.c: Likewise.
26196 * c-pragma.h: Likewise.
26197 * c-pretty-print.c: Likewise.
26198 * c-pretty-print.h: Likewise.
26199 * c-semantics.c: Likewise.
26200 * stub-objc.c: Likewise.
26202 * gengtype.c (get_file_langdir): Special-case files in c-family/.
26203 (get_output_file_with_visibility): Fix name for c-common.h.
26204 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
26206 * c-tree.h: Update include path for moved files.
26207 * c-lang.c: Likewise.
26208 * c-lang.h: Likewise.
26209 * c-parser.c: Likewise.
26210 * c-convert.c: Likewise.
26211 * c-decl.c: Likewise.
26212 * c-objc-common.c: Likewise.
26213 * configure.ac: Make sure c-family/ exists in the build directory.
26214 * configure: Regenerate.
26215 * Makefile.in: Update paths for moved files. Regroup files per
26216 location and update dependencies. Move generated_files down after
26219 * config/spu/spu-c.c: Update paths for moved files.
26220 * config/mep/mep-pragma.c: Likewise.
26221 * config/darwin-c.c: Likewise.
26222 * config/i386/msformat-c.c: Likewise.
26223 * config/i386/i386-c.c: Likewise.
26224 * config/avr/avr-c.c: Likewise.
26225 * config/sol2-c.c: Likewise.
26226 * config/ia64/ia64-c.c: Likewise.
26227 * config/rs6000/rs6000-c.c: Likewise.
26228 * config/arm/arm.c: Likewise.
26229 * config/arm/arm-c.c: Likewise.
26230 * config/h8300/h8300.c: Likewise.
26231 * config/v850/v850-c.c: Likewise.
26233 * config/t-darwin: Fix dependencies for moved files.
26234 * config/t-sol2: Fix dependencies for moved files.
26235 * config/mep/t-mep: Fix dependencies for moved files.
26236 * config/ia64/t-ia64: Fix dependencies for moved files.
26237 * config/rs6000/t-rs6000: Fix dependencies for moved files.
26238 * config/v850/t-v850: Fix dependencies for moved files.
26239 * config/v850/t-v850e: Fix dependencies for moved files.
26241 * config/m32c/m32c-pragma.c
26243 * po/exgettext: Look in c-family/ also.
26245 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
26247 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
26248 (mark_control_dependent_edges_necessary): Call it instead of marking
26249 the last statement manually.
26250 (propagate_necessity): Likewise.
26252 2010-06-05 Jan Hubicka <jh@suse.cz>
26254 * basic-block.h (compute_dominance_frontiers): Updated.
26255 (compute_idf): Likewise.
26257 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
26258 for dominance frontiers.
26259 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
26260 (insert_updated_phi_nodes_for): Likewise.
26261 (update_ssa): Likewise.
26262 * cfganal.c (compute_dominance_frontiers_1): Likewise.
26263 (compute_dominance_frontiers): Likewise.
26264 (compute_idf): Likewise.
26265 * df-problems.c (df_md_local_compute): Likewise.
26267 2010-06-05 Anatoly Sokolov <aesok@post.ru>
26269 * target.h (struct gcc_target): Add memory_move_cost field.
26270 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
26271 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
26272 * targhooks.c (default_memory_move_cost): New function.
26273 * targhooks.h (default_memory_move_cost): Declare function.
26274 * reload.h (memory_move_cost): Declare.
26275 (memory_move_secondary_cost): Change type of 'in' argument to bool.
26276 * reginfo.c (memory_move_cost): New function.
26277 (memory_move_secondary_cost): Change type of 'in' argument to bool.
26278 * ira.h (ira_memory_move_cost): Update comment.
26279 * ira.c (ira_memory_move_cost): Update comment.
26280 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
26281 with memory_move_cost.
26282 * postreload.c (reload_cse_simplify_set): (Ditto.).
26283 * reload1.c (choose_reload_regs): (Ditto.).
26284 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
26285 (MEMORY_MOVE_COST): Revise documentation.
26287 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
26288 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
26289 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
26290 type of 'in' argument to bool.
26291 (TARGET_MEMORY_MOVE_COST): Define.
26293 2010-06-05 Jan Hubicka <jh@suse.cz>
26295 * ipa-pure-const.c (propagate): Fix typo in handling of functions
26296 that cannot return. Be more careful when merging the results with
26297 previously known ones.
26299 2010-06-05 Matthias Klose <doko@ubuntu.com>
26301 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
26302 function to add the -iplugindir option.
26303 (find_plugindir_spec_function): Add new declaration and function.
26304 (static_spec_func): Use it for "find-plugindir".
26306 2010-06-05 Jakub Jelinek <jakub@redhat.com>
26309 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
26310 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
26311 statement expression.
26313 2010-06-05 Jan Hubicka <jh@suse.cz>
26315 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
26316 (df_rd_problem_data): Convert sparse_invalidated_by_call,
26317 dense_invalidated_by_call to bitmap head.
26318 (df_rd_alloc, df_rd_bb_local_compute_process_def,
26319 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
26320 df_rd_start_dump, df_lr_verify_transfer_functions,
26321 df_live_verify_transfer_functions, df_chain_create_bb,
26322 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
26323 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
26324 df_simulate_one_insn_forwards, df_md_alloc,
26325 df_md_bb_local_compute_process_def,
26326 df_md_bb_local_compute_process_def, df_md_local_compute,
26327 df_md_transfer_function df_md_free): Update.
26329 2010-06-05 Joseph Myers <joseph@codesourcery.com>
26332 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
26333 target type for ADDR_EXPR; require no changes to qualifiers except
26334 for function types.
26335 * c-tree.h (c_build_type_variant): Remove.
26337 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
26339 * genautomata.c (get_excl_set): Do work per element, not per char.
26340 (check_presence_pattern_sets): Similar.
26341 (check_absence_pattern_sets): Similar.
26343 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
26345 * genautomata.c (curr_state_pass_num): Delete.
26346 (min_issue_delay_pass_states): Delete.
26347 (min_issue_delay): Delete.
26348 (initiate_min_issue_delay_pass_states): Delete.
26349 (output_min_issue_delay_table): Compute min_issue_delay_vect
26350 using a breadth-first search variant.
26351 (output_tables): Don't call initiate_min_issue_delay_pass_states.
26353 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
26356 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
26357 (df_byte_lr_bb_local_compute): Likewise.
26359 2010-06-03 Jason Merrill <jason@redhat.com>
26361 Implement noexcept operator (5.3.7)
26362 * c-common.c (c_common_reswords): Add noexcept.
26363 * c-common.h (enum rid): Add RID_NOEXCEPT.
26365 2010-06-04 Joseph Myers <joseph@codesourcery.com>
26367 * config/darwin-driver.c (darwin_default_min_version): Use
26368 GCC-specific formats in diagnostics.
26369 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
26371 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
26372 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
26373 eval_spec_function, handle_braces, process_brace_body, main,
26374 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
26375 getenv_spec_function, compare_version_strings,
26376 version_compare_spec_function): Use GCC-specific formats in
26379 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26381 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
26382 that operand 0 and operand 1 are equal.
26383 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
26384 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
26385 and operand 1 are equal.
26386 <default>: Ditto. Remove ??? comment.
26387 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
26388 and operand 1 are equal.
26389 <default>: Ditto. Remove ??? comment.
26390 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
26392 (*add<mode>_4) <default>: Ditto.
26393 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
26395 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
26397 * config/i386/i386-protos.h (ix86_print_operand): Declare.
26398 * config/i386/i386.c (ix86_print_operand): Make non-static.
26399 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
26400 * output.h (output_operand): Declare.
26401 * final.c (output_operand): Make non-static.
26403 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
26405 PR rtl-optimization/44013
26406 * sched-deps.c (add_dependence_list_and_free): Don't free lists
26407 when processing debug insns.
26410 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
26411 recursing. Check that recursion is bounded. Rename inner var
26412 to avoid hiding incoming argument.
26414 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26416 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
26417 operands[2] == 255.
26421 (*addqi_ext_1_rex64): Ditto.
26422 (*addqi_ext_1): Ditto.
26424 (*addqi_4): Check for incdec_operand in QImode.
26426 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
26427 using SWI mode iterator.
26428 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
26429 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
26431 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
26432 using SWI mode iterator.
26434 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
26437 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
26438 * c-format.c (gcc_diag_flag_specs): Add hash.
26439 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
26440 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
26441 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
26442 pp_c_cv_qualifiers. Handle qualifiers spelling here.
26443 (pp_c_type_qualifier_list): Call the function above.
26444 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
26445 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
26446 (WARN_FOR_QUALIFIERS): New macro.
26447 (convert_for_assignment): Use it.
26449 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
26451 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
26453 2010-06-04 Jan Hubicka <jh@suse.cz>
26455 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
26456 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
26457 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
26458 DF_BYTE_LR_OUT): Update for embedded bitmaps.
26459 * fwprop.c (single_def_use_enter_block): Likewise.
26460 * ddg.c (create_ddg_dep_from_intra_loop_link,
26461 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
26462 * loop-iv.c (latch_dominating_def): Likewise.
26463 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
26464 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
26465 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
26466 df_rd_transfer_function, df_rd_top_dump,
26467 df_rd_bottom_dump): Update.
26468 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
26469 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
26470 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
26471 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
26472 df_lr_verify_solution_start, df_lr_verify_solution_end,
26473 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
26474 df_live_free_bb_info, df_live_alloc, df_live_reset,
26475 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
26476 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
26477 df_live_verify_solution_start, df_live_verify_solution_end,
26478 df_live_verify_transfer_functions, df_chain_create_bb,
26479 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
26480 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26481 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26482 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
26483 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
26484 df_byte_lr_transfer_function, df_byte_lr_top_dump,
26485 df_byte_lr_bottom_dump, df_create_unused_note,
26486 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
26487 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
26488 df_md_transfer_function, df_md_init, df_md_confluence_0,
26489 df_md_confluence_n,
26490 df_md_top_dump, df_md_bottom_dump): Update.
26491 (struct df_lr_problem_data): Embedd bitmap headers.
26493 2010-06-04 Jan Hubicka <jh@suse.cz>
26495 * dce.c (dce_process_block): Do not re-scan already marked
26498 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
26500 PR rtl-optimization/39871
26501 PR rtl-optimization/40615
26502 PR rtl-optimization/42500
26503 PR rtl-optimization/42502
26504 * ira.c (init_reg_equiv_memory_loc: New function.
26505 (ira): Call it twice.
26506 * reload.h (calculate_elim_costs_all_insns): Declare.
26507 * ira-costs.c: Include "reload.h".
26508 (regno_equiv_gains): New static variable.
26509 (init_costs): Allocate it.
26510 (finish_costs): Free it.
26511 (ira_costs): Call calculate_elim_costs_all_insns.
26512 (find_costs_and_classes): Take estimated elimination costs
26514 (ira_adjust_equiv_reg_cost): New function.
26515 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
26516 * reload1.c (init_eliminable_invariants, free_reg_equiv,
26517 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
26518 (elim_bb): New static variable.
26519 (reload): Move code out of here into init_eliminable_invariants and
26520 free_reg_equiv. Call them.
26521 (calculate_elim_costs_all_insns): New function.
26522 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
26523 all callers changed. If FOR_COSTS is true, don't call alter_reg,
26524 but call note_reg_elim_costly if we turned a valid memory address
26525 into an invalid one.
26526 * Makefile.in (ira-costs.o): Depend on reload.h.
26528 2010-06-04 Julian Brown <julian@codesourcery.com>
26530 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
26533 2010-06-04 Richard Guenther <rguenther@suse.de>
26536 * cgraph.h (struct varpool_node): Add lto_file_data field.
26537 * lto-cgraph.c (input_varpool_node): Initialize it.
26539 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26541 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
26542 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
26543 predicate in "type" attribute calculation.
26544 (*addsi_1_zext): Ditto.
26545 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
26546 (*addsi_2_zext): Ditto.
26547 (*add<mode>_3): Ditto.
26548 (*addsi_3_zext): Ditto.
26549 (*add<mode>_5): Ditto.
26551 2010-06-03 Jan Hubicka <jh@suse.cz>
26553 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
26555 * cfganal.c (compute_dominance_frontiers_1): Likewise.
26557 2010-06-03 Jan Hubicka <jh@suse.cz>
26559 * df-problems.c (df_create_unused_note, df_note_bb_compute):
26560 micro-optimize the checks when to add new note.
26562 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
26564 * final.c (output_asm_insn): Call
26565 targetm.asm_out.print_operand_punct_valid_p. Update comments.
26566 (output_operand): Call targetm.asm_out.print_operand. Update comments.
26567 (output_address): Call targetm.asm_out.print_operand_address.
26569 * target.h (struct gcc_target): Add print_operand,
26570 print_operand_address, and print_operand_punct_valid_p fields.
26571 * targhooks.h (default_print_operand): Declare.
26572 (default_print_operand_address): Declare.
26573 (default_print_operand_punct_valid_p): Declare.
26574 * targhooks.c (default_print_operand): Define.
26575 (default_print_operand_address): Define.
26576 (default_print_operand_punct_valid_p): Define.
26577 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
26578 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
26579 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
26580 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
26581 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
26582 * vmsdbgout.c (addr_const_to_string): Update comment.
26583 * config/i386/i386.c (print_operand): Rename to...
26584 (ix86_print_operand): ...this. Make static.
26585 (print_operand_address): Rename to...
26586 (ix86_print_operand_address): ...this. Make static. Call
26587 ix86_print_operand instead of PRINT_OPERAND.
26588 (ix86_print_operand_punct_valid_p): New function.
26589 (TARGET_PRINT_OPERAND): Define.
26590 (TARGET_PRINT_OPERAND_ADDRESS): Define.
26591 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26592 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
26593 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26594 (PRINT_OPERAND): Delete.
26595 (PRINT_OPERAND_ADDRESS): Delete.
26596 * config/i386/i386-protos.h (print_operand): Delete prototype.
26597 (print_operand_address): Delete prototype.
26599 2010-06-03 Richard Guenther <rguenther@suse.de>
26601 PR tree-optimization/44403
26602 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26603 Preserve pointer qualifiers.
26604 (vect_create_data_ref_ptr): Likewise.
26606 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
26609 * defaults.h (MAX_FIXED_MODE_SIZE): New.
26611 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
26613 2010-06-03 Jakub Jelinek <jakub@redhat.com>
26616 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
26617 return false if merging the bbs would lead to goto_locus
26618 location being lost from the IL.
26620 2010-06-03 Jan Hubicka <jh@suse.cz>
26621 Jakub Jelinek <jakub@redhat.com>
26623 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
26624 set->regs[i] is NULL or has just one entry.
26626 2010-06-03 Jan Hubicka <jh@suse.cz>
26628 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
26629 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
26631 2010-06-03 Paul Brook <paul@codesourcery.com>
26633 * config/arm/arm.c (FL_TUNE): Define.
26634 (arm_default_cpu, arm_cpu_select): Remove.
26635 (all_cores): Populate core field.
26636 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
26637 (arm_find_cpu): New function.
26638 (arm_handle_option): Lookup cpu/architecture names.
26639 (arm_override_options): Cleanup mcpu/march/mtune handling.
26640 (arm_file_start): Ditto.
26642 2010-06-03 Alan Modra <amodra@gmail.com>
26645 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
26646 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
26647 rtx to gen_load_toc_v4_PIC_1b. Tidy.
26648 (rs6000_emit_load_toc_table): Likewise.
26650 2010-06-02 Jan Hubicka <jh@suse.cz>
26652 * passes.c (init_optimization_passes): Put ipa reference
26653 after ipa pure-const.
26655 2010-06-02 Jan Hubicka <jh@suse.cz>
26657 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
26658 calls_read_all and calls_write_all.
26659 (get_reference_optimization_summary): Fix formatting.
26660 (is_proper_for_analysis): Check that decl is not readonly.
26661 (propagate_bits): Check CONST/PURE/noreturn flags.
26662 (ipa_init): Move all_module_statics to optimization_summary_obstack.
26663 (analyze_function): Ignore indirect edges.
26664 (copy_global_bitmap): For all module statics, do nothing.
26665 (generate_summary): Do not print calls_read_all/calls_write_all.
26666 (read_write_all_from_decl): Take node as argument; check
26667 cgraph_node_cannot_return.
26668 (propagate): Reorganize read_all/write_all computation;
26669 check indirect edges; check ecf flags; use all_module_statics
26670 in the results; do not free all_module_statics.
26671 (stream_out_bitmap): Handle all_module_statics.
26672 (ipa_reference_write_optimization_summary): Likewise; use
26673 varpool/cgraph encoders to get boundaries.
26674 (ipa_reference_read_optimization_summary): Read in all_module_statics;
26675 use it when possible.
26677 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26680 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
26681 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
26683 * doc/extend.texi (powerpc builtins): Document vec_recip,
26684 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
26686 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
26687 (rs6000_emit_swrsqrt): Ditto.
26688 (rs6000_emit_swdivsf): Delete.
26689 (rs6000_emit_swdivdf): Ditto.
26690 (rs6000_emit_swrsqrtsf): Ditto.
26692 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
26693 describe the reciprocal estimate support for each type.
26694 (recip_options): Map -mrecip=<opt> into option bits.
26695 (gen_2arg_fn_t): New typedef for binary rtx gen function.
26696 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
26697 reciprocal estimate instructions.
26698 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
26699 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26700 Set up rs6000_recip_bits based on the -mrecip* options. Print the
26701 cost information if -mdebug=cost or -mdebug=reg.
26702 (rs6000_override_options): Set -mrecip-precision for power6, and
26703 power7 machines. If -mvsx or -mdfp, enable various options that
26704 came in previous instruction set ISAs, unless the option was
26705 explicitly disabled by the command line option. Parse
26706 -mrecip=<opt> options.
26707 (rs6000_builtin_vectorized_function): Add support for vectorizing
26708 the reciprocal estimate builtins and expansions.
26709 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
26710 (bdesc_2arg): Add reciprocal estimate builtins.
26711 (bdesc_1arg): Add reciprocal square root estimate builtins.
26712 (rs6000_expand_builtin): Rewrite to use a switch statement,
26713 instead of multiple if/then/elses. Add reciprocal estimate builtins.
26714 (rs6000_init_builtins): Create declarations for reciprocal
26716 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
26717 sized, prefer traditional floating point registers, if integer
26718 vector types, prefer altivec registers. Don't actually look at
26719 the memory address any more.
26720 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
26722 (rs6000_load_constant_and_splat): New helper function to load up
26723 the constant for reciprocal estimate instructions.
26724 (rs6000_emit_madd): New helper function for generating
26725 multiply/add type instructions, based on the current switches.
26726 (rs6000_emit_msub): Ditto.
26727 (rs6000_emit_mnsub): Ditto.
26728 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
26729 replace a divide with a reciprocal estimate and fixup, adding
26730 support for machines with high precision and vectors.
26731 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
26732 low precision machines.
26733 (rs6000_emit_swdiv): New common function to be called to replace a
26734 division with reciprocal estimate and fixup.
26735 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
26736 for double and vector types. Add support for high precision machines.
26738 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
26739 the reciprocal estimate instructions can be generated.
26740 (TARGET_FRE): Ditto.
26741 (TARGET_FRSQRTES): Ditto.
26742 (TARGET_FRSQRTE): Ditto.
26743 (RS6000_RECIP_*): New macros for reciprocal estimate support.
26745 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
26746 square root estimate on vectors.
26747 (re<mode>2): New insn for reciprocal division estimate on vectors.
26749 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
26751 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
26752 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
26753 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
26754 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26755 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26756 (RS6000_BUILTIN_RSQRT): Ditto.
26757 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26758 floating point builtin.
26760 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26761 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26762 __RECIP_PRECISION__ based on the command line switches.
26763 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26765 * config/rs6000/rs6000.opt (-mrecip): Document add support for
26766 replacing division instructions with reciprocal estimate and fixup.
26767 (-mrecip=<opt>): New option.
26768 (-mrecip-precision): Ditto.
26770 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26771 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26772 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26775 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26776 (UNSPEC_VREFP): Ditto.
26777 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26778 conterparts with regard to support of -mno-fused-madd and -ffast-math.
26779 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26780 reciprocal estimate instructions to be generated.
26781 (altivec_vrefp): Ditto.
26783 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26785 (rreg): New mode attribute for reciprocal estimate support.
26786 (recip<mode>3): New insn for division using reciprocal estimate
26787 and fixup builtins.
26788 (divide define_split): New define_split to convert floating point
26789 division to use reciprocal estimate if the user used the
26790 appropriate options and the split is run when we can add new
26791 pseudo registers for the fixup.
26792 (rsqrt<mode>2): New insn for reciprocal square root support.
26793 (recipsf3): Move into recip<mode>3.
26795 (fres): Use TARGET_FRES.
26796 (rsqrtsf2): Move into rsqrt<mode>2.
26797 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26798 (copysignsf3): Add support for VSX.
26799 (fred): Use TARGET_FRE.
26801 (rsqrtdf_internal1): New function for frsqrte instruciton.
26803 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26804 (vec_rsqrt): Ditto.
26806 2010-06-03 Richard Guenther <rguenther@suse.de>
26808 PR middle-end/44291
26809 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26810 (set_user_assembler_libfunc): Likewise.
26812 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26814 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26816 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26818 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26819 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26820 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26821 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26822 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26823 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26824 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26825 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26826 * defaults.h: Updated for above mentioned changes.
26828 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
26830 * c-common.c: Remove header include of tm_p.h.
26831 * Makefile.in (c-common.o): Remove TM_P_H dependency.
26833 2010-06-02 Jakub Jelinek <jakub@redhat.com>
26835 * tree.h (struct tree_decl_map): New type.
26836 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26837 (tree_decl_map_hash): New prototype.
26838 (debug_expr_for_decl, value_expr_for_decl): Change into
26839 tree_decl_map hashtab from tree_map.
26840 (init_ttree): Adjust initialization.
26841 (tree_decl_map_hash): New function.
26842 (decl_debug_expr_lookup, decl_debug_expr_insert,
26843 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
26845 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26847 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
26849 * configure: Regenerate.
26850 * config.in: Regenerate.
26852 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
26853 (X86_64_EMULATION): Define.
26854 (TARGET_LD_EMULATION): Use them.
26856 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
26857 (SPARC64_EMULATION): Define.
26858 (LINK_ARCH_SPEC): Use them.
26860 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26862 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
26863 smallest_mode_for_size for computing the precision types of new
26864 graphite IVs. Do not call lang_hooks.types.type_for_size.
26866 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26868 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
26870 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
26872 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26874 PR middle-end/44363
26875 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
26876 return false instead.
26878 2010-06-02 Jan Hubicka <jh@suse.cz>
26880 PR middle-end/44295
26881 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
26882 create new cgraph node to check callee.
26884 2010-06-02 Richard Guenther <rguenther@suse.de>
26886 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
26888 2010-06-02 Richard Guenther <rguenther@suse.de>
26890 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
26891 (lto_wrapper_cleanup): ... this. Do not exit.
26892 (fatal): Adjust. Exit here.
26893 (fatal_perror): Likewise.
26894 (fatal_signal): New function.
26895 (main): Set up signal handlers to cleanup temporary files.
26896 * Makefile.in (lto-wrapper.o): Adjust dependencies.
26898 2010-06-02 Richard Guenther <rguenther@suse.de>
26900 PR tree-optimization/44377
26901 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
26903 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26905 * config/s390/2097.md (z10_fhex): Remove insn reservation.
26906 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
26907 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
26908 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
26910 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
26912 2010-06-02 Jan Hubicka <jh@suse.cz>
26914 * bitmap.c (bitmap_descriptor): Add search_iter.
26915 (bitmap_find_bit): Increment it.
26916 (print_statistics): Print it.
26918 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
26920 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
26921 instead of gimple_build_call_vec. Delete unnecessary local variable.
26923 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26925 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
26926 change from yesterday.
26928 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26930 * c-ada-spec.c: Clean up redundant includes.
26932 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
26934 * gimplify.c: Do not include except.h and optabs.h.
26935 (gimplify_body): Do not initialize RTL profiling.
26936 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26937 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
26938 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
26939 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
26942 * tree-pretty-print.h: Include pretty-print.h.
26943 * gimple-pretty-print.h: Include pretty-print.h.
26945 * tree-pretty-print.c: Do not include diagnostic.h.
26946 * tree-vrp.c: Likewise.
26947 * tree-tailcall.c: Likewise
26948 * tree-scalar-evolution.c: Likewise
26949 * tree-ssa-dse.c: Likewise
26950 * tree-chrec.c: Likewise
26951 * tree-ssa-sccvn.c: Likewise
26952 * tree-ssa-copyrename.c: Likewise
26953 * tree-nomudflap.c: Likewise
26954 * tree-call-cdce.c: Likewise
26955 * tree-stdarg.c: Likewise
26956 * tree-ssa-math-opts.c: Likewise
26957 * tree-nrv.c: Likewise
26958 * tree-ssa-sink.c: Likewise
26959 * tree-browser.c: Likewise
26960 * tree-ssa-loop-ivcanon.c: Likewise
26961 * tree-ssa-loop.c: Likewise
26962 * tree-parloops.c: Likewise
26963 * tree-ssa-address.c: Likewise
26964 * tree-ssa-ifcombine.c: Likewise
26965 * tree-if-conv.c: Likewise
26966 * tree-data-ref.c: Likewise
26967 * tree-affine.c: Likewise
26968 * tree-ssa-phiopt.c: Likewise
26969 * tree-ssa-coalesce.c: Likewise
26970 * tree-ssa-pre.c: Likewise
26971 * tree-ssa-live.c: Likewise
26972 * tree-predcom.c: Likewise
26973 * tree-ssa-forwprop.c: Likewise
26974 * tree-ssa-dce.c: Likewise
26975 * tree-ssa-ter.c: Likewise
26976 * tree-ssa-loop-prefetch.c: Likewise
26977 * tree-optimize.c: Likewise
26978 * tree-ssa-phiprop.c: Likewise
26979 * tree-object-size.c: Likewise
26980 * tree-outof-ssa.c: Likewise
26981 * tree-ssa-structalias.c: Likewise
26982 * tree-switch-conversion.c: Likewise
26983 * tree-ssa-reassoc.c: Likewise
26984 * tree-ssa-operands.c: Likewise
26985 * tree-vectorizer.c: Likewise
26986 * tree-vect-data-refs.c: Likewise
26987 * tree-vect-generic.c: Likewise
26988 * tree-vect-stmts.c: Likewise
26989 * tree-vect-patterns.c: Likewise
26990 * tree-vect-slp.c: Likewise
26991 * tree-vect-loop.c: Likewise
26992 * tree-ssa-loop-ivopts.c: Likewise
26993 * tree-ssa-loop-im.c: Likewise
26994 * tree-ssa-loop-niter.c: Likewise
26995 * tree-ssa-loop-unswitch.c: Likewise
26996 * tree-ssa-loop-manip.c: Likewise
26997 * tree-ssa-loop-ch.c: Likewise
26998 * tree-dump.c: Likewise
26999 * tree-complex.c: Likewise
27001 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
27002 * tree-ssa-uninit.c: Likewise
27003 * tree-ssa-threadupdate.c: Likewise
27004 * tree-ssa-uncprop.c: Likewise
27005 * tree-ssa-ccp.c: Likewise
27006 * tree-ssa-dom.c: Likewise
27007 * tree-ssa-propagate.c: Likewise
27008 * tree-ssa-alias.c: Likewise
27009 * tree-dfa.c: Likewise
27010 * tree-cfgcleanup.c: Likewise
27011 * tree-sra.c: Likewise
27012 * tree-ssa-copy.c: Likewise
27013 * tree-ssa.c: Likewise
27014 * tree-profile.c: Likewise
27015 * tree-cfg.c: Likewise
27016 * tree-ssa-threadedge.c: Likewise
27017 * tree-vect-loop-manip.c: Likewise
27019 * tree-inline.c: Do not include diagnostic.h and expr.h.
27021 (copy_decl_for_dup_finish): Do not use NULL_RTX.
27023 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
27024 * tree-loop-distribution.c: Likewise.
27026 2010-06-01 Jan Hubicka <jh@suse.cz>
27028 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
27030 2010-06-01 Jan Hubicka <jh@suse.cz>
27032 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
27033 remove return value.
27034 (split_bbs_on_noreturn_calls) .... here.
27035 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
27036 * tree-flow.h (fixup_noreturn_call): New.
27038 2010-06-01 Jan Hubicka <jh@suse.cz>
27040 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
27042 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
27044 * tree.h (build_nt_call_list): Delete.
27045 * tree.c (build_nt_call_list): Delete.
27047 2010-06-01 Jan Hubicka <jh@suse.cz>
27049 * fwprop.c: Make emit-rtl.h include last.
27050 * rtlanal.c: Include emit-rtl.h.
27051 * genautomata.c: Output emit-rtl include into insn-automata.c
27052 * df-scan.c: Include emit-rtl.h.
27053 * haifa-sched.c: Indlude emit-rtl.h.
27054 * mode-switching.c: Indlude emit-rtl.h.
27055 * graph.c: Indlude emit-rtl.h.
27056 * sel-sched.c: Include emit-rtl.h.
27057 * sel-sched-ir.c: Include emit-rtl.h.
27058 * ira-build.c: Include emit-rtl.h.
27059 * emit-rtl.c (first_insn, last_insn): Remove defines.
27060 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
27061 Move to emit-rtl.h.
27062 (set_new_first_and_last_insn, get_last_insn_anywhere,
27063 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
27064 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
27065 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
27066 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
27067 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
27068 Use accessor functions.
27069 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27070 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27071 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27072 mem_expr_equal_p): Move here from rtl.h.
27073 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
27074 Move here from emit-rtl.c; make inline.
27075 * cfglayout.h: Include emit-rtl.h.
27076 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27077 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27078 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27079 mem_expr_equal_p, get_insns, set_first-insn,
27080 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
27081 * reg-stack.c: Include emit-rtl.h.
27084 2010-06-01 Jan Hubicka <jh@suse.cz>
27086 * cgraph.h (tree_function_versioning): Update prototype.
27087 (cgraph_function_versioning): Update prototype.
27088 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
27090 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
27091 (cgraph_materialize_clone, save_inline_function_body): Update use of
27092 tree_function_versioning.
27093 * tree-inline.c (copy_bb): Look for previous copied block to link
27094 after; fix debug output.
27095 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
27096 (copy_body): Likewise.
27097 (expand_call_inline): Update use of copy_body.
27098 (tree_function_versioning): Update use of copy body; accept
27099 blocks_to_copy and new_entry.
27101 2010-06-01 Jan Hubicka <jh@suse.cz>
27103 * gegenrtl.c: Remove unnecesary prototypes.
27105 (gendef): Produce static inline.
27107 (main): Do not decode parameters; generate header only.
27108 * Makefile.in (genrtl.c): Remove.
27110 2010-06-01 Jan Hubicka <jh@suse.cz>
27112 * tree-switch-conversion.c (build_one_array): Make it readonly.
27114 2010-06-01 Richard Guenther <rguenther@suse.de>
27116 * optabs.c (init_optabs): Guard all accesses to reinit.
27117 * ipa-pure-const.c (propagate): Fix another typo.
27118 * opts.c (common_handle_option): Split assignment to bool.
27119 * c-opts.c (c_common_handle_option): Likewise.
27121 2010-06-01 Arnaud Charlet <charlet@adacore.com>
27122 Matthew Gingell <gingell@adacore.com>
27124 * doc/invoke.texi: Mention -fdump-ada-spec.
27125 * tree-dump.c (dump_files): Add ada-spec.
27126 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
27127 * tree-pass.h (tree_dump_index): Add TDI_ada.
27128 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
27129 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
27130 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
27131 * c-decl.c: Include c-ada-spec.h.
27132 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
27134 (c_write_global_declarations): Add handling of -fdump-ada-spec.
27135 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
27136 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
27137 * c-ada-spec.h, c-ada-spec.c: New files.
27139 2010-06-01 Richard Guenther <rguenther@suse.de>
27142 * ipa-pure-const.c (get_function_state): Hand back varying state
27143 if we do not have one.
27144 (has_function_state): New function.
27145 (duplicate_node_data): Adjust.
27146 (remove_node_data): Likewise.
27147 (pure_const_write_summary): Likewise.
27148 (propagate): Likewise. Fix typo.
27150 2010-06-01 Jan Hubicka <jh@suse.cz>
27152 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
27153 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
27154 (execute_all_ipa_transforms): Do not play with the states.
27156 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
27158 * config/arm/t-linux-androideabi: New.
27159 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
27161 2010-06-01 Jan Hubicka <jh@suse.cz>
27163 * tree-inline.c (estimate_num_insns): For stdarg functions look
27164 into call statement to count cost of argument passing.
27166 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
27168 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
27169 argument for fprintf.
27170 (ix86_output_addr_diff_elt): Likewise.
27171 (x86_function_profiler): Likewise.
27172 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
27173 (LPREFIX): Likewise.
27174 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
27176 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27179 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
27180 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
27181 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
27182 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
27183 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
27184 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
27185 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
27186 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
27189 2010-05-31 Jan Hubicka <jh@suse.cz>
27191 * tree.h (tree_range_check_failed): Declare noreturn.
27193 2010-05-31 Jan Hubicka <jh@suse.cz>
27195 * gimple.c (gimple_call_builtin_p): New function.
27196 * gimple.h (gimple_call_builtin_p): Declare.
27197 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
27199 (execute_warn_function_return): BUILT_IN_RETURN is return.
27200 (split_critical_edges): Return edges are not critical.
27201 (is_ctrl_altering_stmt): Builtin_in_return is altering.
27202 (gimple_verify_flow_info): Handle built_in_return.
27203 (execute_warn_function_return): Handle built_in_return.
27204 * ipa-pure-const.c (check_call): Ignore builtin_return.
27206 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27208 PR middle-end/44337
27209 * expr.c (expand_assignment): Don't store anything for out-of-bounds
27210 array accesses with non-MEM.
27212 PR tree-optimization/44182
27213 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
27214 newly needs to end a bb is followed by debug stmts, instead return
27215 true from the function at the end.
27216 (maybe_move_debug_stmts_to_successors): New function.
27217 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
27219 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
27222 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
27224 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
27226 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
27227 for nested functions in non-optimized compilation.
27229 2010-05-31 Richard Guenther <rguenther@suse.de>
27231 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
27233 2010-05-30 Jan Hubicka <jh@suse.cz>
27235 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
27237 2010-05-30 Richard Guenther <rguenther@suse.de>
27240 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
27241 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
27244 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
27246 * config/darwin.c (output_objc_section_asm_op): Add comment.
27247 (name_needs_quotes): Add '_' to list of valid comment chars.
27248 (machopic_output_function_base_name): Remove unneeded quotes.
27249 (darwin_encode_section_info): Adjust asm whitespace.
27250 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
27251 (ASM_OUTPUT_LOCAL): Ditto.
27252 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
27253 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
27254 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
27256 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
27258 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
27259 RS6000_OUTPUT_BASENAME unconditionally.
27260 (rs6000_output_function_epilogue): Likewise.
27262 2010-05-30 Jan Hubicka <jh@suse.cz>
27264 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
27267 2010-05-30 Richard Guenther <rguenther@suse.de>
27269 * tree-cfg.c (verify_gimple_assign_single): Implement
27270 verification for COND_EXPR rhs.
27272 2010-05-30 Jan Hubicka <jh@suse.cz>
27274 * cgraph.h (cgraph_dump_file): Declare.
27275 * cgraphunit.c (cgraph_dump_file): Export.
27276 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
27278 2010-05-30 Jan Hubicka <jh@suse.cz>
27280 * dwarf2out.c (reference_to_unused,
27281 premark_types_used_by_global_vars_helper): Avoid creation of new
27284 2010-05-30 Jan Hubicka <jh@suse.cz>
27286 * cgraph.h (cgraph_node_cannot_return,
27287 cgraph_edge_cannot_lead_to_return): New functions.
27288 * cgraph.c (cgraph_node_cannot_return,
27289 cgraph_edge_cannot_lead_to_return): Use them.
27290 * ipa-pure-const.c (pure_const_names): New static var.
27291 (check_call): Handle calls not leading to return.
27292 (pure_const_read_summary): Dump info read.
27293 (propagate): Dump info about propagation process; ignore side effects
27294 of functions not leading to exit; fix handling of pure functions.
27296 2010-05-30 Jan Hubicka <jh@suse.cz>
27298 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
27299 for tail call epilogues.
27301 2010-05-30 Jan Hubicka <jh@suse.cz>
27303 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
27304 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
27307 2010-05-29 Jan Hubicka <jh@suse.cz>
27309 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
27310 node; remove references in node we no longer keep in cgrpah but need
27313 2010-05-29 Jan Hubicka <jh@suse.cz>
27315 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
27317 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27320 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
27322 2010-05-29 Jan Hubicka <jh@suse.cz>
27324 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
27325 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
27326 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
27327 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
27328 debug_names_replaced_by, debug_update_ssa): Likewise.
27329 * sbitmap.c (debug_sbitmap): Likewise.
27330 * genrecog.c (debug_decision, debug_decision_list): Likewise.
27331 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
27332 debug_tree_chain): Likewise.
27333 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
27334 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
27335 * optabs.c (debug_optab_libfuncs): Likewise.
27336 (verify_loop_closed_ssa): Likewise.
27337 * value-prof.c (verify_histograms): Likewise.
27338 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
27339 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
27340 * cfghooks.c (verify_flow_info): Likewise.
27341 * fold-const.c (debug_fold_checksum): Likewise.
27342 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
27343 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
27345 * omega.c (debug_omega_problem): Likewise.
27346 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
27347 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
27348 * dominance.c (verify_dominators, debug_dominance_info,
27349 debug_dominance_tree): Likewise.
27350 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
27351 * df_regno_debug, df_ref_debug,
27352 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
27353 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
27354 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
27355 * sel-sched.c (debug_state): Likewise.
27356 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
27358 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
27359 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
27360 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
27361 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
27363 * c-pretty-print.c (debug_c_tree): Likewise.
27364 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
27365 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
27366 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
27367 * ebitmap.c (debug_ebitmap): Likewise.
27368 * function.c (debug_find_var_in_block_tree): Likewise.
27369 * print-rtl.c (debug_rtx): Likewise.
27370 (debug_rtx_count): Likewise.
27371 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
27372 * stor-layout.c (debug_rli): Likewise.
27373 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
27374 * tree-data-ref.c (debug_data_references,
27375 debug_data_dependence_relations, debug_data_reference,
27376 debug_data_dependence_relation, debug_rdg_vertex,
27377 debug_rdg_component, debug_rdg): Likewise.
27378 * tree-affine.c (debug_aff): Likewise.
27379 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
27381 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
27382 * emit-rtl.c (verify_rtl_sharing): Likewise.
27383 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
27384 debug_value_expressions): Likewise.
27385 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
27386 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
27387 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
27388 * cfglayout.c (verify_insn_chain): Likewise.
27389 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
27390 debug_clast_stmt, debug_generated_program): Likewise.
27391 * ggc-page.c (debug_print_page_list): Likewise.
27392 * tree-ssa-ter.c (debug_ter): Likewise.
27393 * graphite-dependences.c (debug_pddr): Likewise.
27394 * sched-deps.c (debug_ds): Likewise.
27395 * tree-ssa.c (verify_ssa): Likewise.
27396 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
27397 debug_scattering_functions, debug_iteration_domains, debug_pdr,
27398 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
27399 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
27400 * tree-inline.c (debug_find_tree): Likewise.
27401 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
27402 debug_ppl_powerset_matrix): Likewise.
27403 * var-tracking.c (debug_dv): Likewise.
27404 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
27405 * cfgloop.c (verify_loop_structure): Likewise.
27406 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
27407 * c-common.c (verify_sequence_points): Likewise.
27408 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
27409 debug_candidates, debug_rgn_dependencies): Likewise.
27410 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
27411 * debug_constraint_graph, debug_solution_for_var,
27412 debug_sa_points_to_info): Likewise.
27413 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
27415 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
27416 debug_loops, debug_loop, debug_loop_num): Likewise.
27417 * passes.c (debug_pass): Likewise.
27418 (dump_properties): Likewise; add cfglayout property.
27419 (debug_properties): Likewise.
27420 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
27421 * varpool.c (debug_varpool): Likewise.
27422 * regcprop.c (debug_value_data): Likewise.
27423 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
27424 debug_immediate_uses_for): Likewise.
27426 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
27429 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
27430 Filter out insn-flags.h.
27432 2010-05-29 Jan Hubicka <jh@suse.cz>
27434 * cgraph.h (struct varpool_node_set_def,
27435 struct cgraph_node_set_def): Remove unused AUX pointer.
27436 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
27439 2010-05-29 Jan Hubicka <jh@suse.cz>
27441 PR middle-end/44324
27442 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
27444 2010-05-29 Richard Guenther <rguenther@suse.de>
27446 * lto-streamer.c (cached_bp): New global variable.
27447 (bitpack_create): Return the cached bitpack, if available.
27448 (bitpack_delete): Clear and cache the bitpack, if appropriate.
27449 (bp_pack_value): Remove redundant asserts.
27451 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
27453 PR middle-end/44306
27454 * tree-if-conv.c (is_true_predicate): New.
27455 (is_predicated): Use is_true_predicate.
27456 (add_to_predicate_list): Same. Do not use unshare_expr.
27457 (add_to_dst_predicate_list): Same.
27459 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
27461 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
27463 (predicate_bbs): Same.
27464 (clean_predicate_lists): Same.
27465 (find_phi_replacement_condition): Do not AND the predicate from
27468 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
27471 * Makefile.in (build/gencondmd.o): Add a missing `\'.
27473 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27476 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
27477 (negdf2): Adjust expander pattern and use negdf2_slow.
27478 (negsf2): Likewise.
27480 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
27482 * basic-block.h (struct control_flow_graph): Move last_label_uid field
27484 * df.h (struct df_base_ref): Move regno field up.
27485 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
27486 * expr.h (struct separate_ops): Move location field up.
27487 * optabs.h (struct optab_d): Move libcall_basename field down.
27488 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
27489 * config/i386/i386.h (struct machine_function): Convert call_abi field
27490 into a bitfield. Move cfa field to the end of the structure.
27492 2010-05-29 Jan Hubicka <jh@suse.cz>
27494 * varpool.c (varpool_get_node): Fix lookup.
27496 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27498 * config/spu/spu-protos.h: Do not include rtl.h. Protect
27499 RTL specific prototypes with #ifdef RTX_CODE.
27500 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
27501 * config/spu/t-spu-elf: Fix dependencies.
27503 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
27505 2010-05-29 Mike Stump <mikestump@comcast.net>
27508 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
27509 TM_H when building to avoid dependency loops.
27511 2010-05-29 Jan Hubicka <jh@suse.cz>
27513 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
27514 refs and body; not the whole node for masters of materialized clones.
27516 2010-05-29 Mike Stump <mikestump@comcast.net>
27518 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
27520 2010-05-29 Jan Hubicka <jh@suse.cz>
27522 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
27523 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
27524 use of clone_function_name.
27525 * cgraph.h (cgraph_create_virtual_clone,
27526 cgraph_function_versioning): update prototypes.
27527 (clone_function_name): Declare.
27528 * ipa-cp.c (ipcp_insert_stage): Update call of
27529 cgraph_create_virtual_clone.
27530 * omp-low.c (create_omp_child_function_name): Use
27531 cgraph_create_virtual_clone.
27532 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
27533 (cgraph_function_versioning): Take SUFFIX argument; produce new name
27534 and make decl local.
27536 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27538 * vec.h: Include statistics.h
27539 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
27542 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27544 * c-lex.c: Do not include c-tree.h.
27545 * c-pretty-print.c: Likewise.
27546 * c-opts.c: Likewise.
27547 * c-gimplify.c: Likewise.
27548 * c-common.c: Likewise.
27549 * c-dump.c: Likewise. Include c-common.h.
27551 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27553 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
27554 before including diagnostic-core.h.
27555 (c_cpp_error): New prototype moved from c-tree.h.
27556 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
27557 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
27558 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
27559 (c_cpp_error): Prototype moved to c-common.h.
27560 * Makefile.in: Update dependency for C_COMMON_H.
27562 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27564 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
27565 * c-common.c (c_register_addr_space): Remove here.
27566 * c-decl.c (c_register_addr_space): Re-add here.
27568 2010-05-28 Mike Stump <mikestump@comcast.net>
27570 * config/darwin-c.c: Remove c-tree.h include.
27572 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27574 * gcc.c: Include diagnostic.h.
27575 (error_count): Remove. All users changed to use errorcount.
27576 (programname): Remove. All users changed to use progname.
27577 (fancy_abort, internal_error, fatal_error, error, warning, inform,
27579 (execute): Don't include "Internal error" and bug reporting
27580 information in argument of internal_error call.
27581 (process_command): Don't increment error_count after calling
27583 (input_filename): Rename to gcc_input_filename. All users
27585 (main): Call diagnostic_initialize. Register delete_temp_files
27586 with atexit. Use seen_error to test for errors.
27587 * gcc.h: Include diagnostic-core.h.
27588 (fatal_error, error, warning): Remove.
27589 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
27590 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
27591 (gcc.o): Update dependencies.
27593 2010-05-28 Jeff Law <law@redhat.com>
27595 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
27597 * ira.h (ira_bad_reload_regno): Declare
27598 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
27600 * ira-color.c (update_curr_costs): Free updated hard reg costs.
27601 (ira_reassign_conflict_allocnos): Remove bogus asserts.
27602 (allocno_reload_assign): Likewise.
27604 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
27606 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
27609 2010-05-28 Richard Guenther <rguenther@suse.de>
27612 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
27613 Stream fixed-point constants mode.
27614 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
27615 and TYPE_PRECISION.
27616 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
27617 Stream fixed-point constants mode.
27618 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
27619 and TYPE_PRECISION.
27621 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27623 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
27624 only place it was called from.
27625 (number_of_latch_executions): Do not return chrec_dont_know when the
27626 may_be_zero is a runtime condition: instead, return a COND_EXPR
27627 including the may_be_zero condition.
27628 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
27630 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
27633 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27635 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
27636 generate COND_EXPRs for degenerate_phi_result.
27638 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27640 PR middle-end/44293
27641 * tree-if-conv.c (if_convertible_loop_p): Check the
27642 if-convertibility of phi nodes in non predicated BBs.
27644 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27646 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
27648 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27651 * gcc.c (inform, warning, inform): New functions.
27652 (fatal_ice): Rename to internal_error; change cmsgid parameter to
27653 gmsgid. All callers changed.
27654 (notice): Rename to fnotice; add parameter fp. All callers changed.
27655 (fatal_error): Rename to fatal_signal. All users changed.
27656 (fatal): Rename to fatal_error; change cmsgid parameter to
27657 gmsgid. All callers changed.
27658 (process_command): Use warning instead of error for warnings.
27659 (end_going_arg): Don't use _() around argument of error.
27660 (do_spec_1): Use inform for message from %n specs. Use warning
27661 instead of error for warnings.
27662 (main): Use inform for comparison messages. Use warning for
27663 message about unused linker input.
27664 (error): Increment error_count. Print "error: ".
27665 * gcc.h (fatal): Change to fatal_error.
27666 (warning): Declare.
27667 * config/darwin-driver.c (darwin_default_min_version): Use warning
27668 instead of fprintf for warnings.
27669 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
27671 2010-05-28 Julian Brown <julian@codesourcery.com>
27673 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
27674 (*thumb2_addsi3_compare0_scratch): New.
27675 * config/arm/constraints.md (Pv): New.
27676 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
27678 (*addsi3_compare0_scratch): Likewise.
27680 2010-05-28 Jan Hubicka <jh@suse.cz>
27682 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
27684 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
27685 only on local statics.
27687 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
27689 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
27691 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
27694 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
27695 (OPTION_GLIBC): Define.
27697 2010-05-28 Jakub Jelinek <jakub@redhat.com>
27700 * dwarf2out.c (double_int_type_size_in_bits): New function.
27701 (round_up_to_align): Change first argument and return value to
27703 (field_byte_offset): Work internally on double_ints.
27706 * builtins.c (expand_movstr): Use a temporary pseudo instead
27707 of target even when target is not NULL and not const0_rtx, but
27708 fails movstr predicate.
27709 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
27711 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27713 * final.c (rest_of_clean_state): Use %m in errors instead of
27715 * gengtype.c (read_input_list, close_output_files): Use xstrerror
27716 instead of strerror.
27717 * toplev.c (process_options): Use %m in errors instead of strerror
27719 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
27722 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
27724 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
27725 (ix86_canonical_va_list_type): Make static. Add declaration.
27726 (ix86_enum_va_list): Make static. Reindent.
27727 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
27728 (ix86_canonical_va_list_type): Ditto.
27729 (ix86_enum_va_list): Ditto.
27731 2010-05-28 Richard Guenther <rguenther@suse.de>
27733 * lto-wrapper.c (run_gcc): With -save-temps generate a
27734 user-visible ltrans filename. Fixup ltrans unit numbering.
27736 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
27738 * c-common.c (c_common_nodes_and_builtins): Replace use
27739 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
27740 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
27741 to ix86_enum_va_list.
27742 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
27743 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
27744 (TARGET_ENUM_VA_LIST_P): Add hook description.
27745 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
27746 * target.h (gcc_target): Add enum_va_list hook.
27749 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
27750 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
27751 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
27753 2010-05-28 Alan Modra <amodra@gmail.com>
27756 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27757 emit_library_call machinery to set up __tls_get_addr calls.
27759 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27761 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27763 2010-05-28 Dodji Seketeli <dodji@redhat.com>
27765 Revert fix for PR c++/44188
27766 * c-common.c (is_typedef_decl): Revert the moving of this
27768 * tree.c (is_typedef_decl): ... here.
27769 (typdef_variant_p): Revert the moving of this definition
27770 here from cp/tree.c.
27771 * c-common.h (is_typedef_decl): Revert the moving of this
27773 * tree.h (is_typedef_decl): ... here.
27774 (typedef_variant_p): Revert the moving of this declaration here
27776 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27777 (gen_tagged_type_die): Revert the splitting out of ...
27778 (gen_type_die_with_usage): ... this function. Revert the anonymous
27779 tagged type handling.
27780 (gen_typedef_die): Revert emitting DW_TAG_typedef for
27781 typedefs naming anonymous tagged types.
27783 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
27785 * config/rs6000/rs6000-modes.def (PSImode): Delete.
27787 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
27789 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27790 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27792 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27794 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27795 XER_REGS to CA_REGS throughout.
27796 * config/rs6000/rs6000.h: Same.
27797 (ADDITIONAL_REGISTER_NAMES): Add "xer".
27798 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
27799 that mode_iterator "P" is the size for arithmetic carries as well.
27800 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27802 2010-05-28 Jakub Jelinek <jakub@redhat.com>
27805 * combine.c (struct rtx_subst_pair): Define unconditionally.
27806 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
27807 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27808 Call make_compound_operation on pair->to.
27809 (propagate_for_debug): Don't call make_compound_operation here.
27810 Always use simplify_replace_fn_rtx.
27812 2010-05-27 Sterling Augustine <sterling@tensilica.com>
27814 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27815 * config/xtensa/xtensa.c (override_options): Check
27816 TARGET_FORCE_NO_PIC and set flag_pic.
27817 * config/xtensa/xtensa.opt: Document -mforce-no-pic
27819 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
27822 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27823 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27825 2010-05-27 Joseph Myers <joseph@codesourcery.com>
27827 * diagnostic-core.h: New. Contents moved from diagnostic.h and
27829 * diagnostic.c: Don't include toplev.h.
27830 (progname): Define. Moved from toplev.c.
27831 (seen_error): New function.
27832 * diagnostic.h: Include diagnostic-core.h.
27833 (diagnostic_t, emit_diagnostic): Don't declare here.
27834 * toplev.c (progname): Move to toplev.c.
27835 (emit_debug_global_declarations, compile_file, finalize,
27836 do_compile, toplev_main): Use seen_error.
27837 * toplev.h: Include diagnostic-core.h.
27838 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27839 internal_error, warning, warning_at, error, error_n, error_at,
27840 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27841 verbatim, fnotice, progname): Move to diagnostic-core.h.
27842 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27843 (expand_builtin_expect): Use seen_error.
27844 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
27845 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
27846 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
27847 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
27848 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
27849 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
27850 errorcount for errors.
27851 * c-opts.c (c_common_finish): Use seen_error.
27852 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27853 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
27854 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
27855 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
27856 (get_coverage_counts): Use seen_error.
27857 * dwarf2out.c (dwarf2out_finish): Use seen_error.
27858 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
27859 gimplify_body): Use seen_error.
27860 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
27861 * ipa-pure-const.c (gate_pure_const): Use seen_error.
27862 * ipa-reference.c (gate_reference): Use seen_error.
27863 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
27864 * lambda-code.c: Include diagnostic-core.h instead of
27866 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27867 * lto-compress.c: Include diagnostic-core.h instead of
27869 * lto-section-in.c: Include diagnostic-core.h instead of
27871 * lto-streamer-out.c: Include diagnostic-core.h instead of
27873 * lto-streamer.c: Include diagnostic-core.h instead of
27875 (gate_lto_out): Use seen_error.
27876 * matrix-reorg.c: Include diagnostic-core.h instead of
27878 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
27879 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
27880 (gate_expand_omp, lower_omp_1): Use seen_error.
27881 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
27882 (rest_of_decl_compilation, rest_of_type_compilation,
27883 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
27884 * tree-cfg.c (label_to_block_fn): Use seen_error.
27885 * tree-inline.c (optimize_inline_calls): Use seen_error.
27886 * tree-mudflap.c (mudflap_finish_file): Use
27888 * tree-optimize.c (gate_all_optimizations,
27889 gate_all_early_local_passes, gate_all_early_optimizations): Use
27891 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
27892 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
27893 (varpool_remove_unreferenced_decls,
27894 varpool_assemble_pending_decls): Use seen_error.
27895 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
27896 (TOPLEV_H, DIAGNOSTIC_H): Update.
27897 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
27898 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
27899 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
27900 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
27901 coverage.o, lambda-code.o): Update dependencies.
27903 2010-05-25 Dodji Seketeli <dodji@redhat.com>
27906 * c-common.c (is_typedef_decl): Move this definition ...
27907 * tree.c (is_typedef_decl): ... here.
27908 (typdef_variant_p): Move definition here from cp/tree.c.
27909 * c-common.h (is_typedef_decl): Move this declaration ...
27910 * tree.h (is_typedef_decl): ... here.
27911 (typedef_variant_p): Move declaration here from cp/cp-tree.h
27912 * dwarf2out.c (is_naming_typedef_decl): New function.
27913 (gen_tagged_type_die): Split out of ...
27914 (gen_type_die_with_usage): ... this function. When an anonymous
27915 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27916 is emitted for the typedef.
27917 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27918 anonymous tagged types.
27920 2010-05-27 Jason Merrill <jason@redhat.com>
27922 * print-tree.c (debug_vec_tree): New fn.
27923 (print_vec_tree): New fn.
27924 * tree.h: Declare them.
27925 * gdbinit.in (pvt): New command.
27927 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
27929 * gdbinit.in (pdd): New command.
27931 2010-05-27 Jan Hubicka <jh@suse.cz>
27933 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
27934 (update_caller_keys): Return early if there are no callers;
27935 only update fibheap when decresing the key.
27936 (update_callee_keys): Avoid recursion.
27937 (decide_inlining_of_small_functions): When badness does not match;
27938 re-insert into fibheap.
27940 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
27942 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
27943 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
27944 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
27945 (ALL_HOST_OBJS): Now a union of the above two.
27946 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
27947 all files in ALL_HOST_FRONTEND_OBJS.
27948 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
27950 * c-common.c: Pretend to be a backend file by undefining
27951 IN_GCC_FRONTEND (still need rtl.h here).
27953 2010-05-27 Jan Hubicka <jh@suse.cz>
27955 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
27956 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
27958 2010-05-27 Jan Hubicka <jh@suse.cz>
27960 * sched-ebb.c: Rename struct deps to struct deps_desc.
27962 * sel-sched-ir.c: Likewise.
27963 * sched-deps.c: Likewise.
27964 * sched-int.h: Likewise.
27965 * sched-rgn.c: Likewise.
27967 2010-05-27 Jon Beniston <jon@beniston.com>
27970 * config/lm32/lm32.h: Remove definition of
27971 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
27973 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
27976 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
27978 2010-05-27 Richard Guenther <rguenther@suse.de>
27980 PR tree-optimization/44284
27981 * tree-vect-stmts.c (vectorizable_assignment): Handle
27982 sign-changing conversions as simple copy.
27984 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
27986 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
27988 (__gthread_active_p): Check for pthread_create if compiling against
27991 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
27993 Support compilation for Android platform. Reimplement -mandroid.
27995 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
27996 (*android*): Set ANDROID_DEFAULT.
27997 (arm*-*-linux*): Include linux-android.h.
27998 (arm*-*-eabi*): Don't include previous -mandroid implementation.
27999 * config/arm/eabi.h: Remove, move Android-specific parts ...
28000 * config/linux-android.h: ... here. New file.
28001 * config/arm/eabi.opt: Rename to ...
28002 * config/linux-android.opt: ... this.
28003 (mandroid): Allow -mno-android option. Initialize based on
28005 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
28006 Move logic to corresponding LINUX_TARGET_* macros.
28007 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
28008 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
28009 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
28010 Android definitions.
28011 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
28012 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
28015 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28017 Add support for Bionic C library
28019 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
28021 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
28022 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
28024 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
28025 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
28026 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
28027 to support multiple C libraries. Handle Bionic.
28028 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
28029 (BIONIC_DYNAMIC_LINKER64): Define.
28030 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
28032 (TARGET_HAS_SINCOS): Enable for Bionic.
28034 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
28035 the last option specified on command line take effect.
28036 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
28038 (mglibc, muclibc): Update.
28040 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
28041 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
28044 * doc/invoke.texi (-mglibc, -muclibc): Update.
28045 (-mbionic): Document.
28047 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28049 * c-common.h (c_register_addr_space): Add prototype.
28050 (ADDR_SPACE_KEYWORD): Remove.
28051 * c-common.c (c_register_addr_space): New function.
28052 (c_addr_space_name): Reimplement.
28053 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
28055 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
28056 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
28058 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
28059 Remove TARGET_ADDR_SPACE_KEYWORDS.
28061 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28063 * input.c: New file.
28064 * input.h (main_input_filename): Move declaration to toplev.h.
28065 * toplev.c (input_location, line_table): Move to input.c
28066 * toplev.h (main_input_filename): Move declaration from input.h.
28067 * tree.c (expand_location): Move to input.c.
28068 * Makefile.in (OBJS-common): Add input.o.
28069 (input.o): Add dependencies.
28071 2010-05-27 Richard Guenther <rguenther@suse.de>
28073 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
28074 for non-existant files.
28075 (fork_execute): Mark args_name file as deleted.
28077 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28080 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
28081 (narrow_signed_type): Likewise.
28083 2010-05-26 Jan Hubicka <jh@suse.cz>
28085 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
28086 edge only when checking is enabled; check using former_clone_of;
28087 check inline clones too.
28088 (cgraph_materialize_clone): Record former_clone_of pointer.
28089 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
28090 combining redirections; dump args_to_skip bitmap
28091 (cgraph_materialize_all_clones): Do no redirection here.
28092 * ipa-inline.c (inline_transform): Do redirection here.
28093 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
28096 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28098 * config/avr/avr-c.c: Do not include regs.h.
28099 Include cpplib.h for cpp_define and tree.h for c-common.h.
28100 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
28101 * config/avr/t-avr: Fix dependencies for avr-c.o.
28103 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28105 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
28106 string instead of SYMBOL_REF rtx.
28107 * rtl.h (set_stack_check_libfunc): Move prototype from here...
28108 * libfuncs.h: ...to here. Adjust for explow.c change.
28110 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28112 * pretty-print.c: Don't include ggc.h.
28113 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
28114 (identifier_to_locale): Use them for allocation.
28115 * pretty-print.h (identifier_to_locale_alloc,
28116 identifier_to_locale_free): Declare.
28117 * toplev.c (alloc_for_identifier_to_locale): New.
28118 (general_init): Set identifier_to_locale_alloc and
28119 identifier_to_locale_free.
28120 * Makefile.in (pretty-print.o): Update dependencies.
28122 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28124 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
28125 pointer types if they have different alignment or mode.
28127 2010-05-26 Anatoly Sokolov <aesok@post.ru>
28129 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28130 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28131 * config/sparc/sparc-protos.h (function_value): Remove declaration.
28132 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
28133 sparc_function_value_regno_p): New functions.
28134 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28135 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28136 (function_value): Rename to...
28137 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
28138 argument to 'outgoing'.
28139 (function_arg_record_value, function_arg_union_value,
28140 function_arg_vector_value): Update comment.
28142 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28144 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
28145 (fde_needed_for_eh_p): New predicate.
28146 (output_call_frame_info): Use it throughout to decide whether FDEs
28147 are needed for EH purpose.
28148 (dwarf2out_begin_prologue): Reorder assignments.
28150 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28152 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
28153 special case loop->header.
28154 (is_predicated): New.
28155 (if_convertible_loop_p): Call it.
28157 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28159 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
28160 iterator in parameter. Do not generate code during the analysis.
28161 (tree_if_convert_cond_stmt): Removed.
28162 (tree_if_convert_stmt): Removed.
28163 (predicate_bbs): New.
28164 (if_convertible_loop_p): Call predicate_bbs.
28165 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
28166 now contains all the analysis part.
28168 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28170 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
28171 statements in the analysis part.
28172 (tree_if_convert_stmt): Update comment.
28173 (remove_conditions_and_labels): New.
28174 (combine_blocks): Call remove_conditions_and_labels.
28175 (tree_if_conversion): Update comment.
28177 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28179 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
28180 than 2 predecessors or more than 2 successors.
28182 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28184 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
28185 of loops in which the data dependence analysis fails.
28187 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28189 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
28190 CDI_POST_DOMINATORS.
28191 (tree_if_conversion): Same.
28193 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28195 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
28197 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28199 * tree-if-conv.c: Update copyright years. Fix comments.
28202 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
28204 * builtin-types.def (BT_INT128): New primitive type.
28205 (BT_UINT128): Likewise.
28206 * c-common.c (c_common_r): Add __int128 keyword.
28207 (c_common_type_for_size): Handle __int128.
28208 (c_common_type_for_mode): Likewise.
28209 (c_common_signed_or_unsigned_type): Likewise.
28210 (c_common_nodes_and_builtins): Add builtin type
28211 if target supports 128-bit integer scalar.
28212 * c-common.h (enum rid): Add RID_INT128.
28213 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
28214 if target supports 128-bit integer scalar.
28215 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
28216 (finish_declspecs): Likewise.
28217 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
28218 (c_token_starts_declspecs): Likewise.
28219 (c_parser_declspecs): Likewise.
28220 (c_parser_attributes): Likewise.
28221 (c_parser_objc_selector): Likewise.
28222 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
28223 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
28224 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
28225 * tree.c (make_or_reuse_type): Likewise.
28226 (make_unsigned_type): Likewise.
28227 (build_common_tree_nodes_2): Likewise.
28228 * tree.h (enum integer_type_kind): Add itk_int128 and
28229 itk_unsigned_int128.
28230 (int128_integer_type_node): New define.
28231 (int128_unsigned_type_node): New define.
28232 * doc/extend.texi: Add documentation about __int128 type.
28234 2010-05-26 Richard Guenther <rguenther@suse.de>
28236 * tree-ssa-sccvn.c (copy_nary): Adjust.
28237 (copy_phis): Rename to ...
28238 (copy_phi): ... this. Adjust.
28239 (copy_references): Rename to ...
28240 (copy_reference): ... this. Adjust.
28241 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
28242 result into the valid table.
28244 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28246 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
28247 insn-config.h, insn-codes.h, recog.h, and optabs.h.
28249 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28251 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
28253 2010-05-26 Richard Guenther <rguenther@suse.de>
28255 * opts.c (common_handle_option): Handle OPT_Ofast.
28257 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28259 * diagnostic.c: Don't include opts.h.
28260 (permissive_error_option): Define.
28261 (diagnostic_initialize): Take n_opts parameter. Allocate memory
28262 for classify_diagnostic. Don't use memset for
28263 classify_diagnostic. Initialize new and recently added fields.
28264 (diagnostic_classify_diagnostic): Use context->n_opts instead of
28266 (diagnostic_report_diagnostic): Pass context parameter to
28267 diagnostic_report_warnings_p. Use option_enabled and option_name
28268 hooks from context.
28269 (emit_diagnostic): Use permissive_error_option.
28270 (permerror): Likewise.
28271 * diagnostic.h: Don't include options.h.
28272 (struct diagnostic_context): Add n_opts, opt_permissive,
28273 inhibit_warnings, warn_system_headers, option_enabled and
28274 option_name fields. Change classify_diagnostic to a pointer.
28275 * opts-diagnostic.h: New file.
28276 * opts.c: Include opts-diagnostic.h.
28277 (common_handle_option): Set global_dc fields for -Wfatal-errors,
28278 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
28279 (option_name): New function.
28280 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
28281 (c_common_handle_option): Set global_dc->permissive for
28283 * c-common.c (c_cpp_error): Save and restore
28284 global_dc->warn_system_headers, not variable warn_system_headers.
28285 * toplev.c: Include opts-diagnostic.h.
28286 (general_init): Update call to diagnostic_initialize. Set
28287 global_dc->show_column, global_dc->option_enabled and
28288 global_dc->option_name.
28289 (process_options): Don't set global_dc fields here.
28290 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
28291 (diagnostic.o, opts.o, toplev.o): Update dependencies.
28293 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
28295 * config/picochip/picochip.md (movsi): Split a movsi from a
28296 const after reload.
28298 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28300 * ggc-zone.c: Update copyright year.
28301 (poison_region): Mark memory for Valgrind as undefined before
28302 memset () call and inaccessible afterwards.
28303 (ggc_pch_total_size): Change type of i to int.
28305 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28307 * ggc-common.c (ggc_free_overhead): Allow empty slot.
28309 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28311 * ggc-common.c: Update copyright year.
28312 (ggc_rlimit_bound): Remove prototype. Compile only if
28313 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
28314 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
28315 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
28316 (ggc_min_heapsize_heuristic): Likewise.
28318 2010-05-26 Richard Guenther <rguenther@suse.de>
28320 PR rtl-optimization/44164
28321 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
28322 no-common access-path disambiguation.
28323 (indirect_ref_may_alias_decl_p): Adjust.
28324 (indirect_refs_may_alias_p): Likewise.
28325 (refs_may_alias_p_1): Likewise.
28327 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28329 * c-typeck.c: Do not include expr.h.
28331 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28333 * rtl.h (decl_default_tls_model): Move prototype from here...
28334 * output.h: ...to here.
28335 * c-decl.c: Do not include rtl.h.
28336 * c-pragma.c: Likewise.
28337 * c-parser.c: Likewise.
28338 * c-gimplify.c: Likewise. And also not hard-reg-set.
28339 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
28340 FIXME note for it. Add a FIXME note for expr.h.
28341 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
28342 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
28345 2010-05-26 Jakub Jelinek <jakub@redhat.com>
28348 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
28349 or total_size is larger than red zone size for non-V4 ABI, emit a
28350 stack_tie resp. frame_tie insn before stack pointer restore.
28351 * config/rs6000/rs6000.md (frame_tie): New insn.
28353 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
28355 * function.h (struct function): Add can_throw_non_call_exceptions bit.
28356 * lto-streamer-in.c (input_function): Stream it in.
28357 * lto-streamer-out.c (output_function): Stream it out.
28358 * function.c (allocate_struct_function): Set it.
28359 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
28360 for flag_non_call_exceptions.
28361 * cfgbuild.c (control_flow_insn_p): Likewise.
28362 (make_edges): Likewise.
28363 * cfgexpand.c (expand_stack_alignment): Likewise.
28364 * combine.c (distribute_notes): Likewise.
28365 * cse.c (cse_extended_basic_block): Likewise.
28366 * except.c (insn_could_throw_p): Likewise.
28367 * gcse.c (simple_mem): Likewise.
28368 * ipa-pure-const.c (check_call): Likewise.
28369 (check_stmt ): Likewise.
28370 * lower-subreg.c (lower-subreg.c): Likewise.
28371 * optabs.c (emit_libcall_block): Likewise.
28372 (prepare_cmp_insn): Likewise.
28373 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
28374 * postreload.c (rest_of_handle_postreload): Likewise.
28375 * reload1.c (reload_as_needed): Likewise.
28376 (emit_input_reload_insns): Likewise.
28377 (emit_output_reload_insns): Likewise.
28378 (fixup_abnormal_edges): Likewise.
28379 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
28380 * store-motion.c (find_moveable_store): Likewise.
28381 * tree-eh.c (stmt_could_throw_p): Likewise.
28382 (tree_could_throw_p): Likewise.
28383 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28384 * config/arm/arm.c (arm_expand_prologue): Likewise.
28385 (thumb1_expand_prologue): Likewise.
28386 * config/rx/rx.md (cbranchsf4): Likewise.
28388 * config/s390/s390.c (s390_emit_prologue): Likewise.
28389 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
28390 (inline_forbidden_into_p): New predicate.
28391 (expand_call_inline): Use it to forbid inlining.
28392 (tree_can_inline_p): Likewise.
28394 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28396 * config/i386/i386-c.c: Do not include rtl.h.
28397 * config/i386/t-i386: Update dependencies.
28399 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28401 * attribs.c: Do not include rtl.h.
28402 * Makefile.in: Update dependencies.
28404 2010-05-25 Anatoly Sokolov <aesok@post.ru>
28406 * double-int.h (double_int_and): New.
28407 * combine.c (try_combine): Clean up, use double_int_* and
28408 immed_double_int_const functions.
28410 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28412 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
28413 stderr to /dev/null instead of grep -q.
28414 * configure: Regenerate.
28416 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28418 * Makefile.in (EXCEPT_H): Fix typo.
28420 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
28422 * ira-build.c (update_conflict_hard_reg_costs): New.
28423 (ira_build): Call update_conflict_hard_reg_costs.
28425 2010-05-25 Jakub Jelinek <jakub@redhat.com>
28428 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
28430 (intersect_loc_chains): Walk the s2var's loc_chain together
28431 with s1node chain as long as the locations are equal, don't
28432 call find_loc_in_1pdv in that case.
28435 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
28436 (copy_bind_expr): ... instead of here.
28437 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
28438 if the block hasn't been remapped.
28439 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
28440 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
28442 2010-05-25 Richard Guenther <rguenther@suse.de>
28444 PR middle-end/44069
28445 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
28446 out-of-bounds array accesses.
28448 2010-05-25 Richard Guenther <rguenther@suse.de>
28450 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
28451 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
28452 (run_gcc): Re-organize to make cleanup easier.
28454 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28456 * config/s390/s390.c (optimization_options): Fix and move the
28457 flag_prefetch_loop_arrays override ...
28458 (override_options): ... here.
28460 2010-05-25 Joseph Myers <joseph@codesourcery.com>
28462 * diagnostic.c: Don't include plugin.h.
28463 (diagnostic_report_diagnostic): Don't handle plugins specially
28464 here. Pass context to internal_error callback.
28465 * diagnostic.h (struct diagnostic_context): Add context parameter
28466 to internal_error callback.
28467 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
28468 * plugin.h (struct diagnostic_context): Declare.
28469 (warn_if_plugins, plugins_internal_error_function): Declare.
28470 * toplev.c (general_init): Set global_dc->internal_error.
28471 * Makefile.in (diagnostic.o): Update dependencies.
28473 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
28475 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
28476 * config/rs6000/t-darwin64: New.
28477 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
28480 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
28483 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
28484 match the original (and intended) behaviour before r159557. This
28485 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
28488 2010-05-25 Richard Guenther <rguenther@suse.de>
28490 * doc/invoke.texi: Document -Ofast.
28491 * target.h (struct gcc_target): Add handle_ofast.
28492 * target-def.h (TARGET_HANDLE_OFAST): Add.
28493 (TARGET_INITIALIZER): Adjust.
28494 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
28495 * common.opt (Ofast): Add.
28497 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
28499 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
28500 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
28502 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
28505 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
28506 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
28507 false_rtx. Use false_rtx to compute the correct *ptest for reversed
28508 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
28510 2010-05-25 Jakub Jelinek <jakub@redhat.com>
28512 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
28513 DW_OP_minus with negated offset instead of DW_OP_plus.
28514 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
28516 2010-05-25 Wei Guozhi <carrot@google.com>
28518 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
28519 tst instruction and a new alternative.
28520 * config/arm/constraints.md (Pu): New constraint.
28522 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
28524 * function.c (assign_stack_local_1): Initialize variable
28525 to avoid warning when bootstrapping at -O3.
28527 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
28529 * configure.ac (all_lang_makefiles): Remove everything related to it.
28530 * configure: Regenerate.
28531 * Makefile.in: Fix reference to ada Make-lang.in.
28532 Remove support for LANG_MAKEFILES.
28534 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
28535 Sandra Loosemore <sandra@codesourcery.com>
28537 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
28538 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
28539 description. Add arm_neon_fp16_ok.
28540 (Add Options): Add arm_neon and arm_neon_fp16.
28542 2010-05-24 Joseph Myers <joseph@codesourcery.com>
28544 * diagnostic.c: Don't include flags.h.
28545 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
28546 context parameters. Check flags in the context passed as a parameter.
28547 (diagnostic_build_prefix): Add context parameter. Check
28548 show_column flag in context.
28549 (diagnostic_action_after_output): Check fatal_errors flag in context.
28550 (diagnostic_report_current_module): Check show_column flag in context.
28551 (default_diagnostic_starter): Update call to
28552 diagnostic_build_prefix.
28553 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
28554 (emit_diagnostic): Pass context to permissive_error_kind.
28555 (permerror): Pass context to permissive_error_kind.
28556 * diagnostic.h (struct diagnostic_context): Add show_column,
28557 pedantic_errors, permissive and fatal_errors fields.
28558 (diagnostic_build_prefix): Update prototype.
28560 * toplev.c (process_options): Set flags in global_dc from
28561 flag_show_column, flag_pedantic_errors, flag_permissive,
28563 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
28564 to diagnostic_build_prefix.
28565 * Makefile.in (diagnostic.o): Update dependencies.
28567 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
28569 * config/i386/ia32intrin.h (__crc32q): Define only if
28570 __SSE4_2__ is defined.
28572 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
28575 PR middle-end/43602
28576 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
28577 DECL_VISIBILITY_SPECIFIED.
28578 (emutls_decl): Set DECL_PRESERVE_P and copy
28579 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
28580 (emutls_finalize_control_var): New callback.
28581 (emutls_finish): Finalize emutls control variables.
28582 * toplev.c (compile_file): Move the call to emutls_finish ()
28583 before varpool_assemble_pending_decls ().
28585 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
28587 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
28588 added to the preprocessor condition.
28590 2010-05-24 Paul Brook <paul@codesourcery.com>
28592 * gengtype-lex.l: Add HARD_REG_SET.
28593 * expr.c (expand_expr_real_1): Record writes to hard registers.
28594 * function.c (rtl_data): Add asm_clobbers.
28595 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
28596 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
28597 Use crtl->asm_clobbers.
28599 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28601 * doc/makefile.texi (Makefile): Mention stages 'profile'
28602 and 'feedback' for profiledbootstrap.
28604 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
28607 * config/i386/i386.c (def_builtin): Properly check
28608 OPTION_MASK_ISA_64BIT.
28610 2010-05-23 Joseph Myers <joseph@codesourcery.com>
28612 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
28613 typedefs with different but compatible types. Allow duplicate
28614 typedefs with the same type except for pedantic non-C1X, but give
28615 warning for variably modified types.
28616 * c-typeck.c (tagged_types_tu_compatible_p,
28617 function_types_compatible_p, type_lists_compatible_p,
28618 comptypes_internal): Add parameter different_types_p; set
28619 *different_types_p for different but compatible types. All
28621 (comptypes_check_different_types): New.
28622 * c-tree.h (comptypes_check_different_types): Declare.
28624 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
28626 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
28627 * jump.c: Include basic-block.h.
28628 * profile.c: Likewise.
28629 * tree-profile.c: Likewise.
28630 * coverage.c: Likewise.
28631 * basic-block.h (optimize_function_for_size_p): Move to function.h.
28632 (optimize_function_for_speed_p): Likewise.
28633 * function.h (optimize_function_for_size_p,
28634 optimize_function_for_speed_p): Moved here from basic-block.h.
28635 * Makefile.in: Update dependencies.
28637 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28639 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
28640 before calling make; allow override through $MAKE.
28641 * doc/invoke.texi (Optimize Options): Document override.
28643 2010-05-23 Anatoly Sokolov <aesok@post.ru>
28645 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
28646 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28647 (rs6000_mode_dependent_address_ptr): Make static.
28648 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28649 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
28652 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
28655 * config/i386/i386.c: Make sure that the correct regparm is passed.
28657 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
28659 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
28660 * sbitmap.c: ...to here to internalize sbitmap element access.
28661 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
28662 Explain why basic-block.h is included.
28663 * function.h: Include tm.h for CUMULATIVE_ARGS.
28664 * Makefile.in: Update dependencies.
28666 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
28668 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
28670 * sbitmap.h (struct sbitmap_def): Do not typedef here.
28671 * sbitmap.c: Include sbitmap.h.
28672 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
28673 hard-reg-set.h. Split everything related to regsets out from here...
28674 * regset.h: ...to here. New file.
28675 * df.h: Include regset.h and sbitmap.h.
28676 * tree-flow.h: Likewise.
28677 * cfgloop.h: Likewise.
28678 * except.h: Do not include sbitmap.h. Include hashtab.h.
28679 * cgraph.h: Include vec.h and function.h.
28680 * reload.h (struct insn_chain): Change types of live_throughout
28681 and dead_or_set from regset_head to bitmap_head.
28682 (compute_use_by_pseudos): Be defined also if regset.h is not included.
28683 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
28684 spilled_regs from regset_head to bitmap_head to avoid dependency
28686 * sel-sched-ir.h: Include regset.h.
28687 * reload.c: Include df.h before reload.h.
28688 * caller-save.c: Likewise.
28689 * reload1.c: Likewise.
28691 (mark_elimination): Update type of r to bitmap, consistent with
28693 * dominance.c: Include bitmap.h.
28694 * modulo-sched.c: Include df.h.
28695 * cfganal.c: Include bitmap.h and sbitmap.h.
28696 * cfgbuild.c: Include sbitmap.h.
28697 * lcm.c: Include sbitmap.h.
28698 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
28699 * domwalk.c: Include sbitmap.h, exclude ggc.h.
28700 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
28701 * cselib.c: Include bitmap.h.
28702 * tree-optimize.c: Include regset.h.
28703 * stmt.c: Include bitmap.h.
28704 * Makefile.in: Update dependencies.
28706 2010-05-22 Jan Hubicka <jh@suse.cz>
28708 * cgraph.h (struct varpool_node): Add same_comdat_group.
28709 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
28711 (output_varpool): Update call of lto_output_varpool_node.
28712 (input_varpool): Read same_comdat_group pointer.
28713 (input_varpool_1): Fixup same_comdat_group pointer.
28714 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
28715 group is needed, all are.
28716 * varpool.c (varpool_remove_node): Remove node from same comdat group
28718 (varpool_analyze_pending_decls): Walk same comdat groups.
28720 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
28722 * rtl.h (union rtunion_def): Remove rt_bit member.
28723 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
28724 * print-rtl (print_rtx): Do not print the member.
28725 * gengtype.c (adjust_field_rtx_def): Do not handle it.
28726 * gengenrtl.c (type_from_format): Likewise.
28727 (accessor_from_format): Likewise.
28729 2010-05-22 Joseph Myers <joseph@codesourcery.com>
28731 * dbgcnt.c: Include toplev.h instead of errors.h.
28732 * ira-emit.c: Don't include errors.h.
28733 * ira.c: Include toplev.h instead of errors.h.
28734 * lto-compress.c: Include toplev.h instead of errors.h.
28735 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
28736 ira.o, dbgcnt.o): Update dependencies.
28738 2010-05-22 Richard Guenther <rguenther@suse.de>
28740 * gimple.c (gimple_types_compatible_p): Check type qualifications
28741 before merging pointer to complete and pointer to incomplete type.
28742 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
28743 we use our own resolution algorithm. The gold linker plugin
28744 doesn't do the job we want it to do here.
28746 2010-05-22 Anatoly Sokolov <aesok@post.ru>
28748 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28749 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28750 (sparc_mode_dependent_address_p): New function.
28752 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
28754 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28756 * timevar.c: Do not include any core headers.
28757 (timevar_print): De-i18n-ize.
28758 (print_time): Likewise.
28759 * timevar.h (timevar_push, timevar_pop): Make inline functions.
28761 2010-05-21 Joseph Myers <joseph@codesourcery.com>
28763 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28765 (diagnostic_initialize): Initialize x_data not last_function.
28766 (diagnostic_report_current_function): Move to tree-diagnostic.c.
28767 (default_diagnostic_starter): Call
28768 diagnostic_report_current_module not
28769 diagnostic_report_current_function.
28770 (diagnostic_report_diagnostic): Initialize x_data not
28772 (verbatim): Likewise.
28773 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28775 (struct diagnostic_context): Change last_function to x_data.
28776 (diagnostic_auxiliary_data): Replace with
28777 diagnostic_context_auxiliary_data and
28778 diagnostic_info_auxiliary_data.
28779 (diagnostic_last_function_changed, diagnostic_set_last_function,
28780 diagnostic_report_current_function): Move to tree-diagnostic.h.
28781 (print_declaration, dump_generic_node, print_generic_stmt,
28782 print_generic_stmt_indented, print_generic_expr,
28783 print_generic_decl, debug_c_tree, dump_omp_clauses,
28784 print_call_name, debug_generic_expr, debug_generic_stmt,
28785 debug_tree_chain, default_tree_printer): Move to
28786 tree-pretty-print.h.
28787 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28788 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28789 gimple-pretty-print.h.
28790 * pretty-print.c: Don't include tree.h
28791 (pp_base_format): Don't handle %K here.
28792 (pp_base_tree_identifier): Move to tree-pretty-print.c.
28793 * pretty-print.h (text_info): Change abstract_origin to x_data.
28794 (pp_tree_identifier, pp_unsupported_tree,
28795 pp_base_tree_identifier): Move to tree-pretty-print.h.
28796 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28797 tree-pretty-print.h: New files.
28798 * tree-pretty-print.c: Include tree-pretty-print.h.
28799 (percent_K_format): New. Moved from pretty-print.c.
28800 (pp_base_tree_identifier): Move from pretty-print.c.
28801 * c-objc-common.c: Include tree-pretty-print.h.
28802 (c_tree_printer): Handle %K here.
28803 * langhooks.c: Include tree-diagnostic.h.
28804 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28805 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28806 (default_tree_printer): Handle %K using percent_K_format.
28807 (general_init): Use default_tree_diagnostic_starter.
28808 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28809 (free_lang_data): Use default_tree_diagnostic_starter.
28810 * c-pretty-print.c: Include tree-pretty-print.h.
28811 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28812 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28813 * dwarf2out.c: Include tree-pretty-print.h.
28814 * except.c: Include tree-pretty-print.h.
28815 * gimple-pretty-print.c: Include tree-pretty-print.h and
28816 gimple-pretty-print.h.
28817 * gimplify.c: Include tree-pretty-print.h.
28818 * graphite-poly.c: Include tree-pretty-print.h and
28819 gimple-pretty-print.h.
28820 * ipa-cp.c: Include tree-pretty-print.h.
28821 * ipa-inline.c: Include gimple-pretty-print.h.
28822 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28823 * ipa-pure-const.c: Include gimple-pretty-print.h.
28824 * ipa-struct-reorg.c: Include tree-pretty-print.h and
28825 gimple-pretty-print.h.
28826 * ipa-type-escape.c: Include tree-pretty-print.h.
28827 * print-rtl.c: Include tree-pretty-print.h.
28828 * print-tree.c: Include gimple-pretty-print.h.
28829 * sese.c: Include tree-pretty-print.h.
28830 * tree-affine.c: Include tree-pretty-print.h.
28831 * tree-browser.c: Include tree-pretty-print.h.
28832 * tree-call-cdce.c: Include gimple-pretty-print.h.
28833 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28834 * tree-chrec.c: Include tree-pretty-print.h.
28835 * tree-data-ref.c: Include tree-pretty-print.h and
28836 gimple-pretty-print.h.
28837 * tree-dfa.c: Include tree-pretty-print.h.
28838 * tree-if-conv.c: Include tree-pretty-print.h and
28839 gimple-pretty-print.h.
28840 * tree-inline.c: Include tree-pretty-print.h.
28841 * tree-into-ssa.c: Include tree-pretty-print.h and
28842 gimple-pretty-print.h.
28843 * tree-nrv.c: Include tree-pretty-print.h.
28844 * tree-object-size.c: Include tree-pretty-print.h and
28845 gimple-pretty-print.h.
28846 * tree-outof-ssa.c: Include tree-pretty-print.h and
28847 gimple-pretty-print.h.
28848 * tree-parloops.c: Include tree-pretty-print.h and
28849 gimple-pretty-print.h.
28850 * tree-predcom.c: Include tree-pretty-print.h and
28851 gimple-pretty-print.h.
28852 * tree-scalar-evolution.c: Include tree-pretty-print.h and
28853 gimple-pretty-print.h.
28854 * tree-sra.c: Include tree-pretty-print.h.
28855 * tree-ssa-address.c: Include tree-pretty-print.h.
28856 * tree-ssa-alias.c: Include tree-pretty-print.h.
28857 * tree-ssa-ccp.c: Include tree-pretty-print.h and
28858 gimple-pretty-print.h.
28859 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
28860 * tree-ssa-copy.c: Include tree-pretty-print.h and
28861 gimple-pretty-print.h.
28862 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
28863 * tree-ssa-dce.c: Include tree-pretty-print.h and
28864 gimple-pretty-print.h.
28865 * tree-ssa-dom.c: Include tree-pretty-print.h and
28866 gimple-pretty-print.h.
28867 * tree-ssa-dse.c: Include gimple-pretty-print.h.
28868 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
28869 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
28870 * tree-ssa-live.c: Include tree-pretty-print.h and
28871 gimple-pretty-print.h.
28872 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
28873 gimple-pretty-print.h.
28874 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
28875 gimple-pretty-print.h.
28876 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
28877 gimple-pretty-print.h.
28878 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
28879 gimple-pretty-print.h.
28880 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
28881 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
28882 * tree-ssa-operands.c: Include tree-pretty-print.h and
28883 gimple-pretty-print.h.
28884 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
28885 gimple-pretty-print.h.
28886 * tree-ssa-pre.c: Include tree-pretty-print.h and
28887 gimple-pretty-print.h.
28888 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
28889 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
28890 gimple-pretty-print.h.
28891 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
28892 gimple-pretty-print.h.
28893 * tree-ssa-sink.c: Include gimple-pretty-print.h.
28894 * tree-ssa-ter.c: Include tree-pretty-print.h and
28895 gimple-pretty-print.h.
28896 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
28897 * tree-ssa.c: Include tree-pretty-print.h and
28898 gimple-pretty-print.h.
28899 * tree-stdarg.c: Include gimple-pretty-print.h.
28900 * tree-switch-conversion.c: Include gimple-pretty-print.h.
28901 * tree-tailcall.c: Include tree-pretty-print.h and
28902 gimple-pretty-print.h.
28903 * tree-vect-data-refs.c: Include tree-pretty-print.h and
28904 gimple-pretty-print.h.
28905 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
28906 gimple-pretty-print.h.
28907 * tree-vect-loop.c: Include tree-pretty-print.h and
28908 gimple-pretty-print.h.
28909 * tree-vect-patterns.c: Include gimple-pretty-print.h.
28910 * tree-vect-slp.c: Include tree-pretty-print.h and
28911 gimple-pretty-print.h.
28912 * tree-vect-stmts.c: Include tree-pretty-print.h and
28913 gimple-pretty-print.h.
28914 * tree-vectorizer.c: Include tree-pretty-print.h.
28915 * tree-vrp.c: Include tree-pretty-print.h and
28916 gimple-pretty-print.h.
28917 * value-prof.c: Include tree-pretty-print.h and
28918 gimple-pretty-print.h.
28919 * var-tracking.c: Include tree-pretty-print.h.
28920 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
28921 (tree-diagnostic.o): New dependencies.
28922 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
28923 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
28924 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
28925 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
28926 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
28927 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
28928 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
28929 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
28930 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
28931 tree-ssa-address.o, tree-ssa-loop-niter.o,
28932 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
28933 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
28934 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
28935 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
28936 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
28937 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
28938 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
28939 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
28940 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
28941 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
28942 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
28943 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
28944 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
28945 tree-switch-conversion.o, var-tracking.o, value-prof.o,
28946 cfgexpand.o, pretty-print.o): Update dependencies.
28948 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
28950 * tree-ssa-structalias.c: Remove tm_p.h from include.
28952 2010-05-21 Jeff Law <law@redhat.com>
28954 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
28956 2010-05-21 Jason Merrill <jason@redhat.com>
28958 * tree-eh.c (cleanup_is_dead_in): New.
28959 (lower_try_finally): Don't generate a dead cleanup region.
28960 (lower_cleanup): Likewise.
28962 2010-05-21 Jakub Jelinek <jakub@redhat.com>
28965 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
28966 unchain each use from the cyclic next_regno_use chain first.
28968 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
28970 * real: Do not include gmp.h, mpfr.h, and mpc.h.
28971 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
28972 (real_value_negate, real_value_abs): New prototypes.
28973 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
28974 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
28975 new include file for interface between MPFR and REAL_VALUE_TYPE.
28976 * real.c: Include realmpfr.h.
28977 (real_arithmetic2): Remove legacy function.
28978 (real_value_negate): New.
28979 (real_value_abs): New.
28980 (mfpr_from_real, real_from_mpfr): Move from here...
28981 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
28982 * builtins.c: Include realmpfr.h.
28983 * fold-const.c: Include realmpfr.h.
28984 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
28985 (fold_negate_const): Likewise.
28986 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
28987 * toplev.c: Include realmpfr.h.
28988 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
28989 and real_value_negate.
28990 * fixed-value.c (check_real_for_fixed_mode): Likewise.
28991 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
28992 (vfp3_const_double_index): Likewise.
28993 (arm_print_operand): Likewise.
28994 * Makefile.in: Update dependencies.
28996 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28998 * config/s390/s390.c (override_options): Increase the default
28999 of max-completely-peel-times.
29001 2010-05-21 Julian Brown <julian@codesourcery.com>
29002 Mark Mitchell <mark@codesourcery.com>
29004 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
29005 sibling calls for Thumb-1.
29006 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
29007 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
29009 (*call_insn, *call_value_insn): Don't use for Thumb-2.
29010 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
29012 (return): New expander.
29013 (*arm_return): New name for ARM return insn.
29014 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
29016 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
29018 * config.gcc (sparc64-*-rtems*): New target.
29020 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29022 * tree.c (build_function_decl_skip_args): Fix grammar.
29023 (build_function_type_list_1): Fix typos, adjust formatting.
29025 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29027 * tree.h: Include real.h and fixed-value.h as basic datatypes.
29028 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
29029 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
29030 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
29031 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
29032 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
29033 tree-pretty-print.c, tree-loop-distribution.c,
29034 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
29035 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
29036 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
29037 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
29038 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
29039 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
29040 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
29041 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
29042 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
29043 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
29044 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
29045 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
29046 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
29047 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
29048 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
29049 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
29050 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
29051 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
29052 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
29053 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
29054 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
29055 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
29056 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
29057 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
29058 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
29059 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
29060 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
29061 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
29062 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
29063 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
29064 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
29065 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
29066 config/score/score7.c, config/score/score.c, config/arm/arm.c,
29067 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
29068 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
29069 config/bfin/bfin.c: Clean up redundant includes.
29070 * Makefile.in: Update accordingly.
29072 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29074 PR middle-end/44204
29075 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
29076 statement has no arguments.
29078 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
29081 * varasm.c (emutls_decl): Merge attributes to new decl.
29083 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
29085 PR middle-end/44101
29086 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
29087 around the uniquized constructor if its type requires a conversion.
29089 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29092 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
29093 at -O0 goto_locus of any of the incoming edges differs from
29094 goto_locus of outgoing edge, or gimple_location of any of the
29097 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
29099 * ira.c (ira_non_ordered_class_hard_regs): Define.
29100 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
29101 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
29102 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
29103 cost of unaligned hard regs when allocating multi-reg pseudos.
29105 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
29107 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
29108 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
29109 for TARGET_NO_FLOAT.
29110 * config/mips/mips.c (mips_file_start): Expand conditional expression
29111 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
29112 (mips_override_options): Move -mno-float override -msoft-float and
29114 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
29115 Condition(TARGET_SUPPORTS_NO_FLOAT).
29116 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
29117 __mips_no_float here.
29118 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
29119 (TARGET_SUPPORTS_NO_FLOAT): Define.
29120 * config/mips/sdemtk.opt: Delete.
29122 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
29124 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
29126 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
29129 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
29130 * configure: Regenerate.
29131 * config.in: Regenerate.
29132 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
29133 instead of sahf only for 64bit targets.
29135 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29138 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
29139 setup_ref_regs for DEBUG_INSNs.
29141 2010-05-20 Jan Hubicka <jh@suse.cz>
29143 PR middle-end/44197
29144 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
29146 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
29149 * df-scan.c (df_ref_compare): Stabilize sort.
29151 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29153 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
29154 argument. Don't use DW_OP_piece if offset is non-zero,
29155 put offset into second DW_OP_bit_piece argument.
29156 (dw_sra_loc_expr): Adjust callers. For memory expressions
29159 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
29162 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
29163 settings for 16-bit-constant "addo" alternative.
29165 2010-05-19 James E. Wilson <wilson@codesourcery.com>
29167 * config/mips/mips-dsp.md (add<DSPV:mode>3,
29168 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
29171 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
29172 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
29175 2010-05-19 Joseph Myers <joseph@codesourcery.com>
29177 * diagnostic.c (FLOAT, FFS): Don't undefine.
29178 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
29179 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
29182 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29184 * combine.c (propagate_for_debug): Call make_compound_operation
29185 on the source value.
29186 (try_combine): When implementing a split chosen by find_split_point,
29187 either copy i2src or set it to null. Assert that i2src is not null
29188 before substituting into CALL_INSN_FUNCTION_USAGE.
29190 2010-05-19 Anatoly Sokolov <aesok@post.ru>
29192 * double-int.h (double_int_ior): New function.
29193 * tree.h (build_int_cst_wide_type): Remove.
29194 * tree.c (build_int_cst_wide_type): Remove.
29195 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
29196 of build_int_cst_wide_type.
29197 * stor-layout.c (set_sizetype): (Ditto.).
29198 * dojump.c (do_jump): Use build_int_cstu instead of
29199 build_int_cst_wide_type.
29201 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
29203 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
29204 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
29205 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
29206 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
29207 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
29208 propagate the 'data' argument to copy_tree_r.
29209 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
29210 Propagate 'data' argument to walk_tree.
29211 (copy_if_shared): New function.
29212 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
29213 (unmark_visited): New function.
29214 (unshare_body): Call copy_if_shared instead of doing it manually.
29215 (unvisit_body): Call unmark_visited instead of doing it manually.
29217 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
29219 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
29220 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
29221 * hooks.c: Likewise.
29222 * target-def.h (TARGET_FOLD_BUILTIN): Define to
29223 hook_tree_tree_int_treep_bool_null.
29224 * target.h (struct gcc_target): Update signature of fold_builtin
29226 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
29227 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
29228 instead of the call expression.
29229 (fold_builtin_call_array): Pass n and argarray directly.
29230 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
29232 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
29233 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
29234 `i' and use it in place of `arity'.
29235 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
29236 Dereference `args' directly.
29237 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
29239 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29241 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29243 (Directives): Document optional dg-require-effective-target
29246 2010-05-19 Richard Guenther <rguenther@suse.de>
29249 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
29251 2010-05-19 Richard Guenther <rguenther@suse.de>
29253 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
29254 * common.opt (fwhopr=): New.
29255 * opts.c (common_handle_option): Handle OPT_fwhopr.
29256 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
29257 * collect2.c (main): Match -fwhopr*.
29258 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
29259 Execute ltrans stage in parallel when jobs is bigger than 1.
29261 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29263 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
29264 pentiumpro on Solaris 8/x86 with Sun as.
29265 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
29267 (gcc_cv_as_ix86_quad): Check for .quad directive.
29268 * configure: Regenerate.
29269 * config.in: Regenerate.
29270 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
29272 2010-05-19 Martin Jambor <mjambor@suse.cz>
29274 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
29275 also for indirect edges. Actual printing moved...
29276 (ipa_print_node_jump_functions_for_edge): ...here.
29277 (ipa_compute_jump_functions): Renamed to
29278 ipa_compute_jump_functions_for_edge and made static.
29279 (ipa_compute_jump_functions): New function.
29280 (make_edge_direct_to_target): Check if the number of arguments on
29281 the newly direct edge is the same as the number of parametrs of
29283 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
29284 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
29285 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
29286 analysis functions unconditionally, call the new
29287 ipa_analyze_params_uses on the node instead of every edge.
29289 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
29291 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
29293 (dump_mem_ref): Adopt debug code to handle a tree as step. This
29294 also checks for a constant int vs. non-constant but
29295 loop-invariant steps.
29296 (find_or_create_group): Change the sort algorithm to only consider
29297 steps that are constant ints.
29298 (idx_analyze_ref): Adopt code to handle a tree instead of a
29299 HOST_WIDE_INT for step.
29300 (gather_memory_references_ref): Handle tree instead of int and be
29301 prepared to see a NULL_TREE.
29302 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
29303 prefetches if the step cannot be calculated at compile time.
29304 (issue_prefetch_ref): Issue prefetches for non-constant but
29305 loop-invariant steps.
29307 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29310 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29312 * tree.h (build_call_list): Remove.
29313 * tree.c (build_call_list): Remove.
29315 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29317 * tree.h (build_call_list): Remove.
29318 * tree.c (build_call_list): Remove.
29320 2010-05-18 Jan Hubicka <jh@suse.cz>
29322 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
29324 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
29326 PR rtl-optimization/43332
29327 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
29329 2010-05-18 Anatoly Sokolov <aesok@post.ru>
29331 * tree.h (build_int_cstu): Implement as static inline.
29332 * tree.c (build_int_cstu): Remove function.
29333 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
29336 2010-05-18 Richard Guenther <rguenther@suse.de>
29339 * lto-wrapper.c (verbose): New variable. Initialize from -v.
29340 (debug): Initialize from -save-temps.
29341 (collect_execute): Print command-line when verbose.
29342 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
29343 for ltrans invocation. Produce -dumpbase flag again.
29344 (process_args): Remove.
29346 * collect2.c (maybe_run_lto_and_relink): Only pass object
29347 files to lto-wrapper.
29348 * gcc.c (LINK_COMMAND_SPEC): Likewise.
29350 2010-05-18 Jan Hubicka <jh@suse.cz>
29352 * opts.c (decode_options): Do not disable whopr at ipa_cp.
29353 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
29355 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
29358 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
29360 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
29363 2010-05-18 Jakub Jelinek <jakub@redhat.com>
29366 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
29367 rtx_equal_p inline.
29369 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
29371 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
29372 lto-macho as lto_binary_reader.
29374 * darwin.c (darwin_asm_named_section): Do not add assembler comment
29375 after .section directive; just print it before the directive instead.
29377 2010-05-17 Jan Hubicka <jh@suse.cz>
29379 * cgraph.c (cgraph_create_virtual_clone): Only check
29380 versionable_function_p when not in wpa and checking is enabled.
29381 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
29382 there are no more functions to materialize.
29384 2010-05-17 Jan Hubicka <jh@suse.cz>
29386 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
29387 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
29389 (output_cgraph): Call output_cgraph_opt_summary.
29390 (input_cgrpah): Call input_cgraph_opt_summary.
29391 (output_cgraph_opt_summary_p, output_node_opt_summary,
29392 input_node_opt_summary, input_cgraph_opt_section): New functions.
29393 * lto-section-in.c (lto_section_name): Add cgraphopt.
29394 * tree-inline.c (tree_function_versioning): Handle parm_num.
29395 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
29396 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
29398 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
29400 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
29401 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
29402 the insn to prefetch ratio heuristic to loops with known trip count.
29404 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
29406 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
29407 (schedule_prefetches): Do not generate a prefetch if the unroll factor
29408 is far from what is required by the prefetch.
29410 2010-05-17 Jan Hubicka <jh@suse.cz>
29412 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
29413 (ipcp_estimate_growth): Likewise.
29414 (ipcp_const_param_count): Likewise.
29415 (ipcp_insert_stage): Likewise.
29416 * ipa-prop.c (visit_load_for_mod_analysis): New function.
29417 (visit_store_addr_for_mod_analysis): Set used flag.
29418 (ipa_detect_param_modifications): Set used flag for SSE params;
29419 update use of walk_stmt_load_store_addr_ops.
29420 (ipa_print_node_params): Print used flag.
29421 (ipa_write_node_info): Stream used flag.
29422 (ipa_read_node_info): Likewise.
29423 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
29424 (ipa_is_param_used): New function.
29425 (lto_ipa_fixup_call_notes): Remove unused declaration.
29427 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29430 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
29431 * configure: Regenerate.
29432 * config.in: Regenerate.
29433 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
29434 !HAVE_AS_IX86_REP_LOCK_PREFIX.
29435 Don't emit whitespace.
29436 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
29437 (*rep_movsi): Likewise.
29438 (*rep_movsi_rex64): Likewise.
29439 (*rep_movqi): Likewise.
29440 (*rep_movqi_rex64): Likewise.
29441 (*rep_stosdi_rex64): Likewise.
29442 (*rep_stossi): Likewise.
29443 (*rep_stossi_rex64): Likewise.
29444 (*rep_stosqi): Likewise.
29445 (*rep_stosqi_rex64): Likewise.
29446 (*cmpstrnqi_nz_1): Use {%;} after repz.
29447 (*cmpstrnqi_nz_rex_1): Likewise.
29448 (*cmpstrnqi_1): Likewise.
29449 (*cmpstrnqi_rex_1): Likewise.
29450 (*strlenqi_1): Use {%;} after repnz.
29451 (*strlenqi_rex_1): Likewise.
29452 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
29453 (*sync_compare_and_swap<mode>): Likewise.
29454 (sync_double_compare_and_swap<mode>): Likewise.
29455 (*sync_double_compare_and_swapdi_pic): Likewise.
29456 (sync_old_add<mode>): Likewise.
29457 (sync_add<mode>): Likewise.
29458 (sync_sub<mode>): Likewise.
29459 (sync_<code><mode>): Likewise.
29461 2010-05-17 Martin Jambor <mjambor@suse.cz>
29463 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
29464 otr_token and polymorphic.
29465 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
29466 (cgraph_clone_edge): Copy the above fields.
29467 * tree.c (get_binfo_at_offset): New function.
29468 * tree.h (get_binfo_at_offset): Declare.
29469 * ipa-prop.h (enum jump_func_type): Added known_type jump function
29470 type, reordered items, updated comments.
29471 (union jump_func_value): Added base_type field, reordered fields.
29472 (enum ipa_lattice_type): Moved down in the file.
29473 (struct ipa_param_descriptor): New field polymorphic.
29474 (ipa_is_param_polymorphic): New function.
29475 * ipa-prop.c: Include gimple.h and gimple-fold.h.
29476 (ipa_print_node_jump_functions): Print known type jump functions.
29477 (compute_complex_pass_through): Renamed to...
29478 (compute_complex_assign_jump_func): this.
29479 (compute_complex_ancestor_jump_func): New function.
29480 (compute_known_type_jump_func): Likewise.
29481 (compute_scalar_jump_functions): Create known type and complex ancestor
29483 (ipa_note_param_call): New parameter polymorphic, set the corresponding
29484 flag in the call note accordingly.
29485 (ipa_analyze_call_uses): Renamed to...
29486 (ipa_analyze_indirect_call_uses): this. New parameter target, define
29487 variable var only in the block where it is used.
29488 (ipa_analyze_virtual_call_uses): New function.
29489 (ipa_analyze_call_uses): Likewise.
29490 (combine_known_type_and_ancestor_jfs): Likewise.
29491 (update_jump_functions_after_inlining): Implemented handling of a
29492 number of new jump function types combination.
29493 (print_edge_addition_message): Removed.
29494 (make_edge_direct_to_target): New function.
29495 (try_make_edge_direct_simple_call): Likewise.
29496 (try_make_edge_direct_virtual_call): Likewise.
29497 (update_call_notes_after_inlining): Renamed to...
29498 (update_indirect_edges_after_inlining): this. Moved edge creation for
29499 indirect calls to try_make_edge_direct_simple_call, also calls
29500 try_make_edge_direct_virtual_call for virtual calls.
29501 (ipa_print_node_params): Changed the header message.
29502 (ipa_write_jump_function): Stream also known type jump functions.
29503 (ipa_read_jump_function): Likewise.
29504 (ipa_write_indirect_edge_info): Stream new fields in
29505 cgraph_indirect_call_info.
29506 (ipa_read_indirect_edge_info): Likewise.
29507 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
29510 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29512 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
29514 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
29516 * tree.h (CALL_EXPR_ARGS): Delete.
29517 (call_expr_arglist): Delete.
29518 * tree.c (call_expr_arglist): Delete.
29519 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
29520 targetm.fold_builtin.
29521 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
29522 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
29523 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
29524 arglist parameter. Use CALL_EXPR_ARG.
29525 (picochip_expand_builtin_3op): Likewise.
29526 (picochip_expand_builtin_2opvoid): Likewise.
29527 (picochip_expand_array_get): Likewise.
29528 (picochip_expand_array_put): Likewise.
29529 (picochip_expand_array_testport): Likewise.
29530 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
29531 rather than arglist.
29532 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
29534 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
29535 than TREE_VALUE and TREE_CHAIN.
29536 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
29537 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
29540 2010-05-17 Jakub Jelinek <jakub@redhat.com>
29543 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
29544 to have no fallthru edge.
29546 PR middle-end/44102
29547 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
29548 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
29549 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
29550 add BARRIER after previous bb if needed.
29552 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
29554 * tree.c (build_function_type_list_1): Remove bogus assert condition.
29556 2010-05-17 Alan Modra <amodra@gmail.com>
29558 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
29559 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
29560 with copy_reg rtx param.
29561 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
29562 Correct cases where code for ABI_V4 did not initialise the reg
29563 used to access frame. Also leave frame_reg_rtx as sp for large
29564 frames that save no regs.
29566 2010-05-17 Martin Jambor <mjambor@suse.cz>
29568 PR middle-end/44133
29569 * tree-sra.c (create_access_replacement): New parameter rename, mark
29570 the replaement for renaming only when it is true.
29571 (get_access_replacement): Pass true in the rename parameter of
29572 create_access_replacement.
29573 (get_unrenamed_access_replacement): New function.
29574 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
29575 replacement declaration from it.
29577 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
29579 * function.c (try_fit_stack_local, add_frame_space): New static
29581 (assign_stack_local_1): Use them. Look for opportunities to use
29582 space previously wasted on alignment.
29583 * function.h (struct frame_space): New.
29584 (struct rtl_data): Add FRAME_SPACE_LIST member.
29585 * reload1.c (something_was_spilled): New static variable.
29586 (alter_reg): Set it.
29587 (reload): Test it in addition to testing if the frame size changed.
29589 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
29591 * config/s390/s390.c: Define sane prefetch settings and activate
29592 flag_prefetch_loop_arrays on -O3.
29593 * config/s390/s390.h: Declare that read can use write prefetch.
29595 2010-05-17 Jakub Jelinek <jakub@redhat.com>
29597 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
29600 2010-05-16 Jan Hubicka <jh@suse.cz>
29602 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
29603 function body; do not check stdarg field of struct function.
29605 2010-05-16 Jan Hubicka <jh@suse.cz>
29607 * cgraph.c (dump_cgraph_node): Dump versionable flag.
29608 * cgraph.h (cgraph_local_info): Add versionable flag.
29609 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
29610 (ipcp_versionable_function_p): Use it.
29611 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29614 2010-05-16 Jan Hubicka <jh@suse.cz>
29616 * cgraph.c (cgraph_clone_node): Take decl argument and insert
29617 clone into hash when it is different from orig.
29618 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
29619 * cgraph.h (cgraph_clone_node): Update prototype.
29620 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
29621 (lto_cgraph_encoder_delete): Delete body map.
29622 (lto_cgraph_encoder_size): Move to header.
29623 (lto_cgraph_encoder_encode_body_p,
29624 lto_set_cgraph_encoder_encode_body): New.
29625 (lto_output_node): Do not take written_decls argument; output clone_of
29627 (add_node_to): Add include_body_argument; call
29628 lto_set_cgraph_encoder_encode_body on master of the clone.
29629 (add_references): Update use of add_node_to.
29630 (compute_ltrans_boundary): Likewise.
29631 (output_cgraph): Do not create written_decls bitmap.
29632 (input_node): Take nodes argument; stream in clone_of correctly.
29633 (input_cgraph_1): Update use of input_node.
29634 * lto-streamer-out.c (lto_output): Use encoder info to decide
29635 what bodies to output.
29636 * ipa-inline.c (cgraph_clone_inlined_nodes,
29637 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
29638 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
29639 (lto_cgraph_encoder_size): Define here.
29640 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
29643 2010-05-16 Richard Guenther <rguenther@suse.de>
29645 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
29647 * ipa-type-escape.c (gate_type_escape_vars): Run when
29648 -fipa-struct-reorg runs.
29649 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
29650 * common.opt (fipa-type-escape): Remove.
29652 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
29654 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
29655 (decode_options): Likewise.
29656 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
29658 2010-05-16 Jan Hubicka <jh@suse.cz>
29660 * ipa.c (function_and_variable_visibility): Also bring local all
29663 2010-05-16 Richard Guenther <rguenther@suse.de>
29665 * alias.c (nonoverlapping_memrefs_p): Remove use of
29666 IPA type-escape information.
29668 2010-05-16 Joseph Myers <joseph@codesourcery.com>
29670 * c-common.c (c_common_reswords): Add _Static_assert for C.
29671 * c-parser.c (c_token_starts_declaration,
29672 c_parser_next_token_starts_declaration,
29673 c_parser_static_assert_declaration_no_semi,
29674 c_parser_static_assert_declaration): New.
29675 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
29676 Handle static assertions if static_assert_ok.
29677 (c_parser_external_declaration, c_parser_declaration_or_fndef,
29678 c_parser_compound_statement_nostart, c_parser_label,
29679 c_parser_for_statement, c_parser_objc_methodprotolist,
29680 c_parser_omp_for_loop): All callers of
29681 c_parser_declaration_or_fndef changed.
29682 (c_parser_struct_declaration): Handle static assertions.
29683 (c_parser_compound_statement_nostart): Use
29684 c_parser_next_token_starts_declaration and
29685 c_token_starts_declaration to detect start of declarations.
29686 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
29689 2010-05-16 Anatoly Sokolov <aesok@post.ru>
29691 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29692 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29693 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29694 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29695 (mmix_function_outgoing_value): Rename to...
29696 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
29697 (mmix_function_value_regno_p): Make static.
29698 (mmix_libcall_value): New function.
29699 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
29700 mmix_function_value_regno_p): Remove declaration.
29702 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
29704 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
29705 BUILT_IN_ALLOCA if stack checking is enabled.
29707 2010-05-16 Richard Guenther <rguenther@suse.de>
29709 * var-tracking.c (vars_copy_1): Inline ...
29710 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
29711 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
29712 (variable_merge_over_cur): Adjust. Merge asserts.
29713 (variable_merge_over_src): Likewise.
29714 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
29715 (variable_post_merge_new_vals): Merge asserts.
29716 (variable_post_merge_perm_vals): Likewise.
29717 (find_mem_expr_in_1pdv): Likewise.
29718 (dataflow_set_different_value): Remove.
29719 (onepart_variable_different_p): Merge asserts.
29720 (variable_different_p): Likewise.
29721 (dataflow_set_different_1): Inline ...
29722 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
29723 (emit_notes_for_differences_1): Merge asserts.
29725 2010-05-16 Richard Guenther <rguenther@suse.de>
29727 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
29728 * optabs.c (libfunc_decl_hash): Likewise.
29729 * varasm.c (emutls_decl): Likewise.
29731 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
29733 * c-decl.c: Don't include gimple.h.
29734 (merge_decls): Do not copy gimple_body.
29736 2010-05-15 Jason Merrill <jason@redhat.com>
29738 * c.opt: Add -fnothrow-opt.
29740 2010-05-15 Jan Hubicka <jh@suse.cz>
29742 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
29744 * passes.c (ipa_write_summaries): Write all analyzed nodes.
29746 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
29748 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
29749 * Makefile.in: Add it.
29750 Fix all other Makefile dependencies for changes below.
29751 * tree.h: Include it instead of defining VEC primitives here.
29752 * gimple.h: Likewise.
29754 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29755 * except.h: Include vecir.h, break dependence on tree.h.
29757 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29759 * tree-iterator.c: ...to here.
29760 * tree-iterator.h: Fix file introduction comment. Add extern markers.
29762 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
29764 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29765 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29766 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29767 tree-mudflap.h, and target.h.
29768 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29769 predict.h, tree-inline.h, gimple.h, and langhooks.h.
29770 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29771 Add FIXME for why gimple.h is still included (should be unnecessary
29772 since GCC 4.5 gimplification unit-at-a-time).
29773 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29774 * c-pragma.c: Add FIXME for why function.h needs to be included just
29775 for cfun, at front-end level.
29776 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29777 Do not include ggc.h, but include vecprim.h for VEC(char).
29778 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29779 Explain why target.h is included.
29780 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29781 Explain why gimple.h is included.
29782 * c-ppoutput.c: Do not include tm.h.
29783 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
29784 * c-parses.c: Explain why rtl.h is included, and that this (and only
29785 this) is also why tm.h must be included.
29786 Do not include except.h.
29787 * c-lang.c: Do not include ggc.h.
29789 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
29791 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29793 2010-05-15 Joseph Myers <joseph@codesourcery.com>
29795 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29796 unions by default if those structs and unions have no tags. Do
29797 not condition anonymous struct and unions handling on flag_iso.
29798 Allow anonymous structs and unions for C1X.
29799 (finish_struct): Do not diagnose lack of named fields when
29800 anonymous structs and unions present for C1X. Accept flexible
29801 array members in structure with anonymous structs or unions but no
29802 directly named fields.
29803 * doc/extend.texi (Unnamed Fields): Update.
29805 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
29807 * gimple.h (compare_field_offset): Rename into...
29808 (gimple_compare_field_offset): ...this.
29809 * gimple.c (compare_field_offset): Rename into...
29810 (gimple_compare_field_offset): ...this. Compare the full access if
29811 the offset is self-referential.
29812 (gimple_types_compatible_p): Adjust for above renaming.
29813 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
29814 DECL_NONADDRESSABLE_P flag of fields before merging them.
29816 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
29818 * tree.h (ctor_to_list): Delete.
29819 * tree.c (ctor_to_list): Delete.
29821 2010-05-15 Jan Hubicka <jh@suse.cz>
29823 * ipa-reference.c: Include toplev.h
29824 (is_proper_for_analysis): Only add to all_module_statics
29825 if it is allocated.
29826 (write_node_summary_p, stream_out_bitmap,
29827 ipa_reference_write_optimization_summary,
29828 ipa_reference_read_optimization_summary): New.
29829 (struct ipa_opt_pass_d pass_ipa_reference): Add
29830 optimization summary streaming.
29831 * lto-cgraph.c (referenced_from_this_partition_p,
29832 reachable_from_this_partition_p): New functions.
29833 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29834 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29835 * opts.c (decode_options): Enable ipa_reference.
29836 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29837 * lto-streamer.h (referenced_from_this_partition_p,
29838 reachable_from_this_partition_p): Declare.
29840 2010-05-15 Richard Guenther <rguenther@suse.de>
29842 PR tree-optimization/44038
29843 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
29844 taking the address of a V_C_E of a constant.
29846 2010-05-14 Jan Hubicka <jh@suse.cz>
29848 * tree.h (memory_identifier_string): Remove.
29849 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
29850 (ipa_reference_global_vars_info_d): Remove statics_not_read and
29851 statics_not_written.
29852 (ipa_reference_optimization_summary_d): New structure.
29853 (ipa_reference_optimization_summary_t): New type and vector.
29854 (ipa_reference_vars_info_d): Embedd structures instead of using
29856 (reference_vars_to_consider): Remove out of GGC space.
29857 (module_statics_escape): Remove.
29858 (global_info_obstack): Rename to ...
29859 (optimization_summary_obstack): ... this one.
29860 (initialization_status_t): Remove.
29861 (memory_identifier_string): Remove.
29862 (get_reference_vars_info): Fix indenting.
29863 (set_reference_vars_info): Likewise.
29864 (get_reference_optimization_summary): New.
29865 (set_reference_optimization_summary): New.
29866 (get_global_reference_vars_info): Remove.
29867 (ipa_reference_get_read_global): Remove.
29868 (ipa_reference_get_written_global): Remove.
29869 (ipa_reference_get_not_read_global): Update.
29870 (ipa_reference_get_not_written_global): Update.
29871 (is_proper_for_analysis): Outlaw addressable.
29872 (propagate_bits): Update for new datastructures.
29873 (analyze_variable): Remove.
29874 (init_function_info): Update for new datastructures.
29875 (clean_function_local_data): Remove.
29876 (clean_function): Remove.
29877 (copy_global_bitmap): Use optimizations_summary_obstack.
29878 (duplicate_node_data): Duplicate optimization summary only.
29879 (remove_node_data): Remove optimization summary only.
29880 (generate_summary): Do not analyze variables; do not compute
29881 module_statics_escape; do not prune solutions by it.
29882 (read_write_all_from_decl): Fix typos in comments.
29883 (propagate): Doscover readonly and nonaddressable first;
29884 update for new datastructures; share global bitmaps.
29885 * ipa-reference.h (ipa_reference_get_read_global,
29886 ipa_reference_get_written_global): Remove.
29887 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
29888 * Makefile.in: Remove ipa-refereference from GT files.
29890 2010-05-14 Jakub Jelinek <jakub@redhat.com>
29893 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
29894 for all SYMBOL_REF_DECLs.
29896 2010-05-14 Jan Hubicka <jh@suse.cz>
29898 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
29899 (varpool_all_refs_explicit_p): New inline function.
29900 * ipa-reference.c: Update comment.
29901 (module_statics_written): Remove.
29902 (get_static_decl): Remove.
29903 (ipa_init): Do not initialize module_statics_written.
29904 (analyze_function): Likewise.
29905 (generate_summary): Likewise; do not compute module_statics_readonly
29906 and do not update variable flags.
29907 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
29908 * ipa.c: Inlucde flags.h
29909 (cgraph_local_node_p): New.
29910 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
29911 promote functions to local.
29912 (ipa_discover_readonly_nonaddressable_vars): New function.
29913 (function_and_variable_visibility): Use cgraph_local_node_p.
29914 * varpool.c (varpool_finalize_decl): Set force_output for
29915 DECL_PRESERVE_P vars.
29917 2010-05-14 Jan Hubicka <jh@suse.cz>
29919 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
29921 2010-05-14 Richard Guenther <rguenther@suse.de>
29923 PR tree-optimization/44119
29924 * tree-ssa-pre.c (eliminate): Properly mark replacement of
29925 a PHI node necessary.
29927 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
29929 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
29931 2010-05-14 Jason Merrill <jason@redhat.com>
29934 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
29935 (gimple_call_set_nothrow): New.
29936 * gimple.c (gimple_build_call_from_tree): Call it.
29937 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
29940 * gimplify.c (gimplify_seq_add_stmt): No longer static.
29941 * gimple.h: Declare it.
29942 * gimple.c (gimple_build_eh_filter): No ops.
29944 2010-05-14 Jan Hubicka <jh@suse.cz>
29946 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
29947 nodes already in queue.
29948 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
29949 re-enqueueing node.
29951 2010-05-14 Jakub Jelinek <jakub@redhat.com>
29954 * cfgexpand.c (expand_debug_expr): If non-memory op0
29955 has BLKmode, return NULL.
29957 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
29959 * config.gcc: Add support for --with-cpu option for bdver1.
29960 * config/i386/i386.h (TARGET_BDVER1): New macro.
29961 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
29962 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29963 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
29964 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29965 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
29966 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
29967 (processor_type): Add PROCESSOR_BDVER1.
29968 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
29969 processor_type in config/i386/i386.h.
29970 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
29971 movaps <reg, reg> instead of movapd <reg, reg> when replacing
29972 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
29973 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
29974 to emit packed xor instead of packed double/packed integer
29975 xor for SSE and AVX when moving a zero value.
29976 * config/i386/sse.md: Add check for
29977 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
29978 movapd/movdqa for SSE and AVX.
29979 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
29980 single logical operations i.e and, or and xor instead of packed double
29981 logical operations for SSE and AVX.
29982 * config/i386/i386-c.c (ix86_target_macros_internal):
29983 Add PROCESSOR_BDVER1.
29984 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
29985 (has_fma4, has_xop): New.
29986 * config/i386/i386.c (bdver1_cost): New variable.
29987 (m_BDVER1): New macro.
29988 (m_AMD_MULTIPLE): Add m_BDVER1.
29989 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
29990 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
29991 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
29992 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
29993 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
29994 x86_tune_sse_partial_reg_dependency,
29995 x86_tune_sse_unaligned_load_optimal,
29996 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
29997 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
29998 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
29999 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
30000 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
30001 Enable/disable for bdver1.
30002 (processor_target_table): Add bdver1_cost.
30003 (cpu_names): Add bdver1.
30004 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
30005 processor_alias_table.
30006 (ix86_expand_vector_move_misalign): Change.
30007 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
30008 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
30009 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
30010 of movupd/movdqu for SSE and AVX.
30011 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
30012 (ix86_tune_adjust_cost): Add code for bdver1.
30013 (standard_sse_constant_opcode): Add check for
30014 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
30015 of packed double xor for SSE and AVX.
30017 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
30019 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
30020 result to unsigned.
30022 2010-05-14 Tristan Gingold <gingold@adacore.com>
30024 * toplev.c (default_debug_hooks): Remove this variable.
30025 (process_options): Remove assignments to default_debug_hooks.
30027 2010-05-14 Martin Jambor <mjambor@suse.cz>
30029 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
30030 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
30031 * langhooks.h (struct lang_hooks_for_decls): Removed field
30033 * tree.c (free_lang_data): Remove assignment to
30034 lang_hooks.fold_obj_type_ref.
30035 * tree.def (OBJ_TYPE_REF): Update comment.
30037 2010-05-14 Richard Guenther <rguenther@suse.de>
30039 PR tree-optimization/44124
30040 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
30042 2010-05-14 Alan Modra <amodra@gmail.com>
30045 * config/rs6000/rs6000.c (struct machine_function): Reorder
30046 fields for better packing. Add lr_save_state.
30047 (rs6000_ra_ever_killed): Return lr_save_state if set.
30048 (rs6000_emit_eh_reg_restore): Set lr_save_state.
30050 2010-05-13 Jan Hubicka <jh@suse.cz>
30052 * varpool.c (decide_is_variable_needed): Drop code checking
30053 TREE_SYMBOL_REFERENCED.
30055 2010-05-13 Jan Hubicka <jh@suse.cz>
30057 * final.c (output_addr_const): Do not call mark_decl_referenced.
30058 * cgraphunit.c (process_function_and_variable_attributes): Use
30059 mark_needed_node dirrectly.
30060 (assemble_thunk): Do not call mark_decl_referenced.
30062 2010-05-13 Anatoly Sokolov <aesok@post.ru>
30064 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
30066 2010-05-13 Jeff Law <law@redhat.com>
30068 * ira-conflicts.c (print_allocno_conflicts): New function broken out
30070 (print_conflicts): Call print_allocno_conflicts.
30072 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30075 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
30078 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
30080 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
30081 t-mingw-w64 or t-mingw-w32 for multilib configuration.
30082 * config/i386/t-mingw-w32: New.
30083 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
30085 2010-05-13 Martin Jambor <mjambor@suse.cz>
30087 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
30089 * gimple-fold.c (get_base_binfo_for_type): New function.
30090 (gimple_get_relevant_ref_binfo): Likewise.
30091 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30092 (gimple_fold_obj_type_ref): Likewise.
30093 (fold_gimple_call): Simplify condition for folding virtual calls
30094 and call gimple_fold_obj_type_ref.
30095 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
30096 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30098 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
30100 * config/rs6000/rs6000-protos.h
30101 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
30102 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
30103 (rs6000_debug_mode_dependent_address)
30104 (rs6000_mode_dependent_address_ptr): Likewise.
30106 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30109 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
30111 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
30112 * tree-sra.c (create_access_replacement): Call unshare_expr before
30113 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
30114 * dwarf2out.c: Include tree-flow.h.
30115 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
30116 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
30117 Handle DW_OP_bit_piece.
30118 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
30119 construct_piece_list, adjust_piece_list): New functions.
30120 (add_var_loc_to_decl): Handle SRA optimized variables.
30121 Adjust for var_loc_note to loc field renaming.
30122 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
30123 in VAR_LOCATION note.
30124 (new_loc_descr_op_bit_piece): New function.
30125 (dw_sra_loc_expr): New function.
30126 (dw_loc_list): Use it. Don't handle the last range after the
30127 loop, handle it inside of the loop. Adjust for var_loc_note
30128 to loc field renaming.
30129 (add_location_or_const_value_attribute): Only special case
30130 single entry loc lists if loc is NOTE_P. Adjust for
30131 var_loc_note to loc field renaming.
30132 (dwarf2out_var_location): Don't set newloc->var_loc_note
30133 and newloc->next here.
30135 2010-05-12 Jan Hubicka <jh@suse.cz>
30137 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
30139 * cgraph.h (cgraph_only_called_directly_p,
30140 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
30141 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
30142 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
30144 * ipa.c (cgraph_remove_unreachable_nodes): Use
30145 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
30147 * tree-inline.c (copy_bb): Check address_taken flag.
30148 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
30149 externally_visible flag.
30151 2010-05-12 Jason Merrill <jason@redhat.com>
30155 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
30156 * sdbout.c (plain_type_1): Likewise.
30157 * dwarf2out.c (is_base_type): Likewise.
30158 (gen_type_die_with_usage): Likewise. Generate
30159 DW_TAG_unspecified_type for any LANG_TYPE.
30161 2010-05-12 Jan Hubicka <jh@suse.cz>
30163 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
30165 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
30166 (cgraph_clone_edge): Update.
30167 (cgraph_node_remove_callees): Remove indirect calls too.
30168 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
30169 (cgraph_create_indirect_edge): Update prototype.
30170 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
30171 is_proper_for_analysis.
30172 (add_new_function, visited_nodes, function_insertion_hook_holder,
30173 get_local_reference_vars_info, mark_address_taken, mark_address,
30174 mark_load, mark_store, check_asm_memory_clobber, check_call,
30175 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
30176 (ipa_init): Do not initialize visited_nodes;
30177 function_insertion_hook_holder.
30178 (analyze_variable): Rewrite.
30179 (analyze_function): Rewrite.
30180 (copy_local_bitmap): Remove.
30181 (duplicate_node_dat): Do not duplicate local info.
30182 (generate_summary): Simplify to only walk cgraph.
30183 (write_node_summary_p, ipa_reference_write_summary,
30184 ipa_reference_read_summary): Remove.
30185 (propagate): Do not remove function insertion;
30187 (pass_ipa_reference): NULLify summary handling fields.
30188 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
30189 (input_edge): Input ecf_flags.
30190 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
30191 (update_indirect_edges_after_inlining): Ignore edges with unknown
30194 2010-05-12 Sriraman Tallam <tmsriram@google.com>
30196 * implicit-zee.c: New file.
30197 * tree-pass.h (pass_implicit_zee): Declare.
30198 * passes.c (init_optimization_passes): Add zee pass.
30199 * common.opt (fzee): New flag.
30200 * timevar.def (TV_ZEE): Define.
30201 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
30203 * Makefile.in (implicit-zee.o): Add new build file.
30205 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30206 Nathan Froyd <froydnj@codesourcery.com>
30208 * c-common.c (sync_resolve_params): Remove write-only variable.
30210 2010-05-12 Anatoly Sokolov <aesok@post.ru>
30212 * target.h (struct gcc_target): Add mode_dependent_address_p field.
30213 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30214 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
30215 * targhooks.c (default_mode_dependent_address_p): New function.
30216 * targhooks.h (default_mode_dependent_address_p): Declare function.
30217 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30218 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
30219 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
30220 target hook. Change return type to bool.
30221 * recog.h (mode_dependent_address_p): Change return type to bool.
30223 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30224 Nathan Froyd <froydnj@codesourcery.com>
30226 * tree-mudflap.c (build_function_type_0, build_function_type_1,
30227 build_function_type_2, build_function_type_3): Remove.
30228 (mudflap_init): Use build_function_type_list.
30230 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30231 Nathan Froyd <froydnj@codesourcery.com>
30233 * coverage.c (build_fn_info_value): Call build_constructor instead of
30234 build_constructor_from_list.
30235 (build_ctr_info_value): Likewise.
30236 (build_gcov_info): Likewise.
30238 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
30240 * tree.c (build_constructor): Compute TREE_CONSTANT for the
30241 resultant constructor.
30242 (build_constructor_single): Don't set TREE_CONSTANT.
30243 (build_constructor_from_list): Don't compute TREE_CONSTANT.
30245 2010-05-12 Jan Hubicka <jh@suse.cz>
30247 * cgraph.h (struct varpool_node): Add aux.
30248 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
30249 * varpool.c (varpool_remove_node): Do not remove initializer.
30250 (varpool_reset_queue): Export.
30251 (varpool_finalize_decl): Volatile vars are forced to be output.
30252 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
30254 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
30255 process_references, varpool_can_remove_if_no_refs): New functions.
30256 (cgraph_remove_unreachable_nodes): Handle variables too.
30258 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
30261 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
30263 2010-05-12 Jakub Jelinek <jakub@redhat.com>
30265 PR middle-end/44085
30266 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
30267 change value of ORT_TASK.
30268 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
30269 (omp_notice_threadprivate_variable): New function.
30270 (omp_notice_variable): Call it for threadprivate variables.
30271 If enclosing ctx is a task, print enclosing task rather than
30272 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
30273 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
30274 if task has untied clause.
30277 * dwarf2out.c (base_type_die): Don't add name attribute here.
30278 (modified_type_die): Instead of sizetype use
30279 its underlying original type. If a DW_TAG_base_type doesn't
30280 have name added, add __unknown__.
30281 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
30282 always call force_type_die instead.
30284 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
30286 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
30287 for __stack_chk_guard.
30289 2010-05-11 Jakub Jelinek <jakub@redhat.com>
30291 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
30292 don't call start_source_file debug hook here...
30293 (finish_options): ... but here, after outputting predefined and
30294 command line defines and undefs.
30296 PR middle-end/44071
30297 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
30299 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
30300 optimizing away empty bb with no successors, move over its
30301 footer chain to fallthru predecessor.
30302 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
30303 (rtl_split_edge): For asm goto call patch_jump_insn even if
30304 splitting fallthru edge.
30307 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
30308 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
30309 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
30310 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
30314 * c-parser.c (c_parser_expression): Mark LHS of a comma
30315 expression as read if it is a decl, handled component or
30316 COMPOUND_EXPR with that on the RHS.
30317 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
30318 if it is a decl or handled component.
30320 2010-05-11 Jan Hubicka <jh@suse.cz>
30322 * lto-symtab.c (lto_symtab_free): New function.
30323 * lto-streamer.h (lto_symtab_free): Declare.
30325 2010-05-11 Jan Hubicka <jh@suse.cz>
30327 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
30328 that if function is needed it is reachable.
30329 (lto_output_node): See if it the function is reachable or referenced.
30330 (output_cgraph): Update call of lto_output_node.
30331 * lto-streamer.h (reachable_from_other_partition_p): Declare.
30333 2010-05-11 Jan Hubicka <jh@suse.cz>
30335 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
30338 2010-05-11 Jan Hubicka <jh@suse.cz>
30340 PR tree-optimize/44063
30341 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
30343 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
30345 (estimate_function_body_sizes): Compute sizes even when disregarding.
30347 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
30349 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
30351 2010-05-11 Jan Hubicka <jh@suse.cz>
30353 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
30354 into every boundary.
30356 2010-05-11 Jan Hubicka <jh@suse.cz>
30358 * matrix-reorg.c (matrix_reorg): Rebuild edges.
30360 2010-05-11 Jan Hubicka <jh@suse.cz>
30362 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
30363 lto_streamer_cache_delete): Put nodes into heap.
30364 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
30367 2010-05-11 Jan Hubicka <jh@suse.cz>
30369 * cgraphbuild.c (cgraph_rebuild_references): New.
30370 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
30371 out extern inlines.
30372 * cgraph.h (cgraph_rebuild_references): Declare.
30373 * tree-inline.c (tree_function_versioning): Use it.
30374 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
30376 2010-05-11 Jan Hubicka <jh@suse.cz>
30378 * cgraph.c: Include ipa-utils.h
30379 (cgraph_create_virtual_clone): Update references.
30380 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
30382 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
30384 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
30385 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
30388 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
30390 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
30392 2010-05-11 Jakub Jelinek <jakub@redhat.com>
30394 * gcc.c (execute): For -### don't quote arguments that
30395 contain just alphanumerics and _/-. characters.
30396 * doc/invoke.texi: Document that change for -###.
30399 * df-problems.c (struct dead_debug): Add to_rescan field.
30400 (dead_debug_init): Clear to_rescan field.
30401 (dead_debug_finish): Rescan all debug insns in to_rescan
30402 bitmap and free the bitmap.
30403 (dead_debug_insert_before): Instead of rescanning debug insns
30404 immediately queue their rescanning until dead_debug_finish.
30405 (df_note_bb_compute): After dead_debug_add do continue instead
30408 2010-05-10 Jakub Jelinek <jakub@redhat.com>
30411 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
30412 clear also INSN_REG_USE_LIST.
30414 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30416 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
30418 2010-05-10 Jan Hubicka <jh@suse.cz>
30420 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
30423 2010-05-10 Jan Hubicka <jh@suse.cz>
30425 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
30427 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
30428 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
30429 (lto_streamer_cache_create): Init alloc pool.
30430 (lto_streamer_cache_delete): Free alloc pool.
30431 * lto-streamer.h: Include alloc pool.
30432 (lto_streamer_cache_d): Use alloc pool.
30433 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
30435 2010-05-10 Jan Hubicka <jh@suse.cz>
30437 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
30438 * cgraphbuild.c: Include except.h
30439 (record_type_list, record_eh_tables): New function.
30440 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
30442 2010-05-10 Jan Hubicka <jh@suse.cz>
30444 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
30445 __frame_dummy_init_array_entry, force_to_data): Attribute as used
30446 rather than unused.
30448 2010-05-10 Michael Matz <matz@suse.de>
30450 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
30451 (can_reassociate_p): Use FLOAT_TYPE_P.
30452 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
30453 (vect_force_simple_reduction): ... this.
30454 * tree-parloops.c (gather_scalar_reductions): Use
30455 vect_force_simple_reduction.
30456 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
30457 vect_is_simple_reduction, add modify argument, if true rewrite
30458 "a-b" into "a+(-b)".
30459 (vect_is_simple_reduction, vect_force_simple_reduction): New
30461 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
30463 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
30464 Vladimir Makarov <vmakarov@redhat.com>
30466 PR rtl-optimization/44012
30467 * ira-build.c (remove_unnecessary_allocnos): Nullify
30468 regno_allocno_map of the removed allocno.
30470 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30472 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
30474 * configure: Regenerate.
30476 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30478 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
30480 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
30481 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
30483 * configure: Regenerate.
30485 2010-05-10 Richard Guenther <rguenther@suse.de>
30487 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
30488 marked if the entry identifier is marked.
30490 2010-05-10 Richard Guenther <rguenther@suse.de>
30492 * c-common.c (struct c_common_attributes): Add fnspec attribute.
30493 (handle_fnspec_attribute): New function.
30494 * gimple.h (gimple_call_return_flags): Declare.
30495 (gimple_call_arg_flags): Likewise.
30496 * gimple.c (gimple_call_arg_flags): New function.
30497 (gimple_call_return_flags): Likewise.
30498 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
30499 New argument flags.
30500 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
30501 return value flags.
30502 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
30503 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
30505 (make_heapvar_for): ... this new function.
30506 (handle_rhs_call): Handle fnspec attribute argument specifiers.
30507 (handle_lhs_call): Likewise.
30508 (find_func_aliases): Adjust.
30510 2010-05-10 Richard Guenther <rguenther@suse.de>
30512 PR tree-optimization/44050
30513 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
30515 2010-05-10 Wei Guozhi <carrot@google.com>
30518 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
30520 2010-05-09 Joseph Myers <joseph@codesourcery.com>
30523 * c-typeck.c (lookup_field): Take a type directly. Update
30525 (build_component_ref): Update call to lookup_field.
30526 (set_init_label): Use lookup_field to find initialized field.
30527 Handle returned list of fields like a sequence of designators.
30529 2010-05-09 Richard Guenther <rguenther@suse.de>
30531 PR middle-end/44024
30532 * fold-const.c (tree_single_nonzero_warnv_p): Properly
30533 handle &FUNCTION_DECL.
30535 2010-05-09 Joseph Myers <joseph@codesourcery.com>
30538 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
30539 structures and unions recursively.
30540 (detect_field_duplicates): Move duplicate detection with a hash to
30541 detect_field_duplicates_hash. Always use a hash if anonymous
30542 structures or unions are present.
30543 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
30546 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
30549 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
30550 detect Atom, Core 2 and Core i7.
30552 2010-05-09 Richard Guenther <rguenther@suse.de>
30554 * gcc.c (store_arg): Handle temporary file deletion for
30557 2010-05-09 Richard Guenther <rguenther@suse.de>
30559 PR middle-end/44043
30560 * ipa-inline.c (estimate_function_body_sizes): Return after
30561 disregarding inline limits.
30563 2010-05-09 Richard Guenther <rguenther@suse.de>
30565 * gcc.c (store_arg): Revert last change.
30567 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
30569 PR middle-end/28685
30570 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
30571 (optimize_ops_list): Call it.
30573 2010-05-08 Richard Guenther <rguenther@suse.de>
30575 PR tree-optimization/44030
30576 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
30577 NECESSARY flag if we propagate from a inserted expression.
30579 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
30581 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
30582 domain types as equal if they are both PLACEHOLDER_EXPRs.
30584 2010-05-08 Richard Guenther <rguenther@suse.de>
30586 * lto-wrapper.c (run_gcc): Remove linker output from
30587 command line for LTRANS invocation.
30589 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
30591 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
30592 lto-macho as lto_binary_reader.
30593 * target.h (struct gcc_target): New hooks lto_start and lto_end.
30594 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
30595 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
30596 in lto_start and lto_end calls.
30597 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
30599 (scan_prog_file): Update is_elf_or_coff call.
30600 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
30602 * collect2.c (main): Fix enum comparison.
30604 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
30606 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
30607 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
30608 and TARGET_ASM_LTO_END.
30609 * darwin.c: Include obstack.h and lto-streamer.h.
30610 (lto_section_names_offset, lto_section_names_obstack,
30611 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
30613 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
30614 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
30615 to a temporary file.
30616 (darwin_asm_lto_end): New function. Restore asm_out_file.
30617 (darwin_asm_named_section): For LTO sections, replace the name with
30618 the offset of the section name in a string table, and build this
30620 (darwin_file_start): Initialize global vars for LTO support.
30621 (darwin_file_end): If output to asm_out_file was redirected, append it
30622 to the proper asm_out_file here. Add the section names section.
30624 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
30626 * c-pragma.c (pending_weak_d, pending_weak): New.
30627 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
30628 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
30629 handle_pragma_weak): Update the uses of pending_weaks.
30631 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30633 PR documentation/44016
30634 * doc/standards.texi (Standards): Link to unversioned
30635 cxx0x_status.html page.
30637 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
30640 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
30641 in addition to TREE_USED, to avoid "set but unused" warnings.
30643 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30645 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
30646 (is_loop_prefetching_profitable): Do not insert prefetches
30647 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
30648 times the prefetch ahead distance.
30650 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30652 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
30653 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
30654 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
30657 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30659 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
30660 a diagnostic info when the insn-to-mem ratio is too small.
30662 2010-05-07 Richard Guenther <rguenther@suse.de>
30664 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
30666 (store_arg): Queue temp_filename for deletion instead of
30667 the whole argument.
30669 2010-05-07 Richard Guenther <rguenther@suse.de>
30671 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
30672 (run_gcc): Handle LTRANS phase invocation.
30673 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
30675 2010-05-07 Jakub Jelinek <jakub@redhat.com>
30677 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
30678 this is also meaningful on PARM_DECLs and RESULT_DECLs.
30680 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30682 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
30684 2010-05-07 Richard Guenther <rguenther@suse.de>
30686 PR tree-optimization/44020
30687 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
30688 code when PRE is not yet initialized.
30690 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30692 * config/mips/dbxmdebug.h: Remove.
30693 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
30695 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
30697 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
30698 with null pointer and also warn about ordered comparison of zero with
30699 pointer if -Wextra.
30701 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
30703 * graphite-blocking.c
30704 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
30705 * graphite-clast-to-gimple.c
30706 (clast_to_gcc_expression): Same.
30707 (precision_for_value): Same.
30708 (precision_for_interval): Same.
30709 (gcc_type_for_interval): Same.
30710 (graphite_create_new_guard): Same.
30711 (compute_bounds_for_level): Same.
30712 (graphite_create_new_loop_guard): Same.
30713 * graphite-interchange.c
30714 (build_linearized_memory_access): Same.
30715 (pdr_stride_in_loop): Same.
30716 (memory_strides_in_loop_1): Same.
30717 (memory_strides_in_loop): Same.
30718 (extend_scattering): Same.
30719 (psct_scattering_dim_for_loop_depth): Same.
30720 (pbb_number_of_iterations): Same.
30722 (debug_iteration_domains): Same.
30724 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
30725 (ppl_set_inhomogeneous_gmp): Same.
30726 (ppl_strip_loop): Same.
30727 (ppl_lexico_compare_linear_expressions): Same.
30728 (ppl_read_polyhedron_matrix): Same.
30729 (ppl_max_for_le_pointset): Same.
30731 (ppl_read_polyhedron_matrix): Same.
30732 (tree_int_to_gmp): Same.
30733 (gmp_cst_to_tree): Same.
30734 (ppl_set_inhomogeneous): Same.
30735 (ppl_set_inhomogeneous_tree): Same.
30736 (ppl_set_coef): Same.
30737 (ppl_set_coef_tree): Same.
30738 * graphite-sese-to-poly.c
30739 (build_pbb_scattering_polyhedrons): Same.
30740 (build_scop_scattering): Same.
30741 (scan_tree_for_params_right_scev): Same.
30742 (scan_tree_for_params): Same.
30743 (find_params_in_bb): Same.
30744 (find_scop_parameters): Same.
30745 (add_upper_bounds_from_estimated_nit): Same.
30746 (build_loop_iteration_domains): Same.
30747 (add_condition_to_domain): Same.
30748 (pdr_add_memory_accesses): Same.
30750 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
30752 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
30753 CLooG's value_* macros to their respective mpz_* counterparts.
30754 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30755 (graphite_create_new_loop_guard): Same.
30756 * graphite-interchange.c (build_linearized_memory_access): Same.
30757 (pdr_stride_in_loop): Same.
30758 (memory_strides_in_loop_1): Same.
30759 (1st_interchange_profitable_p): Same.
30760 * graphite-poly.c (extend_scattering): Same.
30761 (psct_scattering_dim_for_loop_depth): Same.
30762 (pbb_number_of_iterations): Same.
30763 (pbb_number_of_iterations_at_time): Same.
30764 * graphite-poly.h (new_1st_loop): Same.
30765 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30766 (oppose_constraint): Same.
30767 (insert_constraint_into_matrix): Same.
30768 (ppl_set_inhomogeneous_gmp): Same.
30769 (ppl_set_coef_gmp): Same.
30770 (ppl_strip_loop): Same.
30771 (ppl_lexico_compare_linear_expressions): Same.
30772 (ppl_max_for_le_pointset): Same.
30773 (ppl_min_for_le_pointset): Same.
30774 (ppl_build_realtion): Same.
30775 * graphite-ppl.h (gmp_cst_to_tree): Same.
30776 (ppl_set_inhomogeneous): Same.
30777 (ppl_set_inhomogeneous_tree): Same.
30778 (ppl_set_coef): Same.
30779 (ppl_set_coef_tree): Same.
30780 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30781 (build_scop_scattering): Same.
30782 (add_value_to_dim): Same.
30783 (scan_tree_for_params_right_scev): Same.
30784 (scan_tree_for_params_int): Same.
30785 (scan_tree_for_params): Same.
30786 (find_params_in_bb): Same.
30787 (find_scop_parameters): Same.
30788 (add_upper_bounds_from_estimated_nit): Same.
30789 (build_loop_iteration_domains): Same.
30790 (create_linear_expr_from_tree): Same.
30791 (add_condition_to_domain): Same.
30792 (pdr_add_memory_accesses): Same.
30794 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
30795 Jason Merrill <jason@redhat.com>
30797 * c-common.c (c_common_reswords): Add nullptr.
30798 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
30799 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30800 (gen_type_die_with_usage): Likewise.
30801 * dbxout.c (dbxout_type): Likewise.
30802 * sdbout.c (plain_type_1): Likewise.
30804 2010-05-06 Jason Merrill <jason@redhat.com>
30806 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30807 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
30809 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30811 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30812 stripping WITH_SIZE_EXPR.
30813 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30816 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30818 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30819 list of obsolete configurations.
30820 Disabled check for obsolete configurations.
30821 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30822 Removed support for previous versions.
30823 * config/mips/iris.h: Removed.
30824 * config/mips/iris5.h: Removed.
30825 * config/mips/iris6.h: Merged old iris.h contents.
30826 (TARGET_IRIX): Removed.
30827 (DRIVER_SELF_SPECS): Removed mabi=32.
30828 (IDENT_ASM_OP): Removed undef.
30829 (STARTFILE_SPEC): Removed mabi=32.
30830 (ENDFILE_SPEC): Likewise.
30831 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30832 (MACHINE_TYPE): Update for IRIX 6.5.
30833 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30834 TARGET_IRIX by TARGET_IRIX6.
30835 (mips_file_start): Likewise.
30836 (mips_output_external): Remove IRIX 5/6 O32 support.
30837 (mips_output_function_prologue): Likewise.
30838 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30840 (TARGET_CPU_CPP_BUILTINS): Likewise.
30841 (TARGET_IRIX): Removed.
30842 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30843 (MULTILIB_DIRNAMES): Removed 32.
30844 (MULTILIB_OSDIRNAMES): Removed ../lib.
30845 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
30846 (Specific, mips-sgi-irix5): Document removal.
30847 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
30848 Remove references to older IRIX 6 releases and the O32 ABI.
30850 2010-05-06 Jakub Jelinek <jakub@redhat.com>
30853 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
30854 instead of DF_REF_REAL_REG.
30856 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
30859 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
30860 handling to still return true for x64 targets.
30862 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
30864 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
30866 2010-05-06 Jan Hubicka <jh@suse.cz>
30868 PR tree-optimization/43791
30869 * ipa-inline.c (update_caller_keys): Remove bogus
30870 disregard_inline_limits check.
30872 2010-05-06 Michael Matz <matz@suse.de>
30874 PR tree-optimization/43984
30875 * tree-ssa-pre.c (inserted_phi_names): Remove.
30876 (inserted_exprs): Change to bitmap.
30877 (create_expression_by_pieces): Set bits, don't append to vector.
30878 (insert_into_preds_of_block): Don't handle inserted_phi_names.
30879 (eliminate): Don't look at inserted_phi_names, remove deleted
30880 insns from inserted_exprs.
30881 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
30882 (init_pre, fini_pre): Allocate and free bitmaps.
30883 (execute_pre): Insert insns on edges before elimination.
30885 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
30887 * tree.c (initializer_zerop): Handle STRING_CST.
30889 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
30892 * doc/invoke.texi (Wimplicit): Document as C only.
30893 * opts.c (common_handle_option): Add argument kind.
30894 (handle_option): Rename as read_cmdline_option. Factor out code to...
30895 (handle_option): ... here. New.
30896 (handle_options): Rename as read_cmdline_options.
30897 (decode_options): Update call.
30898 (set_option): Use option index instead of option pointer. Classify
30899 diagnostics correctly.
30900 (enable_warning_as_error): Call handle_option.
30901 * opts.h (set_option): Update declaration.
30902 (handle_option): Declare.
30903 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
30904 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
30905 * c-opts.c (set_Wimplicit): Delete.
30906 (c_family_lang_mask): New static constant.
30907 (c_common_handle_option): Add argument kind. Use handle_option
30908 instead of set_Wimplicit.
30909 (c_common_post_options): warn_implicit and warn_implicit_int
30910 are disabled by default.
30911 * c-common.c (warn_implicit): Do not define here.
30912 * c-common.h (warn_implicit): Do not declare here.
30913 (c_common_handle_option): Update declaration.
30914 * lto-opts.c (lto_reissue_options): Update call to set_option.
30916 2010-05-06 Richard Guenther <rguenther@suse.de>
30918 PR tree-optimization/43571
30919 * domwalk.c (walk_dominator_tree): Walk the dominator
30920 sons in more optimal order.
30922 2010-05-06 Richard Guenther <rguenther@suse.de>
30924 PR tree-optimization/43934
30925 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
30926 (stmt_cost): Likewise.
30927 (extract_true_false_args_from_phi): New helper.
30928 (determine_max_movement): For PHI nodes verify we can hoist them
30929 and compute their cost.
30930 (determine_invariantness_stmt): Handle PHI nodes.
30931 (move_computations_stmt): Likewise. Hoist PHI nodes in
30932 if-converted form using COND_EXPRs.
30933 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
30934 (tree_ssa_lim): Likewise.
30935 * tree-flow.h (tree_ssa_lim): Adjust prototype.
30936 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
30938 2010-05-06 Richard Guenther <rguenther@suse.de>
30940 PR tree-optimization/43987
30941 * tree-ssa-structalias.c (could_have_pointers): For possibly
30942 address-taken variables force pointers to be recorded.
30943 (create_variable_info_for_1): Likewise.
30944 (push_fields_onto_fieldstack): Pass in wheter all fields
30945 must have pointers.
30946 (find_func_aliases): Query types instead of vars whether
30947 they contain pointers where appropriate.
30949 2010-05-06 Jan Hubicka <jh@suse.cz>
30951 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
30952 (record_reference, mark_address, mark_load, mark_store): Record
30954 (record_references_in_initializer): Update call of record_references.
30955 (rebuild_cgraph_edges): Remove all references before rebuiding.
30956 * cgraph.c (cgraph_create_node): Clear ref list.
30957 (cgraph_remove_node): Remove references.
30958 (dump_cgraph_node): Dump references.
30959 (cgraph_clone_node): Clone references.
30960 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
30961 (struct cgraph_node, varpool_node): Add ref_lst.
30962 * ipa-ref.c: New file.
30963 * ipa-ref.h: New file.
30964 * ipa-ref-inline.h: New file.
30965 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
30966 (referenced_from_other_partition_p): New function.
30967 (lto_output_varpool_node): Take set arugment; call
30968 referenced_from_other_partition.
30969 (lto_output_ref): New.
30970 (add_references): New.
30971 (output_refs): New.
30972 (output_cgraph): Compute boundary based on references; output refs.
30973 (output_varpool): Accept cgraph_node_set argument.
30976 (input_cgraph): Call input_refs.
30977 * lto-section-in.c (lto_section_name): Add refs.
30978 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
30979 (ipa-ref.o): New file.
30980 * varpool.c (varpool_node): Clear ipa ref list.
30981 (varpool_remove_node): Remove references.
30982 (dump_varpool_node): Dump references.
30983 (varpool_assemble_decl): Only compile finalized ones.
30984 (varpool_extra_name_alias): Initialize ref list.
30985 * lto-streamer.c (lto-get_section_name): Add .refs section.
30986 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
30987 (referenced_from_other_partition_p): Declared.
30989 2010-05-06 Ira Rosen <irar@il.ibm.com>
30991 PR tree-optimization/43901
30992 * tree-vect-stmts.c (vectorizable_call): Assert that vector
30993 type is not NULL if it's transformation phase, and return
30994 FALSE if it's analysis.
30995 (vectorizable_conversion, vectorizable_operation,
30996 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
30998 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
31000 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31002 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31004 * config/mips/mips-protos.h
31005 (mips_small_register_classes_for_mode_p): Delete prototype.
31007 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
31009 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
31010 * config/arm/arm.c (multiple_operation_profitable_p,
31011 compute_offset_order): New static functions.
31012 (load_multiple_sequence, store_multiple_sequence): Use them.
31013 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
31014 memory offsets, not register numbers.
31015 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
31017 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
31019 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
31020 (get_pending_sizes, put_pending_size, put_pending_sizes):
31021 Update the uses of pending_sizes.
31022 * c-decl.c (store_parm_decls): Likewise.
31023 * c-tree.h (struct c_arg_info): Likewise.
31024 * tree.h: Update the prototype for get_pending_sizes and
31027 2010-05-05 Jason Merrill <jason@redhat.com>
31030 * c-common.c (handle_aligned_attribute): Respect
31031 ATTR_FLAG_TYPE_IN_PLACE.
31034 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
31035 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31036 (TARGET_INITIALIZER): Use it.
31037 * c-common.c (attribute_takes_identifier_p): Call it.
31038 * c-common.h: Update prototype.
31039 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
31040 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31042 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31045 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
31046 DW_ID_down_case for Fortran compilation units.
31048 2010-05-05 Jan Hubicka <jh@suse.cz>
31050 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
31053 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
31055 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
31056 a variable-sized RESULT_DECL.
31058 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
31060 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
31062 2010-05-05 Jason Merrill <jason@redhat.com>
31065 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
31067 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
31069 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
31070 Jakub Jelinek <jakub@redhat.com>
31073 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
31074 (dead_debug_init, dead_debug_finish): New functions.
31075 (dead_debug_add, dead_debug_insert_before): Likewise.
31076 (df_note_bb_compute): Initialize a dead_debug object, add dead
31077 debug uses to it, insert debug bind insns before death insns,
31078 reset debug insns that refer to pending uses at the end.
31079 * rtl.h (make_debug_expr_from_rtl): New prototype.
31080 * varasm.c (make_debug_expr_from_rtl): New function.
31082 2010-05-05 Jan Hubicka <jh@suse.cz>
31084 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
31085 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
31086 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
31087 lto_varpool_encoder_deref, lto_varpool_encoder_size,
31088 lto_varpool_encoder_encode_initializer_p,
31089 lto_set_varpool_encoder_encode_initializer): New functions.
31090 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
31091 call output_varpool.
31092 (input_varpool_node): Do not always set analyzed.
31093 (input_cgraph_1): Return vector of cgraph nodes.
31094 (input_varpool_1): Return vector of varpools.
31095 (input_cgraph): Free the vectors.
31096 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31097 output only initializers needed.
31098 (lto_output): Only call output_cgraph.
31099 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
31100 * lto-section-out.c (lto_new_out_decl_state): Initialize
31101 state->varpool_node_encoder.
31102 * lto-streamer.h (lto_varpool_encoder_d): New.
31103 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
31104 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
31105 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
31106 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
31107 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
31109 (output_varpool, input_varpool): Remove declarations.
31111 2010-05-05 Jan Hubicka <jh@suse.cz>
31113 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
31114 with body can prevail.
31116 2010-05-05 Jan Hubicka <jh@suse.cz>
31118 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
31121 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
31123 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
31125 * gengtype.h (erro_at_line): Constify pos argument.
31127 * gengtype.c: Include hashtab.h.
31128 (enum gc_used): Document GC_MAYBE_POINTED_TO.
31129 (error_at_line): Constify pos argument.
31130 (do_typedef): Initialize p->opt field.
31131 (get_file_gtfilename): Fix comment typo.
31132 (struct walk_type_data): Constify line field.
31133 (get_output_file_for_structure): New function.
31134 (write_local_func_for_structure): Constify orig_s argument.
31135 Use get_output_file_for_structure.
31136 (write_func_for_structure): Use get_output_file_for_structure.
31137 (INDENT): New define.
31138 (dump_pair, dump_type, dump_type_list, dump_typekind)
31139 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31140 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
31142 (seen_types): New variable.
31143 (main): New variable do_dump. Process "-d" command line option.
31144 Call dump_everything if dump requested.
31146 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31148 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
31149 in a temporary instead of invoking the macro multiple times.
31150 (track_expr_p): Likewise.
31152 2010-05-04 Neil Vachharajani <nvachhar@google.com>
31154 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
31156 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
31157 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
31158 conditions for printing notes.
31159 * common.opt (-Wcoverage-mismatch): Allow negative, default to
31160 true, update documentation.
31161 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
31163 2010-05-04 Jakub Jelinek <jakub@redhat.com>
31166 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
31169 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31172 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
31173 (*sse_prologue_save_insn1): Likewise.
31174 (SSE prologue save splitter): Likewise.
31176 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
31178 * tree.c (free_lang_data_in_one_sizepos): New inline function.
31179 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
31180 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
31181 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
31182 all decls. Call it on DECL_FIELD_OFFSET of fields.
31183 (find_decls_types_r): Follow DECL_VALUE_EXPR.
31184 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
31186 2010-05-04 Martin Jambor <mjambor@suse.cz>
31188 * tree-sra.c (build_access_from_expr_1): The first parameter type
31189 changed to simple tree.
31190 (build_access_from_expr): Likewise, gsi parameter was eliminated.
31191 (scan_assign_result): Renamed to assignment_mod_result, enum elements
31193 (build_accesses_from_assign): Removed all parameters except for a
31194 simple gimple statement. Now returns a simple bool.
31195 (scan_function): All non-analysis parts moved to separate functions
31196 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
31197 parameters and updated both callers.
31198 (sra_modify_expr): Removed parameter data.
31199 (sra_modify_function_body): New function.
31200 (perform_intra_sra): Call sra_modify_function_body to modify the
31202 (replace_removed_params_ssa_names): Parameter data changed into
31203 adjustments vector.
31204 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
31205 changed the parameter dont_convert to convert with the opposite
31207 (sra_ipa_modify_assign): Parameter data changed into adjustments
31208 vector, return value changed to bool.
31209 (ipa_sra_modify_function_body): New function.
31210 (sra_ipa_reset_debug_stmts): Updated a comment.
31211 (modify_function): Use ipa_sra_modify_function_body to modify function
31214 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31216 PR middle-end/43671
31217 * alias.c (true_dependence): Handle the same VALUE in x and mem.
31218 (canon_true_dependence): Likewise.
31219 (write_dependence_p): Likewise.
31221 2010-05-04 Jan Hubicka <jh@suse.cz>
31223 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
31224 * cgraphbuild.c: Include ipa-utils.h
31225 (record_reference_ctx): New struct.
31226 (record_reference): Simplify to work on initializers; not statements.
31227 (mark_address, mark_load, mark_store): New.
31228 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31229 walk PHI nodes too.
31230 (record_references_in_initializer): Update use of record_reference.
31231 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31232 walk PHI nodes too.
31234 2010-05-04 Jan Hubicka <jh@suse.cz>
31236 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
31237 node will be removed anyway.
31238 (lto_varpool_replace_node): Allow also unanalyzed nodes;
31239 relink aliases of node into prevailing node.
31240 * varpool.c (varpool_remove_node): Remove aliases properly;
31241 when removing node, remove all its aliases too; remove DECL_INITIAL
31242 of removed node; ggc_free the varpool node.
31244 2010-05-04 Richard Guenther <rguenther@suse.de>
31246 PR tree-optimization/43879
31247 * tree-ssa-structalias.c (alias_get_name): Use
31248 DECL_ASSEMBLER_NAME if available.
31249 (create_function_info_for): Return the varinfo node.
31250 (ipa_pta_execute): Associate same-body aliases and extra names
31251 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
31253 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31255 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
31257 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
31260 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
31261 only if HONOR_REG_ALLOC_ORDER is not defined.
31263 2010-05-04 Richard Guenther <rguenther@suse.de>
31265 PR tree-optimization/43949
31266 * tree-vrp.c (extract_range_from_binary_expr): Only handle
31269 2010-04-26 Jason Merrill <jason@redhat.com>
31271 * c.opt (-fstrict-enums): New.
31272 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
31274 2010-05-03 David Ung <davidu@mips.com>
31275 James E. Wilson <wilson@codesourcery.com>
31277 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
31278 emit the trap instruction before the divide for TUNE_74K.
31280 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
31282 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
31283 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
31284 based on the above, for new target hook.
31286 * hooks.c (hook_bool_mode_true): New generic hook.
31287 * hooks.h (hook_bool_mode_true): Add prototype.
31289 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
31291 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
31292 target hook, set to hook_bool_mode_false.
31293 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
31294 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
31295 with targetm.small_register_classes_for_mode_p.
31296 (find_reusable_reload): Likewise.
31297 (combine_reloads): Likewise.
31298 * reload1.c (reload_as_needed): Likewise.
31299 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
31300 * ifcvt.c (noce_process_if_block, check_cond_move_block,
31301 dead_or_predicable): Likewise.
31302 * regmove.c (optimize_reg_copy_1): Likewise.
31303 * calls.c (prepare_call_address): Likewise.
31304 (precompute_register_parameters): Likewise.
31306 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
31308 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
31309 implementation of the hook that considers all register classes
31310 small except for SH64.
31311 (sh_override_options): Use the new hook.
31312 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
31315 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
31317 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
31318 implementation of the hook that considers all register classes
31320 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
31323 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
31325 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
31326 implementation of the hook that considers all register classes
31328 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
31331 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
31333 * config/m32c/m32c.h: Likewise.
31334 * config/pdp11/pdp11.h: Likewise.
31335 * config/avr/avr.h: Likewise.
31336 * config/xtensa/xtensa.h: Likewise.
31337 * config/m68hc11/m68hc11.h: Likewise.
31338 * config/mn10300/mn10300.h: Likewise.
31339 * config/mcore/mcore.h: Likewise.
31340 * config/h8300/h8300.h: Likewise.
31341 * config/bfin/bfin.h: Likewise.
31343 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
31344 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
31346 2010-05-03 Anatoly Sokolov <aesok@post.ru>
31348 * double-int.h (tree_to_double_int): Remove macro.
31349 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
31350 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31351 (tree_to_double_int): New function.
31352 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
31354 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31356 2010-05-03 Richard Guenther <rguenther@suse.de>
31358 PR tree-optimization/43971
31359 * tree-ssa-structalias.c (get_constraint_for_1): Fix
31360 constraints in the !flag_delete_null_pointer_checks case.
31362 2010-05-03 Jakub Jelinek <jakub@redhat.com>
31365 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
31366 result mode matches original rtl mode.
31368 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
31371 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
31373 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31375 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
31376 when processing flag options.
31378 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31380 * gcov-iov.c (main): Change format string placeholder
31381 from %#08x to 0x%08x.
31382 * genchecksum.c (dosum): Change format string placeholder
31383 from %#02x to 0x%02x.
31385 2010-05-02 Richard Guenther <rguenther@suse.de>
31387 PR tree-optimization/43879
31388 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
31390 2010-05-02 Bruno Haible <bruno@clisp.org>
31392 * doc/extend.texi (Function Attributes): Fix a typo.
31394 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31397 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
31398 placeholder from 0x%x to %#x.
31399 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31400 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31401 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31402 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31403 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31404 * config/i386/i386.c (ix86_target_string): Ditto.
31405 * config/i386/i386.c (output_pic_addr_const): Ditto.
31406 (print_operand): Ditto.
31408 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31410 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
31411 placeholder from 0x%x to %#x.
31412 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
31413 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
31414 (ASM_OUTPUT_DEBUG_DATA): Ditto.
31415 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
31416 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
31417 * optc-gen.awk: Ditto.
31418 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
31419 (HOST_WIDE_INT_PRINT_HEX): Ditto.
31420 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
31421 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31423 2010-05-01 Anatoly Sokolov <aesok@post.ru>
31425 * target.h (struct calls): Add function_value_regno_p field.
31426 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
31427 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
31428 * targhooks.c (default_function_value_regno_p): New function.
31429 * targhooks.h (default_function_value_regno_p): Declare function.
31430 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
31431 * builtins.c. (apply_result_size): (Ditto.).
31432 * combine.c. (likely_spilled_retval_p): (Ditto.).
31433 * mode-switching.c. Include 'target.h'.
31434 (create_pre_exit): Use function_value_regno_p hook.
31435 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
31436 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
31437 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
31439 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
31440 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
31441 (ix86_function_value_regno_p): Declare as static, change argument
31442 type to const unsigned int.
31443 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
31445 2010-05-01 Richard Guenther <rguenther@suse.de>
31447 PR tree-optimization/43949
31448 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
31450 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
31452 2010-05-01 Anatoly Sokolov <aesok@post.ru>
31454 * rtl.h (CONST_DOUBLE_P): Define.
31455 (rtx_to_double_int): Declare.
31456 * emit-rtl.c (rtx_to_double_int): New function.
31457 * dwarf2out.c (insert_double): New function.
31458 (loc_descriptor, add_const_value_attribute): Clean up, use
31459 rtx_to_double_int and insert_double functions.
31461 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
31463 * doc/extend.texi (Inline): Add missing return keyword to examples.
31464 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
31467 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
31469 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
31470 the variable part of the offset as well. Use highest_pow2_factor for
31471 all alignment checks.
31473 2010-04-30 Richard Guenther <rguenther@suse.de>
31475 PR tree-optimization/43879
31476 * tree-ssa-structalias.c (type_could_have_pointers): Functions
31479 2010-04-30 Jan Hubicka <jh@suse.cz>
31481 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
31483 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
31485 2010-04-30 Jan Hubicka <jh@suse.cz>
31487 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
31489 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
31490 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
31491 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
31492 cgraph_node_set_needs_ltrans_p): Remove.
31494 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
31496 * sdbout.c: Include vec.h, do not include varray.h.
31497 (deferred_global_decls, sdbout_global_decl,
31498 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
31499 * toplev.c: Do not include varray.h.
31500 (dump_memory_report): Do not dump VARRAY statistics.
31501 * gengtype.c (open_base_file): Ignore varray.h.
31502 * Makefile.in: Update for abovementioned changes.
31503 Remove all traces of varray.c and varray.h.
31504 * varray.c: Remove file.
31505 * varray.h: Remove file.
31507 2010-04-30 Jan Hubicka <jh@suse.cz>
31509 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
31512 2010-04-30 Jan Hubicka <jh@suse.cz>
31514 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
31517 2010-04-30 Richard Guenther <rguenther@suse.de>
31519 * tree-ssa-structalias.c (get_constraint_for_1): Generate
31520 constraints for CONSTRUCTOR.
31522 2010-04-30 Richard Guenther <rguenther@suse.de>
31525 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
31526 first after all lowering passes.
31528 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
31530 * toplev.c: Include varray.h for statistics dumping.
31531 * tree.h: Do not declare varray_head_tag.
31532 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
31533 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
31534 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
31535 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
31536 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
31537 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
31538 c-common.c, c-common.h, reg-stack.c, basic-block.h,
31539 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
31541 * Makefile.in: Update for abovementioned changes.
31543 2010-04-30 Jakub Jelinek <jakub@redhat.com>
31546 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
31548 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
31550 * config/picochip/picochip.c (picochip_legitimize_address): Define.
31551 Use this function to do machine-specific conversion.
31552 (picochip_legitimize_reload_address): Likewise.
31553 (picochip_legitimate_address_p): Check valid base register only if
31555 (picochip_check_conditional_copy): Check for modw only if opnd is
31557 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
31558 to call the function in c.
31559 * config/picochip/picochip-protos.h
31560 (picochip_legitimize_reload_address): Define.
31561 * config/picochip/picochip.md (supported_compare1): Define.
31563 2010-04-30 Jan Hubicka <jh@suse.cz>
31565 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
31566 (cgraph_global_info): Remove inlined.
31567 (LTO_cgraph_tag_names): Remove.
31568 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
31569 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
31570 simplify cgraph tags and document.
31571 (lto_output_node): Use only LTO_cgraph_unavail_node and
31572 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
31573 for_functions_valid, global info, process and output flags.
31574 (input_overwrite_node): Initialize estimated stack size and
31575 estimated growth. Do not read flags we no longer store.
31576 (input_node): Likewise do not read info no longer stored.
31577 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
31580 2010-04-30 Richard Guenther <rguenther@suse.de>
31582 PR tree-optimization/43879
31583 * tree-ssa-structalias.c (get_constraint_for_1): Properly
31584 handle non-zero initializers.
31586 2010-04-30 Richard Guenther <rguenther@suse.de>
31588 * builtins.c (fold_builtin_1): Delete free (0).
31590 2010-04-29 Jan Hubicka <jh@suse.cz>
31592 * gengtype.c (open_base_files): Add lto-streamer.h
31593 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
31594 (pass_ipa_cp): GGC collect.
31595 * toplev. (compile_file): Do not output symbols.
31596 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
31597 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
31598 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
31599 * lto-section-in.c: Include ggc.h
31600 (lto_new_in_decl_state): Alloc in GGC.
31601 (lto_delete_in_decl_state): Likewise.
31602 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
31605 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
31608 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
31609 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
31610 (HONOR_REG_ALLOC_ORDER): Describe new macro.
31611 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
31612 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
31613 account only if HONOR_REG_ALLOC_ORDER is not defined.
31614 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
31615 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
31617 2010-04-29 Jon Grant <04@jguk.org>
31619 * collect2.c (vflag): Change type from int to bool.
31621 (helpflag): New global bool.
31622 (main): Set vflag and debug with boolean, not integer truth values.
31623 Accept new "--help" option and output usage text if found.
31624 * collect2.h (vflag): Update prototype.
31627 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
31630 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
31632 2010-04-29 Richard Guenther <rguenther@suse.de>
31635 * plugin.h (invoke_plugin_callbacks): Annotate arguments
31636 with ATTRIBUTE_UNUSED.
31638 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
31641 * config/i386/i386.c (get_some_local_dynamic_name): Replace
31642 INSN_P with NONDEBUG_INSN_P.
31643 (distance_non_agu_define): Likewise.
31644 (distance_agu_use): Likewise.
31646 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
31648 From Dominique d'Humieres <dominiq@lps.ens.fr>
31650 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
31653 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
31655 * plugin.h (invoke_plugin_callbacks): New inline function.
31656 * plugin.c (flag_plugin_added): New global flag.
31657 (add_new_plugin): Initialize above flag.
31658 (invoke_plugin_callbacks): Rename to ...
31659 (invoke_plugin_callbacks_full): ... this.
31661 2010-04-28 Jan Hubicka <jh@suse.cz>
31663 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
31664 (lto_varpool_replace_node): New.
31665 (lto_symtab_resolve_symbols): Resolve varpool nodes.
31666 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
31667 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
31668 * cgraph.h (varpool_node_ptr): New type.
31669 (varpool_node_ptr): New vector.
31670 (varpool_node_set_def): New structure.
31671 (varpool_node_set): New type.
31672 (varpool_node_set): New vector.
31673 (varpool_node_set_element_def): New structure.
31674 (varpool_node_set_element, const_varpool_node_set_element): New types.
31675 (varpool_node_set_iterator): New type.
31676 (varpool_node): Add prev pointers, add used_from_other_partition,
31677 in_other_partition.
31678 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
31679 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
31680 varpool_get_node, varpool_remove_node): Declare.
31681 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
31682 varpool_node_set_size): New inlines.
31683 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
31684 * tree-pass.h (varpool_node_set_def): Forward declare.
31685 (ipa_opt_pass_d): Summary writting takes vnode sets too.
31686 (ipa_write_optimization_summaries): Update prototype.
31687 * ipa-cp.c (ipcp_write_summary): Update.
31688 * ipa-reference.c (ipa_reference_write_summary): Update.
31689 * lto-cgraph.c (lto_output_varpool_node): New static function.
31690 (output_varpool): New function.
31691 (input_varpool_node): New static function.
31692 (input_varpool_1): New function.
31693 (input_cgraph): Input varpool.
31694 * ipa-pure-const.c (pure_const_write_summary): Update.
31695 * lto-streamer-out.c (lto_output): Update, output varpool too.
31696 (write_global_stream): Kill WPA hack.
31697 (produce_asm_for_decls): Update.
31698 (output_alias_pair_p): Handle variables.
31699 (output_unreferenced_globals): Output only needed partition of varpool.
31700 * ipa-inline.c (inline_write_summary): Update.
31701 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
31703 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
31704 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
31705 varpool_node_set_new, varpool_node_set_add,
31706 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
31707 debug_varpool_node_set): New functions.
31708 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
31709 (execute_one_pass): Process new decls too.
31710 (ipa_write_summaries_2): Pass around vsets.
31711 (ipa_write_summaries_1): Likewise.
31712 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
31714 (ipa_write_optimization_summaries_1): Pass around vsets.
31715 (ipa_write_optimization_summaries): Likewise.
31716 * varpool.c (varpool_get_node): New.
31717 (varpool_node): Update doubly linked lists.
31718 (varpool_remove_node): New.
31719 (dump_varpool_node): More dumping.
31720 (varpool_enqueue_needed_node): Update doubly linked lists.
31721 (decide_is_variable_needed): Kill ltrans hack.
31722 (varpool_finalize_decl): Kill lto hack.
31723 (varpool_assemble_decl): Skip decls in other partitions.
31724 (varpool_assemble_pending_decls): Update doubly linkes lists.
31725 (varpool_empty_needed_queue): Likewise.
31726 (varpool_extra_name_alias): Likewise.
31727 * lto-streamer.c (lto_get_section_name): Add vars section.
31728 * lto-streamer.h (lto_section_type): Update.
31729 (output_varpool, input_varpool): Declare.
31731 2010-04-28 Mike Stump <mikestump@comcast.net>
31733 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
31735 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31737 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
31738 record or union type with RECORD_OR_UNION_TYPE_P predicate.
31739 (lto_input_ts_type_tree_pointers): Likewise.
31740 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
31741 (lto_output_ts_type_tree_pointers): Likewise.
31743 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31745 Uniquization of constants at the Tree level
31746 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
31747 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
31749 (tree_output_constant_def): Declare.
31750 * gimplify.c (gimplify_init_constructor): When using block copy, first
31751 uniquize the constant constructor on the RHS.
31752 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
31753 DECL_IN_CONSTANT_POOL flag.
31754 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31755 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31757 (assemble_variable): Deal with symbols belonging to the tree constant
31759 (get_constant_section): Add ALIGN parameter and simplify.
31760 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31761 (assemble_constant_contents): Use the expression of the VAR_DECL.
31762 (output_constant_def_contents): Use the alignment of the VAR_DECL.
31763 (tree_output_constant_def): New global function.
31764 (mark_constant): Use the expression of the VAR_DECL.
31765 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31767 (output_object_block): Likewise and assemble the expression.
31769 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31771 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31772 hash_tree, eq_tree): New tree hash table.
31773 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31774 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31775 lto_orig_address_remove): Reimplement.
31777 2010-04-28 Xinliang David Li <davidxl@google.com>
31780 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31781 (compute_uninit_opnds_pos): New function.
31782 (is_non_loop_exit_postdominating): New function.
31783 (compute_control_dep_chain): New function.
31784 (find_pdom): New function.
31785 (convert_control_dep_chain_into_preds): New function.
31786 (find_predicates): New function.
31787 (find_control_equiv_block): New function.
31788 (collect_phi_def_edges): New function.
31789 (find_def_preds): New function.
31790 (find_dom): New function.
31791 (dump_predicates): New function.
31792 (get_cmp_code): New function.
31793 (is_value_included_in): New function.
31794 (find_matching_predicate_in_rest_chains): New function.
31795 (use_pred_not_overlap_with_undef_path_pred): New function.
31796 (is_use_properly_guarded): New function.
31797 (normalize_cond_1): New function.
31798 (is_and_or_or): New function.
31799 (normalize_cond): New function.
31800 (is_gcond_subset_of): New function.
31801 (is_subset_of_any): New function.
31802 (is_or_set_subset_of): New function.
31803 (is_and_set_subset_of): New function.
31804 (is_norm_cond_subset_of): New function.
31805 (is_pred_expr_subset_of): New function.
31806 (is_pred_chain_subset_of): New function.
31807 (is_included_in): New function.
31808 (is_superset_of): New function.
31809 (find_uninit_use): New function.
31810 (warn_uninitialized_phi): New function.
31811 (compute_possibly_undefined_names): New function.
31812 (ssa_undefined_value_p): New function.
31813 (execute_late_warn_uninitialized): New function.
31814 * tree-ssa.c (ssa_undefined_value_p): Removed.
31815 (warn_uninit): Changed to extern.
31816 (warn_uninitialized_phi): Removed.
31817 (warn_uninitialized_vars): Changed to extern.
31818 (execute_late_warn_uninitialized): Removed
31819 * tree-flow.h: Add new prototypes.
31820 * timevar.def: Add new time variable.
31821 * Makefile.in: Add new build file.
31823 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
31825 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31828 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31831 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31833 2010-04-28 Martin Jambor <mjambor@suse.cz>
31835 * cgraph.h (struct cgraph_node): New field indirect_calls.
31836 (struct cgraph_indirect_call_info): New type.
31837 (struct cgraph_edge): Removed field indirect_call. New fields
31838 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31839 (cgraph_create_indirect_edge): Declare.
31840 (cgraph_make_edge_direct): Likewise.
31841 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31842 * ipa-prop.h (struct ipa_param_call_note): Removed.
31843 (struct ipa_node_params): Removed field param_calls.
31844 (ipa_create_all_structures_for_iinln): Declare.
31845 * cgraph.c: Described indirect edges and uids in initial comment.
31846 (cgraph_add_edge_to_call_site_hash): New function.
31847 (cgraph_edge): Search also among the indirect edges, use
31848 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
31849 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
31850 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
31852 (initialize_inline_failed): Assign a reason to indirect edges.
31853 (cgraph_create_edge_1): New function.
31854 (cgraph_create_edge): Moved some functionality to
31855 cgraph_create_edge_1.
31856 (cgraph_create_indirect_edge): New function.
31857 (cgraph_edge_remove_callee): Add an assert checking for
31859 (cgraph_edge_remove_caller): Special-case indirect edges.
31860 (cgraph_remove_edge): Likewise.
31861 (cgraph_set_edge_callee): New function.
31862 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
31863 (cgraph_make_edge_direct): New function.
31864 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
31865 the declaration of the call statement matches.
31866 (cgraph_node_remove_callees): Special-case indirect edges.
31867 (cgraph_clone_edge): Likewise.
31868 (cgraph_clone_node): Clone also the indirect edges.
31869 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
31870 indirect_call, dump count of indirect_calls edges.
31871 * ipa-prop.c (iinlining_processed_edges): New variable.
31872 (ipa_note_param_call): Create indirect edges instead of
31873 creating notes. New parameter node.
31874 (ipa_analyze_call_uses): New parameter node, pass it on to
31875 ipa_note_param_call.
31876 (ipa_analyze_stmt_uses): Likewise.
31877 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
31878 (print_edge_addition_message): Work on edges rather than on notes.
31879 (update_call_notes_after_inlining): Likewise, renamed to
31880 update_indirect_edges_after_inlining.
31881 (ipa_create_all_structures_for_iinln): New function.
31882 (ipa_free_node_params_substructures): Do not free notes.
31883 (ipa_edge_duplication_hook): Propagate bits within
31884 iinlining_processed_edges bitmap.
31885 (ipa_node_duplication_hook): Do not duplicate notes.
31886 (free_all_ipa_structures_after_ipa_cp): Renamed to
31887 ipa_free_all_structures_after_ipa_cp.
31888 (free_all_ipa_structures_after_iinln): Renamed to
31889 ipa_free_all_structures_after_iinln.
31890 (ipa_write_param_call_note): Removed.
31891 (ipa_read_param_call_note): Removed.
31892 (ipa_write_indirect_edge_info): New function.
31893 (ipa_read_indirect_edge_info): Likewise.
31894 (ipa_write_node_info): Do not stream notes, do stream information
31896 (ipa_read_node_info): Likewise.
31897 (lto_ipa_fixup_call_notes): Removed.
31898 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
31899 * ipa-inline.c (pass_ipa_inline): Likewise.
31900 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
31901 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
31902 * tree-inline.c (copy_bb): Removed an unnecessary double check for
31904 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
31906 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
31907 (output_cgraph): Stream also indirect edges.
31908 (lto_output_edge): Added capability to stream indirect edges.
31909 (input_edge): Likewise.
31910 (input_cgraph_1): Likewise.
31911 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
31914 2010-04-28 Richard Guenther <rguenther@suse.de>
31916 PR tree-optimization/43879
31917 PR tree-optimization/43909
31918 * tree-ssa-structalias.c (struct variable_info): Add
31919 only_restrict_pointers flag.
31920 (new_var_info): Initialize it. Increment stats.total_vars here.
31921 (create_function_info_for): Do not increment stats.total_vars here.
31922 (get_function_part_constraint): Fix build with C++.
31923 (insert_into_field_list): Remove.
31924 (push_fields_onto_fieldstack): Properly merge fields.
31925 (create_variable_info_for): Split and simplify.
31926 (create_variable_info_for_1): New piece.
31927 (intra_create_variable_infos): Properly make restrict constraints
31930 2010-04-28 Richard Guenther <rguenther@suse.de>
31933 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
31935 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
31936 Jan Hubicka <hubicka@ucw.cz>
31938 * doc/invoke.texi (-Wsuggest-attribute=const,
31939 -Wsuggest-attribute=pure): Document.
31940 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
31941 (function_always_visible_to_compiler_p,
31942 suggest_attribute, warn_function_pure, warn_function_const):
31944 (check_call): Improve debug info.
31945 (analyze_function): Do not check availability.
31946 (add_new_function): Check availability.
31947 (propagate): Output warnings.
31948 (skip_function_for_local_pure_const): New function.
31949 (local_pure_const): Use it; output warnings.
31950 * common.opt (Wsuggest-attribute=const,
31951 Wsuggest-attribute=pure): New.
31953 2010-04-27 Jakub Jelinek <jakub@redhat.com>
31955 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
31956 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
31957 or DW_CFA_def_cfa_offset{,_sf}.
31959 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
31961 * tree.h: Fix truncated long macros.
31963 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
31965 * collect2.c (TARGET_64BIT): Redefine to target's default.
31966 * tlink.c: Likewise.
31967 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
31968 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
31969 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
31970 for underscoring __USER_LABEL_PREFIX__.
31971 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
31972 (SUB_LINK_ENTRY32): New.
31973 (SUB_LINK_ENTRY64): New.
31974 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
31975 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
31976 (SUB_LINK_ENTRY64): New.
31977 (SUB_LINK_ENTRY): New.
31978 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
31979 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
31980 x64 target is choosen.
31981 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
31982 * configure: Regenerated.
31983 * configure.ac (leading-mingw64-underscores): Option added.
31985 2010-04-27 Jan Hubicka <jh@suse.cz>
31987 * doc/invoke.texi (-fipa-profile): Document.
31988 * opts.c (decode_options): Enable ipa-profile at -O1.
31989 * timevar.def (TV_IPA_PROFILE): Define.
31990 * common.opt (fipa-profile): Add.
31991 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
31993 (cgraph_propagate_frequency): Handle only local ones.
31994 * tree-pass.h (pass_ipa_profile): Declare.
31995 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
31996 (pass_ipa_profile): Use TV_IPA_PROFILE.
31997 * ipa.c (ipa_profile): New function.
31998 (gate_ipa_profile): Likewise.
31999 (pass_ipa_profile): New global variable.
32000 * passes.c (pass_ipa_profile): New.
32002 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
32004 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
32006 2010-04-27 Martin Jambor <mjambor@suse.cz>
32008 PR middle-end/43812
32009 * ipa.c (dissolve_same_comdat_group_list): New function.
32010 (function_and_variable_visibility): Call
32011 dissolve_same_comdat_group_list when comdat group contains external or
32013 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
32014 lists are circular and that they contain only DECL_ONE_ONLY nodes.
32016 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32018 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
32019 (const_hash_1) <VECTOR_CST>: New case.
32020 (compare_constant) <VECTOR_CST>: Likewise.
32021 <ADDR_EXPR>: Deal with LABEL_REFs.
32022 (copy_constant) <VECTOR_CST>: New case.
32024 2010-04-27 Jan Hubicka <jh@suse.cz>
32026 * cgraph.c (cgraph_propagate_frequency): New function.
32027 * cgraph.h (cgraph_propagate_frequency): Declare.
32028 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
32029 cgraph_propagate_frequency.
32031 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32033 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
32035 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
32038 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
32039 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
32040 here to determine which regs to push and how much stack to reserve.
32042 2010-04-27 Jie Zhang <jie@codesourcery.com>
32044 * doc/gimple.texi (gimple_statement_with_ops): Remove
32045 addresses_taken field.
32046 (gimple_statement_with_memory_ops): Likewise.
32048 2010-04-27 Jan Hubicka <jh@suse.cz>
32050 * tree-inline.c (eni_inlining_weights): Remove.
32051 (estimate_num_insns): Special case more builtins.
32053 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
32056 * c-typeck.c (build_binary_op): Move forward check for comparison
32057 pointer with null pointer constant and adjust the diagnostic message.
32059 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
32062 * configure.ac (gcc_cv_as_section_has_align): Set if installed
32063 binutils supports extended .section directive needed by LTO, or
32064 warn if older binutils found.
32065 (LTO_BINARY_READER): New AC_SUBST'd variable.
32066 (LTO_USE_LIBELF): Likewise.
32067 * config.gcc (lto_binary_reader): New target-specific configure
32069 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
32070 (LTO_USE_LIBELF): Likewise.
32071 * configure: Regenerate.
32073 * collect2.c (is_elf): Rename from this ...
32074 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
32075 object files in addition to ELF-formatted ones.
32076 (scan_prog_file): Caller updated. Also allow for LTO info marker
32077 symbol to be prefixed or not by an extra underscore.
32079 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
32080 * config/i386/winnt.c: Also #include lto-streamer.h
32081 (i386_pe_asm_named_section): Specify 1-byte section alignment for
32082 LTO named sections.
32083 (i386_pe_asm_output_aligned_decl_common): Add comment.
32084 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
32086 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
32089 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
32090 Add missing earlyclobber for second alternative.
32092 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
32094 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
32095 bits for artificial defs at the top of the block.
32096 * fwprop.c (single_def_use_enter_block): Don't call it.
32098 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
32101 * configure.ac: Use "$gcc_cv_nm -g" on darwin
32102 instead of "$gcc_cv_objdump -T".
32103 Use "-undefined dynamic_lookup" on darwin.
32104 * configure: Regenerate.
32106 2010-04-26 Jakub Jelinek <jakub@redhat.com>
32109 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
32111 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32113 * c-parser.c (struct c_token): Move location field up.
32114 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
32115 (struct c_declspecs): Convert typespec_word, storage_class, and
32116 default_int_p into bitfields.
32117 (struct c_declarator): Move loc field up.
32119 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32121 * cfgloop.h (struct loop): Move can_be_parallel field up.
32122 * ipa-prop.h (struct ip_node_params): Move bitfields up.
32123 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
32125 (struct iv_cand): Convert pos field into a bitfield.
32126 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
32128 (struct _stmt_vec_info): Shuffle fields for better packing.
32130 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32132 * varasm.c (IN_NAMED_SECTION): Remove guard.
32133 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
32134 (IN_NAMED_SECTION_P): ...this.
32135 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
32136 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
32138 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32140 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
32141 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
32142 of shadowing it. Fix comments.
32144 2010-04-26 Jan Hubicka <jh@suse.cz>
32146 * cgraph.c (cgraph_create_node): Set node frequency to normal.
32147 (cgraph_clone_node): Copy function frequency.
32148 * cgraph.h (node_frequency): New enum
32149 (struct cgraph_node): Add.
32150 * final.c (rest_of_clean_state): Update.
32151 * lto-cgraph.c (lto_output_node): Output node frequency.
32152 (input_overwrite_node): Input node frequency.
32153 * tre-ssa-loop-ivopts (computation_cost): Update.
32154 * lto-streamer-out.c (output_function): Do not output function
32156 * predict.c (maybe_hot_frequency_p): Update and handle functions
32158 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
32160 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
32161 (compute_function_frequency): Set noreturn functions to be executed
32163 (choose_function_section): Update.
32164 * lto-streamer-in.c (input_function): Do not input function frequency.
32165 * function.c (allocate_struct_function): Do not initialize function
32167 * function.h (function_frequency): Remove.
32168 (struct function): Remove function frequency.
32169 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
32170 (try_update): Update.
32171 * tree-inline.c (initialize_cfun): Do not update function frequency.
32172 * passes.c (pass_init_dump_file): Update.
32173 * i386.c (ix86_compute_frame_layout): Update.
32174 (ix86_pad_returns): Update.
32176 2010-04-26 Jie Zhang <jie@codesourcery.com>
32178 PR tree-optimization/43833
32179 * tree-vrp.c (range_int_cst_p): New.
32180 (range_int_cst_singleton_p): New.
32181 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
32182 when both operands are constants. Use range_int_cst_p in
32185 2010-04-26 Jan Hubicka <jh@suse.cz>
32187 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
32189 2010-04-26 Richard Guenther <rguenther@suse.de>
32192 * gimple.c (gimple_decl_printable_name): Deal gracefully
32193 with a NULL DECL_NAME.
32195 2010-04-26 Richard Guenther <rguenther@suse.de>
32198 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
32199 if emitting debug information and it is either a function
32200 or a namespace decl.
32202 2010-04-26 Ira Rosen <irar@il.ibm.com>
32204 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
32205 determine if the statement is vectorizable, and a macro to access it.
32206 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32207 Skip statements that can't be vectorized. If the analysis fails,
32208 mark the statement as unvectorizable if vectorizing basic block.
32209 (vect_compute_data_refs_alignment): Likewise.
32210 (vect_verify_datarefs_alignment): Skip statements marked as
32211 unvectorizable. Add print.
32212 (vect_analyze_group_access): Skip statements that can't be
32213 vectorized. If the analysis fails, mark the statement as
32214 unvectorizable if vectorizing basic block.
32215 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
32216 * tree-vect-stmts.c (vectorizable_store): Fix the number of
32217 generated stmts for SLP.
32218 (new_stmt_vec_info): Initialize the new field.
32219 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
32220 statements marked as unvectorizable.
32222 2010-04-25 Joseph Myers <joseph@codesourcery.com>
32224 * c-common.c (flag_isoc1x): New.
32225 (flag_isoc99): Update comment.
32226 * c-common.h (flag_isoc1x): New.
32227 (flag_isoc99): Update comment.
32228 * c-cppbuiltin.c (builtin_define_float_constants): Also define
32229 __<type>_DECIMAL_DIG__.
32230 * c-opts.c (set_std_c1x): New.
32231 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
32232 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
32233 * c.opt (-std=c1x, -std=gnu1x): New options.
32234 * doc/cpp.texi: Mention -std=c1x.
32235 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
32236 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
32237 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
32238 * doc/standards.texi: Mention C1X.
32239 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
32240 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
32241 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
32244 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
32246 * config/i386/gmon-sol2.c (_mcleanup): Change format string
32247 placeholder from 0x%x to %#x.
32248 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32249 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32250 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32251 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32252 * config/i386/i386.c (ix86_target_string): Ditto.
32253 (output_pic_addr_const): Ditto.
32254 (print_operand): Ditto.
32256 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
32258 * combine.c (find_split_point): Add third argument. Use it
32259 to find nested multiply-accumulate instructions. Adjust calls.
32260 (try_combine): Adjust call to find_split_point.
32262 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
32264 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
32266 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
32268 PR tree-optimization/41442
32269 * fold-const.c (merge_truthop_with_opposite_arm): New function.
32270 (fold_binary_loc): Call it.
32272 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
32274 * toplev.c (general_init): Set default for fdiagnostics-show-option.
32275 * opts.c (common_handle_option): Allow disabling it.
32276 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
32278 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
32280 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
32281 between modes if both types are integral.
32283 2010-04-23 Richard Guenther <rguenther@suse.de>
32285 PR tree-optimization/43572
32286 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
32288 2010-04-23 Richard Guenther <rguenther@suse.de>
32291 * tree-inline.c (tree_can_inline_p): Also check compatibility
32294 2010-04-23 Martin Jambor <mjambor@suse.cz>
32296 PR tree-optimization/43846
32297 * tree-sra.c (struct access): New flag grp_assignment_read.
32298 (build_accesses_from_assign): Set grp_assignment_read.
32299 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
32300 (enum mark_read_status): New type.
32301 (analyze_access_subtree): Propagate grp_assignment_read, create
32302 accesses also if both direct_read and root->grp_assignment_read.
32304 2010-04-23 Martin Jambor <mjambor@suse.cz>
32306 PR middle-end/43835
32307 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
32308 function does not have type attributes.
32310 2010-04-23 Richard Guenther <rguenther@suse.de>
32313 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
32316 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32318 * sese.h (create_if_region_on_edge): Remove.
32320 * sese.c (create_if_region_on_edge): Make static.
32322 * tree-inline.c: Do not include ggc.h.
32324 * expr.c: Do not include ggc.h.
32326 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
32329 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
32332 * config/sh/sh.c (find_barrier): Don't emit a constant pool
32333 in the middle of insns for casesi_worker_2.
32335 2010-04-22 David Edelsohn <edelsohn@gnu.org>
32337 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
32339 2010-04-22 Ira Rosen <irar@il.ibm.com>
32341 PR tree-optimization/43842
32342 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
32343 loop unrolling in update of exit phis. Fix comment.
32344 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
32345 least two reduction statements in the loop before starting SLP
32348 2010-04-22 Nick Clifton <nickc@redhat.com>
32350 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
32352 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
32354 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
32355 to simplify a + ~a.
32357 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32359 * tree-parloops.c (loop_parallel_p): New argument
32360 parloop_obstack. Pass it down.
32361 (parallelize_loops): New variable parloop_obstack. Initialize it,
32362 pass it down, free it.
32364 * tree-loop-linear.c (linear_transform_loops): Pass down
32367 * tree-data-ref.h (lambda_compute_access_matrices): New argument
32368 of type struct obstack *.
32370 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
32371 scratch_obstack. Initialize it, pass down, free it.
32373 * lambda.h (lambda_loop_new): Remove.
32374 (lambda_matrix_new, lambda_matrix_inverse)
32375 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
32376 argument of type struct obstack *.
32378 * lambda-trans.c (lambda_trans_matrix_new): New argument
32379 lambda_obstack. Pass it down, use obstack allocation for ret.
32380 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
32383 * lambda-mat.c (lambda_matrix_get_column)
32384 (lambda_matrix_project_to_null): Remove.
32385 (lambda_matrix_new): New argument lambda_obstack. Use obstack
32386 allocation for mat.
32387 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
32390 * lambda-code.c (lambda_loop_new): New function.
32391 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
32392 (lambda_compute_auxillary_space, lambda_compute_target_space)
32393 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
32394 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
32395 (build_access_matrix): New argument lambda_obstack. Use obstack
32397 (lambda_compute_step_signs, lambda_compute_access_matrices): New
32398 argument lambda_obstack. Pass it down.
32400 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32402 * optabs.h (expand_widening_mult): Declare.
32404 2010-04-22 Richard Guenther <rguenther@suse.de>
32406 PR tree-optimization/43845
32407 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
32408 lookup the CALL_EXPR function and arguments.
32410 2010-04-22 Nick Clifton <nickc@redhat.com>
32412 * config/stormy16/stormy16.c
32413 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
32414 * config/stormy16/stormy16.h: Tidy up formatting.
32415 (DONT_USE_BUILTIN_SETJMP): Remove definition.
32416 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
32417 (ineqbranchsi): Delete pattern.
32418 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
32419 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
32420 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
32421 stormy16-lib2-ucmpsi2.c.
32423 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32425 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
32426 df_simulate_find_noclobber_defs as appropriate. Keep track of an
32427 extra set merge_set_noclobber, and use it to relax the final test
32429 * df.h (df_simulate_find_noclobber_defs): Declare.
32430 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
32432 (df_simulate_find_noclobber_defs): New function.
32434 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
32436 * config/i386/i386.md: Use {} around multi-line preparation statements.
32438 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32440 * c-tree.h (push_init_level, pop_init_level, set_init_index)
32441 (process_init_element): New argument of type struct obstack *.
32443 * c-typeck.c (push_init_level, pop_init_level, set_designator)
32444 (set_init_index, set_init_label, set_nonincremental_init)
32445 (set_nonincremental_init_from_string, find_init_member)
32446 (output_init_element, output_pending_init_elements)
32447 (process_init_element): New argument braced_init_obstack. Pass it
32449 (push_range_stack, add_pending_init): New argument
32450 braced_init_obstack. Use obstack allocation.
32452 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
32453 braced_init_obstack. Pass it down.
32454 (c_parser_braced_init): New variables ret, braced_init_obstack.
32455 Initialize obstack, pass it down and finally free it.
32457 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32459 PR middle-end/29274
32460 * tree-pass.h (pass_optimize_widening_mul): Declare.
32461 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
32462 gate_optimize_widening_mul): New static functions.
32463 (pass_optimize_widening_mul): New.
32464 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
32465 <case MULT_EXPR>: Remove support for widening multiplies.
32466 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
32467 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
32468 simplify_gen_unary rather than directly building extensions.
32469 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
32471 * expmed.c (expand_widening_mult): New function.
32472 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
32474 2010-04-21 Jan Hubicka <jh@suse.cz>
32476 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
32477 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
32478 * lto-wpa-fixup.c: Remove.
32479 * Makefile.in (lto-wpa-fixup.o): Remove.
32480 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
32481 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
32482 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
32484 2010-04-21 Jan Hubicka <jh@suse.cz>
32486 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
32487 add write_optimization_summary, read_optimization_summary.
32488 (ipa_write_summaries_of_cgraph_node_set): Remove.
32489 (ipa_write_optimization_summaries): Declare.
32490 (ipa_read_optimization_summaries): Declare.
32491 * ipa-cp.c (pass_ipa_cp): Update.
32492 * ipa-reference.c (pass_ipa_reference): Update.
32493 * ipa-pure-const.c (pass_ipa_pure_const): Update.
32494 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
32496 * ipa-inline.c (pass_ipa_inline): Update.
32497 * ipa.c (pass_ipa_whole_program): Update.
32498 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
32499 * passes.c (ipa_write_summaries_1): Do not test wpa.
32500 (ipa_write_optimization_summaries_1): New.
32501 (ipa_write_optimization_summaries): New.
32502 (ipa_read_summaries): Do not test ltrans.
32503 (ipa_read_optimization_summaries_1): New.
32504 (ipa_read_optimization_summaries): New.
32506 2010-04-21 Jan Hubicka <jh@suse.cz>
32508 * lto-cgraph.c (lto_output_node): Do not output comdat groups
32509 for boundary nodes.
32510 (output_cgraph): Do not arrange comdat groups for boundary nodes.
32512 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32515 * dwarf2out.c (add_name_and_src_coords_attributes): Add
32516 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
32518 2010-04-21 Jan Hubicka <jh@suse.cz>
32520 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
32522 2010-04-21 Jan Hubicka <jh@suse.cz>
32524 * varpool.c (decide_is_variable_needed): Variable is always needed
32527 2010-04-21 Jan Hubicka <jh@suse.cz>
32529 * opts.c (decode_options): Enable pure-const pass for whopr.
32531 2010-04-21 Jan Hubicka <jh@suse.cz>
32533 * cgraph.c (dump_cgraph_node): Dump also assembler name.
32534 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
32536 (cgraph_decide_inlining): Do not expect callee to be removed in all
32539 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
32541 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
32543 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
32545 * config/i386/i386.md (x86_shrd): Add athlon_decode and
32546 amdfam10_decode attributes.
32548 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32550 PR middle-end/43570
32551 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
32552 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
32553 (lower_copyprivate_clauses): Use private var in outer
32554 context instead of original var. Make sure the types
32555 are correct for VLAs.
32557 2010-04-21 Richard Guenther <rguenther@suse.de>
32559 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
32560 to non-pointer objects.
32562 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32564 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
32565 last chain entry if it starts with the still current label.
32566 (add_location_or_const_value_attribute): Check that
32567 loc_list->first->next is NULL instead of comparing ->first with ->last.
32568 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
32569 to add_var_loc_to_decl.
32571 * dwarf2out.c (output_call_frame_info): For dw_cie_version
32572 >= 4 add also address size and segment size fields into CIE header.
32574 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
32575 long as address size is the same as sizeof (void *) and
32577 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
32578 address size or segment size is unexpected, return DW_EH_PE_omit.
32579 (classify_object_over_fdes): If get_cie_encoding returned
32580 DW_EH_PE_omit, return -1.
32581 (init_object): If classify_object_over_fdes returned -1,
32582 pretend there were no FDEs at all.
32584 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
32586 * config/i386/i386.md (bswap<mode>2): Macroize expander from
32587 bswap{si,di}2 using SWI48 mode iterator.
32588 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
32589 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
32590 set modrm attribute of bswap insn to 0 and remove length attribute.
32591 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
32592 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
32593 set mode attribute to <MODE> and remove length attribute.
32595 2010-04-20 James E. Wilson <wilson@codesourcery.com>
32597 PR rtl-optimization/43520
32598 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
32599 zero available registers.
32601 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32603 * builtins.c (fold_builtin_cproj): Fold more cases.
32605 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32607 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
32608 (fold_builtin_1): Fold builtin cproj.
32609 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
32610 Use ATTR_CONST_NOTHROW_LIST.
32612 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
32614 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
32615 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
32616 ffsi2_no_cmove for !TARGET_CMOVE.
32617 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
32618 (ffssi2): Remove expander.
32619 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
32621 (ctz<mode>2): Ditto from ctz{si,di}2.
32622 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
32624 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
32627 2010-04-20 Jakub Jelinek <jakub@redhat.com>
32629 * dwarf2out.c (AT_linkage_name): Define.
32630 (clone_as_declaration): Handle DW_AT_linkage_name.
32631 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
32632 of DW_AT_MIPS_linkage_name.
32633 (move_linkage_attr): Likewise.
32634 (dwarf2out_finish): Likewise.
32636 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
32638 PR middle-end/41952
32639 * fold-const.c (fold_comparison): New folding rule.
32641 2010-04-20 Anatoly Sokolov <aesok@post.ru>
32643 * double-int.h (double_int_setbit): Declare.
32644 * double-int.c (double_int_setbit): New function.
32645 * rtl.h (immed_double_int_const): Declare.
32646 * emit-rtl.c (immed_double_int_const): New function.
32647 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
32648 and immed_double_int_const functions.
32649 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
32650 expand_copysign_bit): (Ditto.).
32651 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
32652 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
32653 * dojump.c (prefer_and_bit_test): (Ditto.).
32654 * expr.c (convert_modes, reduce_to_bit_field_precision,
32655 const_vector_from_tree): (Ditto.).
32656 * expmed.c (mask_rtx, lshift_value): (Ditto.).
32658 2010-04-20 Jan Hubicka <jh@suse.cz>
32660 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
32661 (dump_cgraph_node): Dump new flags.
32662 * cgraph.h (struct cgraph_node): Add flags
32663 reachable_from_other_partition and in_other_partition.
32664 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
32665 other partition can not be removed.
32666 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
32667 the other partition must be output; silence sanity checking on
32668 leaking functions bodies from other paritition.
32669 * lto-cgraph.c (reachable_from_other_partition_p): New function.
32670 (lto_output_node): Output new flags; do not sanity check that inline
32671 clones are output; drop lto_forced_extern_inline_p code; do not mock
32672 visibility flags at partition boundaries.
32673 (add_node_to): New function.
32674 (output_cgraph): Use it to sort functions so masters appear before
32676 (input_overwrite_node): Input new flags.
32677 * passes.c (ipa_write_summaries): Do not call
32678 lto_new_extern_inline_states.
32679 * lto-section-out.c (forced_extern_inline,
32680 lto_new_extern_inline_states lto_delete_extern_inline_states,
32681 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
32682 * lto-streamer.h (lto_new_extern_inline_states,
32683 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
32684 lto_forced_extern_inline_p): Kill.
32686 2010-04-20 Richard Guenther <rguenther@suse.de>
32688 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
32689 from vars that can have pointers.
32690 (process_constraint): Dump useless constraints.
32692 2010-04-20 Richard Guenther <rguenther@suse.de>
32694 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
32695 (dump_sa_points_to_info): Remove asserts.
32696 (init_base_vars): nothing_id isn't an escape point nor does it
32699 2010-04-20 Jakub Jelinek <jakub@redhat.com>
32701 * tree.h (TYPE_REF_IS_RVALUE): Define.
32702 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
32703 should_move_die_to_comdat, prune_unused_types_walk): Handle
32704 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
32705 (modified_type_die, gen_reference_type_die): Emit
32706 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
32707 if TYPE_REF_IS_RVALUE and -gdwarf-4.
32709 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32712 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
32713 calls for -fpic -m31 if they have been sibcall optimized.
32715 2010-04-19 James E. Wilson <wilson@codesourcery.com>
32717 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
32718 ar.lc fixed and call-used.
32720 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
32722 2010-04-19 Jan Hubicka <jh@suse.cz>
32724 * opts.c (decode_options): Disable whpr incompatible passes.
32725 * lto/lto.c (lto_1_to_1_map): Skip clones.
32726 (read_cgraph_and_symbols): Do not mark everything as needed.
32727 (do_whole_program_analysis): Do map only after optimizing;
32728 set proper cgraph_state; use passmanager.
32730 2010-04-19 DJ Delorie <dj@redhat.com>
32732 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
32733 POINTER_PLUS_EXPR and fix them.
32735 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
32737 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
32738 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
32739 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
32740 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
32741 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
32742 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
32743 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
32744 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
32745 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
32746 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
32747 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
32749 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
32751 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
32752 (check_cond_move_block): Likewise.
32753 (cond_move_process_if_block): Likewise.
32754 (noce_find_if_block): Improve formatting.
32755 (find_if_header): Pass 0 to memset and tweak conditions.
32756 (cond_exec_find_if_block): Fix long lines and tweak conditions.
32758 2010-04-19 Jakub Jelinek <jakub@redhat.com>
32760 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32763 PR middle-end/43337
32764 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32765 with non-local decl doesn't need chain.
32767 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
32769 * ira-color.c (allocno_reload_assign): Avoid accumulating
32770 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32772 2010-04-19 Martin Jambor <mjambor@suse.cz>
32774 * gimple.h (create_tmp_reg): Declare.
32775 * gimplify.c (create_tmp_reg): New function.
32776 (gimplify_return_expr): Use create_tmp_reg.
32777 (gimplify_omp_atomic): Likewise.
32778 (gimple_regimplify_operands): Likewise.
32779 * tree-dfa.c (make_rename_temp): Likewise.
32780 * tree-predcom.c (predcom_tmp_var): Likewise.
32781 (reassociate_to_the_same_stmt): Likewise.
32782 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32783 (get_replaced_param_substitute): Likewise.
32784 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32785 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32786 * tree-ssa-pre.c (get_representative_for): Likewise.
32787 (create_expression_by_pieces): Likewise.
32788 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32789 (create_tailcall_accumulator): Likewise.
32791 2010-04-19 Martin Jambor <mjambor@suse.cz>
32793 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32795 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32797 2010-04-19 Richard Guenther <rguenther@suse.de>
32799 PR tree-optimization/43796
32800 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32801 from SCEV in the lattice.
32802 (vrp_visit_phi_node): Dump change.
32804 2010-04-19 Richard Guenther <rguenther@suse.de>
32806 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32807 * configure: Re-generated.
32809 2010-04-19 Richard Guenther <rguenther@suse.de>
32811 PR tree-optimization/43783
32812 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32813 constant ARRAY_REF operands two and three if possible.
32815 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
32818 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32820 2010-04-19 Jie Zhang <jie@codesourcery.com>
32823 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32825 2010-04-19 Ira Rosen <irar@il.ibm.com>
32827 PR tree-optimization/37027
32828 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32829 and macro to access it.
32830 (vectorizable_reduction): Add argument.
32831 (vect_get_slp_defs): Likewise.
32832 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32833 statements for possible use in SLP.
32834 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32835 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32836 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32838 (vectorizable_reduction): Likewise.
32839 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32841 (vectorizable_type_demotion, vectorizable_type_promotion,
32842 vectorizable_store): Likewise.
32843 (vect_analyze_stmt): Update call to vectorizable_reduction.
32844 (vect_transform_stmt): Likewise.
32845 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
32846 (vect_build_slp_tree): Fix indentation. Check that there are no loads
32847 from different interleaving chains in same node.
32848 (vect_slp_rearrange_stmts): New function.
32849 (vect_supported_load_permutation_p): Allow load permutations for
32850 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
32851 inside SLP nodes if necessary.
32852 (vect_analyze_slp_instance): Handle reductions.
32853 (vect_analyze_slp): Try to build SLP instances originating from groups
32855 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
32856 (vect_get_constant_vectors): Create initial vectors for reductions
32857 according to reduction code. Add new argument.
32858 (vect_get_slp_defs): Add new argument, pass it to
32859 vect_get_constant_vectors.
32860 (vect_schedule_slp_instance): Remove SLP tree root statements.
32862 2010-04-19 Jakub Jelinek <jakub@redhat.com>
32864 * tree.h (ENUM_IS_SCOPED): Define.
32865 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
32866 for ENUM_IS_SCOPED enums.
32868 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
32870 * fold-const.c (fold_comparison): Use ssizetype.
32871 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
32872 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
32873 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
32874 * tree-object-size.c (compute_object_sizes): Use size_type_node.
32876 * tree.h (initialize_sizetypes): Remove parameter.
32877 (build_common_tree_nodes): Remove second parameter.
32878 * stor-layout.c (initialize_sizetypes): Remove parameter.
32879 Always create an unsigned type.
32880 (set_sizetype): Assert that the passed type is unsigned and simplify.
32881 * tree.c (build_common_tree_nodes): Remove second parameter.
32882 Adjust call to initialize_sizetypes.
32883 * c-decl.c (c_init_decl_processing): Remove second argument in call to
32884 build_common_tree_nodes.
32886 2010-04-18 Matthias Klose <doko@ubuntu.com>
32888 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
32890 2010-04-18 Ira Rosen <irar@il.ibm.com>
32892 PR tree-optimization/43771
32893 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
32894 load permutation doesn't have gaps.
32896 2010-04-18 Jan Hubicka <jh@suse.cz>
32898 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
32899 (sse_prologue_save_insn expander): Use new pattern.
32900 (sse_prologue_save_insn1): New pattern and splitter.
32901 (sse_prologue_save_insn): Update to deal also with 64bit aligned
32903 * i386.c (setup_incoming_varargs_64): Do not compute jump
32905 (ix86_gimplify_va_arg): Update alignment needed.
32906 (ix86_local_alignment): Do not align all local arrays to 128bit.
32908 2010-04-17 Jan Hubicka <jh@suse.cz>
32910 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
32912 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32914 * arm.md (negdi2): Remove redundant code to force values into a
32917 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32919 * arm/bpabi.S: Add EABI alignment attributes to objects.
32920 * arm/bpabi-v6m.S: Likewise.
32921 * arm/crti.asm: Likewise.
32922 * arm/crtn.asm: Likewise.
32923 * arm/lib1funcs.asm: Likewise.
32924 * arm/libunwind.S: Likewise.
32926 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32928 * arm-protos.h (tune_params): New structure.
32929 * arm.c (current_tune): New variable.
32930 (arm_constant_limit): Delete.
32931 (struct processors): Add pointer to the tune parameters.
32932 (arm_slowmul_tune): New tuning option.
32933 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
32934 (all_cores): Adjust to pick up the tuning model.
32935 (arm_constant_limit): New function.
32936 (arm_override_options): Select the appropriate tuning model. Delete
32937 initialization of arm_const_limit.
32938 (arm_split_constant): Use the new constant-limit model.
32939 (arm_rtx_costs): Pick up the current tuning model.
32940 * arm.md (is_strongarm, is_xscale): Delete.
32941 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
32942 for Xscale variant architectures.
32943 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
32945 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32947 * config/arm/arm.c (arm_gen_constant): Remove unused variable
32949 (arm_rtx_costs_1): Remove unused variable extra_cost.
32950 (arm_unwind_emit_set): Use variable offset.
32951 (thumb1_output_casesi): Remove unused variable flags.
32953 2010-04-16 Jeff Law <law@redhat.com>
32955 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
32956 needing assignment rather than doing a two-phase assignment. Remove
32957 unused variable 'm'.
32959 2010-04-16 Jakub Jelinek <jakub@redhat.com>
32962 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
32964 2010-04-16 Doug Kwan <dougkwan@google.com>
32966 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
32967 (next_operand_entry_id): New static variable.
32968 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
32969 (add_to_ops_vec): Assigned unique ID to operand entry.
32970 (struct oecount_s): New field ID.
32971 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
32972 (undistribute_ops_list): Assign unique IDs to oecounts.
32973 (init_reassoc): reset next_operand_entry_id.
32975 2010-04-16 Doug Kwan <dougkwan@google.com>
32977 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
32978 missing left parenthesis.
32980 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
32982 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
32983 *btdi_rex64 using SWI48 mode iterator.
32984 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
32985 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
32986 *jcc_btdi_mask_rex64.
32988 2010-04-16 Anatoly Sokolov <aesok@post.ru>
32990 * double-int.h (tree_to_double_int): Convert to macro.
32991 * double-int.c (tree_to_double_int): Remove.
32993 2010-04-16 Jakub Jelinek <jakub@redhat.com>
32996 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
32997 with want_address 2 and in case a single element list might be
32998 possible, call it again with want_address 0.
33000 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33002 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
33003 case 'W' print operands for HI mode.
33004 * config/h8300/h8300.h (Y0, Y2) : New constraints.
33005 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
33006 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
33007 * config/h8300/predicate.md (bit_register_indirect_operand): New.
33009 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
33011 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
33012 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
33013 #xx:3 and #xx:4 mode.
33015 * config/h8300/h8300.md (inverted load with HImode dest): Add
33016 support for H8300SX.
33018 * config/h8300/predicate.md (bit_operand): Allow immediate values that
33019 satisfy 'U' constraint.
33021 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33023 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
33024 * configure: Regenerate.
33025 * config.in: Regenerate.
33026 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
33029 2010-04-16 Richard Guenther <rguenther@suse.de>
33031 * tree.h (struct tree_decl_minimal): Move pt_uid ...
33032 (struct tree_decl_common): ... here.
33033 (DECL_PT_UID): Adjust.
33034 (SET_DECL_PT_UID): Likewise.
33035 (DECL_PT_UID_SET_P): Likewise.
33037 2010-04-16 Richard Guenther <rguenther@suse.de>
33039 PR tree-optimization/43572
33040 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
33041 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
33042 * tree-flow.h (is_call_clobbered): Remove.
33043 * tree-flow-inline.h (is_call_clobbered): Likewise.
33044 * tree-dfa.c (dump_variable): Do not dump call clobber state.
33045 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
33046 (execute_return_slot_opt): Adjust.
33047 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
33048 check for call clobbered vars here.
33049 (find_tail_calls): Move tailcall verification to the
33052 2010-04-16 Diego Novillo <dnovillo@google.com>
33054 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
33056 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33059 * config/arm/arm.md (cbranchqi4): New pattern.
33060 * config/arm/predicates.md (const0_operand,
33061 cbranchqi4_comparison_operator): New predicates.
33063 2010-04-16 Richard Guenther <rguenther@suse.de>
33065 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
33066 (dump_gimple_stmt): Likewise.
33068 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33070 * recog.h (struct recog_data): New field is_operator.
33071 (struct insn_operand_data): New field is_operator.
33072 * recog.c (extract_insn): Set recog_data.is_operator.
33073 * genoutput.c (output_operand_data): Emit code to set the
33075 * reload.c (find_reloads): Use it rather than testing for an
33076 empty constraint string.
33079 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
33080 If the previous insn is a cbranchsi4_insn with the same arguments,
33081 omit the compare instruction.
33083 * config/arm/arm.md (addsi3_cbranch): If destination is a high
33084 register, inputs must be low registers and we need a low register
33085 scratch. Handle alternative 2 like alternative 3.
33087 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33089 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
33090 don't call get_addr on both. If one expression is a VALUE and
33091 the other a REG, check VALUE's locs if the REG isn't among them.
33093 2010-04-16 Christian Bruel <christian.bruel@st.com>
33095 * config/sh/sh.h (sh_frame_pointer_required): New function.
33096 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
33097 (flag_omit_frame_pointer) Set.
33098 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
33099 (rounded_frame_size): Adjust size with outgoing_args_size.
33100 (sh_set_return_address): Must return from stack pointer.
33101 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
33102 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
33103 (ACCUMULATE_OUTGOING_ARGS): Define.
33104 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
33105 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
33107 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33110 * config/sh/sh.c (sh_legitimize_reload_address): Use
33111 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
33112 Remove a unneeded check for offset_base.
33114 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
33116 * configure: Regenerated.
33118 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33120 * config/s390/s390.c (s390_call_save_register_used): Switch back
33121 to HARD_REGNO_NREGS.
33123 2010-04-15 Richard Guenther <rguenther@suse.de>
33125 * alias.c (alias_set_subset_of): Handle alias-set zero
33128 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
33129 Julian Brown <julian@codesourcery.com>
33131 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
33132 alternatives according to use of high and low regs.
33133 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
33134 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
33135 optimizing for size on Thumb-2.
33137 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
33139 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
33141 2010-04-15 Richard Guenther <rguenther@suse.de>
33143 * tree-ssa-structalias.c (struct variable_info): Add
33145 (new_var_info): Initialize it.
33146 (dump_constraints): Support printing last added constraints.
33147 (debug_constraints): Adjust.
33148 (dump_constraint_graph): Likewise.
33149 (make_heapvar_for): Check for NULL cfun.
33150 (get_function_part_constraint): New function.
33151 (get_fi_for_callee): Likewise.
33152 (find_func_aliases): Properly implement IPA PTA constraints.
33153 (process_ipa_clobber): New function.
33154 (find_func_clobbers): Likewise.
33155 (insert_into_field_list_sorted): Remove.
33156 (create_function_info_for): Properly allocate vars for IPA mode.
33157 Do not use insert_into_field_list_sorted.
33158 (create_variable_info_for): Properly generate constraints for
33159 global vars in IPA mode.
33160 (dump_solution_for_var): Always dump the solution.
33161 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
33162 (find_what_var_points_to): Adjust.
33163 (pt_solution_set): Change.
33164 (pt_solution_ior_into): New function.
33165 (pt_solution_empty_p): Export.
33166 (pt_solution_includes_global): Adjust.
33167 (pt_solution_includes_1): Likewise.
33168 (pt_solutions_intersect_1): Likewise.
33169 (dump_sa_points_to_info): Check some invariants.
33170 (solve_constraints): Move constraint dumping ...
33171 (compute_points_to_sets): ... here.
33172 (ipa_pta_execute): ... and here.
33173 (compute_may_aliases): Do not re-compute points-to info
33174 locally if IPA info is available.
33175 (ipa_escaped_pt): New global var.
33176 (ipa_pta_execute): Properly implement IPA PTA.
33177 * tree-into-ssa.c (dump_decl_set): Support dumping
33178 decls not in referenced-vars.
33179 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
33180 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
33181 (dump_points_to_solution): Likewise.
33182 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
33183 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
33184 (remap_gimple_stmt): Reset call clobber/use information if necessary.
33185 (copy_decl_to_var): Copy DECL_PT_UID.
33186 (copy_result_decl_to_var): Likewise.
33187 * tree.c (make_node_stat): Initialize DECL_PT_UID.
33188 (copy_node_stat): Copy it.
33189 * tree.h (DECL_PT_UID): New macro.
33190 (SET_DECL_PT_UID): Likewise.
33191 (DECL_PT_UID_SET_P): Likewise.
33192 (struct tree_decl_minimal): Add pt_uid member.
33193 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
33194 (pt_solution_empty_p): Declare.
33195 (pt_solution_set): Adjust.
33196 (ipa_escaped_pt): Declare.
33197 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
33198 * gimple-pretty-print.c (pp_points_to_solution): New function.
33199 (dump_gimple_call): Dump call clobber/use information.
33200 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
33201 * tree-pass.h (TDF_ALIAS): New dump option.
33202 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
33203 * doc/invoke.texi (-fipa-pta): Update documentation.
33205 2010-04-15 Richard Guenther <rguenther@suse.de>
33207 * Makefile.in (OBJS-common): Add gimple-fold.o.
33208 (gimple-fold.o): New rule.
33209 * tree.h (maybe_fold_offset_to_reference,
33210 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
33212 * gimple.h: ... here.
33213 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
33214 may_propagate_address_into_dereference): Move prototypes ...
33215 * gimple.h: ... here.
33216 * tree-ssa-ccp.c (get_symbol_constant_value,
33217 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
33218 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
33219 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
33220 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
33221 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
33222 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
33223 gimplify_and_update_call_from_tree): Move ...
33224 * gimple-fold.c: ... here. New file.
33225 (ccp_fold_builtin): Rename to ...
33226 (gimple_fold_builtin): ... this.
33227 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
33229 2010-04-15 Richard Guenther <rguenther@suse.de>
33231 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
33232 fit_double_type, force_fit_type_double, add_double_with_sign,
33233 neg_double, mul_double_with_sign, lshift_double, rshift_double,
33234 lrotate_double, rrotate_double, div_and_round_double): Move ...
33235 * double-int.c: ... here.
33236 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
33237 add_double, neg_double, mul_double_with_sign, mul_double,
33238 lshift_double, rshift_double, lrotate_double, rrotate_double,
33239 div_and_round_double): Move prototypes ...
33240 * double-int.h: ... here.
33242 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
33245 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
33246 matching constraints to ensure inputs match the output.
33248 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33251 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
33252 in an input-only operand.
33254 2010-04-15 Anatoly Sokolov <aesok@post.ru>
33256 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
33257 (double_int_not, double_int_lshift, double_int_rshift): Declare.
33258 (double_int_negative_p): Convert to static inline function.
33259 * double-int.c (double_int_lshift, double_int_lshift): New functions.
33260 (double_int_negative_p): Remove.
33261 * tree.h (lshift_double, rshift_double):
33262 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
33263 * fold-const.c (fold_convert_const_int_from_real,
33264 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
33265 (lshift_double): Change type of arith argument to bool.
33266 (rshift_double): Change type of arith argument to bool. Correct
33268 * expmed.c (mask_rtx, lshift_value): (Ditto.).
33270 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
33273 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
33274 at the start and end of the then/else blocks, and omit them from the
33276 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
33277 argument; all callers changed. Pass zero to old_insns_match_p instead.
33278 (flow_find_head_matching_sequence): New function.
33279 (old_insns_match_p): Check REG_EH_REGION notes for calls.
33280 * basic-block.h (flow_find_cross_jump,
33281 flow_find_head_matching_sequence): Declare functions.
33283 2010-04-14 Jason Merrill <jason@redhat.com>
33286 * c-common.c (attribute_takes_identifier_p): New fn.
33287 * c-common.h: Declare it.
33289 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33291 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
33292 splitter condition.
33293 (*udivmod<mode>4): Ditto.
33295 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33297 * config/i386/i386.md (maxmin_int): Rename code attribute from
33298 maxminiprefix and update all users.
33299 (maxmin_float): Ditto from maxminfprefix.
33300 (logic): Ditto from logicprefix.
33301 (absneg_mnemonic): Ditto from absnegprefix.
33302 * config/i386/mmx.md: Update all users of maxminiprefix,
33303 maxminfprefix and logicprefix for rename.
33304 * config/i386/sse.md: Ditto.
33305 * config/i386/sync.md (sync_<code><mode>): Update for
33306 logicprefix rename.
33308 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
33311 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
33312 warnings converted to errors.
33314 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33316 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
33317 used insn_type variable.
33318 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
33319 to avoid set-but-not-used warning.
33321 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33323 * df-core.c (df_ref_debug): Change format string placeholder
33325 * dwarf2asm.c (dw2_asm_output_data_raw,
33326 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
33327 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
33328 * dwarf2out.c (output_cfi, output_cfi_directive,
33329 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
33330 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
33332 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
33333 * print-rtl.c (print_rtx): Ditto.
33335 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33337 PR middle-end/42694
33338 * builtins.c (expand_builtin_pow_root): New function to expand pow
33339 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
33340 series of sqrt and cbrt calls under -ffast-math.
33341 (expand_builtin_pow): Call it.
33343 2010-04-14 Michael Matz <matz@suse.de>
33345 PR tree-optimization/42963
33346 * tree-cfg.c (touched_switch_bbs): New static variable.
33347 (group_case_labels_stmt): New function broken out from ...
33348 (group_case_labels): ... here, use the above.
33349 (start_recording_case_labels): Allocate touched_switch_bbs.
33350 (end_recording_case_labels): Deallocate it, call
33351 group_case_labels_stmt.
33352 (gimple_redirect_edge_and_branch): Remember index of affected BB.
33354 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33356 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
33357 from insn template.
33359 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33361 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
33363 2010-04-13 Jan Hubicka <jh@suse.cz>
33365 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
33366 of optimized out static functions.
33367 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
33368 cost computation. Also sanity check for overflows.
33369 (update_caller_keys): Update cgraph_edge_badness call; properly
33370 update fibheap and sanity check that it is up to date.
33371 (add_new_edges_to_heap): Update cgraph_edge_badness.
33372 (cgraph_decide_inlining_of_small_function): Likewise;
33373 add sanity checking that badness in heap is up to date;
33374 improve dumping of reason; Update badness of calls to the
33375 offline copy of function currently inlined; dump badness
33376 of functions not inlined because of unit growth limits.
33378 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
33380 PR middle-end/32628
33381 * c-common.c (pointer_int_sum): Disregard overflow that occured only
33382 because of sign-extension change when converting to sizetype here...
33383 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
33385 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
33386 the folding to constants. Remove redundant final conversion.
33387 (fold_binary) <associate>: Do not associate if the re-association of
33388 constants alone overflows.
33389 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
33390 to the end of the list.
33391 (multiple_of_p) <COND_EXPR>: New case.
33393 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
33395 * opt-functions.awk (opt_sanitized_name): New.
33397 * optc-gen.awk: Use it
33398 * opth-gen.awk: Use it.
33400 2010-04-13 Martin Jambor <mjambor@suse.cz>
33402 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
33403 (sra_modify_assign): Delete stmts loading dead data even if racc has no
33404 children. Call replace_uses_with_default_def_ssa_name to handle
33407 2010-04-13 Michael Matz <matz@suse.de>
33409 PR middle-end/43730
33410 * builtins.c (expand_builtin_interclass_mathfn): Also create
33411 a register if the predicate doesn't match.
33413 2010-04-13 Diego Novillo <dnovillo@google.com>
33415 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
33416 * c-pch.c: Include timevar.h.
33417 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
33418 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
33419 * ggc-common.c: Include timevar.h.
33420 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
33421 * timevar.def (TV_PCH_SAVE): Define.
33422 (TV_PCH_CPP_SAVE): Define.
33423 (TV_PCH_PTR_REALLOC): Define.
33424 (TV_PCH_PTR_SORT): Define.
33425 (TV_PCH_RESTORE): Define.
33426 (TV_PCH_CPP_RESTORE): Define.
33428 2010-04-13 Michael Matz <matz@suse.de>
33430 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
33432 (can_reassociate_p): New function.
33433 (break_up_subtract_bb, reassociate_bb): Use it.
33435 2010-04-13 Richard Guenther <rguenther@suse.de>
33438 * builtins.c (c_readstr): Fix assert.
33440 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
33442 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
33443 when generating cltd insn.
33445 (*ashl<mode>3_1): Remove special handling for register operand 2.
33446 (*ashlsi3_1_zext): Ditto.
33447 (*ashlhi3_1): Ditto.
33448 (*ashlhi3_1_lea): Ditto.
33449 (*ashlqi3_1): Ditto.
33450 (*ashlqi3_1_lea): Ditto.
33451 (*<shiftrt_insn><mode>3_1): Ditto.
33452 (*<shiftrt_insn>si3_1_zext): Ditto.
33453 (*<shiftrt_insn>qi3_1_slp): Ditto.
33454 (*<rotate_insn><mode>3_1): Ditto.
33455 (*<rotate_insn>si3_1_zext): Ditto.
33456 (*<rotate_insn>qi3_1_slp): Ditto.
33458 2010-04-13 Richard Guenther <rguenther@suse.de>
33460 * tree-ssa-structalias.c (callused_id): Remove.
33461 (call_stmt_vars): New.
33462 (get_call_vi): Likewise.
33463 (lookup_call_use_vi): Likewise.
33464 (lookup_call_clobber_vi): Likewise.
33465 (get_call_use_vi): Likewise.
33466 (get_call_clobber_vi): Likewise.
33467 (make_transitive_closure_constraints): Likewise.
33468 (handle_const_call): Adjust to do per-call call-used handling.
33469 (handle_pure_call): Likewise.
33470 (find_what_var_points_to): Remove general callused handling.
33471 (init_base_vars): Likewise.
33472 (init_alias_vars): Initialize call_stmt_vars.
33473 (compute_points_to_sets): Process call-used and call-clobbered
33474 vars for call statements.
33475 (delete_points_to_sets): Free call_stmt_vars.
33477 2010-04-13 Richard Guenther <rguenther@suse.de>
33479 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33480 Only add RW dependence for dependence distance zero.
33481 Adjust maximal vectorization factor according to dependences.
33482 Move alignment handling ...
33483 (vect_find_same_alignment_drs): ... here. New function.
33484 (vect_analyze_data_ref_dependences): Adjust.
33485 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
33486 (vect_analyze_data_refs): Adjust minimal vectorization factor
33487 according to data references.
33488 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
33489 dependences before determining the vectorization factor.
33490 Analyze alignment after determining the vectorization factor.
33491 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
33492 dependences before alignment.
33493 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
33495 (vect_analyze_data_refs): Likewise.
33496 (MAX_VECTORIZATION_FACTOR): New define.
33498 2010-04-13 Duncan Sands <baldrick@free.fr>
33500 * except.h (lang_eh_type_covers): Remove.
33501 * except.c (lang_eh_type_covers): Likewise.
33503 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33504 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33506 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
33507 * config/s390/s390.c: Replace UNTIS_PER_WORD with
33508 UNITS_PER_LONG where it is ABI relevant.
33509 (s390_return_addr_rtx): Likewise.
33510 (s390_back_chain_rtx): Likewise.
33511 (s390_frame_area): Likewise.
33512 (s390_frame_info): Likewise.
33513 (s390_initial_elimination_offset): Likewise.
33514 (save_gprs): Likewise.
33515 (s390_emit_prologue): Likewise.
33516 (s390_emit_epilogue): Likewise.
33517 (s390_function_arg_advance): Likewise.
33518 (s390_function_arg): Likewise.
33519 (s390_va_start): Likewise.
33520 (s390_gimplify_va_arg): Likewise.
33521 (s390_function_profiler): Likewise.
33522 (s390_optimize_prologue): Likewise.
33523 (s390_rtx_costs): Likewise.
33524 (s390_secondary_reload): Likewise.
33525 (s390_promote_function_mode): Likewise.
33526 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
33527 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
33528 registers available.
33529 (s390_unwind_word_mode): New function.
33530 (s390_function_value): Split 64 bit values into register pair if
33531 used as return value.
33532 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
33533 function call parameters. Handle parallels.
33534 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
33535 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
33536 (DWARF_CIE_DATA_ALIGNMENT): New macro.
33537 (s390_expand_setmem): Remove unused variable src_addr.
33538 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
33539 deal with 64 bit registers.
33540 * config/s390/s390.h: Define __zarch__ predefined macro.
33541 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
33542 (UNITS_PER_LONG): New macro.
33543 * libjava/include/s390-signal.h: Define extended ucontext
33544 structure containing the upper halfs of the 64 bit registers.
33546 2010-04-13 Simon Baldwin <simonb@google.com>
33548 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
33550 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
33552 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
33553 rvalue on the RHS if the LHS is of a non-renamable type.
33554 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
33556 2010-04-13 Matthias Klose <doko@ubuntu.com>
33558 * gcc.c (cc1_options): Handle -iplugindir before processing
33559 the cc1 spec. Only add -iplugindir once.
33560 (cpp_unique_options): Add -iplugindir option if -fplugin* options
33562 * common.opt (iplugindir): Remove `Separate' property, initialize.
33563 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
33565 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
33566 (distclean): Remove plugin dir.
33567 * doc/invoke.texi: Document -iplugindir.
33569 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
33571 * doc/plugins.texi (Loading Plugins): Document short
33572 -fplugin=foo option.
33573 (Plugin API): Mention default_plugin_dir_name function.
33575 * gcc.c (find_file_spec_function): Add new declaration.
33576 (static_spec_func): Use it for "find-file".
33577 (find_file_spec_function): Add new function.
33578 (cc1_options): Add -iplugindir option if -fplugin* options found.
33580 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
33582 * plugin.c (add_new_plugin): Updated comment, and handle short
33584 (default_plugin_dir_name): Added new function.
33586 * common.opt (iplugindir): New option to set the plugin directory.
33588 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
33590 * config/i386/i386.md (any_rotate): New code iterator.
33591 (rotate_insn): New code attribute.
33593 (SWIM124): New mode iterator.
33594 (<rotate_insn>ti3): New expander.
33595 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
33596 any_rotate code iterator.
33597 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
33598 using any_rotate code iterator and SWIM124 mode iterator.
33599 (ix86_rotlti3): New insn_and_split pattern.
33600 (ix86_rotrti3): Ditto.
33601 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
33602 ix86_rotl{di,ti}3 patterns.
33603 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
33604 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
33605 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
33606 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
33607 code iterator and SWI mode iterator.
33608 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
33609 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
33611 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
33612 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
33613 (bswap rotatert splitter): Add splitter.
33614 (bswap splitter): Macroize splitter using any_rotate code iterator.
33615 Add insn predicate to split only for TARGET_USE_XCHGB or when
33616 optimizing function for size.
33618 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33620 * config/pa/pa.c (emit_move_sequence): Remove use of
33621 deleted variable flag_argument_noalias.
33623 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33625 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
33627 Add to unsupported targets list.
33628 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
33629 sparc*-sun-solaris2.[567]* from target lists.
33630 * configure: Regenerate.
33631 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
33633 Remove Solaris 7 patch references.
33634 (Specific, sparc-sun-solaris2.7): Removed.
33635 (sparc-sun-solaris2*): Update Solaris 7 example.
33636 (sparc64-*-solaris2*): Likewise.
33638 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33640 * config.build (alpha*-dec-osf4*): Remove.
33641 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
33642 of obsolete configurations.
33643 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
33645 * config/alpha/t-osf4: Renamed to ...
33646 * config/alpha/t-osf5: ... this.
33647 * config/alpha/osf.h: Renamed to ...
33648 * config/alpha/osf5.h: ... this.
33649 Merged old osf5.h contents.
33651 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
33652 (EXTRA_SPECS): Removed.
33653 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
33654 reflect removal of Tru64 UNIX V4.0/V5.0 support.
33657 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33659 * doc/contrib.texi (Contributors, Rainer Orth): Update.
33661 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
33664 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
33665 __thiscall convention.
33667 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33669 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
33671 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
33673 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33675 * function.c (assign_parms_initialize_all): Add unused attribute
33678 2010-04-12 Richard Guenther <rguenther@suse.de>
33680 * gsstruct.def (GSS_CALL): New.
33681 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
33682 * gimple.h: Include tree-ssa-alias.h.
33683 (struct gimple_statement_call): New.
33684 (union gimple_statement_struct_d): Add gimple_call member.
33685 (gimple_call_reset_alias_info): Declare.
33686 (gimple_call_use_set): New function.
33687 (gimple_call_clobber_set): Likewise.
33688 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
33689 * gimple.c (gimple_call_reset_alias_info): New function.
33690 (gimple_build_call_1): Call it.
33691 * lto-streamer-in.c (input_gimple_stmt): Likewise.
33692 * tree-inline.c (remap_gimple_stmt): Likewise.
33693 (expand_call_inline): Remove callused handling.
33694 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
33695 * tree-dfa.c (dump_variable): Likewise.
33696 * tree-parloops.c (parallelize_loops): Likewise.
33697 * tree-ssa.c (init_tree_ssa): Likewise.
33698 (delete_tree_ssa): Likewise.
33699 * tree-flow-inline.h (is_call_used): Remove.
33700 * tree-flow.h (struct gimple_df): Remove callused member.
33701 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
33702 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
33703 (ref_maybe_used_by_call_p_1): Simplify.
33704 (call_may_clobber_ref_p_1): Likewise.
33705 * tree-ssa-structalias.c (compute_points_to_sets): Set
33706 the call stmt used and clobbered sets.
33707 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
33708 (find_tail_calls): Verify the tail call.
33710 2010-04-12 Richard Guenther <rguenther@suse.de>
33712 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
33713 single-iteration always-inline inlining.
33714 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
33715 (cgraph_decide_inlining): Do not handle always-inline specially.
33716 (try_inline): Remove always-inline cycle detection special case.
33717 Do not recurse on always-inlines.
33718 (cgraph_early_inlining): Do not iterate if not optimizing.
33719 (cgraph_gate_early_inlining): remove.
33720 (pass_early_inline): Run unconditionally.
33721 (gate_cgraph_decide_inlining): New function.
33722 (pass_ipa_inline): Use it. Do not run the IPA inliner if
33723 not inlining or optimizing.
33724 (cgraph_decide_inlining_of_small_functions): Also consider
33725 always-inline functions.
33726 (cgraph_default_inline_p): Return true for nodes which should
33727 disregard inline limits.
33728 (estimate_function_body_sizes): Assume zero size and time for
33729 nodes which are marked as disregarding inline limits.
33730 (cgraph_decide_recursive_inlining): Do not perform recursive
33731 inlining on always-inline nodes.
33733 2010-04-12 Jakub Jelinek <jakub@redhat.com>
33736 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
33737 for exprs satisfying handled_component_p.
33739 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
33741 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
33742 non-constant aggregate elements.
33744 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
33745 is a real initialization.
33747 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
33750 * c-decl.c (start_function): Move forward check for nested function.
33752 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
33754 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33755 * config/sh/sh.c: Include reload.h.
33756 (sh_legitimize_reload_address): New.
33757 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33758 sh_legitimize_reload_address.
33760 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33762 * config/sh/sh.md (*movqi_pop): New insn pattern.
33763 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33765 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33767 * config/i386/i386.md (any_shiftrt): New code iterator.
33768 (shiftrt_insn): New code attribute.
33770 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33771 using any_shiftrt code iterator.
33772 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33773 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33774 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33775 pattern from corresponding peephole2 patterns.
33776 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33777 using any_shiftrt code iterator.
33778 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33779 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33780 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33781 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33782 *{ashr,lshr}<mode>3_cmp_zext.
33783 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33785 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33787 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33789 (*lshr<mode>3_cconly): Ditto.
33791 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33793 * config/i386/i386.md (lshr<mode>3): Macroize expander from
33794 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33795 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
33796 pattern from *lshr{di,ti}3_1 and corresponding splitters using
33798 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33799 from corresponding peephole2 patterns.
33800 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33801 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33802 and *lshrdi3_1_rex64 using SWI mode iterator.
33803 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33804 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33805 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33806 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33807 and *lshrdi3_cmp_rex64 using SWI mode iterator.
33808 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33809 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33810 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33811 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33814 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
33816 * config/i386/i386.md (ashr<mode>3): Macroize expander from
33817 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33818 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
33819 pattern from *ashr{di,ti}3_1 and corresponding splitters using
33821 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33822 from corresponding peephole2 patterns.
33823 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33824 (ashrsi3_cvt): Rename from ashrsi3_31.
33825 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33826 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33827 and x86_64_shift_adj_3 using SWI48 mode iterator.
33828 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33829 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33830 and *ashrdi3_1_rex64 using SWI mode iterator.
33831 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33832 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33833 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33834 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33835 and *ashrdi3_cmp_rex64 using SWI mode iterator.
33836 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33837 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33838 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33839 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33841 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33842 * config/i386/i386.c (ix86_split_ashr): Update for renamed
33843 x86_shift<mode>_adj_3 expanders.
33845 2010-04-10 Wei Guozhi <carrot@google.com>
33848 * config/arm/arm.c (arm_pic_static_addr): New function.
33849 (legitimize_pic_address): Call arm_pic_static_addr when it detects
33851 (arm_output_addr_const_extra): Output expression for new pattern.
33852 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
33854 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
33856 * ira-costs.c (record_reg_classes): Ignore alternatives that are
33859 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
33860 * web.c: Include "insn-config.h" and "recog.h".
33861 (union_match_dups): New function.
33862 (web_main): Call it.
33863 (union_defs): Don't try to recognize match_dups.
33865 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
33866 if doing so would replace the entire pattern.
33868 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
33872 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
33873 and splitter pattern. Change splitter operand 1 predicate to
33876 2010-04-09 Martin Jambor <mjambor@suse.cz>
33878 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
33879 lattices are addresses of CONST_DECLs with the same initial value.
33880 (ipcp_print_all_lattices): Print values of CONST_DECLs.
33881 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
33883 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
33884 Bernd Schmidt <bernds@codesourcery.com>
33886 * loop-invariant.c (replace_uses): New static function.
33887 (move_invariant_reg): Use it to ensure we can replace the uses.
33889 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
33891 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
33893 (picochip_override_options): Enable section anchors only above -O1.
33894 (picochip_reorg): Fixed a couple of build warnings.
33896 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33898 * configure.ac (plugin -rdynamic test): Log result.
33899 * configure: Regenerate.
33900 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
33901 (RDYNAMIC_SPEC): Define.
33902 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
33904 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33906 * configure.ac: Determine Sun ld version numbers.
33907 (comdat_group): Restrict GNU ld version checks to gld.
33908 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
33909 (enable_comdat): Support --enable-comdat.
33910 * configure: Regenerate.
33911 * doc/install.texi (Configuration): Document --enable-comdat.
33913 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33915 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
33916 * config/sol2-gld.h: ... here.
33917 * config.gcc (sparc*-*-solaris2*): Reflect this.
33918 (i[34567]86-*-solaris2*): Use it.
33920 2010-04-09 Steve Ellcey <sje@cup.hp.com>
33922 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
33924 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
33926 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
33929 * diagnostic.c (diagnostic_initialize): Initialize
33930 some_warnings_are_errors.
33931 (diagnostic_finish): New.
33932 (diagnostic_action_after_output): Call it before exiting.
33933 (diagnostic_report_diagnostic): Do not print message here. Set
33934 some_warnings_are_errors.
33935 * diagnostic.h (diagnostic_context): Delete
33936 issue_warnings_are_errors_message. Add some_warnings_are_errors.
33937 (diagnostic_finish): Declare.
33938 * toplev.c (toplev_main): Call it before exit.
33940 2010-04-09 Jason Merrill <jason@redhat.com>
33943 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
33944 for incomplete type.
33947 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
33948 based on a warning flag.
33950 2010-04-09 Richard Guenther <rguenther@suse.de>
33952 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
33954 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
33957 * varasm.c (default_assemble_visibility): Wrap vars that are
33958 set, but unused, by targets without GAS.
33959 * config/rs6000/rs6000.c (paired_emit_vector_compare):
33960 Remove set, but unused, vars.
33961 (rs6000_legitimize_tls_address): Likewise.
33962 (altivec_expand_dst_builtin): Likewise.
33963 * config/darwin.c (machopic_classify_symbol): Likewise.
33964 (machopic_indirection_name): Likewise.
33966 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
33968 * config/i386/i386.md (DWI): New mode iterator.
33969 (S): New mode attribute.
33970 (shift_operand): Ditto.
33971 (shift_immediate_operand): Ditto.
33972 (ashl_input_operand): Ditto.
33973 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
33974 using SDWIM mode iterator.
33975 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
33976 pattern from *ashl{di,ti}3_1 and corresponding splitters using
33978 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
33979 from corresponding peephole2 patterns.
33980 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
33981 and x86_64_shift_adj_1 using SWI48 mode iterator.
33982 (x86_shift<mode>_adj_2): Ditto.
33983 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
33984 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
33985 using SWI48 mode iterator.
33986 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
33987 *ashldi3_cmp_rex64 using SWI mode iterator.
33988 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
33989 *ashldi3_cconly_rex64 using SWI mode iterator.
33990 * config/i386/i386.c (ix86_split_ashl): Update for renamed
33991 x86_shift<mode>_adj_{1,2}.
33992 (ix86_split_ashr): Ditto.
33993 (ix86_split_lshr): Ditto.
33995 2010-04-09 Richard Guenther <rguenther@suse.de>
33997 * target.h (builtin_conversion): Pass in input and output types.
33998 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
33999 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
34000 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
34001 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
34003 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
34005 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
34007 2010-04-09 Richard Guenther <rguenther@suse.de>
34010 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
34012 2010-04-09 Richard Guenther <rguenther@suse.de>
34014 * tree-vectorizer.h (struct _stmt_vec_info): Document
34015 that vectype is the type of the LHS.
34016 (supportable_widening_operation, supportable_narrowing_operation):
34017 Get both input and output vector types as arguments.
34018 (vect_is_simple_use_1): Declare.
34019 (get_same_sized_vectype): Likewise.
34020 * tree-vect-loop.c (vect_determine_vectorization_factor):
34021 Set STMT_VINFO_VECTYPE to the vector type of the def.
34022 (vectorizable_reduction): Adjust.
34023 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
34024 Adjust. Specify the output vector type.
34025 (vect_pattern_recog_1): Adjust.
34026 * tree-vect-stmts.c (get_same_sized_vectype): New function.
34027 (vectorizable_call): Adjust.
34028 (vectorizable_conversion): Likewise.
34029 (vectorizable_operation): Likewise.
34030 (vectorizable_type_demotion): Likewise.
34031 (vectorizable_type_promotion): Likewise.
34032 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
34034 (vect_is_simple_use_1): New function.
34035 (supportable_widening_operation): Get both input and output
34037 (supportable_narrowing_operation): Likewise.
34038 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
34040 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
34042 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
34043 __thiscall and _thiscall as predefined macros.
34044 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
34045 thiscall attribute handling.
34046 (ix86_comp_type_attributes): Likewise.
34047 (ix86_function_regparm): Likewise.
34048 (ix86_return_pops_args): Likewise.
34049 (init_cumulative_args): Likewise.
34050 (find_drap_reg): Likewise.
34051 (ix86_static_chain): Likewise.
34052 (x86_this_parameter): Likewise.
34053 (x86_output_mi_thunk): Likewise.
34054 (ix86_attribute_table): Add description for thiscall attribute.
34055 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
34056 * doc/extend.texi: Add documentation for thiscall.
34058 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34061 * c.opt (Wint-to-pointer-cast): Available in C++.
34062 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
34064 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
34066 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
34067 * calls.c (expand_call): Pass the function type to aggregate_value_p.
34068 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
34069 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
34070 function type instead. Reorder and simplify checks.
34072 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
34074 2010-04-08 Jing Yu <jingyu@google.com>
34075 Zdenek Dvorak <ook@ucw.cz>
34077 PR tree-optimization/42720
34078 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
34079 loop unswitch conditions here from ...
34080 (tree_unswitch_single_loop): ... here.
34082 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34084 * tree-if-conv.c: Fix comments and simplify logic.
34086 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34088 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
34089 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
34090 (main_tree_if_conversion): Update call to tree_if_conversion.
34092 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
34095 * doc/invoke.texi (-b,-V): Delete.
34096 * doc/tm.texi: Do not mention -b.
34097 * gcc.c (display_help): Delete -b and -V.
34098 (process_command): Delete -b and -V.
34099 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
34101 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
34102 Wolfgang Gellerich <gellerich@de.ibm.com>
34104 Implement target hook for loop unrolling
34105 * target.h (loop_unroll_adjust): Add a new target hook function.
34106 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
34107 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
34108 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
34109 (s390_loop_unroll_adjust): Implement the new target hook for s390.
34110 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
34112 (decide_unroll_stupid): Likewise.
34114 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34117 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
34119 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34121 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
34122 (Specific, *-*-solaris2*): Likewise.
34123 Don't prefer Sun as over GNU as.
34125 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
34127 * config/s390/s390.c (override_options): Adjust the z10 defaults
34128 for max-unroll-times, max-completely-peeled-insns
34129 and max-completely-peel-times.
34131 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34133 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
34134 instructions for z10.
34135 (s390_expand_setmem): Likewise.
34136 (s390_expand_cmpmem): Likewise.
34138 2010-04-08 Richard Guenther <rguenther@suse.de>
34140 PR tree-optimization/43679
34141 * tree-ssa-pre.c (eliminate): Only propagate copies.
34143 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34146 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
34147 set but not used variable warning.
34149 2010-04-08 Wei Guozhi <carrot@google.com>
34152 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
34153 (arm_size_rtx_costs): Call the new function when optimized for size.
34155 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34158 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
34159 op0 is not a MEM, just return NULL instead of assertion
34161 (discover_nonconstant_array_refs): Don't walk debug stmts.
34163 2010-04-08 Doug Kwan <dougkwan@google.com>
34165 * configure.ac: Recognize gold and do not use its version number
34166 to test ld features.
34167 * configure: Regenerate.
34169 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
34171 PR middle-end/40815
34172 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
34173 (negate_value): Move code to push elements to broken_up_substracts ...
34174 (eliminate_plus_minus_pair): ... here. Push operands that have no
34175 negative pair to plus_negates.
34176 (repropagate_negates, init_reassoc, fini_reassoc): Update.
34178 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34180 * doc/install.texi (Configuration): Move description of
34181 --enable-lto, --with-libelf*, --enable-gold from Java section to
34184 * doc/generic.texi (Working with declarations)
34185 (Function Properties, C and C++ Trees): Fix typos.
34186 * doc/sourcebuild.texi (Top Level): Likewise.
34188 2010-04-07 Jakub Jelinek <jakub@redhat.com>
34191 * tree.h (DECL_READ_P): Define.
34192 (struct tree_decl_common): Add decl_read_flag.
34193 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
34194 a set but not used warning.
34195 (merge_decls): Merge DECL_READ_P flag.
34196 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
34197 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
34198 * c-common.c (handle_used_attribute, handle_unused_attribute):
34200 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
34202 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
34204 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
34205 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
34206 c_parser_binary_expression, c_parser_cast_expression,
34207 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
34208 Call default_function_array_read_conversion instead of
34209 default_function_array_conversion where needed.
34210 (c_parser_unary_expression, c_parser_conditional_expression,
34211 c_parser_postfix_expression_after_primary, c_parser_initelt):
34212 Likewise. Call mark_exp_read where needed.
34213 (c_parser_statement_after_labels, c_parser_asm_operands,
34214 c_parser_typeof_specifier, c_parser_sizeof_expression,
34215 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
34217 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
34219 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
34220 (warn_unused_but_set_parameter): Default to warn_unused
34222 * doc/invoke.texi: Document -Wunused-but-set-variable and
34223 -Wunused-but-set-parameter.
34225 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
34226 used count variable.
34227 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
34228 when operandN variables aren't used in the body of the expander
34230 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
34231 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
34232 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
34233 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
34234 FOR_EACH_IMM_USE_ON_STMT): Likewise.
34235 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
34236 * tree.c (PROCESS_ARG): Likewise.
34238 2010-04-07 Simon Baldwin <simonb@google.com>
34240 * diagnostic.h (diagnostic_override_option_index): New macro to
34241 set a diagnostic's option_index.
34242 * c-tree.h (c_cpp_error): Add warning reason argument.
34243 * opts.c (_warning_as_error_callback): New.
34244 (register_warning_as_error_callback): Store callback for
34245 warnings enabled via enable_warning_as_error.
34246 (enable_warning_as_error): Call callback, minor code tidy.
34247 * opts.h (register_warning_as_error_callback): Declare.
34248 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
34249 response to -Werror=.
34250 (c_common_init_options): Register warning_as_error_callback in opts.c.
34251 * common.opt: Add -Wno-cpp option.
34252 * c-common.c (struct reason_option_codes_t): Map cpp warning
34253 reason codes to gcc option indexes.
34254 * (c_option_controlling_cpp_error): New function, lookup the gcc
34255 option index for a cpp warning reason code.
34256 * (c_cpp_error): Add warning reason argument, call
34257 c_option_controlling_cpp_error for diagnostic_override_option_index.
34258 * doc/invoke.texi: Document -Wno-cpp.
34260 2010-04-07 Richard Guenther <rguenther@suse.de>
34262 * ipa-reference.c (mark_load): Use get_base_address.
34263 (mark_store): Likewise.
34265 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
34266 inserting GIMPLE_NOPs into the IL.
34267 * tree-ssa-structalias.c (get_constraint_for_component_ref):
34268 Explicitly strip handled components and indirect references.
34270 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
34271 folding address expressions.
34272 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
34273 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
34274 operand_equal_p to compare decls.
34275 (ptr_deref_may_alias_decl_p): Likewise.
34276 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
34277 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
34278 Handle reversed comparison ops.
34279 * tree-sra.c (asm_visit_addr): Use get_base_address.
34280 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
34281 * ipa-reference.c (mark_address): Use get_base_address.
34283 2010-04-07 Richard Guenther <rguenther@suse.de>
34285 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
34286 Propagate constants everywhere.
34288 2010-04-07 Jakub Jelinek <jakub@redhat.com>
34291 * tree.c (MAX_INT_CACHED_PREC): Define.
34292 (nonstandard_integer_type_cache): New array.
34293 (build_nonstandard_integer_type): Cache results for precision
34294 <= MAX_INT_CACHED_PREC.
34296 2010-04-07 Richard Guenther <rguenther@suse.de>
34298 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
34299 -fargument-noalias-global, -fargument-noalias-anything): Remove.
34300 * common.opt: Likewise.
34301 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
34302 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
34303 (nonoverlapping_memrefs_p): Likewise.
34304 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
34305 * opts.c (common_handle_option): Handle OPT_fargument_alias,
34306 OPT_fargument_noalias, OPT_fargument_noalias_anything and
34307 OPT_fargument_noalias_global for backward compatibility.
34309 2010-04-07 Richard Guenther <rguenther@suse.de>
34311 PR tree-optimization/43270
34312 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
34313 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
34314 * tree-ssa-pre.c (phi_translate_1): Adjust.
34315 (fully_constant_expression): Split out vn_reference handling to ...
34316 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
34317 Fold reads from constant strings.
34318 (vn_reference_lookup): Handle fully constant references.
34319 (vn_reference_lookup_pieces): Likewise.
34320 * Makefile.in (expmed.o-warn): Add -Wno-error.
34322 2010-04-07 Martin Jambor <mjambor@suse.cz>
34324 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
34326 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
34329 * gcc.c: Add -static-libstdc++ to list of recognized options.
34331 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34333 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
34335 2010-04-07 Richard Guenther <rguenther@suse.de>
34337 PR middle-end/42617
34338 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
34339 bases build simple mem attributes to retain points-to information.
34341 2010-04-07 Richard Guenther <rguenther@suse.de>
34343 PR middle-end/42617
34344 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
34345 preserve points-to related information.
34347 2010-04-07 Richard Guenther <rguenther@suse.de>
34349 PR middle-end/42617
34350 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
34351 discard plain indirect references.
34352 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
34353 * tree.c (tree_nop_conversion): Likewise.
34355 2010-04-07 Dodji Seketeli <dodji@redhat.com>
34358 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
34360 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
34362 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
34363 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
34365 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34367 * tree-if-conv.c: Fix indentation and comments.
34369 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34371 * tree-if-conv.c: Sort static functions in topological order.
34373 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34375 * tree-if-conv.c: Fix indentation and comments.
34377 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34379 PR middle-end/43519
34380 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
34381 lang_hooks.types.type_for_size instead of
34382 build_nonstandard_integer_type.
34383 When converting an unsigned type to signed, double its precision.
34384 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
34385 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
34386 (graphite_create_new_loop_guard): When ub + 1 wraps around,
34389 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34391 PR middle-end/43519
34392 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
34393 POINTER_PLUS_EXPR for pointer types.
34395 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34397 PR middle-end/43519
34398 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
34399 * graphite-clast-to-gimple.c: Include langhooks.h.
34400 (max_signed_precision_type): New.
34401 (max_precision_type): Takes two types as arguments.
34402 (precision_for_value): New.
34403 (precision_for_interval): New.
34404 (gcc_type_for_interval): New.
34405 (gcc_type_for_value): New.
34406 (gcc_type_for_clast_term): New.
34407 (gcc_type_for_clast_red): New.
34408 (gcc_type_for_clast_bin): New.
34409 (gcc_type_for_clast_expr): Split up into several functions.
34410 (gcc_type_for_clast_eq): Rewritten.
34411 (compute_bounds_for_level): New.
34412 (compute_type_for_level_1): New.
34413 (compute_type_for_level): New.
34414 (gcc_type_for_cloog_iv): Removed.
34415 (gcc_type_for_iv_of_clast_loop): Rewritten.
34416 (graphite_create_new_loop): Compute the lower and upper bound types
34417 with gcc_type_for_clast_expr.
34418 (graphite_create_new_loop_guard): Same.
34419 (find_cloog_iv_in_expr): Removed.
34420 (compute_cloog_iv_types_1): Removed.
34421 (compute_cloog_iv_types): Removed.
34422 (gloog): Do not call compute_cloog_iv_types.
34423 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
34424 GBB_CLOOG_IV_TYPES.
34425 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
34426 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
34427 (GBB_CLOOG_IV_TYPES): Removed.
34429 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34431 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
34432 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
34433 (detect_commutative_reduction): Same.
34435 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34437 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
34438 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
34440 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
34441 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
34442 (rewrite_commutative_reductions_out_of_ssa): Same.
34443 * passes.c (execute_function_todo): Call verify_ssa for every pass
34444 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
34445 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
34446 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
34447 with an extra argument.
34448 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
34449 verify_ssa only when the extra argument is true.
34450 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
34451 with an extra argument.
34452 (tree_transform_and_unroll_loop): Same.
34454 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34456 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
34457 for all the passes of the LNO having LOOP_CLOSED_SSA.
34458 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
34459 * tree-loop-distribution.c (pass_loop_distribution): Same.
34460 * tree-pass.h (TODO_verify_loops): Removed.
34461 * tree-ssa-loop.c (pass_tree_loop_init): Same.
34463 (pass_tree_unswitch): Same.
34464 (pass_predcom): Same.
34465 (pass_vectorize): Same.
34466 (pass_linear_transform): Same.
34467 (pass_graphite_transforms): Same.
34468 (pass_iv_canon): Same.
34469 (pass_complete_unroll): Same.
34470 (pass_complete_unrolli): Same.
34471 (pass_parallelize_loops): Same.
34472 (pass_loop_prefetch): Same.
34473 (pass_iv_optimize): Same.
34475 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
34477 PR middle-end/32824
34478 * passes.c (init_optimization_passes): Move pass_lim before
34479 pass_copy_prop and pass_dce_loop.
34481 2010-04-06 Jakub Jelinek <jakub@redhat.com>
34484 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
34485 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
34486 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
34487 MULTI_* defines for 4 argument vpermil2p* builtins.
34489 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
34491 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
34492 * config/i386/i386.c (x86_maybe_negate_const_int): New.
34493 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
34494 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
34495 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
34496 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
34497 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
34498 Use x86_maybe_negate_const_int to output insn mnemonic.
34499 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
34500 check from instruction predicate. Update comments.
34501 * config/i386/sync.md (sync_add<mode>): Use
34502 x86_maybe_negate_const_int to output insn mnemonic.
34504 2010-04-06 Jan Hubicka <jh@suse.cz>
34506 PR tree-optimization/42906
34507 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
34508 IGNORE_SELF argument. Set visited_control_parents for fully
34510 (find_obviously_necessary_stmts): Update call of
34511 mark_control_dependent_edges_necessary.
34512 (propagate_necessity): Likewise. Handle PHI edges more curefully.
34514 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
34516 * config/i386/i386.md: Remove comment about 'e' and 'E'
34519 2010-04-06 Richard Guenther <rguenther@suse.de>
34521 PR tree-optimization/43627
34522 * tree-vrp.c (extract_range_from_unary_expr): Widenings
34523 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
34526 2010-04-06 Jakub Jelinek <jakub@redhat.com>
34528 * BASE-VER: Change to 4.6.0.
34531 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
34534 2010-04-06 Richard Guenther <rguenther@suse.de>
34536 PR middle-end/43661
34537 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
34539 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34541 * doc/invoke.texi (Optimize Options): Document that LTO
34542 won't remove object access purely due to incompatible
34545 2010-04-04 Matthias Klose <doko@ubuntu.com>
34547 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
34548 Initialize variable.
34550 2010-04-03 Richard Guenther <rguenther@suse.de>
34552 PR middle-end/42509
34553 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
34554 require a non-NULL MEM_OFFSET.
34556 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
34558 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
34559 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
34560 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
34561 config/alpha/predicates.md, config/arm/arm.md,
34562 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
34563 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
34564 config/darwin9.h, config/darwin.c, config/darwin.h,
34565 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
34566 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
34567 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
34568 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
34569 config/mips/mips.md, config/mn10300/mn10300.c,
34570 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
34571 config/rs6000/aix.h, config/rs6000/dfp.md,
34572 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
34573 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
34574 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
34575 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
34576 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
34577 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
34578 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
34579 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
34580 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
34581 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
34582 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
34583 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
34584 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
34585 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
34586 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
34587 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
34588 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
34589 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
34590 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
34591 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
34592 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
34593 opt-functions.awk, opth-gen.awk, params.def, passes.c,
34594 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
34595 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
34596 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
34597 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
34598 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
34599 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
34600 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
34601 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
34602 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
34603 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
34604 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
34605 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
34606 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
34607 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
34609 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34612 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
34613 * aclocal.m4: Regenerate.
34615 2010-04-02 Richard Guenther <rguenther@suse.de>
34617 PR tree-optimization/43629
34618 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
34619 if we have seen a constant value.
34621 2010-04-02 Joseph Myers <joseph@codesourcery.com>
34623 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
34625 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
34628 * arm.c (legitimize_tls_address): Adjust call to
34629 gen_tls_load_dot_plus_four.
34630 (arm_note_pic_base): New function.
34631 (arm_cannot_copy_insn_p): Use it.
34632 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
34635 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34640 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34642 * Makefile.in ($(out_object_file)): Depend on
34643 gt-$(basename $(notdir $(out_file))).h.
34645 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
34647 * config.gcc (lm32-*-rtems*): Add t-lm32.
34649 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
34651 * config.gcc: Add lm32-*-rtems*.
34652 * config/lm32/rtems.h: New file.
34654 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
34657 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
34659 2010-04-01 Jakub Jelinek <jakub@redhat.com>
34661 * dwarf2out.c (output_compilation_unit_header): For
34662 -gdwarf-4 use version 4 instead of version 3.
34663 (output_line_info): For version 4 and above emit additional
34664 maximum ops per insn header field.
34665 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
34667 * dwarf2out.c (is_c_family, is_java): Remove.
34668 (lower_bound_default): New function.
34669 (add_bound_info, gen_descr_array_type_die): Use it.
34671 2010-04-01 Dodji Seketeli <dodji@redhat.com>
34674 * dwarf2out.c (gen_variable_die): Allow debug info for variable
34675 re-declaration when it happens in a function.
34677 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
34679 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
34680 (cgraph_remove_function_insertion_hook): Same.
34681 (cgraph_call_function_insertion_hooks): Same.
34683 2010-04-01 Richard Guenther <rguenther@suse.de>
34685 PR middle-end/43614
34686 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
34687 and TREE_THIS_VOLATILE.
34688 (copy_ref_info): Likewise.
34689 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
34690 * tree.c (build6_stat): Ignore side-effects of all but arg5
34691 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
34694 2010-04-01 Richard Guenther <rguenther@suse.de>
34696 PR tree-optimization/43607
34697 * ipa-type-escape.c (check_call): Do not access non-existing
34700 2010-04-01 Richard Guenther <rguenther@suse.de>
34702 PR middle-end/43602
34704 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
34705 Jack Howarth <howarth@bromo.med.uc.edu>
34707 * tree-profile.c (tree_init_ic_make_global_vars): Make static
34710 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34712 * doc/install.texi (Prerequisites): Document libelf usability on
34713 IRIX 5/6 and Solaris 2.
34714 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
34715 Update GNU as, GNU ld requirements.
34716 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
34717 Document Sun Studio compiler download.
34718 Update and simplify as, ld recommendations.
34719 (Specific, *-*-solaris2.7): Note obsoletion, removal.
34721 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34723 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
34724 with_tune_32 to pentium4.
34726 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
34728 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
34730 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34732 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
34733 obsoletion, removal.
34735 Document GNU as requirement.
34736 Update configure requirements.
34737 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
34738 Recomment IRIX 6.5.18+.
34739 Document IDF/IDL requirement.
34740 Document GNU as requirement.
34741 Document GNU ld bootstrap failure.
34742 Remove freeware.sgi.com reference.
34744 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34746 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
34747 UNIX V4.0, V5.0 obsoletion, removal.
34748 Remove --with-gc=simple reference.
34749 Update VM requirements during bootstrap.
34750 Remove -oldas bootstrap description.
34751 Update binutils reference.
34752 Remove comparison failure note.
34754 2010-03-31 Richard Guenther <rguenther@suse.de>
34755 Zdenek Dvorak <ook@ucw.cz>
34756 Sebastian Pop <sebastian.pop@amd.com>
34758 PR middle-end/43464
34759 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34760 with multiple arguments.
34761 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34763 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34765 * graphite-dependences.c (print_pddr): Call print_pdr with an
34767 * graphite-poly.c (debug_pdr): Add an extra argument for the
34770 (print_pbb_domain): Same.
34772 (print_scop_context): Same.
34773 (print_scop): Same.
34774 (print_cloog): Same.
34775 (debug_pbb_domain): Same.
34777 (print_pdrs): Same.
34778 (debug_pdrs): Same.
34779 (debug_scop_context): Same.
34780 (debug_scop): Same.
34781 (debug_cloog): Same.
34782 (print_scop_params): Same.
34783 (debug_scop_params): Same.
34784 (print_iteration_domain): Same.
34785 (print_iteration_domains): Same.
34786 (debug_iteration_domain): Same.
34787 (debug_iteration_domains): Same.
34788 (print_scattering_function): Same.
34789 (print_scattering_functions): Same.
34790 (debug_scattering_function): Same.
34791 (debug_scattering_functions): Same.
34792 * graphite-poly.h (debug_pdr): Update declaration.
34794 (print_pbb_domain): Same.
34796 (print_scop_context): Same.
34797 (print_scop): Same.
34798 (print_cloog): Same.
34799 (debug_pbb_domain): Same.
34801 (print_pdrs): Same.
34802 (debug_pdrs): Same.
34803 (debug_scop_context): Same.
34804 (debug_scop): Same.
34805 (debug_cloog): Same.
34806 (print_scop_params): Same.
34807 (debug_scop_params): Same.
34808 (print_iteration_domain): Same.
34809 (print_iteration_domains): Same.
34810 (debug_iteration_domain): Same.
34811 (debug_iteration_domains): Same.
34812 (print_scattering_function): Same.
34813 (print_scattering_functions): Same.
34814 (debug_scattering_function): Same.
34815 (debug_scattering_functions): Same.
34817 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34819 * graphite-poly.c (print_scattering_function_1): New.
34820 (print_scattering_function): Call it.
34821 (print_scop_params): Remove spaces at the end of lines.
34822 (print_cloog): New.
34823 (debug_cloog): New.
34824 * graphite-poly.h (print_cloog): Declared.
34825 (debug_cloog): Declared.
34827 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34829 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34831 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34832 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34833 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34834 to switch between adding the IV bump in loop->latch or in loop->header.
34836 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34838 * graphite-poly.c (print_scattering_function): Pretty print following
34839 the scoplib format.
34841 (print_pbb_domain): Same.
34842 (dump_gbb_cases): Same.
34843 (dump_gbb_conditions): Same.
34844 (print_pdrs): Same.
34846 (print_scop_params): Same.
34847 (print_scop_context): Same.
34848 (print_scop): Same.
34849 (print_pbb_body): New.
34850 (lst_indent_to): New.
34851 (print_lst): Start new lines with a #.
34852 * graphite-poly.h (pbb_bb): New.
34853 (pbb_index): Use pbb_bb.
34854 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
34856 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
34858 2010-03-31 Jakub Jelinek <jakub@redhat.com>
34860 * dwarf2out.c (size_of_die): For -gdwarf-4 use
34861 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
34862 and 0 instead of 1 for dw_val_class_flag.
34863 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
34864 dw_val_class_range_list, dw_val_class_loc_list,
34865 dw_val_class_lineptr and dw_val_class_macptr, use
34866 DW_FORM_flag_present for dw_val_class_flag and
34867 DW_FORM_exprloc for dw_val_class_loc.
34868 (output_die): For -gdwarf-4 print dw_val_class_loc
34869 size as uleb128 instead of 1 or 2 bytes and don't print
34870 anything for dw_val_class_flag.
34872 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
34873 instead of cselib_lookup following by tweaking locs->setting_insn.
34876 * cselib.c (cselib_process_insn): Clear cselib_current_insn
34877 even before returning from label, setjmp call or volatile asm
34880 2010-03-31 Richard Guenther <rguenther@suse.de>
34882 PR middle-end/43600
34883 * cgraphunit.c (cgraph_output_in_order): Do not allocate
34884 temporary data on stack.
34886 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34888 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
34889 (PUSHSECTION_ASM_OP): Remove.
34890 (POPSECTION_ASM_OP): Remove.
34891 (PUSHSECTION_FORMAT): Remove.
34892 * config/sol2.h (PUSHSECTION_FORMAT): Define.
34893 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
34894 * config/sol2.c (solaris_output_init_fini): Use it.
34896 2010-03-31 Jie Zhang <jie@codesourcery.com>
34899 * opt-functions.awk (var_type_struct): Use signed char type
34900 for simple variables.
34902 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34904 * config/sol2.c: Include output.h.
34905 (solaris_assemble_visibility): New function.
34906 * config/t-sol2 (sol2.o): Add output.h dependency.
34907 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
34908 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
34911 2010-03-31 Jakub Jelinek <jakub@redhat.com>
34914 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
34915 V2SImode or XFmode on PRE_DEC.
34918 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
34921 2010-03-31 Jie Zhang <jie@codesourcery.com>
34924 * reload.h (caller_save_initialized_p): Declare.
34925 * toplev.c (backend_init_target): Don't call
34926 init_caller_save but set caller_save_initialized_p to false.
34927 * caller-save.c (caller_save_initialized_p): Define.
34928 (init_caller_save): Check caller_save_initialized_p.
34929 * ira.c (ira): Call init_caller_save if flag_caller_saves.
34931 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34934 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
34935 and soft-fp/t-softfp to tmake_file.
34936 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
34937 (LIBGCC2_TF_CEXT): Define.
34940 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
34943 * cselib.c (n_useless_values): Document handling of debug locs.
34944 (n_useless_debug_values, n_debug_values): New variables.
34945 (new_elt_loc_list): Don't add to debug values, keep count.
34946 (promote_debug_loc): New.
34947 (cselib_reset_table): Zero new variables.
34948 (entry_and_rtx_equal_p): Promote debug locs.
34949 (discard_useless_locs): Increment n_useless_debug_values for
34951 (remove_useless_values): Adjust n_useless_values and n_debug_values
34952 with n_useless_debug_values.
34953 (add_mem_for_addr): Promote debug locs.
34954 (cselib_lookup_mem): Likewise.
34955 (cselib_lookup_addr): Renamed to...
34956 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
34957 (cselib_log_lookup): ... this. Turn into...
34958 (cselib_lookup_addr): ... new wrapper.
34959 (cselib_lookup_from_insn): New.
34960 (cselib_invalidate_regno): Increment n_useless_debug_values for
34962 (cselib_invalidate_mem): Likewise.
34963 (cselib_process_insn): Take n_deleted and n_debug_values into
34964 account to guard remove_useless_value call.
34965 (cselib_finish): Zero n_useless_debug_values.
34966 * cselib.h (cselib_lookup_from_insn): Declare.
34967 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
34968 (sched_analyze_2): Likewise.
34970 2010-03-30 Jakub Jelinek <jakub@redhat.com>
34972 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
34974 (adjust_mems): Replace narrowing SUBREG of expression containing
34975 just PLUS, MINUS, MULT and ASHIFT of registers and constants
34976 with operations in the narrower mode.
34979 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
34980 regs_invalidated_by_call instead all call_used_reg_set registers.
34982 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
34984 PR middle-end/43430
34985 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
34986 pointer comparisons with types_compatible_p.
34987 * tree-vect-stmts.c (vectorizable_call): Same.
34988 (vectorizable_condition): Same.
34990 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34992 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
34993 stack check if the mask would be zero.
34995 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
34996 Jack Howarth <howarth@bromo.med.uc.edu>
34998 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35001 2010-03-30 Joseph Myers <joseph@codesourcery.com>
35004 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
35006 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
35007 Include ___unordxf2 and ___unordtf2.
35008 * config/i386/libgcc-glibc.ver: Do not define inheritance from
35011 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
35013 * config/lm32/t-lm32: New file.
35014 * config.gcc: Use the above file when targetting lm32.
35016 2010-03-28 Duncan Sands <baldrick@free.fr>
35018 * Makefile.in (PLUGIN_HEADERS): Add except.h.
35020 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35022 PR middle-end/43431
35023 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
35024 Improve vectorization cost model diagnostic.
35026 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35028 PR middle-end/43436
35029 * tree-vect-data-refs.c (vect_analyze_data_refs): When
35030 compute_data_dependences_for_loop returns false, early exit
35031 and output an extra diagnostic for the failed data reference
35034 2010-03-29 Richard Guenther <rguenther@suse.de>
35036 PR tree-optimization/43560
35037 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
35038 (can_sm_ref_p): Treat stores to readonly locations as trapping.
35040 2010-03-29 Jie Zhang <jie@codesourcery.com>
35043 * toplev.c (process_options): Set optimization_default_node
35044 and optimization_current_node.
35045 * opts.c (decode_options): Don't set optimization_default_node
35046 and optimization_current_node.
35048 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
35050 * config/rtems.h: Abandon -qrtems_debug.
35052 2010-03-28 Jan Hubicka <jh@suse.cz>
35054 PR tree-optimization/43505
35055 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
35056 map should not be copied.
35058 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35060 PR middle-end/41674
35061 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
35062 cdtors, set DECL_PRESERVE_P.
35063 * ipa.c (cgraph_externally_visible_p): Return true if declaration
35064 should be preseved.
35066 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
35068 PR tree-optimization/43528
35069 * stor-layout.c (place_field): Check that constant fits into
35070 unsigned HWI when skipping calculation of MS bitfield layout.
35072 2010-03-27 Jan Hubicka <jh@suse.cz>
35074 PR middle-end/43391
35075 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
35076 notice_global_symbol work.
35078 2010-03-27 Jakub Jelinek <jakub@redhat.com>
35080 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
35081 instead of dwarf2out_decl.
35082 (struct var_loc_node): Remove section_label field.
35083 (dwarf2out_function_decl): New function.
35084 (dwarf2out_var_location): Don't set section_label field.
35085 (dwarf2out_begin_function): Don't empty decl_loc_table here.
35087 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
35089 PR tree-optimization/43544
35090 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35091 First argument for builtin vectorized function hook is now a
35092 tree to be able to distinguish between machine specific and
35094 * targhooks.c (default_builtin_vectorized_function): Ditto.
35095 * targhooks.h (default_builtin_vectorized_function): Ditto.
35096 * target.h (struct gcc_target): Ditto.
35097 * tree-vect-stmts.c (vectorizable_function): Ditto.
35098 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
35099 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
35102 2010-03-26 Joseph Myers <joseph@codesourcery.com>
35105 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
35106 nested binding iff it is a FUNCTION_DECL.
35107 (store_parm_decls_newstyle): Pass nested=true to bind for
35108 FUNCTION_DECLs amongst parameters.
35110 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35112 * var-tracking.c (vt_expand_loc_callback): Don't run
35113 cselib_expand_value_rtx_cb in dummy mode if
35114 cselib_dummy_expand_value_rtx_cb returned false.
35116 * var-tracking.c (emit_note_insn_var_location): For one part
35117 notes with offset 0, don't add EXPR_LIST around the location.
35118 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
35119 add_location_or_const_value_attribute): Adjust for that change.
35122 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
35123 into first operand and location into second.
35124 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
35125 dw_cfi_oprnd_loc for DW_CFA_expression.
35126 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
35127 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
35128 assume first argument is regnum and second argument is location.
35130 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35133 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
35134 of scratch register to DImode. Split to DImode comparison operator.
35135 Use SImode subreg of scratch register in the multiplication.
35136 (*cmp_sadd_sidi): Ditto.
35137 (*cmp_ssub_si): Ditto.
35138 (*cmp_ssub_sidi): Ditto.
35140 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35143 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
35144 Remove invalid assert and wrong comment.
35146 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35149 * flags.h (final_insns_dump_p): New extern.
35150 * final.c (final_insns_dump_p): New variable.
35151 (rest_of_clean_state): Set it before -fdump-final-insns=
35152 dumping, clear afterwards.
35153 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
35154 MEM_ALIAS_SET on MEMs.
35156 2010-03-26 David S. Miller <davem@davemloft.net>
35158 * configure.ac: Fix sparc GOTDATA_OP bug check.
35159 * configure: Rebuild.
35161 2010-03-26 Alan Modra <amodra@gmail.com>
35163 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
35165 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35167 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
35168 TLS_SECTION_ASM_FLAG.
35170 2010-03-25 Jakub Jelinek <jakub@redhat.com>
35173 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
35174 Clear first_function_block_is_cold.
35177 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
35178 argument if the argument is truth_value_p.
35180 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35182 * config/rs6000/constraints.md: Update copyright year for my changes.
35185 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
35186 used in reg+reg addressing, swap registers.
35188 2010-03-24 Jakub Jelinek <jakub@redhat.com>
35191 * target.h (struct gcc_target): Add code_end hook.
35192 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
35193 if not yet defined.
35194 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
35195 * toplev.c (compile_file): Call targetm.asm_out.code_end
35196 hook before unwind info/debug info output.
35197 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
35198 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
35199 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35200 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
35201 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35202 * config/i386/i386.c (ix86_file_end): Renamed to...
35203 (ix86_code_end): ... this. Make static. Don't call
35204 file_end_indicate_exec_stack. Emit unwind info using
35205 final_start_function/final_end_function.
35206 (darwin_x86_file_end): Remove.
35207 (TARGET_ASM_CODE_END): Define.
35208 * config/i386/i386.h (TARGET_ASM_FILE_END,
35209 NEED_INDICATE_EXEC_STACK): Don't define.
35210 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
35211 (TARGET_ASM_FILE_END): Define to darwin_file_end.
35212 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
35213 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
35216 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
35217 at the beginning and final_end_function at the end.
35218 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
35220 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35222 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
35223 and Sun as TLS syntax.
35224 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
35225 * configure: Regenerate.
35226 * config.in: Regenerate.
35227 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
35228 (default_elf_asm_named_section): Use it.
35229 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
35230 (i386_output_dwarf_dtprel): Likewise.
35231 (output_addr_const_extra): Likewise.
35232 (output_pic_addr_const): Lowercase @GOTTPOFF.
35233 (output_addr_const_extra): Likewise.
35234 (output_pic_addr_const): Lowercase @GOTNTPOFF.
35235 (output_addr_const_extra): Likewise.
35236 (output_pic_addr_const): Lowercase @INDNTPOFF.
35237 (output_addr_const_extra): Likewise.
35238 (output_pic_addr_const): Lowercase @NTPOFF.
35239 (output_addr_const_extra): Likewise.
35240 (output_pic_addr_const): Lowercase @TPOFF.
35241 (output_addr_const_extra): Likewise.
35242 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
35243 (*tls_global_dynamic_64): Likewise.
35244 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
35245 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
35247 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
35248 (ASM_OUTPUT_TLS_COMMON): Use it.
35249 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
35252 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
35253 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
35254 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
35255 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
35256 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35257 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
35259 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35261 * config/i386/i386.c (override_options): Don't accept
35262 -mtls-dialect=sun any longer.
35263 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
35264 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
35265 (*tls_local_dynamic_base_32_sun): Likewise.
35266 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35268 2010-03-24 Jakub Jelinek <jakub@redhat.com>
35271 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35272 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
35275 * ira.c (adjust_cleared_regs): New function.
35276 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
35280 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
35282 * expr.c (expand_expr_real): Restore previous
35283 curr_insn_source_location and curr_insn_block after
35284 expand_expr_real_1 call.
35285 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
35286 instead of expand_expr_real_1.
35288 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
35290 PR rtl-optimization/43413
35291 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
35294 2010-03-22 James E. Wilson <wilson@codesourcery.com>
35297 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
35298 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
35300 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
35302 * config/i386/i386.c (ix86_target_string): Add -mfma.
35303 Fix a typo in comment.
35305 2010-03-22 Mike Stump <mikestump@comcast.net>
35308 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
35309 Don't overly align based upon packed packed fields.
35311 2010-03-22 Jason Merrill <jason@redhat.com>
35313 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
35314 Use () rather than [], and move before the element type.
35316 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35318 * doc/configfiles.texi (Configuration Files): Removed
35319 fixinc/Makefile*, intl/Makefile.*.
35320 * doc/makefile.texi: Fixed markup. Abstract from version
35321 control system used.
35322 (Makefile): Removed obsolete java/parse.y example.
35323 * doc/sourcebuild.texi: Likewise.
35324 (Top Level): Added config, gnattools, libdecnumber, libgcc,
35325 libgomp, libssp. Removed fastjar.
35326 (Miscellaneous Docs): Clarify location.
35327 Added COPYING3, COPYING3.LIB.
35328 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
35330 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35333 * config/i386/i386.c (x86_function_profiler)
35334 [!NO_PROFILE_COUNTERS]: Fix typo.
35335 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
35338 2010-03-22 Janis Johnson <janis187@us.ibm.com>
35339 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35341 * doc/sourcebuild.texi (Test Directives): Split into six
35342 subsections, with most of the current text in new subsections
35343 Directives, Selectors, and Final Actions.
35344 (Directives): Split list of test directives into multiple
35346 (Selectors): Describe use and syntax of selectors.
35347 (Effective-Target Keywords): Describe all existing keywords.
35348 (Add Options): Describe features for dg-add-options.
35349 (Require Support): Describe variants of dg-require-support.
35350 (Final Actions): Describe commands to use in dg-final.
35352 2010-03-22 Michael Matz <matz@suse.de>
35354 PR middle-end/43475
35355 * recog.c (validate_replace_rtx_group): Replace also in
35356 REG_EQUAL and REG_EQUIV notes.
35358 2010-03-22 Richard Guenther <rguenther@suse.de>
35360 PR tree-optimization/43390
35361 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
35362 sure vector extracts are type correct.
35364 2010-03-22 Richard Guenther <rguenther@suse.de>
35366 PR middle-end/40106
35367 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
35368 x * sqrt (x) even when optimizing for size if the target
35369 has native support for sqrt.
35371 2010-03-22 Jakub Jelinek <jakub@redhat.com>
35373 * varasm.c (make_decl_rtl_for_debug): Also clear
35374 flag_mudflap for the duration of make_decl_rtl call.
35377 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
35378 locs from preserved VALUEs.
35380 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35382 PR middle-end/42718
35383 * pa.md (movmemsi): Set align to one if zero.
35384 (movmemdi): Likewise.
35386 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
35389 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
35390 with their corresponding prologue pushes.
35392 2010-03-20 Andrew Pinski <pinskia@gmail.com>
35395 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
35396 at the begining or end.
35397 (spu_expand_epilogue): Likewise.
35399 2010-03-20 Richard Guenther <rguenther@suse.de>
35401 PR rtl-optimization/43438
35402 * combine.c (make_extraction): Properly zero-/sign-extend an
35403 extraction of the low part of a CONST_INT. Also handle
35406 2010-03-19 Mike Stump <mikestump@comcast.net>
35408 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
35409 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
35410 (override_options): Use SUBTARGET32_DEFAULT_CPU.
35412 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
35415 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
35418 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
35420 PR rtl-optimization/42258
35421 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
35422 use that may match DEF.
35425 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
35426 the cost of loading the constant rather than assuming
35428 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
35429 outer code is AND, do the same tests as the andsi3 expander and
35430 return COSTS_N_INSNS (1) if and is cheap.
35432 * optabs.c (avoid_expensive_constant): Fix formatting.
35434 2010-03-19 Michael Matz <matz@suse.de>
35437 * attribs.c (decl_attributes): When rebuilding a function pointer
35438 type use the same qualifiers as the original pointer type.
35440 2010-03-19 Martin Jambor <mjambor@suse.cz>
35442 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
35443 and is_gimple_ip_invariant_address.
35445 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35448 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35450 * config/arm/arm.c (arm_override_options): Turn off
35451 flag_dwarf2_cfi_asm for AAPCS variants.
35453 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35456 * config/arm/arm.c (emit_multi_reg_push): Update comments.
35457 Use PRE_MODIFY instead of PRE_DEC.
35458 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
35459 (vfp_emit_fstmd): Likewise.
35461 2010-03-19 Michael Matz <matz@suse.de>
35464 * builtins.c (expand_builtin_interclass_mathfn,
35465 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
35468 2010-03-19 Richard Guenther <rguenther@suse.de>
35470 PR tree-optimization/43415
35471 * tree-ssa-pre.c (phi_translate): Split out worker to ...
35472 (phi_translate_1): ... this.
35473 (phi_translate): Move all caching here. Cache all NARY
35474 and REFERENCE translations.
35476 2010-03-19 David S. Miller <davem@davemloft.net>
35478 With help from Eric Botcazou.
35479 * config/sparc/sparc.c: Include dwarf2out.h.
35480 (emit_pic_helper): Delete.
35481 (pic_helper_symbol_name): Delete.
35482 (pic_helper_emitted_p): Delete.
35483 (pic_helper_needed): New.
35484 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
35485 (get_pc_thunk_name): New.
35486 (load_pic_register): Remove 'delay_pic_helper' arg. Use
35487 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
35488 Set pic_helper_needed to true. Don't call emit_pic_helper.
35489 (sparc_expand_prologue): Update load_pic_register call.
35490 (sparc_output_mi_thunk): Likewise.
35491 (sparc_file_end): Emit a hidden comdat symbol for the PIC
35492 thunk if possible. Output CFI information as needed.
35494 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
35495 Jack Howarth <howarth@bromo.med.uc.edu>
35498 * config/i386/i386.h: Fix ABI on darwin x86-32.
35500 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
35502 * tree.h: Declare make_decl_rtl_for_debug.
35503 * varasm.c (make_decl_rtl_for_debug): New.
35504 * dwarf2out.c (rtl_for_decl_location): Call it.
35505 * cfgexpand.c (expand_debug_expr): Call it.
35507 2010-03-18 Jakub Jelinek <jakub@redhat.com>
35510 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
35514 * var-tracking.c (vt_init_cfa_base): Do nothing if
35515 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
35517 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
35520 * var-tracking.c (canonicalize_vars_star): New.
35521 (dataflow_post_merge_adjust): Use it.
35523 2010-03-18 Jakub Jelinek <jakub@redhat.com>
35526 * var-tracking.c (non_suitable_const): New function.
35527 (add_uses): For DEBUG_INSNs with constants, don't record any
35528 value, instead just the constant value itself.
35529 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
35530 is not VAR_LOC_UNKNOWN_P, set var to the constant.
35531 (emit_notes_in_bb): Likewise.
35532 (emit_note_insn_var_location): For onepart variables if
35533 cur_loc is a VOIDmode constant, use DECL_MODE.
35535 2010-03-18 Martin Jambor <mjambor@suse.cz>
35537 PR middle-end/42450
35538 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
35539 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
35540 all non-clones. Moved call redirection...
35541 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
35542 (cgraph_materialize_all_clones): Dispose of all
35543 combined_args_to_skip bitmaps.
35544 (verify_cgraph_node): Do not check for edges pointing to wrong
35545 nodes in inline clones.
35546 * tree-inline.c (copy_bb): Call
35547 cgraph_redirect_edge_call_stmt_to_callee.
35548 * ipa.c (cgraph_remove_unreachable_nodes): Call
35549 cgraph_node_remove_callees even when there are used clones.
35551 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
35553 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
35555 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
35558 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
35561 2010-03-18 Michael Matz <matz@suse.de>
35563 PR middle-end/43419
35564 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
35565 into sqrt(x) if we need to preserve signed zeros.
35567 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
35568 Eric Botcazou <ebotcazou@adacore.com>
35570 PR rtl-optimization/43360
35571 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
35572 note if we don't know its invariant status.
35574 2010-03-18 Michael Matz <matz@suse.de>
35576 PR tree-optimization/43402
35577 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
35578 PHI chains of ssa names registered for update.
35580 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
35583 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
35584 non-offsettable and pre_modify update addressing.
35585 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
35586 and "2" alternatives "#".
35587 (*movdd_softfloat32): Make all alternatives "#";
35588 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
35589 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
35590 (*movdf_softfloat32): Make all alternatives "#";
35591 (movdi): Use the new DIFD mode iterator to create a common splitter
35592 for movdi, movdf and movdd patterns.
35594 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
35596 * common.opt (dumpdir): Remove redundant tab.
35598 2010-03-17 Martin Jambor <mjambor@suse.cz>
35600 PR tree-optimization/43347
35601 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
35602 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
35604 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
35606 PR rtl-optimization/42216
35607 * regrename.c (create_new_chain): New function, broken out from...
35608 (scan_rtx_reg): ... here. Call it. Handle the case where we are
35609 appending a use to an empty chain.
35610 (build_def_use): Remove previous changes that convert OP_INOUT to
35611 OP_OUT operands; instead detect the case where an OP_INOUT operand
35612 uses a previously untracked register and create an empty chain for it.
35614 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35616 * doc/extend.texi (Function Attributes): Rewrite unfinished
35617 sentence in ms_abi documentation.
35619 2010-03-17 Alan Modra <amodra@gmail.com>
35621 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
35622 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
35623 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
35624 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
35626 2010-03-16 Richard Henderson <rth@redhat.com>
35628 PR middle-end/43365
35629 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
35630 (lower_try_finally): Save and restore eh_seq around the expansion
35631 of the try-finally.
35633 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
35635 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
35636 statements before splitting block.
35638 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35640 * doc/sourcebuild.texi (Testsuites): Fix markup.
35641 Use pathnames relative to gcc/testsuite.
35642 (Test Directives): Move description of how timeout is determined.
35643 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
35644 (C Tests): Correct gcc.misc-tests directory.
35645 Framework tests now live in gcc.test-framework.
35647 2010-03-16 Richard Guenther <rguenther@suse.de>
35649 PR middle-end/43379
35650 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
35651 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
35653 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
35654 Alexandre Oliva <aoliva@redhat.com>
35656 PR tree-optimization/42917
35657 * lambda-code.c (remove_iv): Skip debug statements.
35658 (lambda_loopnest_to_gcc_loopnest): Likewise.
35659 (not_interesting_stmt): Debug statements are not interesting.
35661 2010-03-16 Jakub Jelinek <jakub@redhat.com>
35665 * cselib.c (cselib_preserve_constants,
35666 cfa_base_preserved_val): New static variables.
35667 (preserve_only_constants): New function.
35668 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
35669 clear its REG_VALUES. If cselib_preserve_constants, don't
35670 empty the whole hash table, but preserve there VALUEs with constants,
35671 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
35672 (cselib_preserve_cfa_base_value): New function.
35673 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
35674 (cselib_init): Change argument to int bitfield. Set
35675 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
35677 (cselib_finish): Clear cselib_preserve_constants and
35678 cfa_base_preserved_val.
35679 * cselib.h (enum cselib_record_what): New enum.
35680 (cselib_init): Change argument to int.
35681 (cselib_preserve_cfa_base_value): New prototype.
35682 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
35683 * dse.c (dse_step1): Likewise.
35684 * cfgcleanup.c (thread_jump): Likewise.
35685 * sched-deps.c (sched_analyze): Likewise.
35686 * gcse.c (local_cprop_pass): Likewise.
35687 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
35688 If FN is non-NULL, call the callback always and whenever it returns
35689 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
35690 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
35691 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
35692 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
35693 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
35694 * var-tracking.c: Include recog.h.
35695 (bb_stack_adjust_offset): Remove.
35696 (vt_stack_adjustments): Don't call it, instead just gather the
35697 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
35698 (adjust_stack_reference): Remove.
35699 (compute_cfa_pointer): New function.
35700 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
35701 (struct adjust_mem_data): New type.
35702 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
35704 (get_address_mode): New function.
35705 (replace_expr_with_values): Use it.
35706 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
35707 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
35708 (adjust_sets): Remove.
35709 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
35710 Use get_address_mode.
35711 (get_adjusted_src): Remove.
35712 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
35713 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
35714 (add_with_sets): Don't call adjust_sets.
35715 (fp_setter, vt_init_cfa_base): New functions.
35716 (vt_initialize): Change return type to bool. Move most of pool etc.
35717 initialization to the beginning of the function from end. Pass
35718 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
35719 If !frame_pointer_needed, call vt_stack_adjustment before mos
35720 vector is filled, call vt_init_cfa_base if argp/framep has been
35721 eliminated to sp. If frame_pointer_needed and argp/framep has
35722 been eliminated to hard frame pointer, set
35723 hard_frame_pointer_adjustment and call vt_init_cfa_base after
35724 encountering fp setter in the prologue. For MO_ADJUST, call
35725 log_op_type before pusing the op into mos vector, not afterwards.
35726 Call adjust_insn before cselib_process_insn/add_with_sets,
35727 call cancel_changes (0) afterwards.
35728 (variable_tracking_main_1): Adjust for vt_initialize calling
35729 vt_stack_adjustments and returning whether it succeeded or not.
35731 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
35733 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
35736 2010-03-15 Jakub Jelinek <jakub@redhat.com>
35738 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
35740 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
35741 drap_reg has not been set.
35743 2010-03-15 Michael Matz <matz@suse.de>
35745 PR middle-end/43300
35746 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
35747 use it to expand block copies.
35748 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
35749 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
35750 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
35752 2010-03-15 Richard Guenther <rguenther@suse.de>
35754 PR tree-optimization/43367
35755 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35758 2010-03-15 Richard Guenther <rguenther@suse.de>
35760 PR tree-optimization/43317
35761 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35763 2010-03-15 Martin Jambor <mjambor@suse.cz>
35765 PR tree-optimization/43141
35766 * tree-sra.c (create_abstract_origin): New function.
35767 (modify_function): Call create_abstract_origin.
35769 2010-03-15 Chris Demetriou <cgd@google.com>
35771 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35774 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35776 PR middle-end/43354
35777 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35778 call insert_out_of_ssa_copy for default definitions.
35780 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35782 * graphite-clast-to-gimple.c (my_long_long): Defined.
35783 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35784 * graphite-sese-to-poly.c (my_long_long): Defined.
35785 (scop_ivs_can_be_represented): Use it.
35787 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35789 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35790 graphite-max-bbs-per-function, and loop-block-tile-size.
35791 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35793 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35795 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35797 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35798 forward declaration.
35799 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35800 (add_upper_bounds_from_estimated_nit): New.
35801 (build_loop_iteration_domains): Use it.
35803 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35805 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35807 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35809 PR middle-end/43306
35810 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35811 should be an INTEGER_CST. Also handle CASE_CONVERT.
35813 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35815 * graphite.c (graphite_initialize): To bound the number of bbs per
35816 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35817 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35818 * doc/invoke.texi: Document it.
35820 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35822 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35823 * graphite-sese-to-poly.h (build_poly_scop): Same.
35825 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35827 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35828 the number of parameters in the scop. Use as an upper bound
35829 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35830 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35831 * doc/invoke.texi: Document it.
35833 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
35835 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35836 * doc/c-tree.texi: Remove.
35837 * doc/generic.texi: Merge c-tree.texi here.
35838 * doc/gccint.texi (Trees): Remove menu entry.
35839 (c-tree.texi): Remove @include.
35840 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35841 * doc/languages.texi (Reading RTL): Ditto.
35843 2010-03-12 Steve Ellcey <sje@cup.hp.com>
35846 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
35848 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
35850 PR middle-end/42431
35851 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
35852 code added to work around reload clobbering CONST insns.
35854 2010-03-12 Jakub Jelinek <jakub@redhat.com>
35856 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
35857 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
35858 (cselib_preserve_only_values): Remove retain argument, don't
35859 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
35860 * cselib.h (cselib_preserve_only_values): Remove retain argument.
35861 * var-tracking.c (micro_operation): Move insn field before union.
35862 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
35863 (struct variable_tracking_info_def): Remove n_mos field, change
35864 mos into a vector of micro_operations.
35865 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
35866 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
35867 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
35868 changing into a vector.
35869 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
35870 come before all other uops generated by add_stores.
35871 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
35873 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
35874 a vector. Run just one pass over the bbs instead of separate counting
35875 and computation phase.
35876 (vt_finalize): Free VTI (bb)->mos vector instead of array.
35879 * tree-inline.c (remap_decls): Put old_var rather than origin_var
35880 into *nonlocalized_list vector.
35881 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
35882 even if origin is non-NULL.
35883 (gen_variable_die): Likewise.
35884 (process_scope_var): Don't change origin.
35885 (gen_decl_die): Likewise.
35886 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
35887 before adding new edges instead of after it, fix moving over
35890 2010-03-11 David S. Miller <davem@davemloft.net>
35892 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
35894 * configure: Rebuild.
35896 2010-03-11 Martin Jambor <mjambor@suse.cz>
35898 PR tree-optimization/43257
35899 * tree.c (assign_assembler_name_if_neeeded): New function.
35900 (free_lang_data_in_cgraph): Assembler name assignment moved to the
35901 above new function.
35902 * tree.h (assign_assembler_name_if_neeeded): Declare.
35903 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
35904 the function if needed.
35906 2010-03-11 Chris Demetriou <cgd@google.com>
35908 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
35909 include/stdint-gcc.h, and include/stdint.h world-readable.
35911 2010-03-11 Richard Guenther <rguenther@suse.de>
35913 PR tree-optimization/43255
35914 * tree-vrp.c (process_assert_insertions_for): Do not insert
35915 asserts for trivial conditions.
35917 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35919 PR tree-optimization/43280
35920 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
35921 generation. Move calculation of size out of the if branch.
35922 (find_bswap): Modify compare number generation.
35924 2010-03-11 Richard Guenther <rguenther@suse.de>
35927 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
35928 (input_gimple_stmt): Fixup handled component types during
35929 operand read. Also fix up decls in ADDR_EXPRs.
35931 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
35933 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
35934 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
35936 2010-03-10 Jan Hubicka <jh@suse.cz>
35939 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
35940 * varasm.c (get_variable_section): Don't do that here...
35941 (make_decl_rtl): ... and here.
35942 (do_assemble_alias): Produce decl RTL.
35943 (assemble_alias): Likewise.
35945 2010-03-10 Jakub Jelinek <jakub@redhat.com>
35948 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
35949 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
35951 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
35952 (based_loc_descr): Only express drap or vdrap regno based expressions
35953 using DW_OP_fbreg when not optimizing.
35954 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
35955 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
35956 REG_CFA_SET_VDRAP note.
35958 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
35960 PR tree-optimization/43236
35961 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
35962 error in calculation of base address in reverse iteration case.
35963 (generate_builtin): Take number of latch executions if the statement
35966 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
35968 PR middle-end/42859
35969 * tree-eh.c: Include pointer-set.h.
35970 (lower_eh_dispatch): Filter out duplicate case labels and
35971 remove the unneeded edge when the label is unused. Return
35972 true when some edges are removed.
35973 (execute_lower_eh_dispatch): When any lowering resulted in
35974 removing an edge, also delete unreachable blocks.
35976 2010-03-10 Jakub Jelinek <jakub@redhat.com>
35979 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35980 UNSPEC_MACHOPIC_OFFSET.
35982 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
35985 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
35986 (m68k_delegitimize_address): New function.
35988 2010-03-09 Jakub Jelinek <jakub@redhat.com>
35991 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
35994 * var-tracking.c (adjust_sets): New function.
35995 (count_with_sets, add_with_sets): Use it.
35996 (get_adjusted_src): New inline function.
35997 (add_stores): Use it.
36000 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
36001 call cselib_dummy_expand_value_rtx_cb instead of
36002 cselib_expand_value_rtx_cb.
36005 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
36006 * config/i386/i386.c: Include debug.h and dwarf2out.h.
36007 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
36008 and .cfi_endproc around the pic thunks.
36009 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
36010 all queued unwind info register saves are saved before the call.
36011 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
36012 considered as sp-=4 for unwind info and the pop as sp+=4 which
36013 also clobbers dest, but doesn't actually restore it.
36016 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
36017 RTX_FRAME_RELATED_P.
36019 2010-03-09 Jie Zhang <jie@codesourcery.com>
36021 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
36022 whitespaces in output template.
36024 2010-03-09 Jie Zhang <jie@codesourcery.com>
36026 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
36027 out array boundary.
36029 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36031 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
36032 builtins.exp in a separate job.
36034 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36036 * graphite-sese-to-poly.c (add_param_constraints): Use
36037 lower_bound_in_type and upper_bound_in_type.
36039 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36041 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
36042 instead of unsigned_type_node.
36044 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36045 Reza Yazdani <reza.yazdani@amd.com>
36047 PR middle-end/43065
36048 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
36049 on pointer type parameters.
36051 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36053 PR middle-end/42644
36054 PR middle-end/42130
36055 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
36056 handle conversions from pointer to integers.
36057 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
36058 induction variable, to be able to work with code generated by CLooG.
36059 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
36060 (build_poly_scop): Bail out if we cannot codegen a loop.
36062 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36064 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
36065 code generation with gloog_error.
36067 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36069 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
36070 Call fold_convert on all the returned values.
36071 (expand_scalar_variables_expr): Pass to
36072 expand_scalar_variables_ssa_name the type of the resulting expression.
36074 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36076 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
36077 ppl_min_for_le_pointset.
36078 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
36079 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
36081 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36083 * graphite-dependences.c (map_into_dep_poly): Removed.
36084 (dependence_polyhedron_1): Use combine_context_id_scat.
36086 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36088 * graphite-poly.h (struct poly_scattering): Add layout documentation.
36089 (struct poly_bb): Same.
36090 (combine_context_id_scat): New.
36092 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36094 PR middle-end/42326
36095 * sese.c (name_defined_in_loop_p): Return false for default
36098 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36100 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
36101 and clean up the logic.
36103 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36105 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
36108 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36110 * var-tracking.c (remove_cselib_value_chains): Define only for
36112 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
36113 delete_slot_part, emit_notes_for_differences_1): Don't call
36114 remove_cselib_value_chains here.
36115 (set_slot_part, emit_notes_for_differences_2): Don't call
36116 add_cselib_value_chains here.
36117 (preserved_values): New vector.
36118 (preserve_value): New function.
36119 (add_uses, add_stores, vt_add_function_parameters): Use it
36120 instead of cselib_preserve_value.
36121 (changed_values_stack): New vector.
36122 (check_changed_vars_0): New function.
36123 (check_changed_vars_1, check_changed_vars_2): Use it.
36124 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
36125 changed_values_stack VALUEs.
36126 (vt_emit_notes): For all preserved_values call
36127 add_cselib_value_chains. If ENABLE_CHECKING call
36128 remove_cselib_value_chains before verifying value_chains is empty.
36129 Initialize and free changed_values_stack.
36130 (vt_initialize): Initialize preserved_values.
36131 (vt_finalize): Free preserved_values.
36133 2010-03-08 Richard Guenther <rguenther@suse.de>
36135 PR tree-optimization/43269
36136 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
36139 2010-03-08 Martin Jambor <mjambor@suse.cz>
36141 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
36142 (ipa_is_param_called): Removed.
36143 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
36144 (ipa_print_node_params): Do not print the called flag.
36145 (ipa_write_node_info): Do not stream the called flag.
36146 (ipa_read_node_info): Likewise.
36148 2010-03-07 Jakub Jelinek <jakub@redhat.com>
36151 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
36152 * cselib.c (struct expand_value_data): Add dummy field.
36153 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
36155 (cselib_dummy_expand_value_rtx_cb): New function.
36156 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
36158 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
36159 * var-tracking.c: Include pointer-set.h.
36160 (variable): Change n_var_parts to char from int. Add
36161 cur_loc_changed and in_changed_variables fields.
36162 (variable_canonicalize): Remove.
36163 (shared_var_p): New inline function.
36164 (unshare_variable): Maintain cur_loc_changed and
36165 in_changed_variables fields. If var was in changed_variables,
36166 replace it there with new_var. Just copy cur_loc instead of
36167 resetting it to something else.
36168 (variable_union): Don't recompute cur_loc. Use shared_var_p.
36169 (dataflow_set_union): Don't call variable_canonicalize.
36170 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
36171 of their DEBUG_EXPR_TREE_DECLs.
36172 (canonicalize_loc_order_check): Verify that cur_loc is NULL
36173 and in_changed_variables and cur_loc_changed is false.
36174 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
36175 and cur_loc_changed. Don't update cur_loc here.
36176 (variable_merge_over_src): Don't call variable_canonicalize.
36177 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
36178 removing loc that is equal to cur_loc, clear cur_loc,
36179 set cur_loc_changed and ensure variable_was_changed is called.
36180 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
36181 compare pointers in cur_loc check, if it is equal to loc,
36182 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
36183 (variable_different_p): Remove compare_current_location argument,
36184 don't compare cur_loc.
36185 (dataflow_set_different_1): Adjust variable_different_p caller.
36186 (variable_was_changed): If dv had some var in changed_variables
36187 already, reset in_changed_variables flag for it and propagate
36188 cur_loc_changed over to the new variable. On empty var
36189 always set cur_loc_changed. Set in_changed_variables on whatever
36190 var is added to changed_variables.
36191 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
36192 Use shared_var_p. When removing loc that is equal to cur_loc,
36193 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
36194 end, don't set it to something else, just call variable_was_changed.
36195 (delete_slot_part): Use shared_var_p. When cur_loc equals to
36196 loc being removed, clear cur_loc and set cur_loc_changed.
36197 Set cur_loc_changed if all locations have been removed.
36198 (struct expand_loc_callback_data): New type.
36199 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
36200 allocated. Always create SUBREGs if simplify_subreg failed.
36201 Prefer to use cur_loc, when that fails and still in
36202 changed_variables (and seen first time) recompute it. Set
36203 cur_loc_changed of variables which had to change cur_loc and
36204 compute elcd->cur_loc_changed if any of the subexpressions used
36205 had to change cur_loc.
36206 (vt_expand_loc): Adjust to pass arguments in
36207 expand_loc_callback_data structure.
36208 (vt_expand_loc_dummy): New function.
36209 (emitted_notes): New variable.
36210 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
36211 that weren't used for any other decl in current
36212 emit_notes_for_changes call call vt_expand_loc_dummy to update
36213 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
36214 first loc_chain location if NULL before. Always use just
36215 cur_loc instead of first loc_chain location. When cur_loc_changed
36216 is false, when not --enable-checking=rtl just don't emit any note.
36217 When rtl checking, compute the note and assert it is the same
36218 as previous note. Clear cur_loc_changed and in_changed_variables
36219 at the end before removing from changed_variables.
36220 (check_changed_vars_3): New function.
36221 (emit_notes_for_changes): Traverse changed_vars to call
36222 check_changed_vars_3 on each changed var.
36223 (emit_notes_for_differences_1): Clear cur_loc_changed and
36224 in_changed_variables. Recompute cur_loc of new_var.
36225 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
36226 (vt_emit_notes): Initialize and destroy emitted_notes.
36228 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
36230 PR rtl-optimization/42220
36231 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
36232 Use verify_reg_tracked to determine if we should use OP_OUT rather
36234 (build_def_use): If we see an in-out operand for a register that we
36235 know nothing about, treat is an output if possible, fail the block if
36238 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36241 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
36244 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36247 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
36248 uses of relevant DEFs that are dead outside the loop too.
36250 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36252 * var-tracking.c (dataflow_set_merge): Swap src and src2.
36254 2010-01-13 Jakub Jelinek <jakub@redhat.com>
36256 * var-tracking.c (values_to_unmark): New variable.
36257 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36258 values_to_unmark vector. Moved body to...
36259 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
36260 instead queue it into values_to_unmark vector.
36261 (vt_find_locations): Free values_to_unmark vector.
36263 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
36265 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
36266 (site.exp): Export them when plugins are enabled.
36268 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
36270 PR middle-end/42326
36271 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
36272 that contain scevs.
36273 (chrec_fold_multiply): Same.
36275 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
36278 * c-decl.c (build_compound_literal): Return early if init is
36279 an error_mark_node.
36281 2010-03-04 Martin Jambor <mjambor@suse.cz>
36283 PR tree-optimization/43164
36284 PR tree-optimization/43191
36285 * tree-sra.c (type_consists_of_records_p): Reject records with
36286 zero-size bit-fields at the end.
36288 2010-03-04 Mike Stump <mikestump@comcast.net>
36290 * Makefile.in (TAGS): Remove *.y.
36292 2010-03-04 Richard Guenther <rguenther@suse.de>
36294 PR tree-optimization/40761
36295 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
36297 (my_rev_post_order_compute): New function.
36298 (init_pre): Call it.
36300 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
36302 PR middle-end/43209
36303 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
36304 decrease the cost of an IV candidate when the cost is infinite.
36306 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36308 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
36309 Use '3DNow!' for the extension of that name, ensure normal space
36311 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
36313 2010-03-03 Jeff Law <law@redhat.com>
36315 * PR middle-end/32693
36316 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
36317 than gen_rtx_SUBREG.
36318 (extract_bit_field_1): Likewise.
36320 2010-03-03 Janis Johnson <janis187@us.ibm.com>
36322 * doc/sourcebuild.texi (Test directives): Document that arguments
36323 include-opts and exclude-opts are now optional for dg-skip-if,
36324 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
36326 2010-03-03 Jason Merrill <jason@redhat.com>
36329 * cgraph.h (varpool_node): Add extra_name field.
36330 * varpool.c (varpool_extra_name_alias): New.
36331 (varpool_assemble_decl): Emit extra name aliases.
36332 (varpool_mark_needed_node): Look past an extra name alias.
36333 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
36334 * lto-streamer-in.c (lto_input_tree): Read it.
36335 * lto-streamer-out.c (output_unreferenced_globals): Write it.
36337 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
36339 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
36340 (sparc*-*-solaris2*): ...this.
36342 2010-03-03 Jakub Jelinek <jakub@redhat.com>
36345 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
36346 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
36347 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
36348 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
36351 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
36352 fallthrough to default handling, just with want_address 0 instead of 2.
36353 For single element lists, add_AT_loc directly, otherwise create an
36354 artificial variable DIE and stick location list to it.
36357 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
36358 (VAL_EXPR_HAS_REVERSE): Define.
36359 (reverse_op): New function.
36360 (add_stores): For reversible operations add an extra MO_VAL_USE.
36362 2010-03-02 Jason Merrill <jason@redhat.com>
36364 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
36366 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
36368 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
36369 (sparc64-*-linux*): Likewise.
36370 (sparc64-*-solaris2*): Include assembler files before linker ones.
36371 (sparc-*-solaris2*): Simplify and reorder to match previous case.
36372 * config/sparc/gas.h: Delete.
36373 * config/sparc/sol2-64.h: Add copyright notice.
36374 * config/sparc/sol2-gas-bi.h: Likewise.
36375 * config/sparc/sol2-gld.h: Likewise.
36376 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
36377 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
36378 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
36379 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
36380 (sparc_elf_asm_named_section): Rename into...
36381 (sparc_solaris_elf_asm_named_section): ...this. Always define.
36383 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
36385 * config/alpha/alpha.c (override_options): Fix -mtune error message.
36387 2010-03-02 Jeff Law <law@redhat.com>
36389 PR middle-end/42431
36390 * reload1.c (rtx_p, substitute_stack): Declare.
36391 (substitute): Record addresses of changed rtxs.
36392 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
36393 Restore the original rtx when complete.
36394 (reload): Free subsitute_stack when complete.
36396 2010-03-02 Janis Johnson <janis187@us.ibm.com>
36398 * doc/gccint.texi (menu): Add Testsuites as a chapter.
36399 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
36401 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
36402 LTO Testing, gcov Testing, profopt Testing, compat Testing,
36403 Torture Tests): Change from subsection to section.
36405 2010-03-02 Jakub Jelinek <jakub@redhat.com>
36406 Steven Bosscher <steven@gcc.gnu.org>
36408 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
36411 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
36413 PR middle-end/42640
36414 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
36415 the assignment from the new induction variable to the assignment
36416 of the value from the original loop PHI function.
36418 2010-03-01 Janis Johnson <janis187@us.ibm.com>
36419 Daniel Jacobowitz <dan@codesourcery.com>
36421 * doc/sourcebuild.texi (Test directives): Clarify options to
36424 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36426 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
36427 Disable cfi directives unless GCC and gas agree on using read-only
36428 .eh_frame sections for 64-bit.
36429 * configure: Regenerate.
36431 2010-03-01 Richard Guenther <rguenther@suse.de>
36433 PR tree-optimization/43220
36434 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
36435 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
36437 2010-03-01 Richard Guenther <rguenther@suse.de>
36438 Martin Jambor <mjambor@suse.cz>
36440 PR middle-end/41250
36441 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
36442 gimplified parameters.
36444 2010-03-01 Christian Bruel <christian.bruel@st.com>
36446 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
36448 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
36450 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
36452 2010-03-01 Richard Guenther <rguenther@suse.de>
36454 PR middle-end/43213
36455 * expr.c (expand_assignment): Use the alias-oracle to tell
36456 if the rhs aliases the result decl.
36458 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36461 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
36462 to sol_gt_pch_get_address.
36463 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
36464 64-bit, SPARC and x86.
36465 (sol_gt_pch_get_address): New function.
36467 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
36469 * toplev.h (inform_n, error_n): Declare.
36470 * diagnostic.c (inform_n, error_n): New function.
36472 2010-03-01 Jakub Jelinek <jakub@redhat.com>
36474 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
36475 has no rtl yet when processing local_decls, queue it and recheck
36476 if deferred stack allocation hasn't assigned it rtl.
36478 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
36480 * config/sh/sh.c (unspec_bbr_uid): New.
36481 (gen_block_redirect): Use it instead of INSN_UID.
36482 (gen_far_branch): Likewise.
36484 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
36486 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
36487 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
36489 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36491 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
36492 (Warning Options): -Wno-conversion-null is valid for
36493 Objective-C++ as well.
36494 * doc/tm.texi (Named Address Spaces): Likewise.
36495 * doc/plugins.texi (Plugins): Replace TABs with spaces.
36496 * doc/tree-ssa.texi (Tree SSA): Likewise.
36498 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36501 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
36502 by default. Don't set the default arch for
36503 i[34567]86-*-darwin*|x86_64-*-darwin*.
36505 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36508 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
36509 default. Set the default 32bit/64bit archs with $with_arch
36510 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
36512 2010-02-27 Richard Guenther <rguenther@suse.de>
36514 PR tree-optimization/43186
36515 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
36516 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
36517 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
36518 unroller iterations.
36520 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36522 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
36523 required and i[34567]86-*-* targets don't support 64bit ISA.
36525 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
36528 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36529 the same alias set.
36531 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
36533 * config.gcc: Set the default arch at least to Prescott for
36534 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
36535 if SSE math is enabled.
36537 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36539 * diagnostic.c (diagnostic_initialize): Update.
36540 (diagnostic_report_diagnostic): Test inhibit_notes_p for
36542 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
36543 (diagnostic_inhibit_notes): New.
36544 * toplev.c (process_options): inhibit notes with -fcompare-debug.
36546 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36549 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
36550 * doc/standards.texi: Likewise.
36551 * doc/extend.texi: Likewise.
36552 * doc/trouble.texi: Likewise.
36553 * doc/cppopts.texi: Likewise.
36554 * doc/install.texi: Likewise.
36555 * c.opt (std=c90,std=gnu90): New options.
36556 * c-opts.c (c_common_handle_option): Handle them.
36558 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36561 * c-decl.c (undeclared_variable): Use an informative note.
36563 2010-02-26 Richard Guenther <rguenther@suse.de>
36565 PR tree-optimization/43186
36566 * gimple.h (gimple_fold): Remove.
36567 * gimple.c (gimple_fold): Remove. Inline into single user ...
36568 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
36569 Try harder for conditions.
36571 2010-02-26 Jakub Jelinek <jakub@redhat.com>
36574 * function.c (used_types_insert): Don't skip through named pointer
36575 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
36576 and it is different from the main variant's type.
36578 2010-02-26 Nick Clifton <nickc@redhat.com>
36580 * config/rx/rx.md (sminsi3): Remove bogus alternative.
36582 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
36584 * config.gcc: Support --with-fpmath=sse for x86.
36586 * config/i386/ssemath.h: New.
36588 * doc/install.texi (--with-fpmath=sse): Documented.
36590 2010-02-26 Richard Guenther <rguenther@suse.de>
36592 PR tree-optimization/43188
36593 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
36594 vector types of over-aligned element type.
36596 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
36599 * config/i386/i386.c (expand_vec_perm_blend): Use correct
36600 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
36602 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
36604 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
36606 2010-02-26 Jakub Jelinek <jakub@redhat.com>
36608 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
36609 * var-tracking.c: Include diagnostic.h.
36610 (debug_dv): New function.
36611 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
36614 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
36615 (add_value_chain, add_value_chains, remove_value_chain,
36616 remove_value_chains): Handle DEBUG_EXPRs.
36617 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
36620 * regcprop.c (struct queued_debug_insn_change): New type.
36621 (struct value_data_entry): Add debug_insn_changes field.
36622 (struct value_data): Add n_debug_insn_changes field.
36623 (debug_insn_changes_pool): New variable.
36624 (free_debug_insn_changes, apply_debug_insn_changes,
36625 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
36626 (kill_value_one_regno): Call free_debug_insn_changes if needed.
36627 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
36629 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
36631 (copyprop_hardreg_forward_1): Don't call apply_change_group for
36632 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
36633 changes, call cprop_find_used_regs via note_stores.
36634 (copyprop_hardreg_forward): When copying vd from predecessor
36635 which has any queued DEBUG_INSN changes, make sure the pointers are
36636 cleared. At the end call df_analyze and then if there are any
36637 DEBUG_INSN changes queued at the end of some basic block for still
36638 live registers, apply them.
36639 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
36641 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
36643 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
36646 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
36648 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
36649 targets. Set the default with_cpu/with_arch from arch/cpu.
36650 Allow x86-64 and native for with_cpu/with_arch.
36652 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
36654 * ebitmap.c: Change calls to verify_popcount with calls to
36655 sbitmap_verify_popcount.
36656 (ebitmap_clear_bit): Fixed map->cacheindex test and
36657 map>cache update when bit clearing results in an empty
36660 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36663 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
36664 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
36665 and support both V2DF and V2DI modes.
36666 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
36667 support both V2DF and V2DI modes.
36668 (general): Delete trailing whitespace from a few patterns.
36670 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36671 V2DF/V2DI interleave high/low builtins.
36673 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
36676 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
36677 interleave high/low functions.
36679 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
36681 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
36682 #pragma extern_prefix.
36684 2010-02-25 Jakub Jelinek <jakub@redhat.com>
36687 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
36688 BLKmode, assert op0 is a MEM and just adjust its mode.
36691 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
36692 if bitpos isn't multiple of mode's bitsize.
36694 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
36696 * c.opt (-ftemplate-depth=): New.
36697 (-ftemplate-depth-): Deprecate.
36698 * optc-gen.awk: Handle -ftemplate-depth=.
36699 * opth-gen.awk: Likewise.
36700 * c-opts.c (c_common_handle_option): Likewise.
36701 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
36703 2010-02-24 Jason Merrill <jason@redhat.com>
36705 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
36707 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36709 * cfg.c (alloc_aux_for_block): Remove inline.
36710 (alloc_aux_for_edge): Likewise.
36712 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36714 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
36716 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36718 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
36719 * config/i386/sol2-gas.h: New file.
36720 * config.gcc (i[34567]86-*-solaris2*): Use it.
36722 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
36725 * c-typeck.c (ep_convert_and_check): New.
36726 (build_conditional_expr): Use it.
36727 (build_binary_op): Likewise.
36729 2010-02-24 Jakub Jelinek <jakub@redhat.com>
36731 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
36734 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
36735 bounds even for -O+.
36736 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
36737 expr needs to have DECL_NAME set.
36739 2010-02-24 Nick Clifton <nickc@redhat.com>
36741 * config/mep/mep.c: Include gimple.h.
36742 (mep_function_uses_sp): Delete unused function.
36743 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
36744 parameters. Use unsigned integers to count args. Return a
36745 NULL_RTX instead of an error_mark_node. Toidy up formatting.
36747 2010-02-23 Jakub Jelinek <jakub@redhat.com>
36750 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
36751 greater or equal to nelt instead of 2 * nelt.
36752 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
36755 2010-02-23 Jason Merrill <jason@redhat.com>
36758 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36759 in cfun->local_decls even if they have register types.
36762 * stor-layout.c (place_field): Don't warn about unnecessary
36763 DECL_PACKED if the type is packed.
36765 2010-02-23 Jakub Jelinek <jakub@redhat.com>
36768 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36769 GOTOFF relocs, even when the base reg isn't pic pointer.
36771 2010-02-23 Michael Matz <matz@suse.de>
36774 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36775 (expand_gimple_basic_block): Generate and use debug temps if there
36776 are debug uses left after the last real use of TERed ssa names.
36777 Unlink debug immediate uses when they are expanded.
36779 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
36782 * config/i386/i386.c (override_options): Reorganise to provide
36783 better error messages.
36785 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36787 PR middle-end/43083
36788 * graphite-scop-detection.c (create_single_exit_edge): Move
36789 the call to find_single_exit_edge to....
36790 (create_sese_edges): ...here. Don't handle multiple edges
36791 exiting the function.
36792 (build_graphite_scops): Don't handle multiple edges
36793 exiting the function.
36795 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36797 PR middle-end/43097
36798 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36799 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36801 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36803 PR middle-end/43026
36804 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36806 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
36809 * c-typeck.c (convert_arguments): Print declaration location.
36810 * c-common.c (validate_nargs): Rename as
36811 builtin_function_validate_nargs.
36812 (check_builtin_function_arguments): Update.
36814 2010-02-22 Richard Guenther <rguenther@suse.de>
36817 * tree-inline.c (declare_return_variable): Use the type of
36818 the call stmt lhs if available.
36820 2010-02-22 Duncan Sands <baldrick@free.fr>
36822 * passes.c (register_pass): Always consider all pass lists when
36823 ref_pass_instance_number is zero.
36825 2010-02-22 Richard Guenther <rguenther@suse.de>
36827 PR tree-optimization/42749
36828 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36829 parameter. Do arithmetic in the original type.
36830 (update_accumulator_with_ops): Likewise.
36831 (adjust_accumulator_values): Adjust.
36833 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36835 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36836 (QI to BLKmode splitter): New splitter.
36838 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
36840 * config/i386/i386.c (initial_ix86_tune_features): Turn on
36841 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36843 2010-02-22 Richard Guenther <rguenther@suse.de>
36845 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
36847 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
36849 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
36850 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
36851 ($(T)crti.o, $(T)crtn.o): Remove rules.
36853 2010-02-21 Tobias Burnus <burnus@net-b.de>
36856 * doc/invoke.texi (-fassociative-math): Document that this
36857 option is automatically enabled for Fortran.
36859 2010-02-20 David S. Miller <davem@davemloft.net>
36861 * configure.ac: Test if linker and assembler properly support
36862 GOTDATA_OP relocations.
36863 * configure: Rebuild.
36864 * config.in: Likewise.
36865 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
36866 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
36867 (movsi_high_pic): Likewise.
36868 (movdi_lo_sum_pic): Likewise.
36869 (movdi_high_pic): Likewise.
36870 (movsi_pic_gotdata_op): New pattern.
36871 (movdi_pic_gotdata_op): Likewise.
36872 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
36873 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
36875 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
36878 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
36879 attribute to ssemul.
36880 (xop_mulv2div2di3_high): Ditto.
36882 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
36885 * c.opt (Wconversion-null): New option.
36886 * doc/invoke.texi (Wconversion-null): Document.
36888 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
36890 * common.opt (Wlarger-than-): Add Undocumented.
36892 2010-02-19 Mike Stump <mikestump@comcast.net>
36894 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
36896 2010-02-19 Jason Merrill <jason@redhat.com>
36899 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
36900 * configure: Likewise.
36902 2010-02-20 Alan Modra <amodra@gmail.com>
36904 PR middle-end/42344
36905 * cgraph.h (cgraph_make_decl_local): Declare.
36906 * cgraph.c (cgraph_make_decl_local): New function.
36907 (cgraph_make_node_local): Use it.
36908 * cgraphunit.c (cgraph_function_versioning): Likewise.
36909 * ipa.c (function_and_variable_visibility): Likewise.
36911 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36914 * except.c (sjlj_emit_function_enter): Don't call
36915 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
36917 * rtl.h (add_reg_br_prob_note): Remove prototype.
36919 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
36922 * c-common.c (conversion_warning): Remove widening conversions
36923 before checking the conversion of integers to reals.
36925 2010-02-19 Mike Stump <mikestump@comcast.net>
36927 PR middle-end/43125
36928 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
36931 * cgraphunit.c (process_function_and_variable_attributes): Check
36932 DECL_PRESERVE_P instead of looking up attribute "used".
36933 * ipa-pure-const.c (check_decl): Likewise.
36934 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
36935 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
36936 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
36937 instead of attribute "used".
36938 * config/sol2-c.c (solaris_pragma_init): Likewise.
36939 (solaris_pragma_fini): Likewise.
36941 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36943 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
36944 Use XCNEW instead of xcalloc.
36945 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
36946 XNEW instead of xmalloc.
36947 (get_fields): Use XNEWVEC instead of xmalloc.
36950 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
36951 populate vars array.
36952 (create_new_general_access): For debug stmts just reset value.
36953 (get_stmt_accesses): For accesses within debug stmts just record them
36954 using add_access_to_acc_sites instead of preventing the peeling or
36955 counting them as accesses.
36957 PR middle-end/42233
36958 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
36960 2010-02-19 Richard Guenther <rguenther@suse.de>
36962 PR tree-optimization/42916
36963 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
36966 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
36968 * configure.ac: Replace all uses of changequote in macro arguments
36969 with proper quoting.
36971 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36973 PR middle-end/42233
36974 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
36976 2010-02-19 Richard Guenther <rguenther@suse.de>
36978 PR tree-optimization/42944
36979 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
36980 test for aliasing with errno.
36982 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36984 PR middle-end/42233
36985 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
36986 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
36987 * dojump.c: Include output.h.
36988 (inv): New inline function.
36989 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
36990 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
36991 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
36992 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
36993 argument, pass it down to other calls.
36994 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
36995 add REG_BR_PROB note to the conditional jump.
36996 * cfgexpand.c (add_reg_br_prob_note): Removed.
36997 (expand_gimple_cond): Don't call it, add the probability
36998 as last argument to jumpif_1/jumpifnot_1.
36999 * Makefile.in (dojump.o): Depend on output.h.
37000 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
37002 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
37003 * stmt.c (do_jump_if_equal): Likewise.
37004 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
37005 * loop-unswitch.c (compare_and_jump_seq): Likewise.
37006 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
37008 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
37009 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
37010 jumpifnot_1 callers.
37011 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
37013 (store_expr): Adjust jumpifnot caller.
37014 (store_constructor): Adjust jumpif caller.
37016 PR middle-end/42233
37017 * gimplify.c (gimple_boolify): For __builtin_expect call
37018 gimple_boolify also on its first argument.
37020 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
37022 * configure.ac (gnu-unique-object): Wrap regexps using [] in
37024 (__stack_chk_fail): Ditto. Remove quadrigraphs.
37025 * configure: Regenerated.
37027 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37029 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
37030 lang_hooks.types_compatible_p instead of comptypes.
37032 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
37034 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
37035 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
37036 if __prefer_thumb__ is defined.
37038 2010-02-18 Martin Jambor <mjambor@suse.cz>
37040 PR tree-optimization/43066
37041 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
37042 array with zero-sized element type.
37044 2010-02-18 Jakub Jelinek <jakub@redhat.com>
37046 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
37047 rtx, allocate struct var_loc_node here and return it to the
37048 caller, and only if it is actually needed.
37049 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
37050 move it earlier and return immediately if it returns NULL.
37052 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
37054 * config/sparc/gas.h: New file. Restore
37055 TARGET_ASM_NAMED_SECTION to its ELF default.
37056 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
37057 check !HAVE_GNU_AS.
37058 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37059 Likewise. Add ATTRIBUTE_UNUSED to prototype.
37060 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
37061 after sparc/sysv4.h.
37063 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
37065 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
37067 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
37069 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
37070 patterns from predicated pattern.
37072 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
37075 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
37076 for insn mnemonic suffix.
37078 2010-02-17 Richard Guenther <rguenther@suse.de>
37080 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
37083 2010-02-17 Jakub Jelinek <jakub@redhat.com>
37086 * caller-save.c (save_call_clobbered_regs): If BB ends with
37087 a DEBUG_INSN, move any notes in between last real insn and the last
37088 DEBUG_INSN after the last DEBUG_INSN.
37090 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
37092 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
37093 Fix return type. Fix argument type. Explain meaning of return value.
37095 2010-02-16 Richard Guenther <rguenther@suse.de>
37097 PR tree-optimization/41043
37098 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
37099 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
37101 (vrp_visit_phi_node): ... but only for loop PHI nodes.
37103 2010-02-16 Ira Rosen <irar@il.ibm.com>
37105 PR tree-optimization/43074
37106 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
37107 * tree-vect-loop.c (vect_analyze_loop_operations): Add
37108 vectorizable cycles in hybrid SLP check.
37109 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
37111 2010-02-16 Richard Guenther <rguenther@suse.de>
37113 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
37114 (true_dependence): If memrefs_conflict_p computes must-alias
37115 trust it. Move TBAA check after offset-based disambiguation.
37116 (canon_true_dependence): Likewise.
37118 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
37120 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
37121 * doc/invoke.texi: Document it.
37122 * var-tracking.c: Include toplev.h and params.h.
37123 (vt_find_locations): Return bool indicating success. Compute
37124 hash sizes unconditionally. Check new parameter, report.
37125 (variable_tracking_main_1): Check vt_find_locations results and
37126 retry. Renamed from...
37127 (variable_tracking_main): ... this. New wrapper to preserve
37128 flag_var_tracking_assignments.
37129 * Makefile.in (var-tracking.o): Adjust dependencies.
37131 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
37132 Jakub Jelinek <jakub@redhat.com>
37135 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
37136 if weak_import attribute is present.
37137 * config/darwin.c (machopic_select_section): Likewise.
37139 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
37141 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
37142 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
37143 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
37144 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
37146 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
37149 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
37150 Fix argument types.
37152 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
37153 Rewrite text to refer to the names.
37155 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
37157 * config/i386/i386-builtin-types.def
37158 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
37159 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
37160 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
37161 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
37162 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
37163 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
37164 IX86_BUILTIN_VPERMIL2PS256.
37165 (MULTI_ARG_4_DF2_DI_I): Defined.
37166 (MULTI_ARG_4_DF2_DI_I1): Defined.
37167 (MULTI_ARG_4_SF2_SI_I): Defined.
37168 (MULTI_ARG_4_SF2_SI_I1): Defined.
37169 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
37170 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
37171 __builtin_ia32_vpermil2ps256.
37172 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37173 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37174 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
37175 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37176 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37177 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
37178 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
37179 CODE_FOR_xop_vpermil2v8sf3.
37180 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
37181 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
37182 * config/i386/xopintrin.h (_mm_permute2_pd): New.
37183 (_mm256_permute2_pd): New.
37184 (_mm_permute2_ps): New.
37185 (_mm256_permute2_ps): New.
37187 2010-02-15 Nick Clifton <nickc@redhat.com>
37189 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
37190 boolean parameters. Use emit_jump_insn when emitting a pop
37191 instruction containing a return insn.
37192 (push): Use 'true' rather than '1' as second parameter to F.
37193 (h8300_expand_prologue): Likewise.
37194 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
37195 (h8300_expand_epilogue): Likewise.
37197 2010-02-15 Richard Guenther <rguenther@suse.de>
37199 PR middle-end/43068
37200 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
37203 2010-02-15 Nick Clifton <nickc@redhat.com>
37205 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
37208 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
37210 * intl.c (fake_ngettext): New function.
37211 * intl.h (fake_ngettext): Declare.
37212 (ngettext): Define macro.
37213 * collect2.c (notice_translated): New function.
37214 (main): Use notice_translated and ngettext.
37215 * collect2.h (notice_translated): Declare.
37217 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
37219 * reorg.c (delete_computation): Comment fixes.
37220 * caller-save.c (setup_save_areas): Idem.
37221 * sel-sched-dump.c (dump_lv_set): Idem.
37224 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37226 * config/s390/s390.c (s390_sched_init): New function.
37227 (TARGET_SCHED_INIT): Target hook defined.
37229 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
37230 Jack Howarth <howarth@bromo.med.uc.edu>
37231 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
37234 Partial revert of unintended change in fix for PR41605.
37235 * config/darwin.h: Fix typo.
37236 * config/darwin9.h: Same.
37238 2010-02-11 Jakub Jelinek <jakub@redhat.com>
37240 * c-pch.c (pch_init): Clear v.
37242 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37244 PR middle-end/42930
37245 * graphite-scop-detection.c (graphite_can_represent_scev): Call
37246 graphite_can_represent_init for MULT_EXPR.
37248 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37250 PR middle-end/42914
37251 PR middle-end/42530
37252 * graphite-sese-to-poly.c (remove_phi): New.
37253 (translate_scalar_reduction_to_array): Call remove_phi.
37255 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37257 PR middle-end/42771
37258 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
37259 * graphite-clast-to-gimple.h (gloog): Update declaration.
37260 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
37261 * graphite-poly.h (struct poly_bb): Add missing comments.
37262 (struct scop): Add poly_scop_p field.
37263 (POLY_SCOP_P): New.
37264 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
37265 * graphite.c (graphite_transform_loops): Build the polyhedral
37266 representation for each scop before code generation.
37267 * sese.c (rename_variables_in_operand): Removed.
37268 (rename_variables_in_expr): Return the renamed expression.
37269 (rename_sese_parameters): New.
37270 * sese.h (rename_sese_parameters): Declared.
37272 2010-02-11 Richard Guenther <rguenther@suse.de>
37274 PR tree-optimization/42998
37275 * tree-ssa-pre.c (create_expression_by_pieces): Treat
37276 POINTER_PLUS_EXPR properly.
37278 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37279 Changpeng Fang <changpeng.fang@amd.com>
37281 PR middle-end/40886
37282 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
37283 the cost of an IV candidate when the IV is used in a test against zero.
37285 * gcc.dg/tree-ssa/ivopts-3.c: New.
37287 2010-02-11 Richard Guenther <rguenther@suse.de>
37290 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
37291 pointer-vs-decl case by swapping refs. Handle some cases
37292 of pointer-vs-decl disambiguations more conservatively.
37293 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
37294 to false after expanding.
37296 2010-02-11 Richard Guenther <rguenther@suse.de>
37299 * gcc.c (process_command): Handle LTO file@offset case more
37302 2010-02-11 Jakub Jelinek <jakub@redhat.com>
37304 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
37305 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
37307 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
37309 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
37310 if MEM's mode size isn't DWARF2_ADDR_SIZE.
37311 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
37312 Optimize eq/ne comparisons when both arguments are known to be
37314 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
37315 Don't mask operands unnecessarily if they are known to be already
37318 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
37320 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
37323 2010-02-10 Richard Guenther <rguenther@suse.de>
37325 PR tree-optimization/43017
37326 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
37327 for wrapping signed arithmetic.
37329 2010-02-10 Jakub Jelinek <jakub@redhat.com>
37332 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
37333 if no debug info should be emitted for it.
37335 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
37337 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
37338 note when flag_exceptions is set.
37340 2010-02-10 Duncan Sands <baldrick@free.fr>
37342 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
37344 2010-02-10 Richard Guenther <rguenther@suse.de>
37347 * tree.c (get_unwidened): Handle constants.
37348 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
37350 2010-02-10 Martin Jambor <mjambor@suse.cz>
37353 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
37354 check for variable argument counts independently.
37356 2010-02-10 Christian Bruel <christian.bruel@st.com>
37359 * config/sh/sh.c (find_barrier): Increase length for non delayed
37360 conditional branches.
37362 2010-02-10 Christian Bruel <christian.bruel@st.com>
37364 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
37366 2010-02-10 Jakub Jelinek <jakub@redhat.com>
37368 * builtins.c (set_builtin_user_assembler_name): Also handle
37369 ffs if int is smaller than word.
37371 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
37373 PR middle-end/42973
37374 * ira-conflicts.c (get_dup): Remove.
37375 (process_reg_shuffles): Add new parameter. Use it as an
37376 additional guard for copy generation.
37377 (add_insn_allocno_copies): Rewrite.
37379 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
37381 * common.opt (fsched2-use-traces): Preserved for backward
37383 * doc/invoke.texi: Remove the documentation about option
37384 -fsched2-use-traces.
37385 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
37386 flag_sched2_use_traces.
37387 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
37388 the backward compatibility flag section.
37390 2010-02-09 Richard Guenther <rguenther@suse.de>
37392 PR tree-optimization/43008
37393 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
37394 make HEAP variables initialized from global memory if they
37395 are not known builtin functions.
37396 (find_func_aliases): Adjust.
37398 2010-02-09 Richard Guenther <rguenther@suse.de>
37400 PR tree-optimization/43000
37401 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
37402 arithmetic manually.
37404 2010-02-08 Jakub Jelinek <jakub@redhat.com>
37406 PR tree-optimization/42931
37407 * tree-loop-linear.c (try_interchange_loops): Don't call
37408 double_int_mul if estimated_loop_iterations failed.
37410 2010-02-08 Martin Jambor <mjambor@suse.cz>
37412 PR middle-end/42898
37413 * tree-sra.c (build_accesses_from_assign): Do not mark in
37414 should_scalarize_away_bitmap if stmt has volatile ops.
37415 (sra_modify_assign): Do not process assigns piecemeal if if stmt
37418 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
37420 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
37422 2010-02-07 Adam Nemet <adambnmet@gmail.com>
37424 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
37425 before the pattern.
37427 2010-02-07 Andrew Pinski <pinskia@gmail.com>
37429 PR middle-end/42946
37430 * df-core.c (df_finish_pass): Change type of saved_flags to int.
37432 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
37434 PR middle-end/42988
37435 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
37436 to unknown_dependence.
37437 (graphite_legal_transform_dr): Handle the unknown_dependence.
37438 (graphite_carried_dependence_level_k): Same.
37440 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
37442 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
37444 2010-02-07 Richard Guenther <rguenther@suse.de>
37446 PR middle-end/42991
37447 * expr.c (get_inner_reference): Always initialize *pbitsize.
37449 2010-02-07 Richard Guenther <rguenther@suse.de>
37451 PR middle-end/42956
37452 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
37453 new ARRAY_REFs on variable size element or minimal index arrays.
37455 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
37456 gimple_fold_indirect_ref.
37458 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
37461 * arm.c (arm_override_options): Just return if the user has specified
37462 an invalid fpu name.
37464 2010-02-03 Jason Merrill <jason@redhat.com>
37467 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
37468 i386_pe_maybe_record_exported_symbol.
37470 2010-02-05 Steve Ellcey <sje@cup.hp.com>
37473 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37474 (pa_delegitimize_address): New function.
37476 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
37478 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
37479 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
37481 2010-02-05 Richard Guenther <rguenther@suse.de>
37484 * lto-streamer-in.c (get_resolution): Deal with references
37485 to undefined functions.
37487 2010-02-05 Richard Guenther <rguenther@suse.de>
37489 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
37490 (fold_const_aggregate_ref): Likewise.
37491 (ccp_fold_stmt): Substitute loads.
37492 (maybe_fold_reference): Verify types before substituting.
37494 (fold_gimple_assign): Unshare properly.
37495 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
37497 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
37499 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
37500 for rs6000_gen_cell_microcode.
37502 2010-02-04 Richard Guenther <rguenther@suse.de>
37504 PR rtl-optimization/42952
37505 * dse.c (const_or_frame_p): Remove MEM handling.
37507 2010-02-04 Nick Clifton <nickc@redhat.com>
37509 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
37510 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37511 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
37512 (mn10300_asm_output_mi_thunk): New function.
37513 (mn10300_can_output_mu_thunk): New function.
37514 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
37515 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
37516 (FUNCTION_ARG): Delete incorrect comment.
37518 2010-02-03 Jason Merrill <jason@redhat.com>
37521 * fold-const.c (operand_equal_p): Handle erroneous types.
37523 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
37525 * config/h8300/h8300.md (can_delay): Fix attibute condition.
37527 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
37529 PR rtl-optimization/42941
37530 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
37533 2010-02-03 Jason Merrill <jason@redhat.com>
37536 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
37538 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
37541 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
37542 (cselib_reset_table): Renamed from...
37543 (cselib_reset_table_with_next_value): ... this.
37544 (cselib_get_next_uid): Renamed from...
37545 (cselib_get_next_unknown_value): ... this.
37546 * cselib.c (next_uid): Renamed from...
37547 (next_unknown_value): ... this.
37548 (cselib_clear_table): Adjust.
37549 (cselib_reset_table): Adjust. Renamed from...
37550 (cselib_reset_table_with_next_value): ... this.
37551 (cselib_get_next_uid): Adjust. Renamed from...
37552 (cselib_get_next_unknown_value): ... this.
37553 (get_value_hash): Use hash.
37554 (cselib_hash_rtx): Likewise.
37555 (new_cselib_val): Adjust. Set and dump uid.
37556 (cselib_lookup_mem): Pass next_uid as hash.
37557 (cselib_subst_to_values): Likewise.
37558 (cselib_log_lookup): Dump uid.
37559 (cselib_lookup): Pass next_uid as hash. Adjust.
37560 (cselib_process_insn): Adjust.
37561 (cselib_init): Initialize next_uid.
37562 (cselib_finish): Adjust.
37563 (dump_cselib_table): Likewise.
37564 * dse.c (canon_address): Dump value uid.
37565 * print-rtl.c (print_rtx): Print value uid.
37566 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
37568 (dv_uid): New function, sort of renamed from...
37569 (dv_htab_hash): ... this, reimplemented in terms of it and...
37570 (dv_uid2hash): ... this. New.
37571 (variable_htab_eq): Drop excess assertions.
37572 (tie_break_pointers): Removed.
37573 (canon_value_cmp): Compare uids.
37574 (variable_post_merge_New_vals): Print uids.
37575 (vt_add_function_parameters): Adjust.
37576 (vt_initialize): Reset table. Adjust.
37578 2010-02-03 Richard Guenther <rguenther@suse.de>
37580 PR tree-optimization/42944
37581 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
37582 (call_may_clobber_ref_p_1): Likewise. Properly handle
37583 malloc and calloc clobbering errno.
37585 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
37587 * doc/invoke.texi: Fix name of sched1 dump.
37589 * opts.c (decode_options): Set flag_tree_switch_conversion
37590 only conditionally on optimize >= 2.
37592 * gcse.c: Assorted comment fixes in pass description.
37594 2010-02-03 Anthony Green <green@moxielogic.com>
37596 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
37597 nop padding in order to maintain alignment of storage location of
37598 target function address.
37599 (moxie_trampoline_init): Store target function address at newly
37601 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
37603 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
37605 2010-02-03 Richard Guenther <rguenther@suse.de>
37607 PR middle-end/42927
37608 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
37610 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37612 * config.gcc: Reenable check for obsolete targets.
37613 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
37614 mips-sgi-irix6.[0-4]*.
37616 2010-02-02 Nick Clifton <nickc@redhat.com>
37618 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
37619 constant size of 4 as being the same as 0.
37620 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
37621 can take values in the range 0..4.
37623 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
37626 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
37627 as _darwin10_Unwind_FindEnclosingFunction().
37628 * libgcc-libsystem.ver: New.
37630 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
37633 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
37634 implicitly set registers.
37636 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
37638 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
37639 (arm_override_options): Allow automatic selection of the thread
37640 pointer register if thumb2.
37641 (legitimize_pic_address): Improve code sequences for Thumb2.
37642 (arm_call_tls_get_addr): Likewise.
37643 (legitimize_tls_address): Likewise.
37644 * arm.md (pic_load_addr_arm): Delete. Replace with ...
37645 (pic_load_addr_32bit): ... this. New named pattern.
37646 * thumb2.md (pic_load_addr_thumb2): Delete.
37647 (pic_load_dot_plus_four): Delete.
37648 (tls_load_dot_plus_four): New named pattern.
37650 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37653 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
37654 Document fix for TLS bug.
37656 2010-01-31 Richard Guenther <rguenther@suse.de>
37658 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
37659 conservatively correct.
37661 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37665 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37667 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37669 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37671 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
37673 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
37675 * config.gcc: Adjust order of makefile fragments for mingw targets.
37677 2010-01-31 Richard Guenther <rguenther@suse.de>
37679 PR middle-end/42898
37680 * gimplify.c (gimplify_init_constructor): For volatile LHS
37681 initialize a temporary.
37683 2010-01-31 Matthias Klose <doko@ubuntu.com>
37685 * configure.ac: Fix __stack_chk_fail check for cross builds configured
37687 * configure: Regenerate.
37689 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
37691 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37692 the same alias set and their sizes different constantness.
37693 (aliasing_component_refs_p): Revert 2009-10-24 change.
37695 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37697 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
37700 2010-01-29 Richard Guenther <rguenther@suse.de>
37702 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
37703 Assert we successfully updated the call.
37705 2010-01-29 Jakub Jelinek <jakub@redhat.com>
37707 PR rtl-optimization/42889
37708 * df.h (df_set_bb_dirty_nonlr): New prototype.
37709 * df-core.c (df_set_bb_dirty_nonlr): New function.
37710 * df-scan.c (df_insn_rescan): Call it instead of
37711 df_set_bb_dirty for DEBUG_INSNs.
37713 2010-01-29 Richard Guenther <rguenther@suse.de>
37715 PR middle-end/37448
37716 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
37717 quadratic behavior in most cases.
37719 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
37722 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
37723 in the call to gen_x86_movsicc_0_m1.
37725 2010-01-28 Richard Guenther <rguenther@suse.de>
37727 PR tree-optimization/42871
37728 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
37730 2010-01-28 Richard Guenther <rguenther@suse.de>
37732 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
37733 into call arguments.
37735 2010-01-28 Richard Guenther <rguenther@suse.de>
37737 PR middle-end/42883
37738 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
37739 the forwarder if the destination is an EH landing pad.
37741 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
37743 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
37744 block list passed to gimple_duplicate_sese_tail.
37745 (parallelize_loops): Avoid parallelization when the function
37746 has_nonlocal_label.
37747 Avoid parallelization when the preheader is IRREDUCIBLE.
37748 Try to optimize when estimated_loop_iterations_int is unresolved.
37749 Add the loop's location to the dump file.
37750 * tree-cfg.c (add_phi_args_after_redirect): Remove.
37751 (gimple_duplicate_sese_tail): Remove the check for the latch.
37752 Redirect nexits to the exit block.
37753 Remove handling of the incoming edges to the latch.
37754 Redirect the backedge from the copied latch to the exit bb.
37756 2010-01-28 Michael Matz <matz@suse.de>
37759 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37760 Wrap force_reg into a sequence, emit it before user.
37762 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
37764 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37766 (arm_legacy_rev): Likewise.
37767 (thumb_legacy_rev): Likewise.
37769 2010-01-27 Jakub Jelinek <jakub@redhat.com>
37771 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37772 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
37773 on MEM's address failed, try avoid_constant_pool_reference and
37774 recurse if it returned something different.
37775 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37776 address, try avoid_constant_pool_reference and recurse if it
37777 returned something different.
37778 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37779 address and avoid_constant_pool_reference returned something
37780 different, don't set have_address.
37782 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
37785 * var-tracking.c (val_store): Add modified argument, obey it.
37787 (count_uses): Move down logging of main.
37788 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37789 don't need resolution.
37790 (emit_notes_in_bb): Likewise.
37792 2010-01-27 Richard Guenther <rguenther@suse.de>
37794 PR middle-end/42878
37795 * tree-inline.c (remap_decl): Delay remapping of SSA name
37796 default definitions until we need them.
37798 2010-01-27 Jakub Jelinek <jakub@redhat.com>
37800 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37801 (rs6000_delegitimize_address): New function.
37803 * config/s390/s390.c (s390_delegitimize_address): Call
37804 delegitimize_mem_from_attrs.
37806 PR middle-end/42874
37807 * tree-inline.c (cannot_copy_type_1): Removed.
37808 (copy_forbidden): Don't forbid copying of functions containing
37809 records/unions with variable length fields.
37811 2010-01-27 Christian Bruel <christian.bruel@st.com>
37815 * config/sh/sh.c (find_barrier): Increase length for non delayed
37816 conditional branches.
37818 2010-01-27 Matthias Klose <doko@ubuntu.com>
37820 * configure.ac (gnu-unique-object): Fix ldd version check.
37821 * configure: Regenerate.
37823 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37825 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37827 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37828 Test for HAVE_GNU_AS value.
37830 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37832 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37833 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37834 INT64_TYPE): Define.
37835 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37836 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37837 INT_LEAST64_TYPE): Define.
37838 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37839 UINT_LEAST64_TYPE): Define.
37840 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37841 INT_FAST64_TYPE): Define.
37842 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37843 UINT_FAST64_TYPE): Define.
37844 (INTMAX_TYPE, UINTMAX_TYPE): Define.
37845 (INTPTR_TYPE, UINTPTR_TYPE): Define.
37846 (SIG_ATOMIC_TYPE): Define.
37848 2010-01-26 Richard Guenther <rguenther@suse.de>
37850 * df-scan.c (df_scan_set_bb_info): Remove assert.
37851 (df_insn_rescan_debug_internal): Merge asserts.
37852 (df_install_ref): Likewise.
37853 (df_mark_reg): Use bitmap_set_range.
37854 (df_hard_reg_used_p): Remove assert.
37855 (df_hard_reg_used_count): Likewise.
37857 2010-01-26 Richard Guenther <rguenther@suse.de>
37859 PR rtl-optimization/42685
37860 * web.c (web_main): Ignore DEBUG_INSNs.
37862 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
37864 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
37866 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
37867 Fix types of fndecl and arglist parameters.
37869 2010-01-26 Richard Guenther <rguenther@suse.de>
37871 PR middle-end/42806
37872 * tree-eh.c (unsplit_eh): Skip debug insns.
37874 2010-01-26 Richard Guenther <rguenther@suse.de>
37876 PR tree-optimization/42250
37877 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
37879 2010-01-26 Jakub Jelinek <jakub@redhat.com>
37882 * omp-low.c (expand_omp_sections): Only use single_pred if
37883 l2_bb is single_pred_p.
37885 2010-01-25 Christian Bruel <christian.bruel@st.com>
37888 * config/sh/sh.c (find_barrier): Increase length for non delayed
37889 conditional branches.
37890 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
37892 2010-01-24 David S. Miller <davem@davemloft.net>
37894 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
37895 define if not using GAS.
37896 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37897 Likewise. Delete SECTION_MERGE code, which is only applicable
37900 2010-01-24 Mark Mitchell <mark@codesourcery.com>
37903 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
37904 mangling of va_list in system headers.
37906 2010-01-23 Toon Moene <toon@moene.org>
37908 * tree-predcom.c (combine_chains): Return NULL, not false.
37910 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
37912 * tree-loop-distribution.c (distribute_loop): Fix declaration and
37913 initialization of variable res to agree with return type.
37915 2010-01-22 Steve Ellcey <sje@cup.hp.com>
37917 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
37918 * tree-sra.c: Add include of expr.h.
37920 2010-01-22 Jakub Jelinek <jakub@redhat.com>
37922 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
37923 insert the debug stmt on the single non-EH edge from the stmt.
37925 2010-01-22 Richard Henderson <rth@redhat.com>
37928 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
37929 the RHS until after generate_subtree_copies has insertted its
37930 code before the current statement.
37932 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
37934 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
37936 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
37938 2010-01-21 Martin Jambor <mjambor@suse.cz>
37940 PR tree-optimization/42585
37941 * tree-sra.c (struct access): New field grp_total_scalarization.
37942 (dump_access): Dump the new field.
37943 (should_scalarize_away_bitmap): New variable.
37944 (cannot_scalarize_away_bitmap): Likewise.
37945 (sra_initialize): Allocate new bitmaps.
37946 (sra_deinitialize): Free new bitmaps.
37947 (create_access_1): New function.
37948 (create_access): Parts moved to create_access_1.
37949 (type_consists_of_records_p): New function.
37950 (completely_scalarize_record): Likewise.
37951 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
37952 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
37953 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
37955 (analyze_all_variable_accesses): Completely scalarize small eligible
37958 2010-01-21 Martin Jambor <mjambor@suse.cz>
37960 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
37962 2010-01-21 Andrew Haley <aph@redhat.com>
37964 * gcc.c (process_command): Move lang_specific_driver before
37965 setting cc_libexec_prefix.
37967 2010-01-21 Richard Guenther <rguenther@suse.de>
37969 PR middle-end/19988
37970 * fold-const.c (negate_expr_p): Pretend only negative
37971 real constants are easily negatable.
37973 2010-01-20 Janis Johnson <janis187@us.ibm.com>
37974 Jason Merrill <jason@redhat.com>
37976 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
37977 (TYPE_TRANSPARENT_AGGR): this, for union and record.
37978 * calls.c (initialize argument_information): Handle it.
37979 * c-common.c (handle_transparent_union_attribute): Use new name.
37980 * c-decl.c (finish_struct): Ditto.
37981 * c-typeck.c (type_lists_compatible_p): Ditto.
37982 (convert_for_assignment): Use new name and also handle record.
37983 * function.c (aggregate_value_p): Handle it.
37984 (pass_by_reference): Ditto.
37985 (assign_parm_data_types): Ditto.
37986 * print-tree.c (print_node): Ditto.
37987 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
37988 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
37989 * tree.c (first_field): New fn.
37991 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
37994 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
37995 even when linking statically, for now.
37997 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38000 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
38001 without a cselib val.
38002 (count_uses): Accept MO_VAL_SET with no val on stores.
38003 (add_stores): Likewise.
38005 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38007 * var-tracking.c (check_value_val): Add a compile time assertion.
38008 (dv_is_decl_p): Simplify.
38009 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
38010 gcc_assert if ENABLE_CHECKING.
38012 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38015 * var-tracking.c: Include tree-flow.h.
38016 (mem_dies_at_call): New.
38017 (dataflow_set_preserve_mem_locs): Use it.
38018 (dataflow_set_remove_mem_locs): Likewise.
38019 (dump_var): Renamed from dump_variable. Adjust all callers.
38020 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
38021 * Makefile.in (var-tracking.o): Adjust deps.
38023 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
38025 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
38027 2010-01-20 Richard Guenther <rguenther@suse.de>
38029 PR tree-optimization/42717
38030 * tree-ssa-dce.c (get_live_post_dom): Remove.
38031 (forward_edge_to_pdom): Take an arbitrary edge to copy
38032 degenerate PHI args from.
38033 (remove_dead_stmt): Use the first post-dominator even if it
38034 does not contain live statements as redirection destination.
38036 2010-01-20 Richard Guenther <rguenther@suse.de>
38038 * tree-inline.c (estimate_num_insns): Handle EH builtins.
38040 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38042 * sel-sched.c (create_speculation_check): Remove set but not used
38044 (try_transformation_cache): Remove set but not used variable ds.
38045 (calculate_privileged_insns): Remove set but not used variables
38046 cur_insn and min_spec_insn.
38047 (find_best_expr): Remove set but not used variable avail_n.
38048 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
38050 * cgraphunit.c (assemble_thunk): Remove set but not used variable
38052 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
38053 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
38054 new_scop_exit_edge.
38056 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
38059 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
38060 cpu types. Add support for *-sse3 cpu types.
38061 (x86_64-*-*): Ditto.
38063 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38065 PR middle-end/42803
38066 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
38067 argument, call initializer_constant_valid_p_1 instead of
38068 initializer_constant_valid_p, pass CACHE to it, return NULL
38069 immediately if first call returns NULL.
38070 (initializer_constant_valid_p_1): New function.
38071 (initializer_constant_valid_p): Use it.
38073 2010-01-20 Thomas Quinot <quinot@adacore.com>
38075 * tree.def (PLACEHOLDER_EXPR): Fix comment.
38077 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38079 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
38080 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
38081 (loc_list_from_tree): Don't handle unsigned division. Handle
38082 signed modulo using DW_OP_{over,over,div,mul,minus}.
38083 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
38084 modulo instead of signed.
38086 2010-01-20 DJ Delorie <dj@redhat.com>
38088 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
38090 (h8300_emit_stack_adjustment): Propogate it.
38092 (h8300_expand_prologue): Likewise.
38093 (h8300_expand_epilogue): Likewise.
38095 2010-01-19 Michael Matz <matz@suse.de>
38097 PR tree-optimization/41783
38098 * tree-data-ref.c (toplevel): Include flags.h.
38099 (dump_data_dependence_relation): Also dump the inputs if the
38100 result will be unknown.
38101 (split_constant_offset_1): Look through some conversions.
38102 * tree-predcom.c (determine_roots_comp): Restart a new chain if
38103 the offset from last element is too large.
38104 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
38105 (reassociate_to_the_same_stmt): Handle vector registers.
38106 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
38107 (e.g. conversions).
38108 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
38109 wide_prolog_niters argument, emit widening instructions.
38110 (vect_do_peeling_for_alignment): Adjust caller, use widened
38111 variant of the iteration cound.
38112 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
38114 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38117 * config/arm/neon-testgen.m (emit_automatics): New parameter
38118 features. Adjust for Fixed_return_reg feature.
38119 (test_intrinsic): Call emit_automatics with new feature.
38120 * config/arm/neon.ml: Update copyright years.
38121 (features): New Fixed_return_reg feature.
38122 (ops): Update feature for Vget_low.
38124 2010-01-19 Jakub Jelinek <jakub@redhat.com>
38126 PR tree-optimization/42719
38127 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
38131 * fwprop.c (all_uses_available_at): Return false if def_set dest
38132 is a REG that is used in def_insn.
38134 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
38136 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
38138 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
38139 Add argument names.
38141 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
38143 * target.h (struct gcc_target) <secondary_reload>: Change type
38144 of last argument to secondary_reload_info *.
38146 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
38149 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
38150 memory references with unaligned offsets. Remove CQImode handling.
38151 (unaligned_memory_operand): Return 1 for memory references with
38152 unaligned offsets. Remove CQImode handling.
38154 2010-01-18 Richard Guenther <rguenther@suse.de>
38156 PR middle-end/39954
38157 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
38160 2010-01-18 Richard Guenther <rguenther@suse.de>
38162 PR tree-optimization/42781
38163 * tree-ssa-structalias.c (find_what_var_points_to): Skip
38164 restrict processing only if the original variable was artificial.
38166 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
38168 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
38169 find number of popped argument bytes.
38171 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
38172 Fix the text that describes the return value for invalid insns.
38174 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
38176 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
38177 Clarify what 'cost of the -dependence' is. Fix quoting.
38179 * toplev.c (default_get_pch_validity): Rename argument to "sz".
38180 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
38182 2010-01-17 Jakub Jelinek <jakub@redhat.com>
38184 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
38185 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
38187 2010-01-17 Richard Guenther <rguenther@suse.de>
38189 PR middle-end/42248
38190 * function.c (split_complex_args): Take a VEC to modify.
38191 (assign_parms_augmented_arg_list): Build a VEC instead of
38192 a chain of PARM_DECLs.
38193 (assign_parms_unsplit_complex): Take a VEC of arguments.
38194 Do not fixup unmodified parms.
38195 (assign_parms): Deal with the VEC.
38196 (gimplify_parameters): Likewise.
38198 2010-01-17 Richard Guenther <rguenther@suse.de>
38200 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
38201 node existence check.
38202 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
38203 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
38204 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
38205 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
38206 (gimple_execute_on_growing_pred): Likewise.
38208 2010-01-17 Richard Guenther <rguenther@suse.de>
38210 PR tree-optimization/42773
38211 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
38212 (compute_antic_aux): Likewise.
38213 (compute_partial_antic_aux): Likewise.
38215 2010-01-17 Jie Zhang <jie.zhang@analog.com>
38218 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
38221 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
38223 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
38226 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
38227 Fix markup for strict argument.
38229 (TARGET_SCHED_REORDER2): Fix argument types.
38231 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
38232 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
38234 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
38235 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
38237 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
38240 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
38241 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
38242 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
38243 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
38244 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
38246 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
38248 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
38250 (TARGET_ASM_RELOC_RW_MASK): Add return type.
38251 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
38253 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
38255 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
38258 (TARGET_ASM_NAMED_SECTION): Fix argument list.
38260 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
38261 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
38263 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
38265 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
38267 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
38268 referring to it. Fix language.
38270 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
38272 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
38274 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
38276 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
38278 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
38279 '@var{stream}. Remove stray 'and'.
38281 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
38283 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
38285 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
38287 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
38288 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
38290 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
38291 Fix description of return value.
38292 Rename argument "sz" to "len."
38294 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
38295 Clarify meaning of 'true' return value.
38297 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
38299 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
38300 rep_mode versus mode_rep.
38302 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
38304 (TARGET_BUILTIN_DECL): Fix name.
38306 (TARGET_COMMUTATIVE_P): Fix type of first argument.
38308 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
38310 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
38312 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
38314 (TARGET_RELAXED_ORDERING): Use @deftypevr.
38316 (TARGET_GET_DRAP_RTX): Note that this is a hook.
38319 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
38320 Rename argument tm_fn to md_fn.
38322 (TARGET_OPTION_PRINT): Fix argument list.
38324 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
38327 * config/i386/i386.c (ix86_fixup_binary_operands):
38328 Revert FMA4 fixup of operands.
38330 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38333 * Makefile.in (write_entries_to_file, install-plugin):
38334 Use \012 instead of \n with tr.
38336 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
38338 * configure.ac (HAVE_AS_REF): New C macro.
38339 * configure: Regenerate.
38340 * config.in: Likewise.
38341 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
38343 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
38346 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
38348 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
38350 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
38352 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
38354 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
38356 (TARGET_IN_SMALL_DATA_P): Fix argument type.
38358 (TARGET_BINDS_LOCAL_P): Fix argument type.
38360 (TARGET_ASM_FILE_END): Use prototype.
38362 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
38364 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
38366 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
38368 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
38370 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
38371 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
38373 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
38374 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
38376 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
38377 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
38378 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
38379 (TARGET_ADDR_SPACE_CONVERT): Likewise.
38381 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
38383 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
38385 (TARGET_INIT_BUILTINS): Use prototype.
38387 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
38388 Put 'const char *' in braces. Fix parameter types.
38389 (TARGET_INVALID_CONVERSION): Fix parameter types.
38390 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
38391 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
38393 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
38396 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
38398 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
38400 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
38402 * doc/tm.texi (TARGET_HELP): Fix return type.
38404 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
38405 in braces. Fix argument types.
38407 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
38409 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
38411 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
38413 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
38414 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
38416 (TARGET_MANGLE_TYPE): Fix argument types.
38418 (TARGET_IRA_COVER_CLASSES): Use prototype.
38420 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
38422 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
38424 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
38426 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
38428 (TARGET_CALLEE_COPIES): Fix argument types.
38430 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
38432 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
38434 (TARGET_FUNCTION_VALUE): Fix argument types.
38436 (TARGET_RETURN_IN_MSB): Fix argument type.
38438 (TARGET_RETURN_IN_MEMORY): Fix argument types.
38440 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
38442 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
38444 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
38445 agree with return type.
38447 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
38449 2010-01-15 Jing Yu <jingyu@google.com>
38451 PR rtl-optimization/42691
38452 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
38453 a pseudo to a constant and are merged, and adjust comments.
38455 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
38457 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
38459 2010-01-15 Richard Guenther <rguenther@suse.de>
38461 PR middle-end/42739
38462 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
38463 labels of computed or non-local gotos to the destination.
38464 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
38465 landing pad label is the first label.
38467 2010-01-15 Richard Guenther <rguenther@suse.de>
38469 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
38471 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
38474 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
38475 to allow generation of the xssqrtdp instruction on power7.
38476 (sqrtdf2_fpr): Ditto.
38478 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38480 PR middle-end/42674
38481 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
38482 functions with noreturn attribute.
38485 * varasm.c (declare_weak): Add weak attribute to decl if it
38486 doesn't have one already.
38487 (assemble_external): Only add decls to weak_decls if they also
38488 have weak attribute.
38490 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
38492 * var-tracking.c (var_reg_delete): Don't delete the association
38493 between REGs and values or one-part variables if the register
38496 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38499 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
38500 because its first operand is a non-localized variable.
38502 2010-01-14 Martin Jambor <mjambor@suse.cz>
38504 PR tree-optimization/42706
38505 * tree-sra.c (encountered_recursive_call): New variable.
38506 (encountered_unchangable_recursive_call): Likewise.
38507 (sra_initialize): Initialize both new variables.
38508 (callsite_has_enough_arguments_p): New function.
38509 (scan_function): Call decl and flags check only for IPA-SRA, check
38510 whether there is a recursive call and whether it has enough arguments.
38511 (all_callers_have_enough_arguments_p): New function.
38512 (convert_callers): Look for recursive calls only when
38513 encountered_recursive_call is set.
38514 (ipa_early_sra): Bail out either if
38515 !all_callers_have_enough_arguments_p or
38516 encountered_unchangable_recursive_call.
38518 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38520 * sel-sched.c: Add 2010 to copyright years.
38521 * sel-sched-ir.c: Likewise.
38522 * sel-sched-ir.h: Likewise.
38524 2010-01-14 Martin Jambor <mjambor@suse.cz>
38526 PR tree-optimization/42714
38527 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
38528 constructors specially.
38530 2010-01-14 Andi Kleen <ak@linux.intel.com>
38532 * config/i386/drivers-i386.c (detect_caches_intel):
38533 Add l2sizekb parameter and fill in.
38534 (host_detect_local_cpu): Add l2sizekb, fill in.
38535 Add Atom small cache heuristic.
38537 2010-01-14 Andi Kleen <ak@linux.intel.com>
38539 * config/i386/drivers-i386.c (detect_caches_cpuid4):
38540 Add level3 parameter and fill in.
38541 (detect_caches_intel): Handle level3 cache.
38543 2010-01-14 Andi Kleen <ak@linux.intel.com>
38545 * config/i386/drivers-i386.c (host_detect_local_cpu):
38546 Fix core duo detection.
38548 2010-01-14 Andi Kleen <ak@linux.intel.com>
38550 * config/i386/drivers-i386.c (host_detect_local_cpu):
38551 Fix Atom detection.
38553 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38555 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
38556 (rs6000_variable_issue_1): this. Use...
38557 (rs6000_variable_issue): here. Reimplement. Print debug info.
38559 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38561 * sel-sched-ir.c (sel_restore_other_notes): Rename to
38562 sel_restore_notes. Update all callers. Call reemit_notes
38565 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38567 PR rtl-optimization/42246
38568 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
38571 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38573 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
38574 all successors is the same as number of successors in current region.
38576 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38578 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
38579 to rename is not separable. Otherwise check that its LHS is not NULL.
38581 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38583 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
38585 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38587 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
38588 available registers when failed to discover LHS register class.
38589 Fix indentation. Update comment.
38591 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38592 Alexander Monakov <amonakov@ispras.ru>
38594 PR rtl-optimization/42389
38595 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
38597 (advance_state_on_fence): Likewise.
38598 (sel_target_adjust_priority): Print debug output only when
38599 sched_verbose >= 4, not 2.
38600 (get_expr_cost): Do not issue all unique insns on the next cycle.
38601 (fill_insns): Initialize can_issue_more from the value saved
38603 * sel-sched-ir.c (flist_add): New parameter issue_more.
38604 Init FENCE_ISSUE_MORE with it.
38605 (merge_fences): Likewise.
38606 (init_fences): Update call to flist_add.
38607 (add_to_fences, add_clean_fence_to_fences)
38608 (add_dirty_fence_to_fences): Likewise.
38609 (move_fence_to_fences): Update call to merge_fences.
38610 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
38612 * sel-sched-ir.h (struct _fence): New field issue_more.
38613 (FENCE_ISSUE_MORE): New accessor macro.
38615 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38617 PR rtl-optimization/42388
38618 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
38619 that have no predecessors nor successors. Do not call move_bb_info
38620 for empty blocks outside of current region.
38622 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38624 PR rtl-optimization/42294
38625 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
38626 * sel-sched.c (move_exprs_to_boundary): Transitively add all
38627 originators' originators.
38629 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38631 PR rtl-optimization/39453
38632 PR rtl-optimization/42246
38633 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
38635 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
38637 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38638 Alexander Monakov <amonakov@ispras.ru>
38640 PR middle-end/42245
38641 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
38642 (maybe_tidy_empty_bb): ... here. Make static. Add new
38643 argument. Update all callers.
38644 (tidy_control_flow): ... and here. Recompute topological order
38645 of basic blocks in region if necessary.
38646 (sel_redirect_edge_and_branch): Change return type. Return true
38647 if topological order might have been invalidated.
38648 (purge_empty_blocks): Export and move from...
38649 * sel-sched.c (purge_empty_blocks): ... here.
38650 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
38651 (maybe_tidy_empty_bb): Delete prototype.
38652 (purge_empty_blocks): Declare.
38654 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38656 PR rtl-optimization/42249
38657 * sel-sched.c (try_replace_dest_reg): When chosen register
38658 and original register is the same, do not bail out early, but
38659 still check all original insns for validity of replacing destination
38660 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
38663 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38666 Port from no-undefined-overflow branch:
38667 2009-03-09 Richard Guenther <rguenther@suse.de>
38669 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
38671 2010-01-14 Richard Guenther <rguenther@suse.de>
38674 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
38676 2010-01-14 Ira Rosen <irar@il.ibm.com>
38678 PR tree-optimization/42709
38679 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
38680 as scalar type in creation of constant vector operand.
38682 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38685 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
38686 (check-parallel-%): Match `testsuite' directory component only
38689 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
38691 PR translation/39521
38692 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
38695 2010-01-13 Richard Guenther <rguenther@suse.de>
38697 PR tree-optimization/42730
38698 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
38701 2010-01-13 Steve Ellcey <sje@cup.hp.com>
38704 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
38705 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
38708 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
38710 * config/bfin/libgcc-bfin.ver: Regenerate based on current
38711 libgcc-std.ver. Add entries for ___smulsi3_highpart and
38712 ___umulsi3_highpart.
38714 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
38715 rather than schedule_insns if the pass is enabled.
38717 2010-01-13 Martin Jambor <mjambor@suse.cz>
38719 PR tree-optimization/42704
38720 * tree-sra.c (sra_modify_assign): Do not delete assignments to
38723 2010-01-13 Martin Jambor <mjambor@suse.cz>
38725 PR tree-optimization/42703
38726 * tree-sra.c (analyze_access_subtree): Check that we can build a
38727 reference to the original data within the aggregate.
38729 2010-01-13 Richard Guenther <rguenther@suse.de>
38731 PR tree-optimization/42705
38732 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
38734 2010-01-13 Richard Guenther <rguenther@suse.de>
38736 PR middle-end/42716
38737 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
38739 2010-01-13 Jakub Jelinek <jakub@redhat.com>
38742 * var-tracking.c (values_to_unmark): New variable.
38743 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
38744 values_to_unmark vector. Moved body to...
38745 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
38746 instead queue it into values_to_unmark vector.
38747 (vt_find_locations): Free values_to_unmark vector.
38749 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
38751 * config/s390/s390.c (override_options): Set
38752 default of max-pending-list-length to 256
38754 2010-01-13 Richard Guenther <rguenther@suse.de>
38757 * tree-pass.h (PROP_gimple_lcx): New.
38758 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38759 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38760 before the final cleanup_eh.
38761 (dump_properties): Dump PROP_gimple_lcx.
38762 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38763 (tree_lower_complex_O0): Remove.
38764 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38765 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
38766 tree_lower_complex, schedule TODO_update_ssa.
38767 * lto-streamer-out.c (output_function): Stream the functions
38769 * lto-streamer-in.c (input_function): Likewise.
38770 (lto_read_body): Do not override them here.
38772 2010-01-12 Joseph Myers <joseph@codesourcery.com>
38775 * c-typeck.c (build_c_cast): Fold value cast to union type before
38776 wrapping it in a CONSTRUCTOR.
38778 2010-01-12 Jakub Jelinek <jakub@redhat.com>
38780 PR rtl-optimization/42699
38781 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38784 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38786 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38787 SUBTARGET_WARN_UNUSED_SPEC): Move ...
38788 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38789 SUBTARGET_WARN_UNUSED_SPEC): ... here
38790 * config/mips/iris5.h (LIBGCC_SPEC): Define.
38792 2010-01-12 Julian Brown <julian@codesourcery.com>
38794 * config/arm/neon-schedgen.ml (Utils): Don't try to
38795 open missing module.
38796 (find_with_result): New.
38798 2010-01-12 Jakub Jelinek <jakub@redhat.com>
38801 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38802 sharing when canonicalizing ({lt,ge}u (plus a b) b).
38804 PR tree-optimization/42645
38805 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
38806 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38807 decl_map, set processing_debug_stmt to -1 and return name without
38810 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
38812 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38813 binutils version, and reword target configuration description.
38815 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
38817 * config/avr/avr.h (LINKER_NAME): Remove.
38819 2010-01-11 Janis Johnson <janis187@us.ibm.com>
38822 * config/rs6000/rs6000.c (rs6000_override_options): On targets
38823 that support VSX, warn for -mno-altivec if vsx is not disabled,
38826 2010-01-11 Joseph Myers <joseph@codesourcery.com>
38827 Shujing Zhao <pearly.zhao@oracle.com>
38829 PR translation/42469
38830 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38831 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38832 character between option name and help text.
38833 * c.opt (imultilib): Likewise.
38835 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
38837 * lto-streamer-out.c (output_unreferenced_globals): Output static
38840 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
38842 PR rtl-optimization/42621
38843 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
38844 optimizing for size.
38845 (duplicate_computed_gotos): Remove now-redundant check.
38847 2010-01-10 Steve Ellcey <sje@cup.hp.com>
38850 * configure.ac: Save and restore LDFLAGS and LIBS
38851 * configure: Regenerate.
38853 2010-01-10 Richard Guenther <rguenther@suse.de>
38855 PR middle-end/42667
38856 * builtins.c (fold_builtin_strlen): Add type argument and
38857 convert the resulting length to it.
38858 (fold_builtin_1): Adjust.
38860 2010-01-09 Jakub Jelinek <jakub@redhat.com>
38862 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
38863 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
38865 (num_insns_constant_wide): Adjust for that change.
38867 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38870 * web.c (union_defs): Add used argument, to combine uses of
38871 uninitialized regs.
38872 (entry_register): Adjust type and tests of used argument.
38873 (web_main): Widen used for new use. Pass it to union_defs.
38874 * df.h (union_defs): Adjust prototype.
38876 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38879 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
38880 uses in new incoming argument. Free body.
38881 (reset_debug_uses_in_loop): New.
38882 (analyze_insn_to_expand_var): Call the latter if the former found
38883 anything. Fix whitespace. Reject invalid dest overlaps before
38884 going through all insns in the loop.
38886 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38889 * haifa-sched.c (dying_use_p): Debug insns don't count.
38891 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38893 PR middle-end/42363
38894 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
38895 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
38896 (verify_gimple_call): Reject LHS in noreturn calls.
38898 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38902 * tree-vect-loop-manip.c (adjust_info): New type.
38903 (adjust_vec): New pointer to vector.
38904 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
38905 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
38906 (slpeel_update_phis_for_duplicate_loop): Use them.
38907 (slpeel_update_phi_nodes_for_guard1): Likewise.
38908 (slpeel_update_phi_nodes_for_guard2): Likewise.
38909 (slpeel_tree_peel_loop_to_edge): Likewise.
38910 (vect_update_ivs_after_vectorizer): Likewise.
38912 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38914 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
38915 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
38917 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38919 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
38920 bogus uninitialized warning.
38922 2010-01-09 Richard Guenther <rguenther@suse.de>
38924 PR middle-end/42512
38925 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
38926 the evolution is compatible with the initial condition.
38928 2010-01-09 Jakub Jelinek <jakub@redhat.com>
38930 * gcc.c (process_command): Update copyright notice dates.
38931 * gcov.c (print_version): Likewise.
38932 * gcov-dump.c (print_version): Likewise.
38933 * mips-tfile.c (main): Likewise.
38934 * mips-tdump.c (main): Likewise.
38936 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
38939 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
38941 (rotlhi3_8): Delete.
38943 (rotlsi3_8): Delete.
38944 (rotlsi3_16): Delete.
38945 (rotlsi3_24): Delete.
38946 (rotl<mode>3): New.
38947 (*rotw<mode>3): New.
38948 (*rotb<mode>3): New.
38949 * config/avr/avr.c (avr_rotate_bytes): New function.
38950 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
38952 2010-01-08 Steve Ellcey <sje@cup.hp.com>
38955 * configure.ac: Modify -rdynamic check.
38956 * configure: Regenerate.
38958 2010-01-08 DJ Delorie <dj@redhat.com>
38960 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
38961 register popping order.
38963 2010-01-08 Richard Guenther <rguenther@suse.de>
38966 * c.opt (fsigned-char): Also let LTO handle this option.
38967 (funsigned-char): Likewise.
38969 2010-01-07 Richard Guenther <rguenther@suse.de>
38971 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
38972 (gimple_op): Likewise.
38973 (gimple_op_ptr): Likewise.
38974 (gimple_assign_set_lhs): Remove gcc_assert.
38975 (gimple_assign_set_rhs1): Likewise.
38976 (gimple_assign_set_rhs2): Likewise.
38977 (gimple_call_set_lhs): Likewise.
38978 (gimple_call_set_fn): Likewise.
38979 (gimple_call_set_fndecl): Likewise.
38980 (gimple_call_fndecl): Likewise.
38981 (gimple_call_return_type): Likewise.
38982 (gimple_call_set_chain): Likewise.
38983 (gimple_call_num_args): Likewise.
38984 (gimple_call_set_arg): Likewise.
38985 (gimple_cond_set_code): Likewise.
38986 (gimple_cond_set_lhs): Likewise.
38987 (gimple_cond_set_rhs): Likewise.
38988 (gimple_cond_set_true_label): Likewise.
38989 (gimple_cond_set_false_label): Likewise.
38990 (gimple_label_set_label): Likewise.
38991 (gimple_goto_set_dest): Likewise.
38992 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
38993 (gimple_debug_bind_get_value): Likewise.
38994 (gimple_debug_bind_get_value_ptr): Likewise.
38995 (gimple_debug_bind_set_var): Likewise.
38996 (gimple_debug_bind_set_value): Likewise.
38997 (gimple_debug_bind_reset_value): Likewise.
38998 (gimple_debug_bind_has_value_p): Likewise.
38999 (gimple_return_retval_ptr): Remove gcc_assert.
39000 (gimple_return_retval): Likewise.
39001 (gimple_return_set_retval): Likewise.
39002 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
39003 (safe_referenced_var_iterator): Remove.
39004 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
39005 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
39006 (fill_referenced_var_vec): Remove.
39007 (first_readonly_imm_use): Remove redundant gcc_assert.
39008 (phi_arg_index_from_use): Combine gcc_asserts.
39009 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
39010 (first_imm_use_stmt): Remove redundant gcc_assert.
39011 * tree-cfg.c (verify_gimple_call): Verify function and chain
39012 operands. Verify arguments.
39013 (verify_types_in_gimple_stmt): Verify condition code and labels.
39015 2010-01-07 Richard Guenther <rguenther@suse.de>
39017 PR tree-optimization/42641
39018 * sese.c (rename_map_elt_info): Use the SSA name version, do
39021 2010-01-07 Jakub Jelinek <jakub@redhat.com>
39023 PR tree-optimization/42625
39024 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
39025 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
39027 2010-01-07 Duncan Sands <baldrick@free.fr>
39029 * Makefile.in (PLUGIN_HEADERS): Add version.h.
39031 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
39034 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
39035 note itself is not function_invariant_p.
39037 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
39039 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
39040 Do not add the DF_NOTE problem.
39041 * store-motion.c (execute_rtl_store_motion): Likewise.
39043 2010-01-07 Martin Jambor <mjambor@suse.cz>
39045 PR tree-optimization/42157
39046 * tree-sra.c (compare_access_positions): Stabilize sort if both
39047 accesses have integer types, return zero immediately if they are the
39050 2010-01-06 Richard Henderson <rth@redhat.com>
39052 PR middle-end/41883
39053 * haifa-sched.c (add_to_note_list): Merge into ...
39054 (concat_note_lists): ... here, and ...
39055 (unlink_other_notes, rm_other_notes): Merge into...
39056 (remove_notes): ... here. Create REG_SAVE_NOTEs for
39057 NOTE_INSN_EPILOGUE_BEG.
39059 2010-01-06 Richard Guenther <rguenther@suse.de>
39061 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
39062 not inline regular functions into always-inline functions.
39064 2010-01-06 Nick Clifton <nickc@redhat.com>
39066 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
39067 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
39069 (OVERRIDE_OPTIONS): Delete.
39070 (OPTIMIZATION_OPTIONS): Define.
39071 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
39072 * config/rx/rx.c (rx_handle_option): Issue an error message if
39073 -mcpu=rx200 and -fpu are used together.
39074 (rx_set_optimization_options): New function. Issue an error
39075 message if an optimization attribute attempts to reset the FPU/
39076 math optimization pairing.
39077 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
39078 * config/rx/rx.opt: Set the default to 32-bit doubles.
39079 * config/rx/t-rx: Add multilibs for -nofpu option.
39080 * doc/invoke.texi: Update documentation of RX options.
39082 2010-01-06 Richard Guenther <rguenther@suse.de>
39084 * tree-ssa-pre.c (name_to_id): New global.
39085 (alloc_expression_id): Simplify SSA name handling.
39086 (lookup_expression_id): Likewise.
39087 (init_pre): Zero name_to_id.
39088 (fini_pre): Free it.
39090 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
39092 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
39094 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
39097 * config/i386/sse.md (smaxv2di3): New.
39098 (umaxv2di3): Likewise.
39099 (sminv2di3): Likewise.
39100 (uminv2di3): Likewise.
39102 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
39105 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
39106 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
39107 (legitimize_tls_address): Likewise.
39108 (sparc_tls_referenced_p): Likewise.
39109 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
39110 and adjust calls to legitimize_pic_address.
39111 (legitimate_constant_p) Use sparc_tls_referenced_p.
39112 (legitimate_pic_operand_p): Likewise.
39113 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
39114 (sparc_tls_symbol_ref_1): Delete.
39115 (sparc_tls_referenced_p): Make static, recognize specific patterns.
39116 (legitimize_tls_address): Make static, handle CONST patterns.
39117 (legitimize_pic_address): Make static, remove unused parameter and
39118 adjust recursive calls.
39119 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
39120 and adjust call to legitimize_pic_address.
39121 (sparc_output_mi_thunk): Likewise.
39123 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
39124 H.J. Lu <hongjiu.lu@intel.com>
39127 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
39128 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
39129 operands to make them signed.
39132 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39135 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39136 GTU to GT for V4SI and V2DI.
39138 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39139 (umin<mode>3): Removed.
39141 (uminv4si3): Likewise.
39143 2010-01-05 Martin Jambor <mjambor@suse.cz>
39145 PR tree-optimization/42462
39146 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
39147 current_function_decl to helper functions and macros.
39149 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39152 * flags.h: Don't include real.h.
39153 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
39154 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
39155 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
39156 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
39157 * dominance.c: Update copyright.
39158 * gimple.c (walk_gimple_op): Remove inline.
39159 * tree-ssa-reassoc.c: Include real.h.
39160 * Makefile.in (FLAGS_H): Remove $(REAL_H).
39161 (tree-ssa-reassoc.o): Depend on $(REAL_H).
39163 2010-01-05 Nick Clifton <nickc@redhat.com>
39165 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
39166 register to push into the stack frame when the accumulator has to
39167 be saved during interrupts.
39169 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
39171 * doc/invoke.texi: Remove the documentation about option
39172 -Wunreachable-code.
39173 * common.opt (Wunreachable-code): Preserved for backward
39175 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
39176 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
39177 the backward compatibility flag section.
39179 2010-01-05 Richard Guenther <rguenther@suse.de>
39181 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
39183 2010-01-05 Jakub Jelinek <jakub@redhat.com>
39186 * cfgexpand.c (expand_one_var): Diagnose too large variables.
39188 PR tree-optimization/42508
39189 * tree-sra.c (convert_callers): Check for recursive call
39190 by comparing cgraph nodes instead of decls.
39191 (modify_function): Call ipa_modify_formal_parameters also
39192 on all same_body aliases.
39194 * cgraphunit.c (cgraph_materialize_all_clones): Compare
39195 cgraph nodes when checking for same_body aliases.
39197 2010-01-05 Richard Guenther <rguenther@suse.de>
39199 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
39200 allocation and lookup.
39201 (get_or_alloc_expr_for_constant): Likewise.
39202 (phi_translate): Sink allocation.
39204 2010-01-04 Richard Guenther <rguenther@suse.de>
39206 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
39207 a new entry only if needed.
39208 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
39209 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
39211 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
39213 (phi_translate): Handle CONSTANTs early.
39215 2010-01-04 Martin Jambor <mjambor@suse.cz>
39217 PR tree-optimization/42398
39218 * tree-sra.c (struct access): Removed flag grp_different_types.
39219 (dump_access): Do not dump the removed flag.
39220 (sort_and_splice_var_accesses): Do not set the removed flag.
39221 (sra_modify_expr): Check for type compatibility directly.
39223 2010-01-04 Martin Jambor <mjambor@suse.cz>
39225 PR tree-optimization/42366
39226 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
39227 edges with variable number of parameters.
39228 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
39229 flag instead of asserting it.
39230 (ipa_read_node_info): Read uses_analysis_done flag.
39232 2010-01-04 Richard Guenther <rguenther@suse.de>
39234 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
39235 iterative_hash_* as intended.
39236 (vn_reference_compute_hash): Likewise. Simplify hashing
39238 (vn_reference_lookup_2): Likewise.
39239 (vn_nary_op_compute_hash): Likewise.
39240 (vn_phi_compute_hash): Likewise.
39241 (expressions_equal_p): Remove strange code.
39242 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
39243 (pre_expr_hash): Likewise. Simplify hashing SSA names.
39244 (bitmap_insert_into_set_1): Take value-id as parameter.
39245 (add_to_value): Pass it.
39246 (bitmap_insert_into_set): Likewise.
39247 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
39249 2010-01-04 Jakub Jelinek <jakub@redhat.com>
39252 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
39253 (do_self_spec): For switches with SWITCH_IGNORE set set also
39254 SWITCH_IGNORE_PERMANENTLY.
39255 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
39258 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
39260 * lto-streamer-out.c (output_unreferenced_globals): Output the full
39261 tree of an unreferenced global var.
39263 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39266 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39267 GTU to GT for V4SI and V2DI.
39269 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39270 (umin<mode>3): Removed.
39272 (uminv4si3): Likewise.
39274 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39277 * collect2.c (main): Turn on trace in collect2 if -v is passed
39280 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
39282 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
39283 description of expression operand.
39285 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
39287 * configure.ac: Add install-html to target_list for Make-hooks.
39288 * configure: Regenerate.
39289 * fortran/Make-lang.in (F95_HTMLFILES): New.
39290 (fortran.html): Use it.
39291 (fortran.install-html): New.
39292 * Makefile.in (install-html): Add lang.install-html.
39293 * java/Make-lang.in (JAVA_HTMLFILES): New.
39294 (java.html): Use it.
39295 (java.install-html): New.
39296 * objc/Make-lang.in (objc.install-html): New.
39297 * objcp/Make-lang.in (obj-c++.install-html): New.
39298 * cp/Make-lang.in (c++.install-html): New.
39299 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
39300 * lto/Make-lang.in (lto.install-html): New.
39302 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
39305 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
39307 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
39309 PR rtl-optimization/41862
39310 * store-motion.c (store_killed_in_insn, compute_store_table,
39311 remove_reachable_equiv_notes, replace_store_insn,
39312 build_store_vectors): Ignore all DEBUG_INSNs.
39314 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
39317 * common.opt: Add dumpdir.
39319 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
39321 (option_map): Add --dumpdir.
39323 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
39325 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
39327 * opts.c (decode_options): Try dump_dir_name first if
39328 dump_base_name isn't an absolute path.
39329 (common_handle_option): Handle OPT_dumpdir.
39331 * toplev.c (dump_dir_name): New.
39332 (print_switch_values): Also ignore -dumpdir.
39334 * toplev.h (dump_dir_name): New.
39336 2010-01-03 Richard Guenther <rguenther@suse.de>
39338 PR tree-optimization/42589
39339 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
39340 double-word expansion of bswap32.
39342 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
39344 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
39345 with BLOCK_FOR_INSN.
39346 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
39347 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
39348 noce_process_if_block): Likewise.
39349 * gcse.c (compute_local_properties, insert_expr_in_table,
39350 insert_set_in_table, canon_list_insert, find_avail_set,
39351 pre_insert_copy_insn): Likewise.
39353 * basic-block.h (BLOCK_NUM): Move from here...
39354 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
39356 2010-01-03 Richard Guenther <rguenther@suse.de>
39358 PR tree-optimization/42438
39359 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
39360 contains_may_not_return_call flag.
39361 (BB_MAY_NOTRETURN): New.
39362 (valid_in_sets): Trapping nary operations are not valid
39363 in blocks that may not return.
39364 (insert_into_preds_of_block): Remove check for trapping expressions.
39365 (compute_avail): Compute also BB_MAY_NOTRETURN.
39367 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
39369 * doc/invoke.texi: Add 2010 to copyright years.
39371 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
39373 * config/sparc/sparc.c: Fix formatting nits.
39375 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39376 Alexander Monakov <amonakov@ispras.ru>
39378 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
39380 2010-01-02 Richard Guenther <rguenther@suse.de>
39382 PR middle-end/42577
39383 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
39384 (simplify_switch_using_ranges): Mark to be removed edges
39387 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39389 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
39391 * collect2.c (scan_libraries): Add missing argument in call to
39394 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
39397 * config/alpha/predicates.md (aligned_memory_operand): Return false
39399 (unaligned_memory_operand): Return true for CQImode.
39400 * config/alpha/alpha.c (get_aligned_mem): Assert that location
39401 doesn not cross aligned SImode word boundary.
39403 2010-01-02 Anatoly Sokolov <aesok@post.ru>
39405 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
39407 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
39408 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
39410 2010-01-02 Richard Guenther <rguenther@suse.de>
39413 * toplev.c (compile_file): Emit LTO marker properly. Change
39414 it to __gnu_lto_v1.
39415 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
39417 2010-01-01 Richard Guenther <rguenther@suse.de>
39420 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
39422 2010-01-01 Richard Guenther <rguenther@suse.de>
39425 * c-decl.c (grokdeclarator): For zero-size arrays force
39426 structural equality checks as layout_type does.
39428 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
39430 * builtins.c: Update copyright to 2010.
39432 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
39435 * lto-streamer-out.c (produce_asm): Revert the last change.
39436 (copy_function): Likewise.
39438 * lto-streamer.c (lto_get_section_name): Skip any leading
39441 2010-01-01 Richard Guenther <rguenther@suse.de>
39443 PR middle-end/42559
39444 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
39448 Copyright (C) 2010 Free Software Foundation, Inc.
39450 Copying and distribution of this file, with or without modification,
39451 are permitted in any medium without royalty provided the copyright
39452 notice and this notice are preserved.