1 2010-12-09 Joseph Myers <joseph@codesourcery.com>
3 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
4 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
7 2010-12-09 Joseph Myers <joseph@codesourcery.com>
9 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
10 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
11 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
12 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
13 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
15 2010-12-09 Joseph Myers <joseph@codesourcery.com>
17 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
18 WCHAR_TYPE_SIZE): Define.
19 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
21 2010-12-09 Joseph Myers <joseph@codesourcery.com>
23 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
24 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
25 * config.gcc (fr30-*-elf): Don't use svr4.h.
27 2010-12-09 Joseph Myers <joseph@codesourcery.com>
29 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
30 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
32 2010-12-09 Richard Guenther <rguenther@suse.de>
35 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
38 2010-12-09 Joseph Myers <joseph@codesourcery.com>
40 * config/i386/netware.h (TARGET_POSIX_IO): Define.
41 * config/i386/nto.h (TARGET_POSIX_IO): Define.
42 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
43 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
44 * config/openbsd.h (TARGET_POSIX_IO): Define.
45 * config/rtems.h (TARGET_POSIX_IO): Define.
46 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
47 * config/sol2.h (TARGET_POSIX_IO): Define.
48 * config/svr4.h (TARGET_POSIX_IO): Don't define.
49 * config/vxworksae.h (TARGET_POSIX_IO): Define.
51 2010-12-09 Joseph Myers <joseph@codesourcery.com>
53 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
54 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
56 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
58 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
60 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
62 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
64 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
66 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
67 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
69 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
71 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
73 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
75 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
78 2010-12-09 Joseph Myers <joseph@codesourcery.com>
80 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
82 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
84 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
85 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
86 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
88 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
89 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
91 2010-12-09 Martin Jambor <mjambor@suse.cz>
93 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
94 zero is the first phi parameter.
96 2010-12-09 Martin Jambor <mjambor@suse.cz>
98 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
99 * ipa-prop.c (ipa_modify_call_arguments): Use it.
100 * tree-sra.c (splice_param_accesses): Test that all accesses have the
101 same alias reference type.
102 (turn_representatives_into_adjustments): Set alias_ptr_type of the
105 2010-12-09 Martin Jambor <mjambor@suse.cz>
108 * tree-sra.c (splice_param_accesses): Check that there are not
109 multiple ADDRESSABLE types.
111 2010-12-09 Joseph Myers <joseph@codesourcery.com>
113 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
114 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
115 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
116 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
117 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
118 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
119 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
120 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
121 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
122 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
123 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
124 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
125 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
126 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
127 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
128 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
129 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
130 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
131 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
132 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
133 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
134 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
135 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
136 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
137 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
139 2010-12-09 Joseph Myers <joseph@codesourcery.com>
141 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
142 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
143 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
145 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
147 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
148 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
150 2010-12-09 Joseph Myers <joseph@codesourcery.com>
152 * config/alpha/freebsd.h (LINK_SPEC): Don't use
154 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
155 * config/arm/freebsd.h (LINK_SPEC): Likewise.
156 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
157 * config/bfin/linux.h (LINK_SPEC): Likewise.
158 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
159 * config/frv/linux.h (LINK_SPEC): Likewise.
160 * config/i386/freebsd.h (LINK_SPEC): Likewise.
161 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
162 * config/i386/linux.h (LINK_SPEC): Likewise.
163 * config/i386/linux64.h (LINK_SPEC): Likewise.
164 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
165 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
166 * config/ia64/linux.h (LINK_SPEC): Likewise.
167 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
168 * config/m32r/linux.h (LINK_SPEC): Likewise.
169 * config/m68k/linux.h (LINK_SPEC): Likewise.
170 * config/microblaze/linux.h (LINK_SPEC): Likewise.
171 * config/mips/linux.h (LINK_SPEC): Likewise.
172 * config/mips/linux64.h (LINK_SPEC): Likewise.
173 * config/mips/openbsd.h (LINK_SPEC): Likewise.
174 * config/mn10300/linux.h (LINK_SPEC): Likewise.
175 * config/netbsd-elf.h (LINK_SPEC): Likewise.
176 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
177 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
178 LINK_OS_LINUX_SPEC64): Likewise.
179 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
180 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
182 * config/s390/linux.h (LINK_SPEC): Likewise.
183 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
184 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
185 * config/sparc/linux.h (LINK_SPEC): Likewise.
186 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
187 LINK_SPEC): Likewise.
188 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
189 * config/vax/linux.h (LINK_SPEC): Likewise.
190 * config/xtensa/linux.h (LINK_SPEC): Likewise.
192 2010-12-09 Joseph Myers <joseph@codesourcery.com>
194 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
195 * config/frv/frv.h (ASM_SPEC): Likewise.
196 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
197 * config/i386/sol2.h (ASM_SPEC): Likewise.
198 * config/m68k/linux.h (ASM_SPEC): Likewise.
199 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
200 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
201 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
202 * config/sol2.h (ASM_SPEC): Likewise.
203 * config/sparc/linux.h (ASM_SPEC): Likewise.
204 * config/sparc/linux64.h (ASM_SPEC): Likewise.
205 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
206 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
207 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
209 2010-12-09 Richard Guenther <rguenther@suse.de>
211 * reginfo.c (struct subregs_of_mode_node): Remove.
212 (subregs_of_mode): Likewise.
213 (som_hash): Likewise.
215 (invalid_mode_changes): New bitmap.
216 (record_subregs_of_mode): Get subregs_of_mode argument.
217 Fill in invalid_mode_changes bitmap.
218 (find_subregs_of_mode): Get subregs_of_mode argument and pass
220 (init_subregs_of_mode): Adjust.
221 (finish_subregs_of_mode): Likewise.
222 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
224 2010-12-09 Richard Guenther <rguenther@suse.de>
226 * ira.c (ira): Do not call finish_subregs_of_mode.
227 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
229 2010-12-09 Richard Guenther <rguenther@suse.de>
231 * rtl.h (invalid_mode_change_p): Adjust prototype.
232 * reginfo.c (invalid_mode_change_p): Remove from argument.
233 * ira-costs.c (print_allocno_costs): Adjust callers.
234 (find_costs_and_classes): Likewise.
236 2010-12-09 Jakub Jelinek <jakub@redhat.com>
238 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
239 locg and stocg even in comment.
240 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
243 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
245 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
247 * config/rs6000/altivec.md (VI_scalar): New mode attr.
248 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
249 vector mode for operand 0, put operand 1 into UNSPEC.
251 2010-12-09 Yao Qi <yao@codesourcery.com>
253 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
254 PREFERRED_RENAME_CLASS.
256 2010-12-08 Ian Lance Taylor <iant@google.com>
258 * doc/sourcebuild.texi (Front End): Remove reference to
259 snapshot-README and snapshot-index.html.
261 2010-12-08 Ian Lance Taylor <iant@google.com>
263 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
264 to update_web_docs_svn.
265 (Front End): Likewise.
267 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
269 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
270 x86_64-*-darwin* to with_cpu:-core2.
271 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
272 with movd for darwin assembler.
273 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
274 (*vec_concatv2di_rex64_sse): Ditto.
276 2010-12-08 Richard Guenther <rguenther@suse.de>
277 Sebastian Pop <sebastian.pop@amd.com>
279 PR tree-optimization/45230
280 PR tree-optimization/45231
281 PR tree-optimization/45370
282 * sese.c (rename_uses): Returns a bool. Call
283 recompute_tree_invariant_for_addr_expr only on the RHS of a
285 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
286 rename_uses returns true.
287 * tree-ssa-copy.c (replace_exp): Add a comment about calling
288 fold_stmt_inplace after replace_exp.
290 2010-12-08 Mike Stump <mikestump@comcast.net>
293 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
294 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
295 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
296 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
297 * collect2.c (post_ld_pass): Add.
299 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
300 (main): Likewise. Call process_args.
302 2010-12-08 Jakub Jelinek <jakub@redhat.com>
305 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
308 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
311 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
312 into a 16-bit instruction.
314 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
317 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
318 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
319 instruction, but do optimize if y is 0.5 or 1./3. since that
320 changes an expensive call into a cheaper one.
322 2010-12-08 Richard Guenther <rguenther@suse.de>
324 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
325 instead of a division to divide by BITS_PER_UNIT.
327 2010-12-08 Richard Guenther <rguenther@suse.de>
329 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
330 when checking is enabled.
332 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
335 * haifa-sched.c (sched_create_recovery_edges): Update
337 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
338 after deleting an empty block.
339 (tidy_control_flow): Also verify dominators.
340 (sel_remove_bb): Update dominator info after removing a block.
341 (sel_redirect_edge_and_branch_force): Assert that no unreachable
342 blocks will be created. Update dominator info.
343 (sel_redirect_edge_and_branch): Update dominator info when
344 basic blocks do not become unreachable.
345 (sel_remove_loop_preheader): Update dominator info.
347 2010-12-07 Richard Guenther <rguenther@suse.de>
349 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
350 Reset alignment information.
351 (bump_vector_ptr): Likewise.
353 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
357 * config/pa/pa.c (pa_function_section): New function.
358 (TARGET_ASM_FUNCTION_SECTION): Define.
360 2010-12-07 Ian Lance Taylor <iant@google.com>
361 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
364 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
366 * configure: Rebuild.
368 2010-12-07 Paul Koning <ni1d@arrl.net>
370 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
371 values with sign rather than as unsigned.
373 2010-12-07 Paul Koning <ni1d@arrl.net>
375 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
376 (pdp11_function_section): New function.
378 2010-12-07 Joseph Myers <joseph@codesourcery.com>
380 * config/mcore/mcore.c Don't include assert.h.
381 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
382 * config/spu/spu.c: Don't include assert.h.
383 (spu_sms_res_mii): Use gcc_assert.
385 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
387 PR tree-optimization/42327
388 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
389 instead of using integer_minus_one_node.
391 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
394 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
395 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
397 2010-12-07 Richard Guenther <rguenther@suse.de>
399 PR tree-optimization/46832
400 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
401 that the call has a lhs.
403 2010-12-07 Yao Qi <yao@codesourcery.com>
405 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
406 * regrename.c (struct du_head): Add new element length.
407 (sort_du_head, get_element, merge, merge_sort_comparison):
408 New functions of merge sort implementation to du_head list.
409 (regrename_optimize): Sort du_head linked list by length.
410 Iterate registers in a preferred-register-first order.
411 Move some code to ...
412 (check_new_reg_p): here. New function.
413 (create_new_chain): Initialize length.
414 (scan_rtx_reg): Increase length for non-debug insns.
415 * target.def: New hook preferred_rename_class.
416 * targhook.c (default_preferred_rename_class): New.
417 * targhook.h: Declare it.
418 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
419 * doc/tm.texi: Regenerate.
421 2010-12-07 Jakub Jelinek <jakub@redhat.com>
424 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
425 instead of BUILTINS_LOCATION.
426 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
428 (create_parallel_loop): Add LOC argument, use it for OMP clauses
429 and GIMPLE_*OMP* statements.
430 (gen_parallel_loop): Determine locus for the parallel loop, pass it
431 to create_loop_fn and create_parallel_loop.
432 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
433 set_curr_insn_source_location (UNKNOWN_LOCATION).
435 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
436 Richard Guenther <rguenther@suse.de>
439 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
440 (bfin_reorder_loops): Change type of index to intptr_t.
442 2010-12-07 Richard Guenther <rguenther@suse.de>
444 PR tree-optimization/46726
445 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
447 2010-12-07 Richard Guenther <rguenther@suse.de>
449 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
452 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
454 * c-parser.c (c_parser_typeof_specifier): Removed special
455 treatment of objc_volatilized attribute for Objective-C.
457 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
459 * ira.c (update_equiv_regs): Prohibit move insns if
460 pressure-sensitive scheduling was done.
462 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
464 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
465 of c_process_expr_stmt() for the iterating and collection
466 expressions of an Objective-C fast enumeration loop.
468 2010-12-06 Jakub Jelinek <jakub@redhat.com>
471 * dwarf2out.c (modified_type_die): If both is_const_type and
472 is_volatile_type is set, start with DW_TAG_const_type or
473 DW_TAG_volatile_type depending on where we get qualified type
474 in the recursive call.
477 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
478 as a store into that register.
480 PR tree-optimization/46528
482 * profile.c (branch_prob): Make sure last is never set to a debug
486 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
489 PR rtl-optimization/46777
490 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
491 also barrier after tablejump.
493 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
494 Richard Henderson <rth@redhat.com>
497 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
499 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
501 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
502 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
504 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
507 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
508 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
509 (int12_operand, int_2word_operand, uint16_operand): Likewise.
510 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
511 (uint5_operand, uint4_operand): Likewise.
512 * config/frv/frv.h (IN_RANGE_P): Delete.
513 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
514 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
515 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
516 (CONST_OK_FOR_P): Likewise.
517 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
518 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
519 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
520 (*movsicc_internal2_float, casesi): Likewise.
521 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
522 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
523 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
524 (frv_split_cond_move, frv_rtx_costs): Likewise.
527 * config/mmix/mmix.c (mmix_intval): Split shift count.
529 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
531 * config/i386/i386.c (m_COREI7): New.
532 (initial_ix86_tune_features): Turn on
533 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
534 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
536 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
538 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
540 * config/i386/driver-i386.c (host_detect_local_cpu): Support
543 * config/i386/i386.c (override_options): Handle "corei7-avx".
545 * doc/invoke.texi: Document corei7-avx.
547 2010-12-06 Richard Guenther <rguenther@suse.de>
549 PR tree-optimization/46806
550 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
551 coalesce different types.
553 2010-12-06 Richard Guenther <rguenther@suse.de>
555 PR tree-optimization/46785
556 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
557 call statements as operand definition.
559 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
561 * doc/tm.texi.in: Fix typo.
562 * doc/tm.texi: Regenerate.
564 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
566 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
569 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
571 * c-family/c-common.h: Removed the declarations of all the objc_
572 callbacks, and moved them into c-objc.h. Removed
573 objc_ivar_visibility_kind and moved it into c-objc.h.
574 * c-family/c-objc.h: New file.
575 * c-family/c-common.c: Include c-objc.h.
576 * c-family/c-format.c: Same change.
577 * c-family/stub-objc.c: Same change.
578 * c-decl.c: Include c-family/c-objc.h.
579 * c-parser.c: Same change.
580 * c-typeck.c: Same change.
581 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
582 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
583 (c-parser.o): same change.
584 (c-typeck.o): Same change.
585 (c-family/c-format.o): Same change.
586 (c-family/stub-objc.o): Same change.
587 (c-family/c-common.o): Same change.
588 (PLUGIN_HEADERS): Added c-family/c-objc.h.
590 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
592 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
593 --with-dwarf2 option.
595 2010-12-03 Jan Hubicka <jh@suse.cz>
597 * lto-streamer-in.c (input_cfg): Fix pasto.
599 2010-12-03 Jan Hubicka <jh@suse.cz>
601 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
602 and functions with user asm defined names.
603 (varpool_externally_visible_p): Do not localize vars with user
606 2010-12-03 Jan Hubicka <jh@suse.cz>
608 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
609 to prevent mangling with lto frontend.
611 2010-12-03 Jan Hubicka <jh@suse.cz>
613 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
614 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
616 2010-12-03 Jan Hubicka <jh@suse.cz>
618 PR tree-optimization/46760
619 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
620 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
621 * lto-cgraph.c (lto_output_edge): Fix assert.
622 (lto_output_node): Output count_materialization_scale.
623 (output_profile_summary): Output only runs and sum_max.
624 (input_node): Input count_materialization_scale.
625 (input_profile_summary): Read data into file specific gcov summary.
626 (merge_profile_summaries): New function.
627 (input_cgraph): Update call of input_profile_summary;
628 call merge_profile_summaries.
629 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
630 rescale counts at read in.
631 (intput_bb): Likewise.
632 (input_function): Update call of input_bb.
633 (lto_read_body): Update call of input_cfg.
634 * lto-streamer.h: Inlclude gcov-io.h
635 (lto_file_decl_data): Add gcov_ctr_summary.
637 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
639 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
640 (Cond Exec Macros): ... to this.
641 * doc/tm.texi: Regenerate.
643 2010-12-03 Jason Merrill <jason@redhat.com>
646 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
649 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
651 * config/arm/arm.c (arm_legitimate_index_p): Split
652 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
653 slightly larger constants in the latter case.
654 (thumb2_legitimate_index_p): Likewise.
656 2010-12-03 Joseph Myers <joseph@codesourcery.com>
658 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
659 * gcc.c (cc1_options): Add %{Qy:}.
661 2010-12-03 Joseph Myers <joseph@codesourcery.com>
663 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
664 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
665 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
667 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
669 PR rtl-optimization/45354
670 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
671 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
672 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
673 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
675 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
677 * basic-block.h (struct edge_prediction): Remove forward
679 * tree-flow.h (struct edge_prediction): Move from here...
680 * predict.c (struct edge_prediction): ...to here.
681 * cselib.h (struct elt_list): Move from here...
682 * cselib.c (struct elt_list): ...to here.
684 2010-12-02 Ian Lance Taylor <iant@google.com>
686 * gcc.c (default_compilers): Add entry for ".go".
687 * common.opt: Add -static-libgo as a driver option.
688 * doc/install.texi (Configuration): Mention libgo as an option for
689 --enable-shared. Mention go as an option for --enable-languages.
690 * doc/invoke.texi (Overall Options): Mention .go as a file name
691 suffix. Mention go as a -x option.
692 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
694 * doc/sourcebuild.texi (Top Level): Mention libgo.
695 * doc/standards.texi (Standards): Add section on Go language.
696 Move references for other languages into their own section.
697 * doc/contrib.texi (Contributors): Mention that I contributed the
700 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
702 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
703 (const_call_expr_arg_iterator_d): Likewise.
704 (expanded_location): Likewise.
705 * c-tree.h (struct c_arg_tag_d): Likewise.
706 * dwarf2out.c (struct cfa_loc): Likewise.
707 (struct skeleton_chain_struct): Likewise.
708 * except.c (struct ttypes_filter): Likewise.
709 * cselib.h (struct cselib_val_struct): Likewise.
710 (elt_loc_list): Likewise.
711 (elt_list): Likewise.
712 * varasm.c (struct addr_const): Likewise.
713 * tree-flow.h (struct edge_prediction): Likewise.
714 (struct int_tree_map): Likewise.
715 (struct _edge_var_map): Likewise.
717 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
720 * config/i386/i386.c (initial_ix86_tune_features): Turn on
721 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
723 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
725 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
727 2010-12-02 Ian Lance Taylor <iant@google.com>
729 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
730 header files unordered_map, tr1/unordered_map, and ext/hash_map.
731 * configure, config.in: Rebuild.
733 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
736 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
737 (sparc_expand_move): Call it to decide whether to emit the special
738 mov{si,di}_pic_label_ref patterns.
739 (sparc_legitimize_pic_address): Call it to decide whether to emit
740 the regular PIC sequence for labels. Fix long line.
741 (sparc_file_end): Set is_thunk for the PIC helper.
743 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
745 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
746 for a non-shared type.
748 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
751 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
752 with MEM_REFs as POINTER_PLUS_EXPR.
754 2010-12-02 Joseph Myers <joseph@codesourcery.com>
756 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
757 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
760 2010-12-02 Joseph Myers <joseph@codesourcery.com>
762 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
763 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
764 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
765 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
766 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
767 * config/sol2.h (LINK_SPEC): Remove %{b}.
768 * config/svr4.h (LINK_SPEC): Remove %{b}.
770 2010-12-02 Joseph Myers <joseph@codesourcery.com>
772 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
773 * config/i386/linux.h (LINK_SPEC): Cut long comment.
774 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
775 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
776 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
777 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
778 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
779 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
780 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
781 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
784 2010-12-02 Joseph Myers <joseph@codesourcery.com>
786 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
789 2010-12-02 Joseph Myers <joseph@codesourcery.com>
791 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
792 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
793 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
794 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
795 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
796 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
797 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
798 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
799 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
800 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
801 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
802 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
803 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
804 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
805 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
806 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
807 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
808 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
810 2010-12-02 Paul Koning <ni1d@arrl.net>
812 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
813 opcodes if CC_NO_OVERFLOW is set.
814 (notice_update_cc_on_set): Correct setting of CC0 as a side
815 effect; set CC_NO_OVERFLOW for cases where C flag is not
818 2010-12-02 Ian Lance Taylor <iant@google.com>
820 * doc/install.texi (Configuration): Update default for
823 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
826 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
829 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
831 PR tree-optimization/45199
832 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
833 (stores_zero_from_loop): Call
834 mem_write_stride_of_same_size_as_unit_type_p.
835 * tree-data-ref.h (stride_of_unit_type_p): New.
836 * tree-loop-distribution.c (generate_memset_zero): Simplified.
837 Call stride_of_unit_type_p.
838 (build_rdg_partition_for_component): Do not call
839 rdg_flag_similar_memory_accesses when
840 flag_tree_loop_distribute_patterns is set.
842 2010-12-02 Richard Guenther <rguenther@suse.de>
844 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
845 sign-changing conversions for induction detection.
847 2010-12-02 Richard Guenther <rguenther@suse.de>
849 PR tree-optimization/46723
850 * tree-vect-loop.c (get_initial_def_for_induction): Strip
851 conversions from the induction evolution and apply it to
853 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
854 assigns for induction defs.
856 2010-12-02 Richard Guenther <rguenther@suse.de>
858 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
859 the case we need to split the edge and not the block.
861 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
863 DFA model for Core 2 and Core i7 scheduling.
865 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
866 * config/i386/i386.c (ix86_option_override_internal): Update entries
867 for Core 2 and Core i7.
868 (ix86_issue_rate): Set issue rate to 3 [be realistic].
869 * config/i386/i386.md: Include "core2.md".
870 (define_attr cpu): Add "corei7".
872 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
874 Define tuning for Core 2 and Core i7.
876 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
877 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
878 (m_CORE2): Replace with m_CORE2_{32,64}.
879 (m_CORE2I7{,_32,_64}): New macros.
880 (m_GENERIC32, m_GENERIC64): Update.
881 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
882 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
883 set m_CORE2I7_64 iff m_GENERIC64.
884 (processor_target_table): Use generic costs for Core 2 and Core i7.
885 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
886 (ix86_issue_rate): Remove entry for Core 2.
887 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
888 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
889 (TARGET_CORE2): Update.
890 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
891 (PROCESSOR_CORE2): Remove.
893 2010-12-02 Richard Guenther <rguenther@suse.de>
895 * lto-streamer.h (LTO_major_version): Bump to 2.
897 2010-12-02 Richard Guenther <rguenther@suse.de>
900 * gimple.c (canonical_type_hash_cache): New hashtable.
901 (gimple_type_hash): Make a wrapper around ...
902 (gimple_type_hash_1): ... this. Take gtc_mode argument.
903 (gimple_canonical_type_hash): Likewise.
904 (gtc_visit): Take a gtc_mode argument.
905 (gimple_types_compatible_p_1): Likewise. Do not compare struct
906 tag names or field names when computing canonical types.
907 (gimple_types_compatible_p): Adjust.
908 (visit): Take a gtc_mode argument.
909 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
910 names or field names when computing hashes of canonical types.
911 (gimple_register_canonical_type): Use gimple_canonical_type_hash
913 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
914 (free_gimple_type_tables): Free canonical_type_hash_cache.
916 2010-12-02 Richard Guenther <rguenther@suse.de>
917 Ira Rosen <irar@il.ibm.com>
919 PR tree-optimization/46663
920 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
921 FUNCTION_DECL exists and that it's a builtin.
923 2010-12-02 Jie Zhang <jie@codesourcery.com>
926 * varasm.c (compute_visible_aliases): Handle user set
929 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
931 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
932 thinko regarding setting -mno-<xxx> debug switches.
933 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
935 2010-12-01 Joseph Myers <joseph@codesourcery.com>
937 * intl.c: Don't include tm.h.
938 * Makefile.in (intl.o): Don't depend on $(TM_H).
940 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
942 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
944 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
946 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
948 * graphite-sese-to-poly.c (analyze_drs): Removed.
949 (build_scop_drs): Do not call analyze_drs.
950 (analyze_drs_in_stmts): New.
952 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
953 (insert_out_of_ssa_copy_on_edge): Same.
954 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
955 (rewrite_phi_out_of_ssa): Same.
956 (rewrite_cross_bb_scalar_dependence): Same.
957 (split_reduction_stmt): Move data references in the new basic blocks.
958 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
960 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
962 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
964 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
967 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
968 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
969 * graphite-poly.h (new_poly_bb): Update declaration.
970 (gbb_from_bb): Moved here...
972 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
974 (graphite_stmt_p): Removed.
975 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
976 sbitmap reductions. Always build a gimple_bb_p. Do not call
978 (build_scop_bbs_1): Do not pass in sbitmap reductions.
979 (build_scop_bbs): Same.
980 (gbb_from_bb): ... from here.
981 (add_conditions_to_constraints): Moved up.
983 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
984 not contain data references.
985 (new_pbb_from_pbb): New.
986 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
988 (rewrite_close_phi_out_of_ssa): Update call to
989 insert_out_of_ssa_copy_on_edge.
990 (rewrite_reductions_out_of_ssa): Now static.
991 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
993 (split_reduction_stmt): Call split_pbb.
994 (translate_scalar_reduction_to_array): Pass in the scop, do not
995 pass in the sbitmap reductions.
996 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
997 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
998 (rewrite_commutative_reductions_out_of_ssa): Same.
999 (build_poly_scop): Call build_scop_bbs,
1000 rewrite_commutative_reductions_out_of_ssa,
1001 rewrite_reductions_out_of_ssa, and
1002 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1004 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1005 Removed declaration.
1006 (rewrite_reductions_out_of_ssa): Same.
1007 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1008 (build_scop_bbs): Same.
1009 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1010 Do not call build_scop_bbs,
1011 rewrite_commutative_reductions_out_of_ssa,
1012 rewrite_reductions_out_of_ssa, and
1013 rewrite_cross_bb_scalar_deps_out_of_ssa.
1014 * sese.h (struct gimple_bb): Add field pbb.
1017 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1019 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1021 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1022 handle_scalar_deps_crossing_scop_limits.
1023 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1024 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1026 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1028 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1029 when replacing a constant in an ADDR_EXPR.
1031 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1033 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1035 (lst_do_strip_mine): Same.
1036 (scop_do_strip_mine): Same.
1037 * graphite-poly.c (apply_poly_transforms): Update call to
1039 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1041 2010-12-01 Jan Hubicka <jh@suse.cz>
1043 * tree.c (build_common_builtin_nodes): Do not initialize
1044 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1045 * builtins.c (expand_builtin_profile_func): Remove.
1046 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1047 BUILT_IN_PROFILE_FUNC_EXIT.
1048 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1049 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1050 * gimplify.c (gimplify_function_tree): Reorganize code calling
1051 profiling functions.
1053 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1055 * opts.c: Expand comment on tm.h include.
1057 2010-12-01 Yao Qi <yao@codesourcery.com>
1059 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1060 VFP_D0_D7_REGS classes.
1062 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1064 * common.opt (flag_stack_check): New Variable entry.
1065 (fcompare-debug-second): Use Var.
1066 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1067 * opts.c (flag_compare_debug): Remove.
1068 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1069 Set opts->x_flag_stack_check for OPT_fstack_check_.
1070 * toplev.c (flag_stack_check): Remove.
1072 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1074 * common.opt (main_input_filename, main_input_basename,
1075 main_input_baselength): New Variable entries. From toplev.c.
1076 * final.c (output_quoted_string): Move from toplev.c.
1077 * output.h (output_quoted_string): Move from toplev.h.
1078 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1079 access main_input_filename, main_input_baselength and
1080 main_input_basename.
1081 * targhooks.c: Include intl.h and opts.h.
1082 (option_affects_pch_p, default_get_pch_validity): Move from
1084 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1086 * toplev.c (main_input_filename, main_input_basename,
1087 main_input_baselength): Move to common.opt.
1088 (output_quoted_string): Move to final.c.
1089 (warn_deprecated_use): Move to tree.c.
1090 (option_affects_pch_p, default_get_pch_validity,
1091 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1092 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1093 (warn_deprecated_use): Move to tree.h.
1094 (output_quoted_string): Move to output.h.
1095 (main_input_filename, main_input_basename, main_input_baselength):
1097 (default_get_pch_validity, default_pch_valid_p): Move to
1099 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1100 * tree.c (warn_deprecated_use): Move from toplev.c.
1101 * tree.h (warn_deprecated_use): Move from toplev.h.
1102 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1103 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1104 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1105 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1106 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1107 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1108 config/mcore/mcore.c, config/mep/mep.c,
1109 config/microblaze/microblaze.c, config/mips/mips.c,
1110 config/mmix/mmix.c, config/mn10300/mn10300.c,
1111 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1112 config/picochip/picochip.c, config/s390/s390.c,
1113 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1114 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1115 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1116 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1117 varasm.c, xcoffout.c: Don't include toplev.h.
1118 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1119 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1120 varasm.o, xcoffout.o): Update dependencies.
1121 * config/arm/t-arm (arm.o): Update dependencies.
1122 * config/spu/t-spu-elf (spu.o): Update dependencies.
1124 2010-12-01 Richard Guenther <rguenther@suse.de>
1126 PR tree-optimization/46730
1127 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1129 2010-11-30 Ian Lance Taylor <iant@google.com>
1131 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1132 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1133 * config/i386/linux64.h (ASM_SPEC): Likewise.
1134 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1135 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1136 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1137 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1138 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1139 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1141 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1143 * c-decl.c (finish_function): Call objc_finish_function in
1145 * c-typeck.c (convert_for_assignment): Do not call
1146 objc_type_quals_match().
1148 2010-11-30 Richard Guenther <rguenther@suse.de>
1150 PR tree-optimization/46722
1151 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1152 operands as arguments.
1153 (execute_optimize_widening_mul): Also handle power of two as
1156 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1159 * cgraphunit.c (process_function_and_variable_attributes): Fix
1162 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1164 * hwint.c: New. Extracted from toplev.c.
1165 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1167 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1169 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1171 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1172 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1173 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1174 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1175 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1176 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1177 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1178 tree-vrp.c: Don't include toplev.h.
1179 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1180 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1181 toplev.h in generated output.
1182 * Makefile.in (OBJS-common): Add hwint.o.
1183 Dependencies for above files changed to remove toplev.h.
1185 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1186 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1188 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1189 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1191 2010-11-30 Richard Guenther <rguenther@suse.de>
1193 PR tree-optimization/46717
1194 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1195 call. Manually create EH edges for the direct call and update
1198 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1200 * diagnostic-core.h: Include bversion.h.
1201 * toplev.h: Don't include input.h or bversion.h.
1202 (parse_optimize_options): Don't declare here.
1203 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1204 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1205 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1206 config/host-darwin.c, config/i386/host-cygwin.c,
1207 config/i386/host-mingw32.c, config/i386/msformat-c.c,
1208 config/i386/netware.c, config/i386/nwld.c,
1209 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1210 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1211 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1212 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1213 config/score/score3.c, config/score/score7.c,
1214 config/sh/symbian-base.c, config/sh/symbian-c.c,
1215 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1216 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1217 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1218 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1219 graphite-blocking.c, graphite-clast-to-gimple.c,
1220 graphite-dependences.c, graphite-flattening.c,
1221 graphite-interchange.c, graphite-poly.c,
1222 graphite-scop-detection.c, graphite.c, haifa-sched.c,
1223 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1224 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1225 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1226 lto-opts.c, lto-section-in.c, lto-section-out.c,
1227 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1228 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1229 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1230 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1231 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1232 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1233 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1234 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1235 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1236 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1237 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1239 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
1240 toplev.h. Dependencies for above files and c-family files changed
1241 to remove $(TOPLEV_H) or toplev.h.
1242 (C_TREE_H): Don't include $(TOPLEV_H).
1243 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
1245 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1246 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1247 config/t-darwin, config/t-sol2,
1248 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1249 Dependencies for above files changed to remove $(TOPLEV_H) or
1252 2010-11-30 Richard Guenther <rguenther@suse.de>
1255 * gcc.c (main): Use the first input with a compiler as infile
1256 for link spec processing.
1258 2010-11-30 Richard Guenther <rguenther@suse.de>
1261 * cgraphunit.c (ipa_passes): Stop after errors from
1264 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
1266 * gcc-plugin.h: Include coretypes.h.
1267 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1269 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1271 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1272 * ggc-none.c (ggc_internal_alloc_zone_stat)
1273 (ggc_internal_cleared_alloc_zone_stat): New.
1275 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1277 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1278 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1279 (rs6000_emit_prologue): Don't set PIC register if
1280 TARGET_SINGLE_PIC_BASE.
1281 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1282 * doc/invoke.texi (msingle-pic-base): Document.
1284 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
1287 * exec-tool.in (id): New.
1288 Check and export LT_RCU_$id instead of LT_RCU.
1290 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
1292 PR tree-optimization/46675
1293 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1294 in offset calculation.
1296 2010-11-29 Jan Hubicka <jh@suse.cz>
1298 * collect2.c (main): Do not imply verbose output with
1299 LTO and linker plugin.
1301 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1303 * dwarf2out.c (print_die): Print the address of the current DIE or
1304 of any DIE referenced by the current one.
1306 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1309 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1311 (scope_die_for, gen_type_die_for_member): Replace uses of
1312 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1314 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1316 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1317 (darwin_asm_declare_object_name): Correct spelling.
1318 (darwin_output_aligned_bss): Likewise.
1320 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1321 Mike Stump <mrs@gcc.gnu.org>
1326 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1327 (ASM_OUTPUT_LOCAL): Likewise.
1328 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1329 (darwin_output_aligned_bss): Likewise.
1330 (darwin_asm_output_aligned_decl_local): Likewise.
1331 (darwin_asm_output_aligned_decl_common): Likewise.
1332 (darwin_use_anchors_for_symbol_p): Likewise.
1333 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1334 (TARGET_ASM_OUTPUT_ANCHOR): Define.
1335 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1336 (DARWIN_SECTION_ANCHORS): Set to 1.
1337 * config/darwin.c (emit_aligned_common): New var.
1338 (darwin_init_sections): Check that the Darwin private zero-size section
1340 (darwin_text_section): Check for zero-sized objects.
1341 (darwin_mergeable_string_section): Likewise.
1342 (darwin_mergeable_constant_section): Likewise.
1343 (machopic_select_section): Adjust to check for zero-sized objects.
1344 Assert that OBJC meta data are non-zero sized.
1345 (darwin_asm_declare_object_name): New.
1346 (darwin_asm_declare_constant_name): Adjust for zero-sized
1348 (BYTES_ZFILL): Define.
1349 (darwin_emit_weak_or_comdat): New.
1350 (darwin_emit_local_bss): New.
1351 (darwin_emit_common): New.
1352 (darwin_output_aligned_bss): New.
1353 (darwin_asm_output_aligned_decl_common): New.
1354 (darwin_asm_output_aligned_decl_local): New.
1355 (darwin_file_end): Disable subsections_via_symbols when section
1356 anchoring is active.
1357 (darwin_asm_output_anchor): Re-enable.
1358 (darwin_use_anchors_for_symbol_p): New.
1359 (darwin_override_options): Check for versions that can emit
1360 aligned common. Update usage of flags to current.
1361 * config/darwin-sections.def: Update comments and flags for
1362 non-anchor sections. zobj_const_section, zobj_data_section,
1363 zobj_bss_section, zobj_const_data_section: New.
1364 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1365 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1366 (L2_MAX_OFILE_ALIGNMENT): Define.
1367 (ASM_OUTPUT_ALIGNED_BSS): Define.
1368 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1369 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1370 (SECTION_NO_ANCHOR): Define.
1371 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1372 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1374 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1376 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1377 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1378 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1379 Conditionally define.
1380 (GET_ENVIRONMENT): Poison.
1381 * configure.ac: Don't test for mincore.
1382 * configure: Regenerate.
1383 * config.in: Regenerate.
1384 * collect2-aix.c: Don't include <sys/mman.h>.
1385 * collect2.c: Don't include <signal.h>.
1386 (SIGCHLD): Don't define.
1387 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1388 * config/alpha/alpha.c: Include "splay-tree.h" instead of
1390 * config/arm/arm.c (arm_target_help): Use getenv instead of
1392 * config/avr/driver-avr.c: Don't include <stdlib.h>.
1393 * config/frv/frv.c: Don't include <ctype.h>.
1394 * config/host-darwin.c: Don't include <sys/mman.h>.
1395 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1396 (MAP_FAILED): Don't define.
1397 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1398 * config/host-solaris.c: Don't include <sys/mman.h>.
1399 * config/i386/cygming.h: Don't include <stdio.h>.
1400 * config/i386/driver-i386.c: Don't include <stdlib.h>.
1401 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1402 * config/iq2000/iq2000.c: Don't include <signal.h>.
1403 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1404 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1405 * config/mep/mep-pragma.c: Don't include <stdio.h>.
1406 * config/microblaze/microblaze.c: Don't include <signal.h>.
1407 * config/mips/mips.c: Don't include <signal.h>.
1408 * config/rs6000/host-darwin.c: Don't include <signal.h>.
1409 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1410 * defaults.h (GET_ENVIRONMENT): Don't define.
1411 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1412 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1413 (SIGCHLD, MAP_FAILED, kill): Don't define.
1414 (process_command): Use getenv instead of GET_ENVIRONMENT.
1415 * genhooks.c: Don't include <string.h>.
1416 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1418 (MAP_FAILED): Don't define.
1419 * ggc-page.c Don't include <sys/mman.h>.
1420 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1421 * ggc-zone.c: Don't include <sys/mman.h>.
1422 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1423 * graph.c: Include "config.h" instead of <config.h>.
1424 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1425 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1426 (SIGCHLD, kill): Don't define.
1427 * mips-tfile.c: Don't include <signal.h>.
1428 * opts.c: Don't include <signal.h> or <sys/resource.h>.
1429 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1430 * passes.c: Don't include <signal.h>, <sys/resource.h> or
1432 * sparseset.h: Don't include <assert.h>.
1433 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1434 * tlink.c: Don't include "libiberty.h".
1435 * toplev.c: Don't include <signal.h> or <sys/times.h>.
1436 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1437 * tree-switch-conversion.c: Don't include <signal.h>.
1438 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1440 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1442 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1443 c_parser_objc_try_catch_finally_statement for consistency with the
1444 C++ parser. Parse @catch(...) and pass NULL_TREE to
1445 objc_begin_catch_clause() in that case. Improved error recovery.
1446 Reorganized code to be almost identical to
1447 cp_parser_objc_try_catch_finally_statement.
1449 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
1451 PR tree-optimization/46621
1452 * gimple.h: Don't include tm.h or hard-reg-set.h .
1453 * Makefile.in (GIMPLE_H): Remove $(TM_H).
1456 * cppbuiltin.c: Include target.h .
1457 (define_builtin_macros_for_type_sizes):
1458 Use targetm.float_words_big_endian.
1460 2010-11-27 Jan Hubicka <jh@suse.cz>
1462 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1463 and output cold_text_section_label.
1464 (dwarf2out_init): Don't do that there.
1465 (dwarf2out_finish): Handle cold section end label only if cold
1468 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
1470 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1473 2010-11-27 Richard Guenther <rguenther@suse.de>
1475 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1476 (gimple_assign_ssa_name_copy_p): Likewise.
1477 (gimple_assign_unary_nop_p): Use is_gimple_assign.
1478 (is_gimple_cast): Remove.
1479 (gimple_assign_single_p): Move ...
1480 * gimple.h (gimple_assign_single_p): ... here.
1481 (is_gimple_cast): Remove.
1482 (gimple_assign_rhs_code): Simplify.
1483 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1484 instead of is_gimple_cast.
1485 * ipa-type-escape.c (look_for_casts): Likewise.
1487 2010-11-26 Joseph Myers <joseph@codesourcery.com>
1489 * doc/options.texi (Enum, EnumValue): Document new record types.
1490 (Enum): Document new option flag.
1492 * optc-gen.awk: Handle enumerated option arguments.
1493 * opth-gen.awk: Handle enumerated option arguments.
1494 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1495 enum_value_to_arg): New.
1496 (decode_cmdline_option): Handle enumerated arguments.
1497 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1498 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1499 * opts.c (print_filtered_help, print_specific_help): Take
1500 lang_mask arguments.
1501 (print_filtered_help): Handle printing values of enumerated
1502 options. Print possible arguments for enumerated options.
1503 (print_specific_help): Update call to print_filtered_help.
1504 (common_handle_option): Update calls to print_specific_help. Use
1505 value rather than arg for OPT_fdiagnostics_show_location_. Don't
1506 handle OPT_ffp_contract_, OPT_fexcess_precision_,
1507 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1508 OPT_fira_region_ here.
1509 * opts.h (enum cl_var_type): Add CLVC_ENUM.
1510 (struct cl_option): Add var_enum.
1511 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1512 struct cl_enum, cl_enums, cl_enums_count): New.
1513 (CL_ERR_ENUM_ARG): Define.
1514 (CL_ERR_NEGATIVE): Update value.
1515 (enum_value_to_arg): Declare.
1516 * common.opt (flag_ira_algorithm, flag_ira_region,
1517 flag_fp_contract_mode, flag_excess_precision_cmdline,
1518 default_visibility, flag_tls_default): Remove Variable entries.
1519 (help_enum_printed): New Variable.
1520 (fdiagnostics-show-location=): Use Enum. Add associated
1521 SourceInclude, Enum and EnumValue entries.
1522 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1523 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
1524 associated Enum and EnumValue entries.
1526 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
1529 * config/microblaze/microblaze.c (microblaze_block_move_straight):
1531 (microblaze_option_override): Don't use C++ style comments.
1532 (save_restore_insns): Remove unused variable base_offset.
1533 (microblaze_expand_prologue): Remove unused variable insn.
1534 (microblaze_secondary_reload): Adjust type to match target.h .
1535 (microblaze_elf_in_small_data_p): Move declarations to start of block.
1536 (microblaze_expand_move): Likewise.
1537 * config/microblaze/microblaze.h (LARGE_INT):
1538 Avoid signed / unsigned comparisons.
1539 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1540 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1541 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
1543 2010-11-26 Michael Matz <matz@suse.de>
1545 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1547 * passes.c (init_optimization_passes): Remove superfluous
1550 2010-11-26 Richard Guenther <rguenther@suse.de>
1553 * gimple.c (gtc_visit): Do not return true for members of an
1554 SCC still being processed but the current lattice value of
1555 the member. Treat SCC members comparison state as lattice,
1556 starting at equal, eventually dropping to unequal.
1557 (gimple_types_compatible_p_1): Likewise.
1559 2010-11-26 Richard Guenther <rguenther@suse.de>
1562 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1563 for location list processing.
1565 2010-11-26 Richard Guenther <rguenther@suse.de>
1568 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1571 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1573 * config/s390/s390.c (print_operand_address): Replace assert with
1575 (print_operand): Replace assertions, gcc_unreachable and
1576 fatal_insn with error messages.
1578 2010-11-26 Richard Guenther <rguenther@suse.de>
1580 PR tree-optimization/46665
1581 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1583 2010-11-26 Ian Bolton <ian.bolton@arm.com>
1585 * config/arm/arm.c (arm_option_override): enable loop array
1586 prefetching at -O3 for suitable targets, and configure params.
1587 * config/arm/arm-protos.h (struct tune_params): Add fields for
1588 configuring loop array prefetching.
1590 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
1592 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1594 2010-11-26 Richard Guenther <rguenther@suse.de>
1596 PR tree-optimization/46664
1597 * tree-affine.c (aff_combination_to_tree): Add rest last.
1599 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1602 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1603 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1604 * configure: Regenerated.
1605 * exec-tool.in: Not quoting command, may have extra arguments.
1607 2010-11-26 Richard Guenther <rguenther@suse.de>
1609 PR tree-optimization/46528
1611 * profile.c (branch_prob): Do not split blocks based on locations
1612 from debug statements.
1614 2010-11-26 Jakub Jelinek <jakub@redhat.com>
1617 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1618 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
1621 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1622 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1623 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1624 build6_loc): Define.
1625 * fold-const.c (protected_set_expr_location_unshare): New inline.
1626 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1627 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1628 pedantic_omit_one_operand_loc, omit_two_operands_loc,
1629 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1630 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1631 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1632 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1633 instead of buildN followed by SET_EXPR_LOCATION or
1634 protected_set_expr_location.
1635 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1636 Use buildN_stat_loc instead of buildN_stat followed by
1639 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
1641 * Makefile.in (s-tm-texi): Remove spurous tab.
1643 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1646 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1649 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1651 * toplev.c (finalize): Add no_backend parameter. Don't finish
1652 passes when preprocessing only. Adjust...
1653 (do_compile): ... caller.
1655 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1657 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1658 flag_unsafe_math_optimizations.
1660 Move fnegabs related patterns together. Only use fmpynfadd instruction
1661 to negate a multiply if !flag_signed_zeros is true.
1663 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
1665 * gengtype-state.c (read_state_structures): Initialize "previous".
1667 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
1668 Jeremie Salvucci <jeremie.salvucci@free.fr>
1670 * gengtype-state.c: Add new file.
1672 * gengtype.c (type count): New variable.
1673 (new_structure, find_param_structure, create_pointer)
1674 (create_array): Use it to set state_number in types.
1675 (dump_everything): Improve comment.
1676 (main): Call read_state and write_state. Print type_count.
1678 * gengtype.h (type_lineloc): New function.
1679 (read_state, write_state): New declarations.
1681 * Makefile.in (GENGTYPE_FLAGS): New variable.
1682 (s-gtype): Run gengtype twice and generate gtype.state.
1683 (build/gengtype-state.o): New rule.
1684 (build/gengtype$(build_exeext)): Link gengtype-state.o.
1685 (mostlyclean): Update comment. Remove gtype.state.
1687 2010-11-25 Jakub Jelinek <jakub@redhat.com>
1690 * combine.c (try_combine): When substing i2dest for i2src, pass
1691 1 as last argument even if
1692 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1694 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
1697 * builtins.c (target_char_cast): Check INTEGER_CST instead of
1698 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
1700 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1702 * target.def (supports_split_stack, except_unwind_info): Take
1703 gcc_options parameters.
1704 * targhooks.c (default_except_unwind_info,
1705 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1706 gcc_options parameters.
1707 * targhooks.h (default_except_unwind_info,
1708 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1710 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1711 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1712 Document that hooks must not be modified.
1713 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1714 * doc/tm.texi: Regenerate.
1715 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1716 &global_options to targetm.except_unwind_info.
1717 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1718 dwarf2out_begin_prologue, dwarf2out_frame_init,
1719 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1720 &global_options to targetm.except_unwind_info.
1721 * except.c (init_eh, finish_eh_generation,
1722 gate_convert_to_eh_region_ranges,
1723 output_one_function_exception_table): Pass &global_options to
1724 targetm.except_unwind_info.
1725 * expr.c (build_personality_function): Pass &global_options to
1726 targetm.except_unwind_info.
1727 * function.c (expand_function_end): Pass &global_options to
1728 targetm.except_unwind_info.
1729 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1730 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1731 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1732 and targetm.supports_split_stack. Remove assertions about opts
1734 (common_handle_option): Remove assertions about opts, opts_set and dc.
1735 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1736 &global_options to targetm.except_unwind_info.
1737 * tree.c (build_common_builtin_nodes: Pass &global_options to
1738 targetm.except_unwind_info.
1739 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1740 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1741 thumb1_expand_prologue, thumb1_output_function_prologue,
1742 arm_unwind_emit, arm_output_fn_unwind): Update calls to
1743 arm_except_unwind_info.
1744 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1746 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1748 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1749 ia64_reorg, ia64_asm_unwind_emit): Update calls to
1750 ia64_except_unwind_info.
1751 * config/pa/pa.c (pa_option_override): Pass &global_options to
1752 targetm.except_unwind_info.
1753 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1756 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
1758 * cgraphunit.c (process_function_and_variable_attributes):
1759 Mark dllexport-ed function/variables as needed.
1760 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1761 as externally visible.
1763 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1765 PR rtl-optimization/46585
1766 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1767 (vinsn_init): Skip computation of dependencies for local NOPs.
1768 (vinsn_delete): Don't try to free regsets for local NOPs.
1769 (setup_nop_and_exit_insns): Change definition of nop_pattern.
1771 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1773 PR rtl-optimization/46602
1774 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1775 (tidy_control_flow): Here.
1777 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
1778 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1781 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1782 Fix target.def pathname in timestamp comparison.
1784 2010-11-24 Richard Henderson <rth@redhat.com>
1786 * config/ia64/predicates.md (pmpyshr_operand): New.
1787 * config/ia64/ia64.c (ia64_expand_unpack): New.
1788 (ia64_expand_widen_mul_v4hi): New.
1789 (ia64_expand_widen_sum): Update for pattern renames.
1790 (ia64_expand_dot_prod_v8qi): Likewise.
1791 * config/ia64/ia64-protos.h: Update.
1792 * config/ia64/vect.md (vecwider): New mode attribute.
1793 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1794 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1795 (pmpyshr2, pmpyshr2_u): New.
1796 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1797 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1799 (vec_pack_ssat_v4hi): Rename from pack2_sss.
1800 (vec_pack_usat_v4hi): Rename from *pack2_uss.
1801 (vec_pack_ssat_v2si): Rename from pack4_sss.
1802 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1803 vec_select operation.
1804 (vec_interleave_highv8qi): Similarly.
1805 (mux1_alt): Rename from *mux1_alt.
1806 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1807 (vec_interleave_lowv4hi): Rename from unpack2_l.
1808 (vec_interleave_highv4hi): Rename from unpack2_h.
1809 (mix2_r): Rename from *mix2_r.
1810 (mix2_l): Similarly.
1811 (vec_extract_evenodd_helper): New.
1812 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1813 (vec_interleave_lowv2si): Rename from *unpack4_l.
1814 (vec_interleave_highv2si): Rename from *unpack4_h.
1815 (vec_extract_evenv2si, vec_extract_oddv2si): New.
1816 (vec_interleave_lowv2sf): Rename from fmix_r.
1817 (vec_interleave_highv2sf): Rename from *fmix_l.
1818 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1819 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1820 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1821 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1823 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1825 * targhooks.c (default_except_unwind_info): Remove
1826 MUST_USE_SJLJ_EXCEPTIONS case.
1827 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1828 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1829 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1830 * doc/tm.texi: Regenerate.
1831 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1833 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1835 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1836 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1837 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1838 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1839 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1841 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1844 * config/i386/i386.c (ix86_expand_call): Don't check
1847 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1850 * config/i386/i386.c (upper_128bits_state): New.
1851 (block_info_def): Remove upper_128bits_set and done. Add state,
1852 referenced, count, processed and rescanned.
1853 (check_avx256_stores): Updated.
1854 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1855 Call note_stores only if needed. Set referenced and count.
1856 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
1857 (rescan_move_or_delete_vzeroupper): New.
1858 (move_or_delete_vzeroupper): Process and rescan all all basic
1859 blocks instead of predecessor blocks of all exit points.
1860 (ix86_option_override_internal): Enable vzeroupper optimization
1861 only for -fexpensive-optimizations and not optimizing for size.
1862 (use_avx256_p): Removed.
1863 (init_cumulative_args): Don't set use_avx256_p.
1864 (ix86_function_arg): Likewise.
1865 (ix86_expand_move): Likewise.
1866 (ix86_expand_vector_move_misalign): Likewise.
1867 (ix86_local_alignment): Likewise.
1868 (ix86_minimum_alignment): Likewise.
1869 (ix86_expand_epilogue): Don't check use_avx256_p when generating
1871 (ix86_expand_call): Likewise.
1873 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1874 and use_avx256_p. Add rescan_vzeroupper_p.
1876 2010-11-24 Joseph Myers <joseph@codesourcery.com>
1878 * toplev.c: Include <signal.h>.
1880 2010-11-24 Richard Guenther <rguenther@suse.de>
1883 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1884 conflicting function signatures as non-inlineable.
1886 2010-11-24 Jakub Jelinek <jakub@redhat.com>
1888 PR rtl-optimization/46614
1889 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1890 (deps_analyze_insn): Mark JUMP_INSNs in
1891 last_pending_memory_flush that weren't added through
1892 flush_pending_lists with NON_FLUSH_JUMP_KIND.
1893 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1894 on INSN_LIST instead of JUMP_P check on its operand.
1895 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1897 2010-11-24 Richard Guenther <rguenther@suse.de>
1899 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1901 2010-11-24 Richard Guenther <rguenther@suse.de>
1904 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1905 a FIELD_DECL that is type correct issue a warning and fixup
1906 with a VIEW_CONVERT_EXPR.
1908 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
1910 * doc/invoke.texi (Options for Debugging Your Program or GCC):
1911 Explain static numbering of dump files.
1913 2010-11-24 Joseph Myers <joseph@codesourcery.com>
1915 * common.opt (user_vect_verbosity_level): New Variable entry.
1916 (ftree-vectorizer-verbose=): Mark as UInteger.
1917 * flag-types.h (enum vect_verbosity_levels): Move from enum
1918 verbosity_levels in tree-vectorizer.h.
1919 * opts.c: Don't include tree.h.
1920 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
1921 gcc_options parameter; take integer option argument.
1922 (common_handle_option): Update call to vect_set_verbosity_level.
1923 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1924 (vect_set_verbosity_level): Move to opts.c.
1925 (vect_verbosity_level, vect_print_dump_info): Update for change of
1927 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1928 (vect_print_dump_info): Update for change of enum name.
1929 * tree.h (vect_set_verbosity_level): Remove.
1930 * Makefile.in (opts.o): Update dependencies.
1932 2010-11-24 Jakub Jelinek <jakub@redhat.com>
1935 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1936 instead of insn with any_condjump_p.
1938 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
1940 * config/mips/loongson.md: Change the description comment of the file
1941 and update the copyright years.
1942 (define_insn "<u>div<mode>3): Add loongson3a support.
1943 (define_insn "<u>mod<mode>3"): Likewise.
1944 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1945 mul<mode>3_mul3_loongson.
1946 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1947 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1949 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1951 * common.opt (initial_max_fld_align, flag_debug_asm,
1952 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1953 flag_print_asm_name, graph_dump_format, help_printed,
1954 help_columns, flag_opts_finished): New Variable entries.
1955 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1956 frandom-seed=): Mark deferred.
1957 (fsched-verbose=): Use UInteger and Var.
1958 * flags.h (set_struct_debug_option, flag_print_asm_name,
1959 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1960 graph_dump_format): Don't declare here.
1961 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1962 * opts-global.c: Include dbgcnt.h and debug.h.
1963 (decode_options): Pass location to finish_options.
1964 (handle_common_deferred_options): Check flag_dump_all_passed.
1965 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1966 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
1968 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1969 (set_struct_debug_option): Add location_t parameter. Update
1970 recursive call. Use error_at.
1971 (default_options_optimization): Use error_at.
1972 (finish_options): Add location_t parameter. Use
1973 opts->x_flag_opts_finished instead of first_time_p. Use
1974 opts->x_optimize instead of optimize. Use error_at. Pass
1976 (print_filtered_help): Use opts->x_help_printed to track what
1977 options have been printed.
1978 (print_specific_help): Use opts->x_help_columns to track number of
1980 (common_handle_option): Pass locations and gcc_options pointers to
1981 more functions. Use warning_at instead of fnotice and warning.
1982 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1983 OPT_fdebug_prefix_map_. Use error_at. Set
1984 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1985 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
1986 OPT_fsched_verbose_.
1987 (handle_param): Add location_r parameter. Use error_at.
1988 (set_debug_level): Add location_r parameter. Use error_at and
1990 (setup_core_dumping): Add diagnostic_context parameter.
1991 (decode_d_option): Add gcc_options, location_t and
1992 diagnostic_context parameters and use them instead of global
1993 state. Use warning_at.
1994 (enable_warning_as_error): Use error_at.
1995 * opts.h (finish_options): Update prototype.
1996 (set_struct_debug_option): Declare here.
1997 * rtl.h (fix_sched_param): Remove.
1998 * stor-layout.c (initial_max_fld_align): Remove.
1999 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2000 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2001 (process_options): Set maximum_field_alignment.
2002 * tree.h (initial_max_fld_align) Don't declare here.
2003 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2005 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2007 * flag-types.h (struct visibility_flags): Don't declare here.
2008 * flags.h (strip_off_ending, fast_math_flags_set_p,
2009 fast_math_flags_struct_set_p): Declare here.
2010 (visibility_options): Don't declare here.
2011 * opts-common.c (option_enabled, get_option_state): Move from
2013 * opts-global.c: Include diagnostic.h instead of
2014 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2016 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2017 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2018 print_ignored_options, unknown_option_callback,
2019 post_handling_callback, lang_handle_option, add_input_filename,
2020 read_cmdline_options, initial_lang_mask, init_options_once,
2021 decode_cmdline_options_to_array_default_mask,
2022 set_default_handlers, decode_options): Move from opts.c.
2023 (print_ignored_options): Use warning_at instead of saving and
2024 restoring input_location.
2025 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2026 instead of expr.h. Don't include langhooks.h, except.h or
2027 lto-streamer.h. Add more comments on includes.
2028 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2030 (visibility_options): Move to c-family/c-common.c.
2031 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2032 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2033 print_ignored_options, unknown_option_callback,
2034 post_handling_callback, lang_handle_option, add_input_filename,
2035 read_cmdline_options, initial_lang_mask, init_options_once,
2036 decode_cmdline_options_to_array_default_mask,
2037 set_default_handlers, decode_options): Move to opts-global.c.
2038 (target_handle_option, default_options_optimization,
2039 finish_options, common_handle_option): Remove static.
2040 (option_enabled, get_option_state): Move to opts-common.c.
2041 * opts.h (common_handle_option, target_handle_option,
2042 finish_options, default_options_optimization): Declare.
2043 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2044 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2046 * toplev.h (strip_off_ending, decode_d_option,
2047 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2049 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2051 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2054 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2055 options, replace by call of pass-through-libs spec function to process
2056 link_gcc_c_sequence spec.
2057 (lto_libgcc_spec): Delete variable.
2058 (static_specs[]): Remove related entry.
2059 (static_spec_functions[]): Add new entry for pass-through-libs.
2060 (main): Don't generate deleted lto_libgcc_spec.
2061 (pass_through_libs_spec_func): New function to implement the new
2062 pass-through-libs spec function.
2063 * doc/invoke.texi (pass-through-libs): Document new spec function.
2065 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2067 * doc/options.texi (Warning, Optimization): Document.
2069 2010-11-23 Jan Hubicka <jh@suse.cz>
2071 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2072 (tree_decl_with_vis): Add implicit_section_name_p.
2073 * targhooks.h (default_function_section): Declare.
2074 * target.def (function_section): New hook.
2075 * defaults.h (HOT_TEXT_SECTION_NAME,
2076 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2077 * predict.c (choose_function_section): Remove.
2078 (estimate_bb_frequencies): Do not use choose_function_section.
2079 * coretypes.h (enum node_frequency): Move here from cgraph.h
2080 * cgraph.h (enum node_frequency): Remove.
2081 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2082 unlikely_text_section_p): Remove.
2083 (named_subsection_entry): New structure.
2084 (get_text_section): New function.
2085 (default_function_section): New function.
2086 (function_section_1): Break out from ...; handle profile info.
2087 (function_section): ... here.
2088 (unlikely_text_section): Remove.
2089 (unlikely_text_section_p): Use function_section_1.
2090 (assemble_start_function): Do not initialize cold section.
2091 (default_section_type_flags): Do not special case cold subsection.
2092 (switch_to_section): Likewise.
2093 * output.h (get_text_section): Define.
2094 * config/i386/winnt.c: Do not special case cold section.
2095 * config/darwin-protos.h (darwin_function_section): Declare.
2096 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2097 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2098 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2099 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2100 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2101 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2102 * config/darwin.c (machopic_select_section): Use
2103 darwin_function_section.
2104 (darwin_function_section): New function.
2105 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2106 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2107 (TARGET_ASM_FUNCTION_SECTION): Define.
2108 * system.h (HOT_TEXT_SECTION_NAME,
2109 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2111 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2113 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2114 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2116 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2119 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2120 following unconditional jumps.
2122 2010-11-23 Richard Guenther <rguenther@suse.de>
2124 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2126 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2127 Jeremie Salvucci <jeremie.salvucci@free.fr>
2129 * gengtype.c (enum typekind, struct options)
2130 (struct nested_ptr_data, struct pair, NUM_PARAM)
2131 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2133 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2134 Remove static, add zero state_number.
2135 (typedefs, structures, param_structs, variables): Remove static.
2136 (create_option): Remove.
2137 (create_string_option, create_type_option, create_nested_option):
2139 (create_nested_ptr_option): Use create_nested_option.
2140 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2141 new create*option functions.
2142 (process_gc_options): Adjust for discriminated option.
2143 (output_mangled_typename): Handle TYPE_NONE.
2144 (walk_type): Test option kinds.
2145 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2146 (write_func_for_structure, write_type, write_local, write_root)
2147 (write_roots, note_def_vec, dump_options): Adjust for
2148 discriminated option.
2150 * gengtype.h (typedefs, structures, param_structs, variables
2151 enum typekind): Move from gengtype.c
2152 (enum option_kind): New discriminating enumeration.
2153 (struct options): Becomes discriminated.
2154 (struct nested_ptr_data): Nove from gengtype.c
2155 (create_string_option, create_type_option, create_nested_option)
2156 (create_nested_ptr_option): New functions
2157 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2158 (UNION_OR_STRUCT_P): Move from gengtype.c
2160 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2161 discriminated options.
2163 2010-11-23 Richard Guenther <rguenther@suse.de>
2165 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2166 twice. Avoid re-allocating the ops vector all the time.
2168 2010-11-23 Richard Guenther <rguenther@suse.de>
2170 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2171 is_gimple_min_invariant, group tree code checks to allow
2173 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2176 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
2178 * config.gcc (sparc*-*-*): Reorder.
2180 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2182 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2183 Remove ENABLE_CHECKING around DBGPRINTF.
2185 2010-11-22 Joseph Myers <joseph@codesourcery.com>
2187 * common.opt (exit_after_options, write_symbols, debug_info_level,
2188 use_gnu_debug_info_extensions): New Variable entries.
2189 (fprofile-dir=): Use Var.
2190 * flag-types.h (enum debug_info_level): Rename to enum
2192 * flags.h (write_symbols, debug_info_level,
2193 use_gnu_debug_info_extensions): Remove declarations.
2194 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2195 (set_struct_debug_option): Make static variables const.
2196 (use_gnu_debug_info_extensions): Remove.
2197 (set_debug_level, print_filtered_help, print_specific_help,
2198 fast_math_flags_set_p): Take gcc_options parameters and use them
2199 in place of global variables.
2200 (print_filtered_help): Make new_help non-static.
2201 (print_specific_help): Update call to print_filtered_help.
2202 (common_handle_option): Update calls to print_specific_help. Use
2203 gcc_options structure for more settings. Make --help table
2204 const. Don't handle OPT_fprofile_dir_ here. Update calls to
2206 * toplev.c (profile_data_prefix): Remove.
2207 * toplev.h (profile_data_prefix, exit_after_options): Remove
2209 (fast_math_flags_set_p): Update prototype.
2210 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2211 Update call to fast_math_flags_set_p.
2213 2010-11-22 Richard Henderson <rth@redhat.com>
2216 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2217 return the address register extracted.
2218 (crx_decompose_address): Update the extracted address register.
2220 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2223 * gcc.c (main): Don't crash when lto-wrapper program is not found.
2225 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
2228 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2229 * config/picochip/picochip-protos.h: Don't include "target.h" .
2230 (picochip_secondary_reload): Don't declare.
2233 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2234 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2237 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
2240 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2241 (source_dot_c_frul): Likewise.
2243 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
2245 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2247 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
2250 * Makefile.in (fwprop.o) Add sparseset.h.
2251 * fwprop.c: Include sparseset.h
2252 (struct find_occurrence_data, find_occurrence_callback,
2253 find_occurrence): Remove.
2254 (active_defs, active_defs_check, register_active_defs,
2255 update_df_init, update_uses): New.
2256 (update_df): Rewrite.
2257 (try_fwprop_subst, forward_propagate_asm): Add calls to
2258 update_df_init and update_df.
2259 (fwprop_init): Allocate active_defs and active_defs_check.
2260 (fwprop_done): Free them.
2261 (fwprop, fwprop_addr): Adjust comments.
2262 * df.h (df_uses_create): Declare.
2263 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2264 (df_ref_create): Return result of df_ref_create_structure directly.
2265 (df_ref_create_structure): Call df_install_ref_incremental when
2266 no collection_rec is passed.
2267 (df_ref_record): Do not create multiword hard reg info when no
2268 collection_rec is passed.
2269 (df_uses_create): New.
2271 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2274 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2277 2010-11-22 Richard Guenther <rguenther@suse.de>
2279 * gimple-fold.c (maybe_fold_reference): When canonicalizing
2280 MEM_REFs, preserve volatileness.
2281 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2284 2010-11-22 Richard Guenther <rguenther@suse.de>
2286 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2288 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
2290 PR rtl-optimization/45652
2291 * alias.c (get_reg_base_value): New.
2292 * rtl.h (get_reg_base_value): Add prototype.
2293 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
2294 non-null REG_BASE_VALUE for renaming.
2296 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
2297 Basile Starynkevitch <basile@starynkevitch.net>
2299 * gengtype.c: Include xregex.h and obstack.h
2300 Added comments about role of get_output_file_with_visibility and
2301 our regexpr machinery.
2302 (frul_actionrout_t, struct file_rule_st): New.
2303 (hader_dot_h_frul, source_dot_c_frul): New functions.
2304 (NULL_REGEX, NULL_FRULACT): New.
2306 (matching_file_name_substitute): New function.
2307 (get_output_file_with_visibility): Updated comments and rewritten
2308 to use the new files_rules machinery.
2310 * Makefile.in (XREGEX_H): Added variable.
2311 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2313 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2315 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2317 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2319 * target.def (conditional_register_usage): Define.
2320 * reginfo.c (init_reg_sets_1): Call
2321 targetm.conditional_register_usage.
2322 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2323 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2324 for making it a hook.
2325 * doc/tm.texi: Regenerate.
2326 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2327 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2329 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2330 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2331 * config/arc/arc.c (arc_conditional_register_usage): ...here.
2333 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2334 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2335 * config/arm/arm.c (arm_conditional_register_usage): ...here.
2337 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2338 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2339 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2340 * config/bfin/bfin.c (conditional_register_usage): Move code into...
2341 (bfin_conditional_register_usage): ...here. New function.
2342 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2343 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2344 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2345 * config/cris/cris.c (cris_conditional_register_usage): Make static.
2346 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2347 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2348 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2349 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2350 * config/frv/frv.c (frv_conditional_register_usage): Make static.
2351 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2352 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2353 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2355 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2356 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2357 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2358 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2359 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2360 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2361 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2362 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2363 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2364 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2365 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2367 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2368 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2369 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2371 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2373 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2374 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2375 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2376 * config/mep/mep.c (mep_conditional_register_usage): Make static.
2377 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2378 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2379 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2380 * config/mips/mips.c (mips_conditional_register_usage): Make static.
2381 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2382 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2383 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2384 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2385 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2386 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2387 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2388 ...here. New function.
2389 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2390 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2391 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2392 * config/pa/pa.c (pa_conditional_register_usage): ...here.
2394 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2395 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2396 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2398 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2399 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2400 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2402 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2404 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2405 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2406 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2407 * config/rx/rx.c (rx_conditional_register_usage): Make static.
2408 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2409 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2410 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2411 * config/s390/s390.c (s390_conditional_register_usage): Make static.
2412 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2413 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2414 * config/score/score.c (score_conditional_register_usage): ...here.
2416 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2417 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2418 * config/sh/sh.c (sh_conditional_register_usage): ...here.
2420 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2421 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2422 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2424 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2425 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2426 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2427 * config/spu/spu.c (spu_conditional_register_usage): Make static.
2428 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2429 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2430 * config/v850/v850.c (v850_conditional_register_usage): ...here.
2432 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2434 2010-11-21 Jan Hubicka <jh@suse.cz>
2435 Dominique d'Humieres <dominiq@lps.ens.ft>
2438 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2439 finalize external decls.
2441 2010-11-21 Joseph Myers <joseph@codesourcery.com>
2443 * system.h (strerror): Poison.
2445 2010-11-21 Richard Henderson <rth@redhat.com>
2447 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2450 2010-11-21 Richard Henderson <rth@redhat.com>
2452 PR rtl-optimization/46571
2453 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2454 (compute_hash_table_work): Use NONDEBUG_INSN_P.
2456 2010-11-21 Paul Koning <ni1d@arrl.net>
2458 * config/mips/pdp11.md (negsi2): Fix wrong code.
2460 2010-11-21 Paul Koning <ni1d@arrl.net>
2462 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2463 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2465 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
2467 * config/mips/mips.c (machine_function): Rename load_label_length to
2468 load_label_num_insns.
2469 (mips_load_label_length): Rename to...
2470 (mips_load_label_num_insns): ...this. Adjust to first renaming.
2471 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
2473 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2476 * config/alpha/predicates.md (direct_call_operand): Return false
2477 for !TARGET_SMALL_TEXT targets.
2479 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2481 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2482 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2483 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2484 * doc/tm.texi: Regenerate.
2485 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2486 HANDLE_PRAGMA_WEAK): Poison.
2487 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2488 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2489 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2490 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2491 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2492 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2493 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2494 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2495 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2496 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2497 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2498 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2499 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2500 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2501 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2502 (HANDLE_PRAGMA_WEAK): Don't undefine.
2503 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2504 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2505 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2506 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2507 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2508 (HANDLE_PRAGMA_WEAK): Don't undefine.
2509 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2510 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2511 (HANDLE_PRAGMA_PACK): Don't undefine.
2512 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2513 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2514 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2515 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2516 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2517 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2518 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2519 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2520 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2521 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2522 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2523 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2524 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2525 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2526 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2527 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2528 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2530 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
2533 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2534 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2535 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2537 2010-11-20 Jan Hubicka <jh@suse.cz>
2539 * cgraph.c (ld_plugin_symbol_resolution_names): New.
2540 (dump_cgraph_node): Dump resolution.
2541 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2542 (cgraph_comdat_can_be_unshared_p): Dclare.
2543 * lto-streamer-out.c (produce_symtab): Use
2544 cgraph_comdat_can_be_unshared_p.
2545 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2546 (cgraph_comdat_can_be_unshared_p): New function based on logic
2547 in cgraph_externally_visible_p.
2548 (cgraph_externally_visible_p): Use it.
2549 (varpool_externally_visible_p): Virtual tables can be unshared.
2550 * varpool.c (dump_varpool_node): Dump resolution.
2552 2010-11-20 Jan Hubicka <jh@suse.cz>
2554 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2556 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2559 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2560 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2562 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2563 (install-strip): New target.
2564 (STRIPPROG): New variable, exported if STRIP is set.
2565 * doc/install.texi (Final install): Minor markup and code style
2566 fixes. Document install-strip target.
2568 2010-11-20 Paul Koning <ni1d@arrl.net>
2570 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2571 pdp11_regno_reg_class): New functions.
2572 * config/pdp11/pdp11.md (define_constants): Add register numbers.
2573 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2574 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2576 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2577 frame pointer and argument pointer pseudo-registers.
2578 (ARG_POINTER_REGNUM): Define.
2579 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2581 (FIRST_PARM_OFFSET): Update for argument pointer.
2582 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2583 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2584 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2585 frame pointer and argument pointer.
2587 2010-11-20 Jakub Jelinek <jakub@redhat.com>
2590 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2591 when looking for immediate uses.
2593 PR tree-optimization/45830
2594 * stmt.c (expand_switch_using_bit_tests_p): New function.
2595 (expand_case): Use it.
2596 * tree.h (expand_switch_using_bit_tests_p): New prototype.
2597 * tree-switch-conversion.c (struct switch_conv_info): Add
2598 bit_test_uniq, bit_test_count and bit_test_bb fields.
2599 (check_range): Fix a comment.
2600 (check_process_case): Compute bit_test_uniq and bit_test_count.
2601 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2603 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2604 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2605 (array_value_type): New function.
2606 (build_one_array): Use it, if it returned different type,
2607 fold_convert all constructor fields and convert back to the
2608 wider type in the generated code.
2609 (process_switch): Initialize bit_test_uniq, bit_test_count and
2610 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
2613 2010-11-19 Michael Matz <matz@suse.de>
2615 PR tree-optimization/46077
2616 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2618 2010-11-19 Anatoly Sokolov <aesok@post.ru>
2620 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2621 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2623 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2625 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2627 * mode-switching.c (optimize_mode_switching): Use
2628 FOR_BB_INSNS instead of open-coded loop.
2629 * cfgrtl.c (redirect_branch_edge): Ditto.
2631 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
2634 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2635 to accomodate 32 bit HOST_WIDE_INT.
2636 (m68hc11_emit_logical): Remove unused variable insn.
2637 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2638 this_insn_uses_iy before use.
2641 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2643 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2646 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2647 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2649 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2651 * doc/extend.texi (Function attributes): Document PowerPC target
2652 attributes that are supported.
2653 (Pragmas): Document that PowerPC now supports target pragmas.
2655 * doc/options.texi (TargetVariable): Document TargetVariable,
2656 HeaderInclude, and SourceInclude.
2658 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2659 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2662 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2663 SourceInclude directives. Fix a cut+paste error with target save
2664 enum variables. Sort enums in the structures after ints and
2666 * opth-gen.awk: Ditto.
2668 * configure.ac: Add support for HeaderInclude and SourceInclude option
2669 directives to add the appropriate files to the dependency lists.
2670 * configure: Regenerate.
2671 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2672 (OPTIONS_C_EXTRA): New variable for SourceInclude.
2673 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2674 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2675 (gcc-options.o): Ditto.
2676 * opt-include.awk: New awk script to handle HeaderInclude and
2679 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2680 gets saved in the target options.
2681 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2682 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2683 (-mprototype): Ditto.
2684 (-mbit-word): ditto.
2685 (-mregnames): Ditto.
2686 (-msecure-plt): Ditto.
2688 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2689 (-mpowerpc-gfxopt): Ditto.
2696 (-mhard-dfp): Ditto.
2699 (-mmultiple): Ditto.
2704 (-mno-update): Ditto.
2705 (-mavoid-indexed-addresses): Ditto.
2706 (-mtls-markers): Ditto.
2707 (-msched-epilog): Ditto.
2708 (-msched-prolog): Ditto.
2709 (-maix-struct-return): Ditto.
2710 (-msvr4-struct-return): Ditto.
2711 (-mxl-compat): Ditto.
2712 (-mrecip-precision): Ditto.
2713 (-mfp-in-toc): Ditto.
2714 (-msum-in-toc): Ditto.
2716 (-mblock-move-inline-limit=): Ditto.
2719 (-mlongcall): Ditto.
2720 (-mgen-cell-microcode): Ditto.
2721 (-mwarn-cell-microcode): Ditto.
2722 (-mwarn-altivec-long): Ditto.
2723 (-mprioritize-restricted-insns=): Ditto.
2724 (-msingle-float): Ditto.
2725 (-mdouble-float): Ditto.
2726 (-msimple-fpu): Ditto.
2727 (-mxilinx-fpu): Ditto.
2728 * config/rs6000/aix64.opt (-mpe): Ditto.
2730 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2731 (rs6000_cpu): Move variable to be a target variable. Rename
2732 cmodel to rs6000_current_cmodel because of macro conflict. Merge
2733 -mdebug=<xxx> variables into a single int.
2734 (rs6000_always_hint): Ditto.
2735 (rs6000_sched_groups): Ditto.
2736 (rs6000_align_branch_targets): Ditto.
2737 (rs6000_sched_costly_dep): Ditto.
2738 (rs6000_sched_insert_nops): Ditto.
2739 (rs6000_long_double_type_size): Ditto.
2740 (rs6000_ieeequad): Ditto.
2741 (rs6000_altivec_abi): Ditto.
2742 (rs6000_spe): Ditto.
2743 (rs6000_spe_abi): Ditto.
2744 (rs6000_float_gprs): Ditto.
2745 (rs6000_darwin64_abi): Ditto.
2746 (can_override_loop_align): Ditto.
2747 (rs6000_sdata): Ditto.
2748 (rs6000_tls_size): Ditto.
2749 (rs6000_current_abi): Ditto.
2750 (rs6000_traceback): Ditto.
2751 (rs6000_alignment_flags): Ditto.
2752 (rs6000_current_cmodel): Ditto.
2753 (rs6000_recip_control): Ditto.
2754 (rs6000_cpu_index): Ditto.
2755 (rs6000_tune_index): Ditto.
2756 (rs6000_debug): Ditto.
2757 (rs6000_target_flags_explict): Ditto.
2759 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2762 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2763 cmodel. Change all uses.
2765 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2766 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
2767 Rename cmodel to rs6000_current_cmodel.
2768 (rs6000_sched_groups): Ditto.
2769 (rs6000_align_branch_targets): Ditto.
2770 (rs6000_sched_costly_dep): Ditto.
2771 (rs6000_sched_insert_nops): Ditto.
2772 (rs6000_long_double_type_size): Ditto.
2773 (rs6000_ieeequad): Ditto.
2774 (rs6000_altivec_abi): Ditto.
2775 (rs6000_spe): Ditto.
2776 (rs6000_spe_abi): Ditto.
2777 (rs6000_float_gprs): Ditto.
2778 (rs6000_darwin64_abi): Ditto.
2779 (can_override_loop_align): Ditto.
2780 (rs6000_sdata): Ditto.
2781 (rs6000_tls_size): Ditto.
2782 (rs6000_current_abi): Ditto.
2783 (rs6000_traceback): Ditto.
2784 (rs6000_alignment_flags): Ditto.
2785 (rs6000_current_cmodel): Ditto.
2786 (rs6000_recip_control): Ditto.
2787 (rs6000_cpu_index): Ditto.
2788 (rs6000_tune_index): Ditto.
2789 (rs6000_debug): Ditto.
2790 (rs6000_target_flags_explict): Ditto.
2791 (rs6000_sched_insert_nops_str): Make static.
2792 (rs6000_sched_costly_dep_str): Ditto.
2793 (rs6000_recip_name): Ditto.
2794 (rs6000_abi_name): Ditto.
2795 (rs6000_sdata_name): Ditto.
2796 (enum rs6000_traceback_name): Move to rs6000-opts.h.
2797 (rs6000_parse_tls_size_option): Delete.
2798 (rs6000_valid_attribute_p): New function for target attributes and
2800 (rs6000_function_specific_save): Ditto.
2801 (rs6000_function_specific_restore): Ditto.
2802 (rs6000_function_specific_print): Ditto.
2803 (rs6000_can_inline_p): Ditto.
2804 (rs6000_set_current_function): Ditto.
2805 (rs6000_inner_target_options): Ditto.
2806 (rs6000_debug_target_options): Ditto.
2807 (rs6000_pragma_target_parse): Ditto.
2808 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2809 attributes and pragmas.
2810 (TARGET_OPTION_SAVE): Ditto.
2811 (TARGET_OPTION_RESTORE): Ditto.
2812 (TARGET_OPTION_PRINT): Ditto.
2813 (TARGET_CAN_INLINE_P): Ditto.
2814 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2815 (POWER_MASKS): Move to file level scope from the
2816 rs6000_option_override_internal function.
2817 (POWERPC_MASKS): Ditto.
2818 (ISA_*_MASKS): Ditto.
2819 (struct rs6000_ptt): Ditto.
2820 (processor_target_table): Ditto.
2821 (rs6000_cpu_name_lookup): Map cpu name to an index in
2822 processor_target_table.
2823 (rs6000_debug_reg_global): Print more information on processor
2824 options for -mdebug=reg.
2825 (rs6000_init_hard_regno_mode_ok): Add support for target
2826 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
2827 Allow -mdebug=val1,val2. Rename cmodel variable.
2828 (rs6000_option_override_internal): Ditto.
2829 (rs6000_option_override): Ditto.
2830 (rs6000_handle_option): Ditto.
2831 (rs6000_conditional_register_usage): Add debug trace message.
2832 (struct rs6000_opt_mask): New for target attribute/pragma support.
2833 (rs6000_opt_masks): Ditto.
2834 (struct rs6000_opt_var): Ditto.
2835 (rs6000_opt_vars): Ditto.
2836 (rs6000_previous_function): Ditto.
2838 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2839 wasn't already included.
2840 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2841 (enum processor_type): Ditto.
2842 (rs6000_cpu): Ditto.
2843 (enum fpu_type_t): Ditto.
2845 (enum rs6000_dependence_cost): Ditto.
2846 (enum rs6000_nop_insertion): Ditto.
2847 (enum group_termination): Ditto.
2848 (rs6000_long_double_type_size): Ditto.
2849 (rs6000_ieeequad): Ditto.
2850 (rs6000_altivec_abi): Ditto.
2851 (rs6000_spe_abi): Ditto.
2852 (rs6000_spe): Ditto.
2853 (rs6000_float_gprs): Ditto.
2854 (rs6000_alignment_flags): Ditto.
2855 (rs6000_sched_insert_nops): Ditto.
2856 (enum rs6000_vector): Ditto.
2857 (enum rs6000_abi): Ditto.
2858 (rs6000_current_opt): Ditto.
2859 (rs6000_debug_*): Delete.
2860 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2861 (TARGET_DEBUG*): Ditto.
2863 * config/rs6000/rs6000-opts.h: New header file to define the enums
2864 that are used in target variables that are now defined in rs6000.opt.
2866 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2868 (rs6000_sdata): Ditto.
2869 (rs6000_abi_name): Delete.
2870 (rs6000_sdata_name): Ditto.
2871 (rs6000_tls_size_string): Ditto.
2873 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2875 * common.opt (debug_struct_ordinary, debug_struct_generic): New
2877 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2878 should_emit_struct_debug): Move from opts.c.
2879 * flag-types.h (enum debug_struct_file): Move from opts.c.
2880 * flags.h (should_emit_struct_debug): Remove.
2881 (base_of_path): Declare.
2882 (set_struct_debug_option): Add gcc_options parameter.
2883 * optc-gen.awk, opth-gen.awk: Handle array variables.
2884 * opts.c (enum debug_struct_file, debug_struct_ordinary,
2885 debug_struct_generic): Remove.
2886 (set_struct_debug_option): Add gcc_options parameter.
2887 (base_of_path): Remove static.
2888 (main_input_basename, main_input_baselength, matches_main_base,
2889 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2891 * toplev.c (main_input_basename, main_input_baselength): Define
2893 * toplev.h (main_input_basename, main_input_baselength): Declare
2896 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2898 * common.opt (flag_instrument_functions_exclude_functions,
2899 flag_instrument_functions_exclude_files): New Variable definitions.
2900 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2901 * gimplify.c (char_p): Declare type and vectors.
2902 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
2903 * opts.c (flag_instrument_functions_exclude_functions,
2904 flag_instrument_functions_exclude_files): Remove.
2905 (add_comma_separated_to_vector): Take void **.
2906 (flag_instrument_functions_exclude_p): Move to gimplify.c.
2907 (common_handle_option): Use options structure for
2908 -finstrument-functions-exclude- options.
2910 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2912 * doc/options.texi (Var): Document effects of Defer.
2914 * opt-functions.awk (var_type, var_set): Handle deferred options.
2915 * opts-common.c (set_option): Handle CLVC_DEFER.
2916 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2917 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2918 fstack-limit-symbol=): Mark as deferred.
2919 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2921 (print_filtered_help): Don't report state of CLVC_DEFER options.
2922 (common_handle_option): Move code for OPT_fcall_used_,
2923 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2924 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2925 OPT_fstack_limit_symbol_ to opts-global.c.
2926 (option_enabled, get_option_state): Handle CLVC_DEFER.
2927 * opts.h: Include vec.h.
2928 (enum cl_var_type): Add CLVC_DEFER.
2929 (cl_deferred_option): Define type and vectors.
2930 (handle_common_deferred_options): Declare.
2931 * opts-global.c: New.
2932 * toplev.c (toplev_main): Call handle_common_deferred_options
2933 * Makefile.in (OPTS_H): Include $(VEC_H).
2934 (OBJS-common): Include opts-global.o.
2935 (opts.o): Update dependencies.
2936 (opts-global.o): Add dependencies.
2938 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2940 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2941 to objc_declare_protocols.
2943 2010-11-19 Richard Guenther <rguenther@suse.de>
2946 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2947 IDENTIFIERs do not stream TREE_TYPE.
2948 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2950 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
2952 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2954 2010-11-19 Jakub Jelinek <jakub@redhat.com>
2957 * dwarf2out.c (const_ok_for_output_1): Don't complain about
2958 non-delegitimized TLS UNSPECs.
2960 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
2961 Ian Lance Taylor <iant@google.com>
2963 * config/darwin-c.c (darwin_additional_format_types): Export.
2965 2010-11-18 Paul Koning <ni1d@arrl.net>
2967 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2970 2010-11-18 Paul Koning <ni1d@arrl.net>
2972 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2973 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2974 * config/pdp11/pdp11.opt (-mabshi): Delete.
2976 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
2978 * resource.h (struct resources): Fix typo in the comment.
2980 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2983 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2985 2010-11-18 Richard Henderson <rth@redhat.com>
2988 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2989 maybe_copy_epilogue_insn; handle prologue insns as well.
2990 * rtl.h, cfglayout.c: Update for rename.
2991 * recog.c (peep2_attempt): Copy prologue/epilogue data for
2992 RTX_FRAME_RELATED_P insns.
2994 2010-11-18 Jakub Jelinek <jakub@redhat.com>
2997 * builtins.c (fold_builtin_printf): Don't copy and modify string
2998 before build_string_literal, instead modify what
2999 build_string_literal returned.
3001 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3004 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3005 REALPART_EXPR and IMAGPART_EXPR.
3007 2010-11-18 Richard Guenther <rguenther@suse.de>
3009 PR tree-optimization/46172
3010 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3012 (slpeel_tree_peel_loop_to_edge): Call it.
3014 2010-11-18 Jeff Law <law@redhat.com>
3016 PR middle-end-optimization/46297
3017 * postreload.c (reload_combine_note_store): Deal with embedded
3018 side effects in MEM expressions.
3020 2010-11-18 Richard Guenther <rguenther@suse.de>
3023 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3024 when checking is not enabled.
3026 2010-11-18 Richard Guenther <rguenther@suse.de>
3029 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3031 (gimple_register_canonical_type): Also cache the canoncial type
3032 for non type leaders.
3034 2010-11-18 Richard Guenther <rguenther@suse.de>
3036 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3038 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3041 * sel-sched-ir.c (init_expr): Use the correct type for
3043 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3045 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3047 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3048 as well as -mrelocatable at the same time.
3050 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3053 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3054 Call the clz builtin.
3056 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3057 Steve Ellcey <sje@cup.hp.com>
3060 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3061 if section attribute used.
3063 2010-11-17 Jan Hubicka <jh@suse.cz>
3065 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3066 expand errno setting variant when optimizing for size.
3068 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3070 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3071 Reverse backward loop. Fix formatting issues.
3073 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3075 * c-parser.c (c_token_is_qualifier,
3076 c_parser_next_token_is_qualifier): New.
3077 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3078 Improve error message on specs->tagdef_seen_p.
3079 (c_parser_struct_or_union_specifier): Improve error recovery.
3080 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3081 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3082 using c_parser_next_token_is_qualifier; extend it to cover
3083 a ctsk_tagdef typespec and !typespec_ok in general.
3085 2010-11-17 Richard Guenther <rguenther@suse.de>
3087 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3088 (gimple_mod_pow2_value_transform): Likewise.
3089 (gimple_mod_subtract_transform): Likewise.
3091 2010-11-17 Richard Guenther <rguenther@suse.de>
3094 * gimple.c (gimple_register_canonical_type): Make sure to only
3095 make type leaders canonical types.
3097 2010-11-17 Michael Matz <matz@suse.de>
3099 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3100 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3101 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3102 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3103 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3104 (pass_build_ssa): ... but here.
3105 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3106 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3107 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3108 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3109 * predict.c (rebuild_frequencies): Ditto.
3110 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3111 * emit-rtl.c (verify_rtl_sharing): Ditto.
3112 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3113 * tree-ssa-live.c (remove_unused_locals): Ditto.
3114 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3115 * tree-ssa.c (pass_early_warn_uninitialized,
3116 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3117 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3118 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3119 * passes.c (pass_postreload, execute_todo): Ditto.
3120 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3122 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3124 * doc/invoke.texi (-dy): Remove.
3125 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3126 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3127 * langhooks.c (lhd_do_nothing_i): Remove.
3128 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3129 * toplev.c (set_yydebug): Remove.
3130 (compile_file): Update call to lang_hooks.parse_file.
3131 (decode_d_option): Don't handle -dy.
3133 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3135 PR rtl-optimization/46440
3136 * combine.c (update_cfg_for_uncondjump): When changing
3137 an indirect jump into unconditional jump, remove BARRIERs
3140 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3142 * opts.c (target_handle_option): Do not assert that loc ==
3145 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3146 Richard Guenther <rguenther@suse.de>
3149 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3150 call_may_clobber_ref_p_1): Return true for __sync_* and some
3151 OpenMP builtins that act as threading barriers.
3153 2010-11-17 Richard Guenther <rguenther@suse.de>
3155 PR tree-optimization/46498
3156 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3158 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3160 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3161 (xtensa_function_arg_boundary): ...this.
3162 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3163 thinko in declaration.
3164 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3165 number of parameters to picochip_function_arg_boundary.
3166 (picochip_arg_advance): Likewise.
3168 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3171 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3172 under check for type.
3174 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3176 * ifcvt.c (dead_or_predicable): Fix typo.
3178 2010-11-16 Richard Henderson <rth@redhat.com>
3180 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3181 * config/s390/s390.opt (mfused-madd): Remove.
3182 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3183 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3184 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3185 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3187 2010-11-16 Richard Henderson <rth@redhat.com>
3189 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3190 * config/rs6000/rs6000.opt (mfused-madd): Remove.
3191 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3192 (*altivec_vmaddfp_1): Remove.
3193 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3194 (altivec_mulv4sf3): Expand to FMA directly.
3195 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3196 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3197 * config/rs6000/paired.md (paired_madds0): Use FMA.
3198 (paired_madds1): Likewise.
3199 (*paired_madd): Rename from paired_madd; use FMA.
3200 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3201 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3202 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3203 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3204 (rs6000_emit_madd): Use fma_optab.
3205 (rs6000_emit_msub): Use fms_optab.
3206 (rs6000_emit_nmsub): Expand the FMA pattern directly.
3207 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3208 (*fmasf4_fpr): Rename from fmasf4_fpr.
3209 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3210 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3211 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3212 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3213 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3214 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3215 (*fmadf4_fpr): Rename from fmadf4_fpr.
3216 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3217 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3218 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3219 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3220 (fmasf4, fmadf4): Macroize into...
3221 (fma<FMA_F>4): ... here.
3222 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3223 (nfma<FMA_F>4, nfms<FMA_F>4): New.
3224 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3226 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3227 (*vsx_fmadd<mode>4_1): Remove.
3228 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3229 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3230 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3231 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3232 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3233 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3234 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3236 2010-11-16 Richard Henderson <rth@redhat.com>
3238 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3239 (fmasf4, fnmadf4, fnmasf4): Likewise.
3240 (unnamed plus+mult insns and splitters): Delete.
3242 2010-11-16 Richard Henderson <rth@redhat.com>
3244 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3245 (fnma<VSF>4): Rename from fnms_<VSF>.
3246 (fms<VSF>4): Rename from fms_<VSF>.
3247 (fma<VDF>4): Rename from fma_<VDF>.
3248 (fms<VDF>4): Rename from fms_<VDF>.
3249 (nfma<VDF>4): Rename from fnma_<VDF>.
3250 (nfms<VDF>4): Rename from fnms_<VDF>.
3251 (fnma<VDF>4, fnms<VDF>4): New expanders.
3252 (floatunsdisf2): Update for the renames.
3253 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3254 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3256 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3258 PR rtl-optimization/46490
3259 * combine.c (expand_compound_operation): Fix thinko.
3261 2010-11-16 Richard Henderson <rth@redhat.com>
3264 * recog.c (peep2_attempt): Convert frame-related info when possible.
3265 (peep2_fill_buffer): Allow frame-related insns into the buffer.
3266 (peephole2_optimize): Allow peep2_attempt to fail.
3268 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3270 PR rtl-optimization/46315
3271 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3272 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3274 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
3275 (remove_reg_equal_equiv_notes_for_defs): ...this.
3276 (delete_unmarked_insns): Adjust to above renaming.
3277 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3278 referring to registers set in the insns being moved, if any.
3280 * df-core.c (df_ref_dump): New function extracted from...
3281 (df_refs_chain_dump): ...here. Call it.
3282 (df_regs_chain_dump): Likewise.
3283 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3284 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
3286 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
3288 PR rtl-optimization/46395
3289 * postreload.c (reload_combine): Invalidate register use
3290 information on all control flow insns.
3292 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3293 LABEL_REF in UNSPEC operand.
3295 2010-11-16 Jan Hubicka <jh@suse.cz>
3297 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3298 when !flag_toplevel_reorder do not remove unless variable is
3299 COMDAT or ARTIFICIAL.
3300 * ipa.c (varpool_can_remove_if_no_refs): ... here.
3301 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3302 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3303 * varpool.c (decide_is_variable_needed): Do not handle visibility
3305 (varpool_finalize_decl): Likewise.
3306 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3307 update outdated comment on DECL_RTL_SET_P check.
3309 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3311 * config/sol2.h (NM_FLAGS): Define.
3312 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3313 * doc/tm.texi: Update.
3315 2010-11-16 Nick Clifton <nickc@redhat.com>
3317 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3318 (msubsf4): Rename to fmssf4, and use fma.
3319 (nmaddsf4): Rename to fnmasf4 and use fma.
3320 (nmsubsf4): Rename to fnmssf4 and use fma.
3322 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
3325 * config/score/score3.c (score3_return_in_memory): Constify arguments.
3326 (score3_in_small_data_p, score3_function_value): Likewise.
3327 (score3_trampoline_init): Use LCT_NORMAL.
3328 (score3_print_operand): Initialize code as UNKNOWN.
3329 * config/score/predicates.md (score_load_multiple_operation):
3330 Remove unused variable.
3331 (score_store_multiple_operation): Likewise.
3332 * config/score/score7.c (score7_return_in_memory): Constify arguments.
3333 (score7_in_small_data_p, score7_function_value): Likewise.
3334 (score7_trampoline_init): Use LCT_NORMAL.
3335 (score7_print_operand): Initialize code as UNKNOWN.
3336 * config/score/score3.h (score3_return_in_memory): Update prototype.
3337 (score3_in_small_data_p, score3_function_value): Likewise.
3338 * config/score/score-protos.h (score_function_value): Likewise.
3339 * config/score/score7.h (score7_return_in_memory): Update prototype.
3340 (score7_in_small_data_p, score7_function_value): Likewise.
3341 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3342 (score_return_in_memory, score_pass_by_reference): Constify arguments.
3343 (score_output_mi_thunk, score_function_prologue): Don't return a value.
3344 (score_function_epilogue, score_in_small_data_p): Likewise.
3345 (score_option_override, score_asm_trampoline_template): Likewise.
3346 (score_trampoline_init, score_print_operand): Likewise.
3347 (score_print_operand_address, score_prologue): Likewise.
3348 (score_epilogue, score_call, score_call_value): Likewise.
3349 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3350 (score_function_arg_advance): Likewise. Make static.
3351 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3352 (score_function_arg, score_legitimate_address_p): Make static.
3353 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3354 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3355 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3356 Allow (W) == HOST_BITS_PER_WIDE_INT.
3359 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3360 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3362 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3364 * config/arc/arc.c: Delete pasto.
3365 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3367 2010-11-16 Anatoly Sokolov <aesok@post.ru>
3369 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3370 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3371 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3372 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3373 (mn10300_preferred_reload_class,
3374 mn10300_preferred_output_reload_class): New functions.
3376 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3378 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3379 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3380 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3381 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3383 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3385 * builtins.c (std_gimplify_va_arg_expr): Use
3386 targetm.calls.function_arg_boundary.
3387 * function.c (assign_parms, locate_and_pad_parm): Likewise.
3388 * calls.c (struct arg_data): Update comment.
3389 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3390 * target.def (function_arg_boundary): Define.
3391 * targhooks.h (default_function_arg_boundary): Declare.
3392 * targhooks.c (default_function_arg_boundary): Define.
3393 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3394 TARGET_FUNCTION_ARG_BOUNDARY.
3395 (FUNCTION_ARG_BOUNDARY): Delete.
3396 (TARGET_FUNCTION_ARG_BOUNDARY): New.
3397 * doc/tm.texi: Regenerate.
3398 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3399 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3400 * config/arc/arc.c (arc_function_arg_boundary): Define.
3401 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3402 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3403 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3404 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3405 (arm_function_arg_boundary): Define.
3406 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3407 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3408 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3409 * config/frv/frv.c (frv_function_arg_boundary): Make static.
3410 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3411 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3412 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3413 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3414 (ix86_compat_function_arg_boundary): Take and return unsigned int.
3415 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3416 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3417 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3418 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3419 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3420 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3421 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3422 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3423 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3424 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3425 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3426 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3427 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3428 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3429 * config/mips/mips.c (mips_function_arg_boundary): Make static.
3430 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3431 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3432 * config/pa/pa.c (pa_function_arg_boundary): Define.
3433 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3434 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3435 * config/picochip/picochip-protos.h
3436 (picochip_get_function_arg_boundary): Delete.
3437 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3439 (picochip_function_arg_boundary): ...this. Make static.
3440 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3441 (picochip_arg_advance): Adjust.
3442 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3443 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3444 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3445 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3446 (rs6000_function_arg_boundary): ...this. Make static.
3447 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3448 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3449 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3450 * config/rx/rx.c (rx_function_arg_boundary): Define.
3451 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3452 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3453 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3454 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3455 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3456 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3457 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3458 (xtensa_function_arg_boundary): ...this. Make static.
3459 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3461 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3463 * expr.c (alignment_for_piecewise_move): New function.
3464 (widest_int_mode_for_size): New function.
3465 (move_by_pieces, move_by_pieces_ninsns): Call them.
3466 (can_store_by_pieces, store_by_pieces_1): Likewise.
3468 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3470 * gcc.c (char_p): Define. Define a VEC of it.
3471 (n_linker_options, n_assembler_options, n_preprocessor_options):
3473 (linker_options, assembler_options, preprocessor_options): Convert
3475 (add_preprocessor_option): Adjust.
3476 (add_assembler_option): Adjust.
3477 (add_linker_option): Adjust.
3478 (do_specs_vec): New function.
3479 (do_spec_1): Call it. Adjust for new types.
3481 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3483 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3484 (sreal.o, statistics.o, stringpool.o): Likewise.
3486 2010-11-16 Richard Guenther <rguenther@suse.de>
3488 PR tree-optimization/44545
3489 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3490 statements are not reassociatable.
3491 (reassociate_bb): Likewise.
3493 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3495 * bitmap.c: Delete unnecessary includes.
3496 * ebitmap.c: Likewise.
3497 * et-forest.c: Likewise.
3498 * sreal.c: Likewise.
3499 * statistics.c: Likewise.
3500 * stringpool.c: Likewise.
3501 * double-int.c: Add comment for inclusion of tm.h.
3503 2010-11-16 Richard Guenther <rguenther@suse.de>
3505 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3506 (visit_nary_op): ... this.
3507 (visit_binary_op): Remove.
3508 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3510 2010-11-16 Richard Guenther <rguenther@suse.de>
3513 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3515 2010-11-16 Nick Clifton <nickc@redhat.com>
3517 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3520 2010-11-15 Richard Henderson <rth@redhat.com>
3522 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3523 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3526 2010-11-15 Richard Henderson <rth@redhat.com>
3528 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3529 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
3532 2010-11-15 Richard Henderson <rth@redhat.com>
3534 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3535 and *mulsubsf4 respectively. Use fma rtx_code.
3537 2010-11-15 Joseph Myers <joseph@codesourcery.com>
3539 * gcc.c: Include "vec.h".
3540 (argbuf): Make into a VEC.
3541 (argbuf_length, argbuf_index): Remove.
3542 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3543 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3544 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3545 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3546 (gcc.o): Depend on $(VEC_H).
3548 2010-11-15 Richard Henderson <rth@redhat.com>
3550 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3551 via FMA if unsafe math.
3552 (insert_var_expansion_initialization): Handle FMA.
3553 (combine_var_copies_in_loop_exit): Likewise.
3555 2010-11-15 Richard Henderson <rth@redhat.com>
3557 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3558 * config/ia64/ia64.opt: Remove mfused-madd.
3559 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3560 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3561 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3562 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3563 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3564 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3565 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3566 (fmav2sf4): Rename from fpma; use FMA code.
3567 (fmsv2sf4): Rename from fpms; use FMA code.
3568 (fnmav2sf4): Rename from *fpnma; use FMA code.
3569 * config/ia64/ia64.md (MODE_SDF): New iterator.
3570 (suffix): New mode attribute.
3571 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3572 (fmssf4): Rename from *fmssf4.
3573 (fnmasf4): Rename from *nfmasf4.
3574 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3575 (*nmadddf4, *nmadddf4_truncsf): Remove.
3576 (fmsdf4): Rename from *fmsdf4.
3577 (fnmadf4): Rename from *nfmadf4.
3578 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3579 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3580 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3581 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3582 (fmsxf4): Rename from *fmsxf4.
3583 (fnmaxf4): Rename from *nfmaxf4.
3584 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3585 (*fnmaxf_trunc_<MODE_SDF>): New.
3587 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3589 PR tree-optimization/46461
3590 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3593 2010-11-15 Ian Lance Taylor <iant@google.com>
3595 * godump.c: New file.
3596 * common.opt (fdump-go-spec=): New option.
3597 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3598 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3599 (TYPE_SYMTAB_IS_DIE): Define.
3600 (struct tree_type): Change GTY for symtab field to use
3601 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3602 to pick the union field.
3603 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3604 (dump_go_spec_init): Declare.
3605 * toplev.c (process_options): Handle flag_dump_go_spec.
3606 * debug.c: Include "tree.h".
3607 (do_nothing_debug_hooks): Set tree_type_symtab_field.
3608 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3609 * dbxout.c (dbx_debug_hooks): Likewise.
3610 (xcoff_debug_hooks): Likewise.
3611 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3612 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
3613 SDB_DEBUGGING_INFO is not defined.
3614 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3615 (Overall Options): Document -fdump-go-spec.
3616 * Makefile.in (OBJS-common): Add godump.o.
3617 (debug.o): Add dependency on $(TREE_H).
3618 (godump.o): New target.
3619 (GTFILES): Add $(srcdir)/godump.c.
3621 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3624 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3625 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3626 style < 0, add REG_FRAME_RELATED_EXPR.
3629 * rtl.h (vt_equate_reg_base_value): New prototype.
3630 * alias.c (vt_equate_reg_base_value): New function.
3631 * var-tracking.c (vt_init_cfa_base): Use it.
3633 2010-11-15 Jan Hubicka <jh@suse.cz>
3634 Diego Novillo <dnovillo@google.com>
3637 * doc/lto.texi: Add.
3638 * doc/gccint.texi: Add reference to lto.texi.
3639 * doc/invoke.texi: Update user documentation for LTO.
3640 Move internal flags to lto.texi
3642 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3644 * c-typeck.c (build_unary_op): Use
3645 objc_build_incr_expr_for_property_ref to build the pre/post
3646 increment/decrement of an Objective-C property ref, and skip the
3647 lvalue_or_else check in that case.
3649 2010-11-15 Martin Jambor <mjambor@suse.cz>
3651 PR tree-optimization/46349
3652 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3653 (contains_vce_or_bfcref_p): Likewise.
3654 (sra_modify_assign): Use them.
3656 2010-11-15 Richard Guenther <rguenther@suse.de>
3658 PR tree-optimization/46467
3659 * tree-ssa-structalias.c (do_structure_copy): Properly treat
3660 variables without subvars.
3662 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
3664 * config/picochip/picochip.c (file header): Picochip name change.
3665 * config/picochip/picochip.md (file header): Likewise.
3666 * config/picochip/predicates.md (file header): Likewise.
3667 * config/picochip/dfa_space.md (file header): Likewise.
3668 * config/picochip/dfa_speed.md (file header): Likewise.
3669 * config/picochip/picochip.h(file header): Likewise.
3670 * config/picochip/constraints.md (file header): Likewise.
3671 * config/picochip/picochip-protos.h (file header): Likewise.
3672 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3673 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3674 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3675 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3676 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3677 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3678 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3679 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3680 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3681 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3682 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3683 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3684 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3685 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3687 2010-11-15 Richard Guenther <rguenther@suse.de>
3690 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3692 2010-11-15 Nick Clifton <nickc@redhat.com>
3694 * config/stormy16/stormy16.c (direct_return): Do not generate a
3695 direct return for interrupt handlers.
3697 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
3699 * Makefile.in (tm.texi): Replace with rule for:
3700 ($(srcdir)/doc/tm.texi).
3701 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3702 $(srcdir)/doc/tm.texi .
3703 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3707 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3710 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3711 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3714 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3716 2010-11-15 Richard Guenther <rguenther@suse.de>
3719 * lto-opts.c (lto_write_options): Write -fexceptions even if
3720 not set by the user.
3722 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3725 * c-decl.c (declspecs_add_type): Make variables with error types
3727 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3728 do not start a declaration before an Objective-C foreach.
3729 (c_parser_declaration_or_fndef): Improve recovery after unknown
3731 (c_parser_for_statement): Hoist entrance of "foreach context"
3732 before ifs, add corresponding reset where it was missing. Do
3733 not set objc_could_be_foreach_context for C.
3735 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
3737 PR tree-optimization/45722
3738 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3739 this is a reference to a component.
3740 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3741 (ipa_note_param_call): Adjust comment.
3743 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
3745 * config/mips/mips.c (machine_function): Remove
3746 initialized_mips16_gp_pseudo_p.
3747 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3748 detect whether a pseudo has already been created. Unconditionally
3749 create a new one if not.
3750 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3751 expanding to rtl. Create a new pseudo otherwise, if allowed.
3753 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
3756 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3757 * tm.texi: Regenerated.
3758 * output.h (decode_reg_name_and_count): Declare.
3759 * varasm.c (decode_reg_name_and_count): New function.
3760 (decode_reg_name): Reimplement using decode_reg_name_and_count.
3761 * reginfo.c (fix_register): Use decode_reg_name_and_count and
3762 iterate over all regs used.
3763 * stmt.c (expand_asm_operands): Likewise.
3764 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3765 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3766 multiple machine registers.
3768 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
3770 * stor-layout.c (place_union_field): Do not put location information
3771 on offset expressions.
3772 (place_field): Likewise.
3773 (finalize_record_size): Likewise on size expressions.
3774 (finalize_type_size): Likewise.
3775 (layout_type): Likewise.
3777 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
3780 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3781 * df-core.c (df_set_bb_dirty_nonrl): Remove.
3782 * df.h (df_set_bb_dirty_nonlr): Likewise.
3784 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
3786 * config/mips/mips.md (call_internal): Pass curr_insn to
3788 (call_internal_direct): Ditto.
3789 (call_value_internal): Ditto.
3790 (call_value_internal_direct): Ditto.
3791 (call_value_multiple_internal): Ditto.
3792 * config/mips/mips.c (mips_split_call): Do not copy
3793 CALL_INSN_FUNCTION_USAGE here.
3795 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
3797 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3798 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3799 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3800 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3801 (TUNE_LOONGSON_3A): Define.
3802 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3803 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3804 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3805 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3806 (mips_rtx_cost_data): Add Loongson-3A.
3808 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3810 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3813 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3815 * dwarf2out.c (macinfo_entry): New struct.
3816 (output_comp_unit): Emit the section start label here and flag that we
3817 will emit an info section.
3818 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3820 (dwarf2out_end_source_file): Likewise.
3821 (dwarf2out_define): Likewise.
3822 (dwarf2out_undef): Likewise.
3823 (output_macinfo): New.
3824 (dwarf2out_init): Do not emit debug section switches here, allocate a
3825 vec for macinfo, when required.
3826 (dwarf2out_finish): First switch to debug_abbrev_section here.
3827 debug_line_section, debug_macinfo_section, Likewise.
3828 Check that the pubtypes table has at least one unpruned entry before
3831 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3834 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3835 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
3837 (c_parser_compound_statement_nostart, c_parser_label,
3838 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3839 (c_parser_declaration_or_fndef): Detect the case now matched by
3840 c_parser_next_tokens_start_declaration, give error and correct it.
3842 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3844 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3845 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3847 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3848 (shadow_tag_warned, check_compound_literal_type): Adjust
3849 uses of tag_defined_p.
3850 (declspecs_add_type): Set typespec_kind.
3851 * c-parser.c (c_parser_declaration_or_fndef,
3852 c_parser_declspecs, c_parser_struct_declaration,
3853 c_parser_parameter_declaration, c_parser_type_name,
3854 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3856 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3857 tag_defined_p, pass ctsk_firstref through.
3859 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3861 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3862 (struct format_wanted_type): Replace field "name" with "kind", add
3863 "format_start" and "format_length".
3864 (check_format_info_main): Fill in new fields. Fill in
3865 FORMAT_WANTED_TYPES even for missing arguments. Move checks
3866 after the final NUL outside the while loop. Do not include
3867 width and precision modifiers in the format_start/format_length
3869 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3870 arguments. Compute WANTED_TYPE first so that format_type_warning
3871 can be called for missing arguments. Adjust calls to
3872 format_type_warning.
3873 (format_type_warning): Fetch as much information as possible
3874 from format_wanted_type. Adjust printing now that every
3875 warning has a "descr", as well as for missing argument warnings
3876 and to include % sign for format specifiers.
3878 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
3880 PR rtl-optimization/46204
3881 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3882 Update all callers. Do not recompute topological order. Adjust
3883 fallthrough edges following a degenerate conditional jump.
3885 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3887 * opts-common.c (control_warning_option): New.
3888 * opts.c (set_default_handlers): New.
3889 (decode_options): Use set_default_handlers and
3890 control_warning_option.
3891 (common_handle_option): Update call to enable_warning_as_error.
3892 (enable_warning_as_error): Take gcc_options parameters. Use
3893 control_warning_option.
3894 * opts.h (set_default_handlers, control_warning_option): Declare.
3896 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3898 * Makefile.in (OPTS_H): Define.
3899 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
3900 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
3901 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
3902 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
3903 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
3904 * gcc.c (driver_handle_option): Take location_t parameter.
3905 (process_command, do_self_spec): Update calls to
3906 read_cmdline_option.
3907 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
3908 * langhooks.c (lhd_handle_option): Take location_t parameter.
3909 * langhooks.h (handle_option): Take location_t parameter.
3910 * lto-opts.c (lto_reissue_options): Update call to set_option.
3911 * opts-common.c (handle_option): Make static. Take location_t
3912 parameter and pass it to other functions.
3913 (handle_generated_option): Take location_t parameter and pass it
3915 (read_cmdline_option): Take location_t parameter and pass it to
3916 other functions. Use warning_at and error_at.
3917 (set_option): Take location_t parameter and pass it to other
3919 * opts.c (common_handle_option): Take location_t parameter and
3920 pass it to other functions.
3921 (enable_warning_as_error): Make static. Take location_t parameter
3922 and pass it to other functions.
3923 (lang_handle_option): Take location_t parameter and pass it to
3925 (target_handle_option): Take location_t parameter.
3926 (read_cmdline_options, maybe_default_option,
3927 maybe_default_options, default_options_optimization,
3928 decode_options): Take location_t parameter and pass it to other
3930 * opts.h: Include input.h.
3931 (struct cl_option_handler_func, decode_options, set_option,
3932 handle_generated_option, read_cmdline_option): Take location_t
3934 (handle_option, enable_warning_as_error): Remove.
3935 * toplev.c (toplev_main): Update call to decode_options.
3937 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
3939 * graphite-cloog-util.c (oppose_constraint,
3940 cloog_matrix_to_ppl_constraint,
3941 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
3942 CLooG isl uses unsigned integers. This triggered a warning.
3944 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
3947 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
3948 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
3949 (xtensa_function_arg_1): De-constify cum.
3950 (xtensa_expand_prologue): Use add_reg_note.
3953 * config/cris/cris.c (saved_regs_mentioned): Delete.
3954 (cris_reload_address_legitimized): Cast itype to enum reload_type.
3955 Remove unused variable op0p.
3956 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
3957 (cris_emit_movem_store): Use add_reg_note.
3960 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
3962 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
3964 * function.c (expand_function_end): Set the locator of the prologue on
3965 the stack checking insns.
3967 2010-11-12 Richard Henderson <rth@redhat.com>
3969 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
3970 * config/xtensa/xtensa.opt (mfused-madd): Remove.
3971 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3973 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.