1 2010-12-09 Joseph Myers <joseph@codesourcery.com>
3 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
4 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
6 2010-12-09 Richard Guenther <rguenther@suse.de>
9 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
12 2010-12-09 Joseph Myers <joseph@codesourcery.com>
14 * config/i386/netware.h (TARGET_POSIX_IO): Define.
15 * config/i386/nto.h (TARGET_POSIX_IO): Define.
16 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
17 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
18 * config/openbsd.h (TARGET_POSIX_IO): Define.
19 * config/rtems.h (TARGET_POSIX_IO): Define.
20 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
21 * config/sol2.h (TARGET_POSIX_IO): Define.
22 * config/svr4.h (TARGET_POSIX_IO): Don't define.
23 * config/vxworksae.h (TARGET_POSIX_IO): Define.
25 2010-12-09 Joseph Myers <joseph@codesourcery.com>
27 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
28 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
30 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
32 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
34 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
36 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
38 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
40 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
41 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
43 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
45 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
47 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
49 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
52 2010-12-09 Joseph Myers <joseph@codesourcery.com>
54 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
56 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
58 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
59 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
60 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
62 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
63 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
65 2010-12-09 Martin Jambor <mjambor@suse.cz>
67 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
68 zero is the first phi parameter.
70 2010-12-09 Martin Jambor <mjambor@suse.cz>
72 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
73 * ipa-prop.c (ipa_modify_call_arguments): Use it.
74 * tree-sra.c (splice_param_accesses): Test that all accesses have the
75 same alias reference type.
76 (turn_representatives_into_adjustments): Set alias_ptr_type of the
79 2010-12-09 Martin Jambor <mjambor@suse.cz>
82 * tree-sra.c (splice_param_accesses): Check that there are not
83 multiple ADDRESSABLE types.
85 2010-12-09 Joseph Myers <joseph@codesourcery.com>
87 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
88 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
89 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
90 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
91 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
92 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
93 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
94 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
95 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
96 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
97 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
98 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
99 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
100 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
101 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
102 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
103 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
104 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
105 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
106 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
107 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
108 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
109 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
110 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
111 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
113 2010-12-09 Joseph Myers <joseph@codesourcery.com>
115 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
116 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
117 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
119 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
121 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
122 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
124 2010-12-09 Joseph Myers <joseph@codesourcery.com>
126 * config/alpha/freebsd.h (LINK_SPEC): Don't use
128 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
129 * config/arm/freebsd.h (LINK_SPEC): Likewise.
130 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
131 * config/bfin/linux.h (LINK_SPEC): Likewise.
132 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
133 * config/frv/linux.h (LINK_SPEC): Likewise.
134 * config/i386/freebsd.h (LINK_SPEC): Likewise.
135 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
136 * config/i386/linux.h (LINK_SPEC): Likewise.
137 * config/i386/linux64.h (LINK_SPEC): Likewise.
138 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
139 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
140 * config/ia64/linux.h (LINK_SPEC): Likewise.
141 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
142 * config/m32r/linux.h (LINK_SPEC): Likewise.
143 * config/m68k/linux.h (LINK_SPEC): Likewise.
144 * config/microblaze/linux.h (LINK_SPEC): Likewise.
145 * config/mips/linux.h (LINK_SPEC): Likewise.
146 * config/mips/linux64.h (LINK_SPEC): Likewise.
147 * config/mips/openbsd.h (LINK_SPEC): Likewise.
148 * config/mn10300/linux.h (LINK_SPEC): Likewise.
149 * config/netbsd-elf.h (LINK_SPEC): Likewise.
150 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
151 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
152 LINK_OS_LINUX_SPEC64): Likewise.
153 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
154 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
156 * config/s390/linux.h (LINK_SPEC): Likewise.
157 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
158 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
159 * config/sparc/linux.h (LINK_SPEC): Likewise.
160 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
161 LINK_SPEC): Likewise.
162 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
163 * config/vax/linux.h (LINK_SPEC): Likewise.
164 * config/xtensa/linux.h (LINK_SPEC): Likewise.
166 2010-12-09 Joseph Myers <joseph@codesourcery.com>
168 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
169 * config/frv/frv.h (ASM_SPEC): Likewise.
170 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
171 * config/i386/sol2.h (ASM_SPEC): Likewise.
172 * config/m68k/linux.h (ASM_SPEC): Likewise.
173 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
174 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
175 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
176 * config/sol2.h (ASM_SPEC): Likewise.
177 * config/sparc/linux.h (ASM_SPEC): Likewise.
178 * config/sparc/linux64.h (ASM_SPEC): Likewise.
179 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
180 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
181 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
183 2010-12-09 Richard Guenther <rguenther@suse.de>
185 * reginfo.c (struct subregs_of_mode_node): Remove.
186 (subregs_of_mode): Likewise.
187 (som_hash): Likewise.
189 (invalid_mode_changes): New bitmap.
190 (record_subregs_of_mode): Get subregs_of_mode argument.
191 Fill in invalid_mode_changes bitmap.
192 (find_subregs_of_mode): Get subregs_of_mode argument and pass
194 (init_subregs_of_mode): Adjust.
195 (finish_subregs_of_mode): Likewise.
196 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
198 2010-12-09 Richard Guenther <rguenther@suse.de>
200 * ira.c (ira): Do not call finish_subregs_of_mode.
201 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
203 2010-12-09 Richard Guenther <rguenther@suse.de>
205 * rtl.h (invalid_mode_change_p): Adjust prototype.
206 * reginfo.c (invalid_mode_change_p): Remove from argument.
207 * ira-costs.c (print_allocno_costs): Adjust callers.
208 (find_costs_and_classes): Likewise.
210 2010-12-09 Jakub Jelinek <jakub@redhat.com>
212 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
213 locg and stocg even in comment.
214 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
217 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
219 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
221 * config/rs6000/altivec.md (VI_scalar): New mode attr.
222 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
223 vector mode for operand 0, put operand 1 into UNSPEC.
225 2010-12-09 Yao Qi <yao@codesourcery.com>
227 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
228 PREFERRED_RENAME_CLASS.
230 2010-12-08 Ian Lance Taylor <iant@google.com>
232 * doc/sourcebuild.texi (Front End): Remove reference to
233 snapshot-README and snapshot-index.html.
235 2010-12-08 Ian Lance Taylor <iant@google.com>
237 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
238 to update_web_docs_svn.
239 (Front End): Likewise.
241 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
243 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
244 x86_64-*-darwin* to with_cpu:-core2.
245 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
246 with movd for darwin assembler.
247 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
248 (*vec_concatv2di_rex64_sse): Ditto.
250 2010-12-08 Richard Guenther <rguenther@suse.de>
251 Sebastian Pop <sebastian.pop@amd.com>
253 PR tree-optimization/45230
254 PR tree-optimization/45231
255 PR tree-optimization/45370
256 * sese.c (rename_uses): Returns a bool. Call
257 recompute_tree_invariant_for_addr_expr only on the RHS of a
259 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
260 rename_uses returns true.
261 * tree-ssa-copy.c (replace_exp): Add a comment about calling
262 fold_stmt_inplace after replace_exp.
264 2010-12-08 Mike Stump <mikestump@comcast.net>
267 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
268 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
269 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
270 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
271 * collect2.c (post_ld_pass): Add.
273 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
274 (main): Likewise. Call process_args.
276 2010-12-08 Jakub Jelinek <jakub@redhat.com>
279 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
282 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
285 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
286 into a 16-bit instruction.
288 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
291 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
292 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
293 instruction, but do optimize if y is 0.5 or 1./3. since that
294 changes an expensive call into a cheaper one.
296 2010-12-08 Richard Guenther <rguenther@suse.de>
298 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
299 instead of a division to divide by BITS_PER_UNIT.
301 2010-12-08 Richard Guenther <rguenther@suse.de>
303 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
304 when checking is enabled.
306 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
309 * haifa-sched.c (sched_create_recovery_edges): Update
311 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
312 after deleting an empty block.
313 (tidy_control_flow): Also verify dominators.
314 (sel_remove_bb): Update dominator info after removing a block.
315 (sel_redirect_edge_and_branch_force): Assert that no unreachable
316 blocks will be created. Update dominator info.
317 (sel_redirect_edge_and_branch): Update dominator info when
318 basic blocks do not become unreachable.
319 (sel_remove_loop_preheader): Update dominator info.
321 2010-12-07 Richard Guenther <rguenther@suse.de>
323 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
324 Reset alignment information.
325 (bump_vector_ptr): Likewise.
327 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
331 * config/pa/pa.c (pa_function_section): New function.
332 (TARGET_ASM_FUNCTION_SECTION): Define.
334 2010-12-07 Ian Lance Taylor <iant@google.com>
335 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
338 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
340 * configure: Rebuild.
342 2010-12-07 Paul Koning <ni1d@arrl.net>
344 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
345 values with sign rather than as unsigned.
347 2010-12-07 Paul Koning <ni1d@arrl.net>
349 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
350 (pdp11_function_section): New function.
352 2010-12-07 Joseph Myers <joseph@codesourcery.com>
354 * config/mcore/mcore.c Don't include assert.h.
355 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
356 * config/spu/spu.c: Don't include assert.h.
357 (spu_sms_res_mii): Use gcc_assert.
359 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
361 PR tree-optimization/42327
362 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
363 instead of using integer_minus_one_node.
365 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
368 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
369 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
371 2010-12-07 Richard Guenther <rguenther@suse.de>
373 PR tree-optimization/46832
374 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
375 that the call has a lhs.
377 2010-12-07 Yao Qi <yao@codesourcery.com>
379 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
380 * regrename.c (struct du_head): Add new element length.
381 (sort_du_head, get_element, merge, merge_sort_comparison):
382 New functions of merge sort implementation to du_head list.
383 (regrename_optimize): Sort du_head linked list by length.
384 Iterate registers in a preferred-register-first order.
385 Move some code to ...
386 (check_new_reg_p): here. New function.
387 (create_new_chain): Initialize length.
388 (scan_rtx_reg): Increase length for non-debug insns.
389 * target.def: New hook preferred_rename_class.
390 * targhook.c (default_preferred_rename_class): New.
391 * targhook.h: Declare it.
392 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
393 * doc/tm.texi: Regenerate.
395 2010-12-07 Jakub Jelinek <jakub@redhat.com>
398 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
399 instead of BUILTINS_LOCATION.
400 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
402 (create_parallel_loop): Add LOC argument, use it for OMP clauses
403 and GIMPLE_*OMP* statements.
404 (gen_parallel_loop): Determine locus for the parallel loop, pass it
405 to create_loop_fn and create_parallel_loop.
406 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
407 set_curr_insn_source_location (UNKNOWN_LOCATION).
409 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
410 Richard Guenther <rguenther@suse.de>
413 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
414 (bfin_reorder_loops): Change type of index to intptr_t.
416 2010-12-07 Richard Guenther <rguenther@suse.de>
418 PR tree-optimization/46726
419 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
421 2010-12-07 Richard Guenther <rguenther@suse.de>
423 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
426 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
428 * c-parser.c (c_parser_typeof_specifier): Removed special
429 treatment of objc_volatilized attribute for Objective-C.
431 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
433 * ira.c (update_equiv_regs): Prohibit move insns if
434 pressure-sensitive scheduling was done.
436 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
438 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
439 of c_process_expr_stmt() for the iterating and collection
440 expressions of an Objective-C fast enumeration loop.
442 2010-12-06 Jakub Jelinek <jakub@redhat.com>
445 * dwarf2out.c (modified_type_die): If both is_const_type and
446 is_volatile_type is set, start with DW_TAG_const_type or
447 DW_TAG_volatile_type depending on where we get qualified type
448 in the recursive call.
451 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
452 as a store into that register.
454 PR tree-optimization/46528
456 * profile.c (branch_prob): Make sure last is never set to a debug
460 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
463 PR rtl-optimization/46777
464 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
465 also barrier after tablejump.
467 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
468 Richard Henderson <rth@redhat.com>
471 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
473 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
475 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
476 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
478 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
481 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
482 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
483 (int12_operand, int_2word_operand, uint16_operand): Likewise.
484 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
485 (uint5_operand, uint4_operand): Likewise.
486 * config/frv/frv.h (IN_RANGE_P): Delete.
487 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
488 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
489 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
490 (CONST_OK_FOR_P): Likewise.
491 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
492 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
493 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
494 (*movsicc_internal2_float, casesi): Likewise.
495 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
496 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
497 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
498 (frv_split_cond_move, frv_rtx_costs): Likewise.
501 * config/mmix/mmix.c (mmix_intval): Split shift count.
503 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
505 * config/i386/i386.c (m_COREI7): New.
506 (initial_ix86_tune_features): Turn on
507 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
508 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
510 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
512 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
514 * config/i386/driver-i386.c (host_detect_local_cpu): Support
517 * config/i386/i386.c (override_options): Handle "corei7-avx".
519 * doc/invoke.texi: Document corei7-avx.
521 2010-12-06 Richard Guenther <rguenther@suse.de>
523 PR tree-optimization/46806
524 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
525 coalesce different types.
527 2010-12-06 Richard Guenther <rguenther@suse.de>
529 PR tree-optimization/46785
530 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
531 call statements as operand definition.
533 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
535 * doc/tm.texi.in: Fix typo.
536 * doc/tm.texi: Regenerate.
538 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
540 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
543 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
545 * c-family/c-common.h: Removed the declarations of all the objc_
546 callbacks, and moved them into c-objc.h. Removed
547 objc_ivar_visibility_kind and moved it into c-objc.h.
548 * c-family/c-objc.h: New file.
549 * c-family/c-common.c: Include c-objc.h.
550 * c-family/c-format.c: Same change.
551 * c-family/stub-objc.c: Same change.
552 * c-decl.c: Include c-family/c-objc.h.
553 * c-parser.c: Same change.
554 * c-typeck.c: Same change.
555 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
556 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
557 (c-parser.o): same change.
558 (c-typeck.o): Same change.
559 (c-family/c-format.o): Same change.
560 (c-family/stub-objc.o): Same change.
561 (c-family/c-common.o): Same change.
562 (PLUGIN_HEADERS): Added c-family/c-objc.h.
564 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
566 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
567 --with-dwarf2 option.
569 2010-12-03 Jan Hubicka <jh@suse.cz>
571 * lto-streamer-in.c (input_cfg): Fix pasto.
573 2010-12-03 Jan Hubicka <jh@suse.cz>
575 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
576 and functions with user asm defined names.
577 (varpool_externally_visible_p): Do not localize vars with user
580 2010-12-03 Jan Hubicka <jh@suse.cz>
582 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
583 to prevent mangling with lto frontend.
585 2010-12-03 Jan Hubicka <jh@suse.cz>
587 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
588 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
590 2010-12-03 Jan Hubicka <jh@suse.cz>
592 PR tree-optimization/46760
593 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
594 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
595 * lto-cgraph.c (lto_output_edge): Fix assert.
596 (lto_output_node): Output count_materialization_scale.
597 (output_profile_summary): Output only runs and sum_max.
598 (input_node): Input count_materialization_scale.
599 (input_profile_summary): Read data into file specific gcov summary.
600 (merge_profile_summaries): New function.
601 (input_cgraph): Update call of input_profile_summary;
602 call merge_profile_summaries.
603 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
604 rescale counts at read in.
605 (intput_bb): Likewise.
606 (input_function): Update call of input_bb.
607 (lto_read_body): Update call of input_cfg.
608 * lto-streamer.h: Inlclude gcov-io.h
609 (lto_file_decl_data): Add gcov_ctr_summary.
611 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
613 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
614 (Cond Exec Macros): ... to this.
615 * doc/tm.texi: Regenerate.
617 2010-12-03 Jason Merrill <jason@redhat.com>
620 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
623 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
625 * config/arm/arm.c (arm_legitimate_index_p): Split
626 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
627 slightly larger constants in the latter case.
628 (thumb2_legitimate_index_p): Likewise.
630 2010-12-03 Joseph Myers <joseph@codesourcery.com>
632 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
633 * gcc.c (cc1_options): Add %{Qy:}.
635 2010-12-03 Joseph Myers <joseph@codesourcery.com>
637 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
638 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
639 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
641 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
643 PR rtl-optimization/45354
644 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
645 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
646 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
647 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
649 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
651 * basic-block.h (struct edge_prediction): Remove forward
653 * tree-flow.h (struct edge_prediction): Move from here...
654 * predict.c (struct edge_prediction): ...to here.
655 * cselib.h (struct elt_list): Move from here...
656 * cselib.c (struct elt_list): ...to here.
658 2010-12-02 Ian Lance Taylor <iant@google.com>
660 * gcc.c (default_compilers): Add entry for ".go".
661 * common.opt: Add -static-libgo as a driver option.
662 * doc/install.texi (Configuration): Mention libgo as an option for
663 --enable-shared. Mention go as an option for --enable-languages.
664 * doc/invoke.texi (Overall Options): Mention .go as a file name
665 suffix. Mention go as a -x option.
666 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
668 * doc/sourcebuild.texi (Top Level): Mention libgo.
669 * doc/standards.texi (Standards): Add section on Go language.
670 Move references for other languages into their own section.
671 * doc/contrib.texi (Contributors): Mention that I contributed the
674 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
676 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
677 (const_call_expr_arg_iterator_d): Likewise.
678 (expanded_location): Likewise.
679 * c-tree.h (struct c_arg_tag_d): Likewise.
680 * dwarf2out.c (struct cfa_loc): Likewise.
681 (struct skeleton_chain_struct): Likewise.
682 * except.c (struct ttypes_filter): Likewise.
683 * cselib.h (struct cselib_val_struct): Likewise.
684 (elt_loc_list): Likewise.
685 (elt_list): Likewise.
686 * varasm.c (struct addr_const): Likewise.
687 * tree-flow.h (struct edge_prediction): Likewise.
688 (struct int_tree_map): Likewise.
689 (struct _edge_var_map): Likewise.
691 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
694 * config/i386/i386.c (initial_ix86_tune_features): Turn on
695 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
697 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
699 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
701 2010-12-02 Ian Lance Taylor <iant@google.com>
703 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
704 header files unordered_map, tr1/unordered_map, and ext/hash_map.
705 * configure, config.in: Rebuild.
707 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
710 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
711 (sparc_expand_move): Call it to decide whether to emit the special
712 mov{si,di}_pic_label_ref patterns.
713 (sparc_legitimize_pic_address): Call it to decide whether to emit
714 the regular PIC sequence for labels. Fix long line.
715 (sparc_file_end): Set is_thunk for the PIC helper.
717 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
719 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
720 for a non-shared type.
722 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
725 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
726 with MEM_REFs as POINTER_PLUS_EXPR.
728 2010-12-02 Joseph Myers <joseph@codesourcery.com>
730 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
731 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
734 2010-12-02 Joseph Myers <joseph@codesourcery.com>
736 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
737 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
738 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
739 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
740 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
741 * config/sol2.h (LINK_SPEC): Remove %{b}.
742 * config/svr4.h (LINK_SPEC): Remove %{b}.
744 2010-12-02 Joseph Myers <joseph@codesourcery.com>
746 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
747 * config/i386/linux.h (LINK_SPEC): Cut long comment.
748 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
749 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
750 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
751 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
752 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
753 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
754 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
755 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
758 2010-12-02 Joseph Myers <joseph@codesourcery.com>
760 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
763 2010-12-02 Joseph Myers <joseph@codesourcery.com>
765 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
766 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
767 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
768 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
769 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
770 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
771 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
772 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
773 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
774 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
775 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
776 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
777 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
778 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
779 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
780 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
781 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
782 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
784 2010-12-02 Paul Koning <ni1d@arrl.net>
786 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
787 opcodes if CC_NO_OVERFLOW is set.
788 (notice_update_cc_on_set): Correct setting of CC0 as a side
789 effect; set CC_NO_OVERFLOW for cases where C flag is not
792 2010-12-02 Ian Lance Taylor <iant@google.com>
794 * doc/install.texi (Configuration): Update default for
797 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
800 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
803 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
805 PR tree-optimization/45199
806 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
807 (stores_zero_from_loop): Call
808 mem_write_stride_of_same_size_as_unit_type_p.
809 * tree-data-ref.h (stride_of_unit_type_p): New.
810 * tree-loop-distribution.c (generate_memset_zero): Simplified.
811 Call stride_of_unit_type_p.
812 (build_rdg_partition_for_component): Do not call
813 rdg_flag_similar_memory_accesses when
814 flag_tree_loop_distribute_patterns is set.
816 2010-12-02 Richard Guenther <rguenther@suse.de>
818 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
819 sign-changing conversions for induction detection.
821 2010-12-02 Richard Guenther <rguenther@suse.de>
823 PR tree-optimization/46723
824 * tree-vect-loop.c (get_initial_def_for_induction): Strip
825 conversions from the induction evolution and apply it to
827 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
828 assigns for induction defs.
830 2010-12-02 Richard Guenther <rguenther@suse.de>
832 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
833 the case we need to split the edge and not the block.
835 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
837 DFA model for Core 2 and Core i7 scheduling.
839 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
840 * config/i386/i386.c (ix86_option_override_internal): Update entries
841 for Core 2 and Core i7.
842 (ix86_issue_rate): Set issue rate to 3 [be realistic].
843 * config/i386/i386.md: Include "core2.md".
844 (define_attr cpu): Add "corei7".
846 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
848 Define tuning for Core 2 and Core i7.
850 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
851 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
852 (m_CORE2): Replace with m_CORE2_{32,64}.
853 (m_CORE2I7{,_32,_64}): New macros.
854 (m_GENERIC32, m_GENERIC64): Update.
855 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
856 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
857 set m_CORE2I7_64 iff m_GENERIC64.
858 (processor_target_table): Use generic costs for Core 2 and Core i7.
859 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
860 (ix86_issue_rate): Remove entry for Core 2.
861 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
862 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
863 (TARGET_CORE2): Update.
864 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
865 (PROCESSOR_CORE2): Remove.
867 2010-12-02 Richard Guenther <rguenther@suse.de>
869 * lto-streamer.h (LTO_major_version): Bump to 2.
871 2010-12-02 Richard Guenther <rguenther@suse.de>
874 * gimple.c (canonical_type_hash_cache): New hashtable.
875 (gimple_type_hash): Make a wrapper around ...
876 (gimple_type_hash_1): ... this. Take gtc_mode argument.
877 (gimple_canonical_type_hash): Likewise.
878 (gtc_visit): Take a gtc_mode argument.
879 (gimple_types_compatible_p_1): Likewise. Do not compare struct
880 tag names or field names when computing canonical types.
881 (gimple_types_compatible_p): Adjust.
882 (visit): Take a gtc_mode argument.
883 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
884 names or field names when computing hashes of canonical types.
885 (gimple_register_canonical_type): Use gimple_canonical_type_hash
887 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
888 (free_gimple_type_tables): Free canonical_type_hash_cache.
890 2010-12-02 Richard Guenther <rguenther@suse.de>
891 Ira Rosen <irar@il.ibm.com>
893 PR tree-optimization/46663
894 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
895 FUNCTION_DECL exists and that it's a builtin.
897 2010-12-02 Jie Zhang <jie@codesourcery.com>
900 * varasm.c (compute_visible_aliases): Handle user set
903 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
905 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
906 thinko regarding setting -mno-<xxx> debug switches.
907 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
909 2010-12-01 Joseph Myers <joseph@codesourcery.com>
911 * intl.c: Don't include tm.h.
912 * Makefile.in (intl.o): Don't depend on $(TM_H).
914 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
916 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
918 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
920 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
922 * graphite-sese-to-poly.c (analyze_drs): Removed.
923 (build_scop_drs): Do not call analyze_drs.
924 (analyze_drs_in_stmts): New.
926 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
927 (insert_out_of_ssa_copy_on_edge): Same.
928 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
929 (rewrite_phi_out_of_ssa): Same.
930 (rewrite_cross_bb_scalar_dependence): Same.
931 (split_reduction_stmt): Move data references in the new basic blocks.
932 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
934 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
936 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
938 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
941 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
942 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
943 * graphite-poly.h (new_poly_bb): Update declaration.
944 (gbb_from_bb): Moved here...
946 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
948 (graphite_stmt_p): Removed.
949 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
950 sbitmap reductions. Always build a gimple_bb_p. Do not call
952 (build_scop_bbs_1): Do not pass in sbitmap reductions.
953 (build_scop_bbs): Same.
954 (gbb_from_bb): ... from here.
955 (add_conditions_to_constraints): Moved up.
957 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
958 not contain data references.
959 (new_pbb_from_pbb): New.
960 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
962 (rewrite_close_phi_out_of_ssa): Update call to
963 insert_out_of_ssa_copy_on_edge.
964 (rewrite_reductions_out_of_ssa): Now static.
965 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
967 (split_reduction_stmt): Call split_pbb.
968 (translate_scalar_reduction_to_array): Pass in the scop, do not
969 pass in the sbitmap reductions.
970 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
971 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
972 (rewrite_commutative_reductions_out_of_ssa): Same.
973 (build_poly_scop): Call build_scop_bbs,
974 rewrite_commutative_reductions_out_of_ssa,
975 rewrite_reductions_out_of_ssa, and
976 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
978 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
980 (rewrite_reductions_out_of_ssa): Same.
981 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
982 (build_scop_bbs): Same.
983 * graphite.c (graphite_transform_loops): Do not initialize reductions.
984 Do not call build_scop_bbs,
985 rewrite_commutative_reductions_out_of_ssa,
986 rewrite_reductions_out_of_ssa, and
987 rewrite_cross_bb_scalar_deps_out_of_ssa.
988 * sese.h (struct gimple_bb): Add field pbb.
991 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
993 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
995 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
996 handle_scalar_deps_crossing_scop_limits.
997 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
998 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1000 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1002 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1003 when replacing a constant in an ADDR_EXPR.
1005 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1007 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1009 (lst_do_strip_mine): Same.
1010 (scop_do_strip_mine): Same.
1011 * graphite-poly.c (apply_poly_transforms): Update call to
1013 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1015 2010-12-01 Jan Hubicka <jh@suse.cz>
1017 * tree.c (build_common_builtin_nodes): Do not initialize
1018 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1019 * builtins.c (expand_builtin_profile_func): Remove.
1020 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1021 BUILT_IN_PROFILE_FUNC_EXIT.
1022 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1023 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1024 * gimplify.c (gimplify_function_tree): Reorganize code calling
1025 profiling functions.
1027 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1029 * opts.c: Expand comment on tm.h include.
1031 2010-12-01 Yao Qi <yao@codesourcery.com>
1033 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1034 VFP_D0_D7_REGS classes.
1036 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1038 * common.opt (flag_stack_check): New Variable entry.
1039 (fcompare-debug-second): Use Var.
1040 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1041 * opts.c (flag_compare_debug): Remove.
1042 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1043 Set opts->x_flag_stack_check for OPT_fstack_check_.
1044 * toplev.c (flag_stack_check): Remove.
1046 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1048 * common.opt (main_input_filename, main_input_basename,
1049 main_input_baselength): New Variable entries. From toplev.c.
1050 * final.c (output_quoted_string): Move from toplev.c.
1051 * output.h (output_quoted_string): Move from toplev.h.
1052 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1053 access main_input_filename, main_input_baselength and
1054 main_input_basename.
1055 * targhooks.c: Include intl.h and opts.h.
1056 (option_affects_pch_p, default_get_pch_validity): Move from
1058 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1060 * toplev.c (main_input_filename, main_input_basename,
1061 main_input_baselength): Move to common.opt.
1062 (output_quoted_string): Move to final.c.
1063 (warn_deprecated_use): Move to tree.c.
1064 (option_affects_pch_p, default_get_pch_validity,
1065 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1066 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1067 (warn_deprecated_use): Move to tree.h.
1068 (output_quoted_string): Move to output.h.
1069 (main_input_filename, main_input_basename, main_input_baselength):
1071 (default_get_pch_validity, default_pch_valid_p): Move to
1073 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1074 * tree.c (warn_deprecated_use): Move from toplev.c.
1075 * tree.h (warn_deprecated_use): Move from toplev.h.
1076 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1077 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1078 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1079 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1080 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1081 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1082 config/mcore/mcore.c, config/mep/mep.c,
1083 config/microblaze/microblaze.c, config/mips/mips.c,
1084 config/mmix/mmix.c, config/mn10300/mn10300.c,
1085 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1086 config/picochip/picochip.c, config/s390/s390.c,
1087 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1088 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1089 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1090 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1091 varasm.c, xcoffout.c: Don't include toplev.h.
1092 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1093 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1094 varasm.o, xcoffout.o): Update dependencies.
1095 * config/arm/t-arm (arm.o): Update dependencies.
1096 * config/spu/t-spu-elf (spu.o): Update dependencies.
1098 2010-12-01 Richard Guenther <rguenther@suse.de>
1100 PR tree-optimization/46730
1101 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1103 2010-11-30 Ian Lance Taylor <iant@google.com>
1105 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1106 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1107 * config/i386/linux64.h (ASM_SPEC): Likewise.
1108 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1109 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1110 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1111 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1112 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1113 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1115 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1117 * c-decl.c (finish_function): Call objc_finish_function in
1119 * c-typeck.c (convert_for_assignment): Do not call
1120 objc_type_quals_match().
1122 2010-11-30 Richard Guenther <rguenther@suse.de>
1124 PR tree-optimization/46722
1125 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1126 operands as arguments.
1127 (execute_optimize_widening_mul): Also handle power of two as
1130 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1133 * cgraphunit.c (process_function_and_variable_attributes): Fix
1136 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1138 * hwint.c: New. Extracted from toplev.c.
1139 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1141 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1143 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1145 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1146 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1147 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1148 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1149 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1150 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1151 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1152 tree-vrp.c: Don't include toplev.h.
1153 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1154 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1155 toplev.h in generated output.
1156 * Makefile.in (OBJS-common): Add hwint.o.
1157 Dependencies for above files changed to remove toplev.h.
1159 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1160 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1162 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1163 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1165 2010-11-30 Richard Guenther <rguenther@suse.de>
1167 PR tree-optimization/46717
1168 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1169 call. Manually create EH edges for the direct call and update
1172 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1174 * diagnostic-core.h: Include bversion.h.
1175 * toplev.h: Don't include input.h or bversion.h.
1176 (parse_optimize_options): Don't declare here.
1177 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1178 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1179 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1180 config/host-darwin.c, config/i386/host-cygwin.c,
1181 config/i386/host-mingw32.c, config/i386/msformat-c.c,
1182 config/i386/netware.c, config/i386/nwld.c,
1183 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1184 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1185 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1186 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1187 config/score/score3.c, config/score/score7.c,
1188 config/sh/symbian-base.c, config/sh/symbian-c.c,
1189 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1190 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1191 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1192 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1193 graphite-blocking.c, graphite-clast-to-gimple.c,
1194 graphite-dependences.c, graphite-flattening.c,
1195 graphite-interchange.c, graphite-poly.c,
1196 graphite-scop-detection.c, graphite.c, haifa-sched.c,
1197 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1198 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1199 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1200 lto-opts.c, lto-section-in.c, lto-section-out.c,
1201 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1202 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1203 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1204 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1205 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1206 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1207 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1208 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1209 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1210 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1211 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1213 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
1214 toplev.h. Dependencies for above files and c-family files changed
1215 to remove $(TOPLEV_H) or toplev.h.
1216 (C_TREE_H): Don't include $(TOPLEV_H).
1217 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
1219 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1220 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1221 config/t-darwin, config/t-sol2,
1222 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1223 Dependencies for above files changed to remove $(TOPLEV_H) or
1226 2010-11-30 Richard Guenther <rguenther@suse.de>
1229 * gcc.c (main): Use the first input with a compiler as infile
1230 for link spec processing.
1232 2010-11-30 Richard Guenther <rguenther@suse.de>
1235 * cgraphunit.c (ipa_passes): Stop after errors from
1238 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
1240 * gcc-plugin.h: Include coretypes.h.
1241 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1243 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1245 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1246 * ggc-none.c (ggc_internal_alloc_zone_stat)
1247 (ggc_internal_cleared_alloc_zone_stat): New.
1249 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1251 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1252 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1253 (rs6000_emit_prologue): Don't set PIC register if
1254 TARGET_SINGLE_PIC_BASE.
1255 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1256 * doc/invoke.texi (msingle-pic-base): Document.
1258 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
1261 * exec-tool.in (id): New.
1262 Check and export LT_RCU_$id instead of LT_RCU.
1264 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
1266 PR tree-optimization/46675
1267 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1268 in offset calculation.
1270 2010-11-29 Jan Hubicka <jh@suse.cz>
1272 * collect2.c (main): Do not imply verbose output with
1273 LTO and linker plugin.
1275 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1277 * dwarf2out.c (print_die): Print the address of the current DIE or
1278 of any DIE referenced by the current one.
1280 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1283 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1285 (scope_die_for, gen_type_die_for_member): Replace uses of
1286 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1288 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1290 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1291 (darwin_asm_declare_object_name): Correct spelling.
1292 (darwin_output_aligned_bss): Likewise.
1294 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1295 Mike Stump <mrs@gcc.gnu.org>
1300 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1301 (ASM_OUTPUT_LOCAL): Likewise.
1302 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1303 (darwin_output_aligned_bss): Likewise.
1304 (darwin_asm_output_aligned_decl_local): Likewise.
1305 (darwin_asm_output_aligned_decl_common): Likewise.
1306 (darwin_use_anchors_for_symbol_p): Likewise.
1307 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1308 (TARGET_ASM_OUTPUT_ANCHOR): Define.
1309 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1310 (DARWIN_SECTION_ANCHORS): Set to 1.
1311 * config/darwin.c (emit_aligned_common): New var.
1312 (darwin_init_sections): Check that the Darwin private zero-size section
1314 (darwin_text_section): Check for zero-sized objects.
1315 (darwin_mergeable_string_section): Likewise.
1316 (darwin_mergeable_constant_section): Likewise.
1317 (machopic_select_section): Adjust to check for zero-sized objects.
1318 Assert that OBJC meta data are non-zero sized.
1319 (darwin_asm_declare_object_name): New.
1320 (darwin_asm_declare_constant_name): Adjust for zero-sized
1322 (BYTES_ZFILL): Define.
1323 (darwin_emit_weak_or_comdat): New.
1324 (darwin_emit_local_bss): New.
1325 (darwin_emit_common): New.
1326 (darwin_output_aligned_bss): New.
1327 (darwin_asm_output_aligned_decl_common): New.
1328 (darwin_asm_output_aligned_decl_local): New.
1329 (darwin_file_end): Disable subsections_via_symbols when section
1330 anchoring is active.
1331 (darwin_asm_output_anchor): Re-enable.
1332 (darwin_use_anchors_for_symbol_p): New.
1333 (darwin_override_options): Check for versions that can emit
1334 aligned common. Update usage of flags to current.
1335 * config/darwin-sections.def: Update comments and flags for
1336 non-anchor sections. zobj_const_section, zobj_data_section,
1337 zobj_bss_section, zobj_const_data_section: New.
1338 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1339 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1340 (L2_MAX_OFILE_ALIGNMENT): Define.
1341 (ASM_OUTPUT_ALIGNED_BSS): Define.
1342 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1343 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1344 (SECTION_NO_ANCHOR): Define.
1345 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1346 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1348 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1350 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1351 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1352 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1353 Conditionally define.
1354 (GET_ENVIRONMENT): Poison.
1355 * configure.ac: Don't test for mincore.
1356 * configure: Regenerate.
1357 * config.in: Regenerate.
1358 * collect2-aix.c: Don't include <sys/mman.h>.
1359 * collect2.c: Don't include <signal.h>.
1360 (SIGCHLD): Don't define.
1361 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1362 * config/alpha/alpha.c: Include "splay-tree.h" instead of
1364 * config/arm/arm.c (arm_target_help): Use getenv instead of
1366 * config/avr/driver-avr.c: Don't include <stdlib.h>.
1367 * config/frv/frv.c: Don't include <ctype.h>.
1368 * config/host-darwin.c: Don't include <sys/mman.h>.
1369 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1370 (MAP_FAILED): Don't define.
1371 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1372 * config/host-solaris.c: Don't include <sys/mman.h>.
1373 * config/i386/cygming.h: Don't include <stdio.h>.
1374 * config/i386/driver-i386.c: Don't include <stdlib.h>.
1375 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1376 * config/iq2000/iq2000.c: Don't include <signal.h>.
1377 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1378 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1379 * config/mep/mep-pragma.c: Don't include <stdio.h>.
1380 * config/microblaze/microblaze.c: Don't include <signal.h>.
1381 * config/mips/mips.c: Don't include <signal.h>.
1382 * config/rs6000/host-darwin.c: Don't include <signal.h>.
1383 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1384 * defaults.h (GET_ENVIRONMENT): Don't define.
1385 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1386 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1387 (SIGCHLD, MAP_FAILED, kill): Don't define.
1388 (process_command): Use getenv instead of GET_ENVIRONMENT.
1389 * genhooks.c: Don't include <string.h>.
1390 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1392 (MAP_FAILED): Don't define.
1393 * ggc-page.c Don't include <sys/mman.h>.
1394 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1395 * ggc-zone.c: Don't include <sys/mman.h>.
1396 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1397 * graph.c: Include "config.h" instead of <config.h>.
1398 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1399 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1400 (SIGCHLD, kill): Don't define.
1401 * mips-tfile.c: Don't include <signal.h>.
1402 * opts.c: Don't include <signal.h> or <sys/resource.h>.
1403 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1404 * passes.c: Don't include <signal.h>, <sys/resource.h> or
1406 * sparseset.h: Don't include <assert.h>.
1407 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1408 * tlink.c: Don't include "libiberty.h".
1409 * toplev.c: Don't include <signal.h> or <sys/times.h>.
1410 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1411 * tree-switch-conversion.c: Don't include <signal.h>.
1412 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1414 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1416 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1417 c_parser_objc_try_catch_finally_statement for consistency with the
1418 C++ parser. Parse @catch(...) and pass NULL_TREE to
1419 objc_begin_catch_clause() in that case. Improved error recovery.
1420 Reorganized code to be almost identical to
1421 cp_parser_objc_try_catch_finally_statement.
1423 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
1425 PR tree-optimization/46621
1426 * gimple.h: Don't include tm.h or hard-reg-set.h .
1427 * Makefile.in (GIMPLE_H): Remove $(TM_H).
1430 * cppbuiltin.c: Include target.h .
1431 (define_builtin_macros_for_type_sizes):
1432 Use targetm.float_words_big_endian.
1434 2010-11-27 Jan Hubicka <jh@suse.cz>
1436 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1437 and output cold_text_section_label.
1438 (dwarf2out_init): Don't do that there.
1439 (dwarf2out_finish): Handle cold section end label only if cold
1442 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
1444 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1447 2010-11-27 Richard Guenther <rguenther@suse.de>
1449 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1450 (gimple_assign_ssa_name_copy_p): Likewise.
1451 (gimple_assign_unary_nop_p): Use is_gimple_assign.
1452 (is_gimple_cast): Remove.
1453 (gimple_assign_single_p): Move ...
1454 * gimple.h (gimple_assign_single_p): ... here.
1455 (is_gimple_cast): Remove.
1456 (gimple_assign_rhs_code): Simplify.
1457 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1458 instead of is_gimple_cast.
1459 * ipa-type-escape.c (look_for_casts): Likewise.
1461 2010-11-26 Joseph Myers <joseph@codesourcery.com>
1463 * doc/options.texi (Enum, EnumValue): Document new record types.
1464 (Enum): Document new option flag.
1466 * optc-gen.awk: Handle enumerated option arguments.
1467 * opth-gen.awk: Handle enumerated option arguments.
1468 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1469 enum_value_to_arg): New.
1470 (decode_cmdline_option): Handle enumerated arguments.
1471 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1472 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1473 * opts.c (print_filtered_help, print_specific_help): Take
1474 lang_mask arguments.
1475 (print_filtered_help): Handle printing values of enumerated
1476 options. Print possible arguments for enumerated options.
1477 (print_specific_help): Update call to print_filtered_help.
1478 (common_handle_option): Update calls to print_specific_help. Use
1479 value rather than arg for OPT_fdiagnostics_show_location_. Don't
1480 handle OPT_ffp_contract_, OPT_fexcess_precision_,
1481 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1482 OPT_fira_region_ here.
1483 * opts.h (enum cl_var_type): Add CLVC_ENUM.
1484 (struct cl_option): Add var_enum.
1485 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1486 struct cl_enum, cl_enums, cl_enums_count): New.
1487 (CL_ERR_ENUM_ARG): Define.
1488 (CL_ERR_NEGATIVE): Update value.
1489 (enum_value_to_arg): Declare.
1490 * common.opt (flag_ira_algorithm, flag_ira_region,
1491 flag_fp_contract_mode, flag_excess_precision_cmdline,
1492 default_visibility, flag_tls_default): Remove Variable entries.
1493 (help_enum_printed): New Variable.
1494 (fdiagnostics-show-location=): Use Enum. Add associated
1495 SourceInclude, Enum and EnumValue entries.
1496 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1497 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
1498 associated Enum and EnumValue entries.
1500 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
1503 * config/microblaze/microblaze.c (microblaze_block_move_straight):
1505 (microblaze_option_override): Don't use C++ style comments.
1506 (save_restore_insns): Remove unused variable base_offset.
1507 (microblaze_expand_prologue): Remove unused variable insn.
1508 (microblaze_secondary_reload): Adjust type to match target.h .
1509 (microblaze_elf_in_small_data_p): Move declarations to start of block.
1510 (microblaze_expand_move): Likewise.
1511 * config/microblaze/microblaze.h (LARGE_INT):
1512 Avoid signed / unsigned comparisons.
1513 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1514 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1515 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
1517 2010-11-26 Michael Matz <matz@suse.de>
1519 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1521 * passes.c (init_optimization_passes): Remove superfluous
1524 2010-11-26 Richard Guenther <rguenther@suse.de>
1527 * gimple.c (gtc_visit): Do not return true for members of an
1528 SCC still being processed but the current lattice value of
1529 the member. Treat SCC members comparison state as lattice,
1530 starting at equal, eventually dropping to unequal.
1531 (gimple_types_compatible_p_1): Likewise.
1533 2010-11-26 Richard Guenther <rguenther@suse.de>
1536 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1537 for location list processing.
1539 2010-11-26 Richard Guenther <rguenther@suse.de>
1542 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1545 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1547 * config/s390/s390.c (print_operand_address): Replace assert with
1549 (print_operand): Replace assertions, gcc_unreachable and
1550 fatal_insn with error messages.
1552 2010-11-26 Richard Guenther <rguenther@suse.de>
1554 PR tree-optimization/46665
1555 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1557 2010-11-26 Ian Bolton <ian.bolton@arm.com>
1559 * config/arm/arm.c (arm_option_override): enable loop array
1560 prefetching at -O3 for suitable targets, and configure params.
1561 * config/arm/arm-protos.h (struct tune_params): Add fields for
1562 configuring loop array prefetching.
1564 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
1566 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1568 2010-11-26 Richard Guenther <rguenther@suse.de>
1570 PR tree-optimization/46664
1571 * tree-affine.c (aff_combination_to_tree): Add rest last.
1573 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1576 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1577 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1578 * configure: Regenerated.
1579 * exec-tool.in: Not quoting command, may have extra arguments.
1581 2010-11-26 Richard Guenther <rguenther@suse.de>
1583 PR tree-optimization/46528
1585 * profile.c (branch_prob): Do not split blocks based on locations
1586 from debug statements.
1588 2010-11-26 Jakub Jelinek <jakub@redhat.com>
1591 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1592 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
1595 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1596 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1597 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1598 build6_loc): Define.
1599 * fold-const.c (protected_set_expr_location_unshare): New inline.
1600 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1601 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1602 pedantic_omit_one_operand_loc, omit_two_operands_loc,
1603 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1604 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1605 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1606 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1607 instead of buildN followed by SET_EXPR_LOCATION or
1608 protected_set_expr_location.
1609 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1610 Use buildN_stat_loc instead of buildN_stat followed by
1613 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
1615 * Makefile.in (s-tm-texi): Remove spurous tab.
1617 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1620 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1623 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1625 * toplev.c (finalize): Add no_backend parameter. Don't finish
1626 passes when preprocessing only. Adjust...
1627 (do_compile): ... caller.
1629 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1631 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1632 flag_unsafe_math_optimizations.
1634 Move fnegabs related patterns together. Only use fmpynfadd instruction
1635 to negate a multiply if !flag_signed_zeros is true.
1637 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
1639 * gengtype-state.c (read_state_structures): Initialize "previous".
1641 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
1642 Jeremie Salvucci <jeremie.salvucci@free.fr>
1644 * gengtype-state.c: Add new file.
1646 * gengtype.c (type count): New variable.
1647 (new_structure, find_param_structure, create_pointer)
1648 (create_array): Use it to set state_number in types.
1649 (dump_everything): Improve comment.
1650 (main): Call read_state and write_state. Print type_count.
1652 * gengtype.h (type_lineloc): New function.
1653 (read_state, write_state): New declarations.
1655 * Makefile.in (GENGTYPE_FLAGS): New variable.
1656 (s-gtype): Run gengtype twice and generate gtype.state.
1657 (build/gengtype-state.o): New rule.
1658 (build/gengtype$(build_exeext)): Link gengtype-state.o.
1659 (mostlyclean): Update comment. Remove gtype.state.
1661 2010-11-25 Jakub Jelinek <jakub@redhat.com>
1664 * combine.c (try_combine): When substing i2dest for i2src, pass
1665 1 as last argument even if
1666 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1668 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
1671 * builtins.c (target_char_cast): Check INTEGER_CST instead of
1672 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
1674 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1676 * target.def (supports_split_stack, except_unwind_info): Take
1677 gcc_options parameters.
1678 * targhooks.c (default_except_unwind_info,
1679 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1680 gcc_options parameters.
1681 * targhooks.h (default_except_unwind_info,
1682 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1684 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1685 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1686 Document that hooks must not be modified.
1687 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1688 * doc/tm.texi: Regenerate.
1689 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1690 &global_options to targetm.except_unwind_info.
1691 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1692 dwarf2out_begin_prologue, dwarf2out_frame_init,
1693 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1694 &global_options to targetm.except_unwind_info.
1695 * except.c (init_eh, finish_eh_generation,
1696 gate_convert_to_eh_region_ranges,
1697 output_one_function_exception_table): Pass &global_options to
1698 targetm.except_unwind_info.
1699 * expr.c (build_personality_function): Pass &global_options to
1700 targetm.except_unwind_info.
1701 * function.c (expand_function_end): Pass &global_options to
1702 targetm.except_unwind_info.
1703 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1704 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1705 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1706 and targetm.supports_split_stack. Remove assertions about opts
1708 (common_handle_option): Remove assertions about opts, opts_set and dc.
1709 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1710 &global_options to targetm.except_unwind_info.
1711 * tree.c (build_common_builtin_nodes: Pass &global_options to
1712 targetm.except_unwind_info.
1713 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1714 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1715 thumb1_expand_prologue, thumb1_output_function_prologue,
1716 arm_unwind_emit, arm_output_fn_unwind): Update calls to
1717 arm_except_unwind_info.
1718 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1720 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1722 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1723 ia64_reorg, ia64_asm_unwind_emit): Update calls to
1724 ia64_except_unwind_info.
1725 * config/pa/pa.c (pa_option_override): Pass &global_options to
1726 targetm.except_unwind_info.
1727 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1730 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
1732 * cgraphunit.c (process_function_and_variable_attributes):
1733 Mark dllexport-ed function/variables as needed.
1734 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1735 as externally visible.
1737 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1739 PR rtl-optimization/46585
1740 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1741 (vinsn_init): Skip computation of dependencies for local NOPs.
1742 (vinsn_delete): Don't try to free regsets for local NOPs.
1743 (setup_nop_and_exit_insns): Change definition of nop_pattern.
1745 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1747 PR rtl-optimization/46602
1748 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1749 (tidy_control_flow): Here.
1751 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
1752 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1755 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1756 Fix target.def pathname in timestamp comparison.
1758 2010-11-24 Richard Henderson <rth@redhat.com>
1760 * config/ia64/predicates.md (pmpyshr_operand): New.
1761 * config/ia64/ia64.c (ia64_expand_unpack): New.
1762 (ia64_expand_widen_mul_v4hi): New.
1763 (ia64_expand_widen_sum): Update for pattern renames.
1764 (ia64_expand_dot_prod_v8qi): Likewise.
1765 * config/ia64/ia64-protos.h: Update.
1766 * config/ia64/vect.md (vecwider): New mode attribute.
1767 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1768 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1769 (pmpyshr2, pmpyshr2_u): New.
1770 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1771 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1773 (vec_pack_ssat_v4hi): Rename from pack2_sss.
1774 (vec_pack_usat_v4hi): Rename from *pack2_uss.
1775 (vec_pack_ssat_v2si): Rename from pack4_sss.
1776 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1777 vec_select operation.
1778 (vec_interleave_highv8qi): Similarly.
1779 (mux1_alt): Rename from *mux1_alt.
1780 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1781 (vec_interleave_lowv4hi): Rename from unpack2_l.
1782 (vec_interleave_highv4hi): Rename from unpack2_h.
1783 (mix2_r): Rename from *mix2_r.
1784 (mix2_l): Similarly.
1785 (vec_extract_evenodd_helper): New.
1786 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1787 (vec_interleave_lowv2si): Rename from *unpack4_l.
1788 (vec_interleave_highv2si): Rename from *unpack4_h.
1789 (vec_extract_evenv2si, vec_extract_oddv2si): New.
1790 (vec_interleave_lowv2sf): Rename from fmix_r.
1791 (vec_interleave_highv2sf): Rename from *fmix_l.
1792 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1793 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1794 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1795 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1797 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1799 * targhooks.c (default_except_unwind_info): Remove
1800 MUST_USE_SJLJ_EXCEPTIONS case.
1801 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1802 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1803 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1804 * doc/tm.texi: Regenerate.
1805 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1807 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1809 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1810 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1811 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1812 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1813 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1815 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1818 * config/i386/i386.c (ix86_expand_call): Don't check
1821 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1824 * config/i386/i386.c (upper_128bits_state): New.
1825 (block_info_def): Remove upper_128bits_set and done. Add state,
1826 referenced, count, processed and rescanned.
1827 (check_avx256_stores): Updated.
1828 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1829 Call note_stores only if needed. Set referenced and count.
1830 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
1831 (rescan_move_or_delete_vzeroupper): New.
1832 (move_or_delete_vzeroupper): Process and rescan all all basic
1833 blocks instead of predecessor blocks of all exit points.
1834 (ix86_option_override_internal): Enable vzeroupper optimization
1835 only for -fexpensive-optimizations and not optimizing for size.
1836 (use_avx256_p): Removed.
1837 (init_cumulative_args): Don't set use_avx256_p.
1838 (ix86_function_arg): Likewise.
1839 (ix86_expand_move): Likewise.
1840 (ix86_expand_vector_move_misalign): Likewise.
1841 (ix86_local_alignment): Likewise.
1842 (ix86_minimum_alignment): Likewise.
1843 (ix86_expand_epilogue): Don't check use_avx256_p when generating
1845 (ix86_expand_call): Likewise.
1847 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1848 and use_avx256_p. Add rescan_vzeroupper_p.
1850 2010-11-24 Joseph Myers <joseph@codesourcery.com>
1852 * toplev.c: Include <signal.h>.
1854 2010-11-24 Richard Guenther <rguenther@suse.de>
1857 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1858 conflicting function signatures as non-inlineable.
1860 2010-11-24 Jakub Jelinek <jakub@redhat.com>
1862 PR rtl-optimization/46614
1863 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1864 (deps_analyze_insn): Mark JUMP_INSNs in
1865 last_pending_memory_flush that weren't added through
1866 flush_pending_lists with NON_FLUSH_JUMP_KIND.
1867 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1868 on INSN_LIST instead of JUMP_P check on its operand.
1869 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1871 2010-11-24 Richard Guenther <rguenther@suse.de>
1873 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1875 2010-11-24 Richard Guenther <rguenther@suse.de>
1878 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1879 a FIELD_DECL that is type correct issue a warning and fixup
1880 with a VIEW_CONVERT_EXPR.
1882 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
1884 * doc/invoke.texi (Options for Debugging Your Program or GCC):
1885 Explain static numbering of dump files.
1887 2010-11-24 Joseph Myers <joseph@codesourcery.com>
1889 * common.opt (user_vect_verbosity_level): New Variable entry.
1890 (ftree-vectorizer-verbose=): Mark as UInteger.
1891 * flag-types.h (enum vect_verbosity_levels): Move from enum
1892 verbosity_levels in tree-vectorizer.h.
1893 * opts.c: Don't include tree.h.
1894 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
1895 gcc_options parameter; take integer option argument.
1896 (common_handle_option): Update call to vect_set_verbosity_level.
1897 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1898 (vect_set_verbosity_level): Move to opts.c.
1899 (vect_verbosity_level, vect_print_dump_info): Update for change of
1901 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1902 (vect_print_dump_info): Update for change of enum name.
1903 * tree.h (vect_set_verbosity_level): Remove.
1904 * Makefile.in (opts.o): Update dependencies.
1906 2010-11-24 Jakub Jelinek <jakub@redhat.com>
1909 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1910 instead of insn with any_condjump_p.
1912 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
1914 * config/mips/loongson.md: Change the description comment of the file
1915 and update the copyright years.
1916 (define_insn "<u>div<mode>3): Add loongson3a support.
1917 (define_insn "<u>mod<mode>3"): Likewise.
1918 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1919 mul<mode>3_mul3_loongson.
1920 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1921 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1923 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1925 * common.opt (initial_max_fld_align, flag_debug_asm,
1926 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1927 flag_print_asm_name, graph_dump_format, help_printed,
1928 help_columns, flag_opts_finished): New Variable entries.
1929 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1930 frandom-seed=): Mark deferred.
1931 (fsched-verbose=): Use UInteger and Var.
1932 * flags.h (set_struct_debug_option, flag_print_asm_name,
1933 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1934 graph_dump_format): Don't declare here.
1935 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1936 * opts-global.c: Include dbgcnt.h and debug.h.
1937 (decode_options): Pass location to finish_options.
1938 (handle_common_deferred_options): Check flag_dump_all_passed.
1939 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1940 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
1942 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1943 (set_struct_debug_option): Add location_t parameter. Update
1944 recursive call. Use error_at.
1945 (default_options_optimization): Use error_at.
1946 (finish_options): Add location_t parameter. Use
1947 opts->x_flag_opts_finished instead of first_time_p. Use
1948 opts->x_optimize instead of optimize. Use error_at. Pass
1950 (print_filtered_help): Use opts->x_help_printed to track what
1951 options have been printed.
1952 (print_specific_help): Use opts->x_help_columns to track number of
1954 (common_handle_option): Pass locations and gcc_options pointers to
1955 more functions. Use warning_at instead of fnotice and warning.
1956 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1957 OPT_fdebug_prefix_map_. Use error_at. Set
1958 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1959 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
1960 OPT_fsched_verbose_.
1961 (handle_param): Add location_r parameter. Use error_at.
1962 (set_debug_level): Add location_r parameter. Use error_at and
1964 (setup_core_dumping): Add diagnostic_context parameter.
1965 (decode_d_option): Add gcc_options, location_t and
1966 diagnostic_context parameters and use them instead of global
1967 state. Use warning_at.
1968 (enable_warning_as_error): Use error_at.
1969 * opts.h (finish_options): Update prototype.
1970 (set_struct_debug_option): Declare here.
1971 * rtl.h (fix_sched_param): Remove.
1972 * stor-layout.c (initial_max_fld_align): Remove.
1973 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1974 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1975 (process_options): Set maximum_field_alignment.
1976 * tree.h (initial_max_fld_align) Don't declare here.
1977 * Makefile.in (opts.o, opts-global.o): Update dependencies.
1979 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1981 * flag-types.h (struct visibility_flags): Don't declare here.
1982 * flags.h (strip_off_ending, fast_math_flags_set_p,
1983 fast_math_flags_struct_set_p): Declare here.
1984 (visibility_options): Don't declare here.
1985 * opts-common.c (option_enabled, get_option_state): Move from
1987 * opts-global.c: Include diagnostic.h instead of
1988 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
1990 (const_char_p, ignored_options, in_fnames, num_in_fnames,
1991 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1992 print_ignored_options, unknown_option_callback,
1993 post_handling_callback, lang_handle_option, add_input_filename,
1994 read_cmdline_options, initial_lang_mask, init_options_once,
1995 decode_cmdline_options_to_array_default_mask,
1996 set_default_handlers, decode_options): Move from opts.c.
1997 (print_ignored_options): Use warning_at instead of saving and
1998 restoring input_location.
1999 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2000 instead of expr.h. Don't include langhooks.h, except.h or
2001 lto-streamer.h. Add more comments on includes.
2002 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2004 (visibility_options): Move to c-family/c-common.c.
2005 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2006 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2007 print_ignored_options, unknown_option_callback,
2008 post_handling_callback, lang_handle_option, add_input_filename,
2009 read_cmdline_options, initial_lang_mask, init_options_once,
2010 decode_cmdline_options_to_array_default_mask,
2011 set_default_handlers, decode_options): Move to opts-global.c.
2012 (target_handle_option, default_options_optimization,
2013 finish_options, common_handle_option): Remove static.
2014 (option_enabled, get_option_state): Move to opts-common.c.
2015 * opts.h (common_handle_option, target_handle_option,
2016 finish_options, default_options_optimization): Declare.
2017 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2018 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2020 * toplev.h (strip_off_ending, decode_d_option,
2021 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2023 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2025 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2028 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2029 options, replace by call of pass-through-libs spec function to process
2030 link_gcc_c_sequence spec.
2031 (lto_libgcc_spec): Delete variable.
2032 (static_specs[]): Remove related entry.
2033 (static_spec_functions[]): Add new entry for pass-through-libs.
2034 (main): Don't generate deleted lto_libgcc_spec.
2035 (pass_through_libs_spec_func): New function to implement the new
2036 pass-through-libs spec function.
2037 * doc/invoke.texi (pass-through-libs): Document new spec function.
2039 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2041 * doc/options.texi (Warning, Optimization): Document.
2043 2010-11-23 Jan Hubicka <jh@suse.cz>
2045 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2046 (tree_decl_with_vis): Add implicit_section_name_p.
2047 * targhooks.h (default_function_section): Declare.
2048 * target.def (function_section): New hook.
2049 * defaults.h (HOT_TEXT_SECTION_NAME,
2050 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2051 * predict.c (choose_function_section): Remove.
2052 (estimate_bb_frequencies): Do not use choose_function_section.
2053 * coretypes.h (enum node_frequency): Move here from cgraph.h
2054 * cgraph.h (enum node_frequency): Remove.
2055 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2056 unlikely_text_section_p): Remove.
2057 (named_subsection_entry): New structure.
2058 (get_text_section): New function.
2059 (default_function_section): New function.
2060 (function_section_1): Break out from ...; handle profile info.
2061 (function_section): ... here.
2062 (unlikely_text_section): Remove.
2063 (unlikely_text_section_p): Use function_section_1.
2064 (assemble_start_function): Do not initialize cold section.
2065 (default_section_type_flags): Do not special case cold subsection.
2066 (switch_to_section): Likewise.
2067 * output.h (get_text_section): Define.
2068 * config/i386/winnt.c: Do not special case cold section.
2069 * config/darwin-protos.h (darwin_function_section): Declare.
2070 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2071 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2072 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2073 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2074 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2075 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2076 * config/darwin.c (machopic_select_section): Use
2077 darwin_function_section.
2078 (darwin_function_section): New function.
2079 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2080 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2081 (TARGET_ASM_FUNCTION_SECTION): Define.
2082 * system.h (HOT_TEXT_SECTION_NAME,
2083 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2085 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2087 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2088 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2090 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2093 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2094 following unconditional jumps.
2096 2010-11-23 Richard Guenther <rguenther@suse.de>
2098 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2100 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2101 Jeremie Salvucci <jeremie.salvucci@free.fr>
2103 * gengtype.c (enum typekind, struct options)
2104 (struct nested_ptr_data, struct pair, NUM_PARAM)
2105 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2107 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2108 Remove static, add zero state_number.
2109 (typedefs, structures, param_structs, variables): Remove static.
2110 (create_option): Remove.
2111 (create_string_option, create_type_option, create_nested_option):
2113 (create_nested_ptr_option): Use create_nested_option.
2114 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2115 new create*option functions.
2116 (process_gc_options): Adjust for discriminated option.
2117 (output_mangled_typename): Handle TYPE_NONE.
2118 (walk_type): Test option kinds.
2119 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2120 (write_func_for_structure, write_type, write_local, write_root)
2121 (write_roots, note_def_vec, dump_options): Adjust for
2122 discriminated option.
2124 * gengtype.h (typedefs, structures, param_structs, variables
2125 enum typekind): Move from gengtype.c
2126 (enum option_kind): New discriminating enumeration.
2127 (struct options): Becomes discriminated.
2128 (struct nested_ptr_data): Nove from gengtype.c
2129 (create_string_option, create_type_option, create_nested_option)
2130 (create_nested_ptr_option): New functions
2131 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2132 (UNION_OR_STRUCT_P): Move from gengtype.c
2134 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2135 discriminated options.
2137 2010-11-23 Richard Guenther <rguenther@suse.de>
2139 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2140 twice. Avoid re-allocating the ops vector all the time.
2142 2010-11-23 Richard Guenther <rguenther@suse.de>
2144 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2145 is_gimple_min_invariant, group tree code checks to allow
2147 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2150 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
2152 * config.gcc (sparc*-*-*): Reorder.
2154 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2156 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2157 Remove ENABLE_CHECKING around DBGPRINTF.
2159 2010-11-22 Joseph Myers <joseph@codesourcery.com>
2161 * common.opt (exit_after_options, write_symbols, debug_info_level,
2162 use_gnu_debug_info_extensions): New Variable entries.
2163 (fprofile-dir=): Use Var.
2164 * flag-types.h (enum debug_info_level): Rename to enum
2166 * flags.h (write_symbols, debug_info_level,
2167 use_gnu_debug_info_extensions): Remove declarations.
2168 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2169 (set_struct_debug_option): Make static variables const.
2170 (use_gnu_debug_info_extensions): Remove.
2171 (set_debug_level, print_filtered_help, print_specific_help,
2172 fast_math_flags_set_p): Take gcc_options parameters and use them
2173 in place of global variables.
2174 (print_filtered_help): Make new_help non-static.
2175 (print_specific_help): Update call to print_filtered_help.
2176 (common_handle_option): Update calls to print_specific_help. Use
2177 gcc_options structure for more settings. Make --help table
2178 const. Don't handle OPT_fprofile_dir_ here. Update calls to
2180 * toplev.c (profile_data_prefix): Remove.
2181 * toplev.h (profile_data_prefix, exit_after_options): Remove
2183 (fast_math_flags_set_p): Update prototype.
2184 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2185 Update call to fast_math_flags_set_p.
2187 2010-11-22 Richard Henderson <rth@redhat.com>
2190 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2191 return the address register extracted.
2192 (crx_decompose_address): Update the extracted address register.
2194 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2197 * gcc.c (main): Don't crash when lto-wrapper program is not found.
2199 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
2202 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2203 * config/picochip/picochip-protos.h: Don't include "target.h" .
2204 (picochip_secondary_reload): Don't declare.
2207 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2208 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2211 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
2214 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2215 (source_dot_c_frul): Likewise.
2217 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
2219 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2221 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
2224 * Makefile.in (fwprop.o) Add sparseset.h.
2225 * fwprop.c: Include sparseset.h
2226 (struct find_occurrence_data, find_occurrence_callback,
2227 find_occurrence): Remove.
2228 (active_defs, active_defs_check, register_active_defs,
2229 update_df_init, update_uses): New.
2230 (update_df): Rewrite.
2231 (try_fwprop_subst, forward_propagate_asm): Add calls to
2232 update_df_init and update_df.
2233 (fwprop_init): Allocate active_defs and active_defs_check.
2234 (fwprop_done): Free them.
2235 (fwprop, fwprop_addr): Adjust comments.
2236 * df.h (df_uses_create): Declare.
2237 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2238 (df_ref_create): Return result of df_ref_create_structure directly.
2239 (df_ref_create_structure): Call df_install_ref_incremental when
2240 no collection_rec is passed.
2241 (df_ref_record): Do not create multiword hard reg info when no
2242 collection_rec is passed.
2243 (df_uses_create): New.
2245 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2248 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2251 2010-11-22 Richard Guenther <rguenther@suse.de>
2253 * gimple-fold.c (maybe_fold_reference): When canonicalizing
2254 MEM_REFs, preserve volatileness.
2255 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2258 2010-11-22 Richard Guenther <rguenther@suse.de>
2260 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2262 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
2264 PR rtl-optimization/45652
2265 * alias.c (get_reg_base_value): New.
2266 * rtl.h (get_reg_base_value): Add prototype.
2267 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
2268 non-null REG_BASE_VALUE for renaming.
2270 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
2271 Basile Starynkevitch <basile@starynkevitch.net>
2273 * gengtype.c: Include xregex.h and obstack.h
2274 Added comments about role of get_output_file_with_visibility and
2275 our regexpr machinery.
2276 (frul_actionrout_t, struct file_rule_st): New.
2277 (hader_dot_h_frul, source_dot_c_frul): New functions.
2278 (NULL_REGEX, NULL_FRULACT): New.
2280 (matching_file_name_substitute): New function.
2281 (get_output_file_with_visibility): Updated comments and rewritten
2282 to use the new files_rules machinery.
2284 * Makefile.in (XREGEX_H): Added variable.
2285 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2287 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2289 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2291 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2293 * target.def (conditional_register_usage): Define.
2294 * reginfo.c (init_reg_sets_1): Call
2295 targetm.conditional_register_usage.
2296 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2297 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2298 for making it a hook.
2299 * doc/tm.texi: Regenerate.
2300 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2301 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2303 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2304 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2305 * config/arc/arc.c (arc_conditional_register_usage): ...here.
2307 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2308 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2309 * config/arm/arm.c (arm_conditional_register_usage): ...here.
2311 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2312 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2313 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2314 * config/bfin/bfin.c (conditional_register_usage): Move code into...
2315 (bfin_conditional_register_usage): ...here. New function.
2316 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2317 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2318 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2319 * config/cris/cris.c (cris_conditional_register_usage): Make static.
2320 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2321 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2322 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2323 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2324 * config/frv/frv.c (frv_conditional_register_usage): Make static.
2325 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2326 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2327 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2329 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2330 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2331 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2332 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2333 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2334 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2335 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2336 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2337 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2338 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2339 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2341 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2342 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2343 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2345 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2347 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2348 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2349 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2350 * config/mep/mep.c (mep_conditional_register_usage): Make static.
2351 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2352 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2353 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2354 * config/mips/mips.c (mips_conditional_register_usage): Make static.
2355 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2356 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2357 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2358 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2359 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2360 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2361 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2362 ...here. New function.
2363 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2364 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2365 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2366 * config/pa/pa.c (pa_conditional_register_usage): ...here.
2368 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2369 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2370 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2372 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2373 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2374 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2376 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2378 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2379 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2380 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2381 * config/rx/rx.c (rx_conditional_register_usage): Make static.
2382 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2383 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2384 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2385 * config/s390/s390.c (s390_conditional_register_usage): Make static.
2386 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2387 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2388 * config/score/score.c (score_conditional_register_usage): ...here.
2390 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2391 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2392 * config/sh/sh.c (sh_conditional_register_usage): ...here.
2394 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2395 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2396 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2398 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2399 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2400 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2401 * config/spu/spu.c (spu_conditional_register_usage): Make static.
2402 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2403 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2404 * config/v850/v850.c (v850_conditional_register_usage): ...here.
2406 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2408 2010-11-21 Jan Hubicka <jh@suse.cz>
2409 Dominique d'Humieres <dominiq@lps.ens.ft>
2412 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2413 finalize external decls.
2415 2010-11-21 Joseph Myers <joseph@codesourcery.com>
2417 * system.h (strerror): Poison.
2419 2010-11-21 Richard Henderson <rth@redhat.com>
2421 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2424 2010-11-21 Richard Henderson <rth@redhat.com>
2426 PR rtl-optimization/46571
2427 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2428 (compute_hash_table_work): Use NONDEBUG_INSN_P.
2430 2010-11-21 Paul Koning <ni1d@arrl.net>
2432 * config/mips/pdp11.md (negsi2): Fix wrong code.
2434 2010-11-21 Paul Koning <ni1d@arrl.net>
2436 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2437 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2439 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
2441 * config/mips/mips.c (machine_function): Rename load_label_length to
2442 load_label_num_insns.
2443 (mips_load_label_length): Rename to...
2444 (mips_load_label_num_insns): ...this. Adjust to first renaming.
2445 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
2447 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2450 * config/alpha/predicates.md (direct_call_operand): Return false
2451 for !TARGET_SMALL_TEXT targets.
2453 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2455 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2456 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2457 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2458 * doc/tm.texi: Regenerate.
2459 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2460 HANDLE_PRAGMA_WEAK): Poison.
2461 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2462 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2463 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2464 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2465 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2466 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2467 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2468 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2469 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2470 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2471 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2472 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2473 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2474 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2475 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2476 (HANDLE_PRAGMA_WEAK): Don't undefine.
2477 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2478 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2479 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2480 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2481 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2482 (HANDLE_PRAGMA_WEAK): Don't undefine.
2483 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2484 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2485 (HANDLE_PRAGMA_PACK): Don't undefine.
2486 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2487 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2488 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2489 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2490 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2491 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2492 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2493 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2494 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2495 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2496 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2497 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2498 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2499 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2500 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2501 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2502 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2504 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
2507 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2508 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2509 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2511 2010-11-20 Jan Hubicka <jh@suse.cz>
2513 * cgraph.c (ld_plugin_symbol_resolution_names): New.
2514 (dump_cgraph_node): Dump resolution.
2515 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2516 (cgraph_comdat_can_be_unshared_p): Dclare.
2517 * lto-streamer-out.c (produce_symtab): Use
2518 cgraph_comdat_can_be_unshared_p.
2519 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2520 (cgraph_comdat_can_be_unshared_p): New function based on logic
2521 in cgraph_externally_visible_p.
2522 (cgraph_externally_visible_p): Use it.
2523 (varpool_externally_visible_p): Virtual tables can be unshared.
2524 * varpool.c (dump_varpool_node): Dump resolution.
2526 2010-11-20 Jan Hubicka <jh@suse.cz>
2528 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2530 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2533 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2534 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2536 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2537 (install-strip): New target.
2538 (STRIPPROG): New variable, exported if STRIP is set.
2539 * doc/install.texi (Final install): Minor markup and code style
2540 fixes. Document install-strip target.
2542 2010-11-20 Paul Koning <ni1d@arrl.net>
2544 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2545 pdp11_regno_reg_class): New functions.
2546 * config/pdp11/pdp11.md (define_constants): Add register numbers.
2547 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2548 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2550 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2551 frame pointer and argument pointer pseudo-registers.
2552 (ARG_POINTER_REGNUM): Define.
2553 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2555 (FIRST_PARM_OFFSET): Update for argument pointer.
2556 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2557 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2558 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2559 frame pointer and argument pointer.
2561 2010-11-20 Jakub Jelinek <jakub@redhat.com>
2564 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2565 when looking for immediate uses.
2567 PR tree-optimization/45830
2568 * stmt.c (expand_switch_using_bit_tests_p): New function.
2569 (expand_case): Use it.
2570 * tree.h (expand_switch_using_bit_tests_p): New prototype.
2571 * tree-switch-conversion.c (struct switch_conv_info): Add
2572 bit_test_uniq, bit_test_count and bit_test_bb fields.
2573 (check_range): Fix a comment.
2574 (check_process_case): Compute bit_test_uniq and bit_test_count.
2575 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2577 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2578 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2579 (array_value_type): New function.
2580 (build_one_array): Use it, if it returned different type,
2581 fold_convert all constructor fields and convert back to the
2582 wider type in the generated code.
2583 (process_switch): Initialize bit_test_uniq, bit_test_count and
2584 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
2587 2010-11-19 Michael Matz <matz@suse.de>
2589 PR tree-optimization/46077
2590 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2592 2010-11-19 Anatoly Sokolov <aesok@post.ru>
2594 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2595 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2597 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2599 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2601 * mode-switching.c (optimize_mode_switching): Use
2602 FOR_BB_INSNS instead of open-coded loop.
2603 * cfgrtl.c (redirect_branch_edge): Ditto.
2605 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
2608 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2609 to accomodate 32 bit HOST_WIDE_INT.
2610 (m68hc11_emit_logical): Remove unused variable insn.
2611 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2612 this_insn_uses_iy before use.
2615 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2617 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2620 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2621 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2623 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2625 * doc/extend.texi (Function attributes): Document PowerPC target
2626 attributes that are supported.
2627 (Pragmas): Document that PowerPC now supports target pragmas.
2629 * doc/options.texi (TargetVariable): Document TargetVariable,
2630 HeaderInclude, and SourceInclude.
2632 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2633 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2636 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2637 SourceInclude directives. Fix a cut+paste error with target save
2638 enum variables. Sort enums in the structures after ints and
2640 * opth-gen.awk: Ditto.
2642 * configure.ac: Add support for HeaderInclude and SourceInclude option
2643 directives to add the appropriate files to the dependency lists.
2644 * configure: Regenerate.
2645 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2646 (OPTIONS_C_EXTRA): New variable for SourceInclude.
2647 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2648 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2649 (gcc-options.o): Ditto.
2650 * opt-include.awk: New awk script to handle HeaderInclude and
2653 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2654 gets saved in the target options.
2655 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2656 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2657 (-mprototype): Ditto.
2658 (-mbit-word): ditto.
2659 (-mregnames): Ditto.
2660 (-msecure-plt): Ditto.
2662 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2663 (-mpowerpc-gfxopt): Ditto.
2670 (-mhard-dfp): Ditto.
2673 (-mmultiple): Ditto.
2678 (-mno-update): Ditto.
2679 (-mavoid-indexed-addresses): Ditto.
2680 (-mtls-markers): Ditto.
2681 (-msched-epilog): Ditto.
2682 (-msched-prolog): Ditto.
2683 (-maix-struct-return): Ditto.
2684 (-msvr4-struct-return): Ditto.
2685 (-mxl-compat): Ditto.
2686 (-mrecip-precision): Ditto.
2687 (-mfp-in-toc): Ditto.
2688 (-msum-in-toc): Ditto.
2690 (-mblock-move-inline-limit=): Ditto.
2693 (-mlongcall): Ditto.
2694 (-mgen-cell-microcode): Ditto.
2695 (-mwarn-cell-microcode): Ditto.
2696 (-mwarn-altivec-long): Ditto.
2697 (-mprioritize-restricted-insns=): Ditto.
2698 (-msingle-float): Ditto.
2699 (-mdouble-float): Ditto.
2700 (-msimple-fpu): Ditto.
2701 (-mxilinx-fpu): Ditto.
2702 * config/rs6000/aix64.opt (-mpe): Ditto.
2704 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2705 (rs6000_cpu): Move variable to be a target variable. Rename
2706 cmodel to rs6000_current_cmodel because of macro conflict. Merge
2707 -mdebug=<xxx> variables into a single int.
2708 (rs6000_always_hint): Ditto.
2709 (rs6000_sched_groups): Ditto.
2710 (rs6000_align_branch_targets): Ditto.
2711 (rs6000_sched_costly_dep): Ditto.
2712 (rs6000_sched_insert_nops): Ditto.
2713 (rs6000_long_double_type_size): Ditto.
2714 (rs6000_ieeequad): Ditto.
2715 (rs6000_altivec_abi): Ditto.
2716 (rs6000_spe): Ditto.
2717 (rs6000_spe_abi): Ditto.
2718 (rs6000_float_gprs): Ditto.
2719 (rs6000_darwin64_abi): Ditto.
2720 (can_override_loop_align): Ditto.
2721 (rs6000_sdata): Ditto.
2722 (rs6000_tls_size): Ditto.
2723 (rs6000_current_abi): Ditto.
2724 (rs6000_traceback): Ditto.
2725 (rs6000_alignment_flags): Ditto.
2726 (rs6000_current_cmodel): Ditto.
2727 (rs6000_recip_control): Ditto.
2728 (rs6000_cpu_index): Ditto.
2729 (rs6000_tune_index): Ditto.
2730 (rs6000_debug): Ditto.
2731 (rs6000_target_flags_explict): Ditto.
2733 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2736 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2737 cmodel. Change all uses.
2739 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2740 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
2741 Rename cmodel to rs6000_current_cmodel.
2742 (rs6000_sched_groups): Ditto.
2743 (rs6000_align_branch_targets): Ditto.
2744 (rs6000_sched_costly_dep): Ditto.
2745 (rs6000_sched_insert_nops): Ditto.
2746 (rs6000_long_double_type_size): Ditto.
2747 (rs6000_ieeequad): Ditto.
2748 (rs6000_altivec_abi): Ditto.
2749 (rs6000_spe): Ditto.
2750 (rs6000_spe_abi): Ditto.
2751 (rs6000_float_gprs): Ditto.
2752 (rs6000_darwin64_abi): Ditto.
2753 (can_override_loop_align): Ditto.
2754 (rs6000_sdata): Ditto.
2755 (rs6000_tls_size): Ditto.
2756 (rs6000_current_abi): Ditto.
2757 (rs6000_traceback): Ditto.
2758 (rs6000_alignment_flags): Ditto.
2759 (rs6000_current_cmodel): Ditto.
2760 (rs6000_recip_control): Ditto.
2761 (rs6000_cpu_index): Ditto.
2762 (rs6000_tune_index): Ditto.
2763 (rs6000_debug): Ditto.
2764 (rs6000_target_flags_explict): Ditto.
2765 (rs6000_sched_insert_nops_str): Make static.
2766 (rs6000_sched_costly_dep_str): Ditto.
2767 (rs6000_recip_name): Ditto.
2768 (rs6000_abi_name): Ditto.
2769 (rs6000_sdata_name): Ditto.
2770 (enum rs6000_traceback_name): Move to rs6000-opts.h.
2771 (rs6000_parse_tls_size_option): Delete.
2772 (rs6000_valid_attribute_p): New function for target attributes and
2774 (rs6000_function_specific_save): Ditto.
2775 (rs6000_function_specific_restore): Ditto.
2776 (rs6000_function_specific_print): Ditto.
2777 (rs6000_can_inline_p): Ditto.
2778 (rs6000_set_current_function): Ditto.
2779 (rs6000_inner_target_options): Ditto.
2780 (rs6000_debug_target_options): Ditto.
2781 (rs6000_pragma_target_parse): Ditto.
2782 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2783 attributes and pragmas.
2784 (TARGET_OPTION_SAVE): Ditto.
2785 (TARGET_OPTION_RESTORE): Ditto.
2786 (TARGET_OPTION_PRINT): Ditto.
2787 (TARGET_CAN_INLINE_P): Ditto.
2788 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2789 (POWER_MASKS): Move to file level scope from the
2790 rs6000_option_override_internal function.
2791 (POWERPC_MASKS): Ditto.
2792 (ISA_*_MASKS): Ditto.
2793 (struct rs6000_ptt): Ditto.
2794 (processor_target_table): Ditto.
2795 (rs6000_cpu_name_lookup): Map cpu name to an index in
2796 processor_target_table.
2797 (rs6000_debug_reg_global): Print more information on processor
2798 options for -mdebug=reg.
2799 (rs6000_init_hard_regno_mode_ok): Add support for target
2800 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
2801 Allow -mdebug=val1,val2. Rename cmodel variable.
2802 (rs6000_option_override_internal): Ditto.
2803 (rs6000_option_override): Ditto.
2804 (rs6000_handle_option): Ditto.
2805 (rs6000_conditional_register_usage): Add debug trace message.
2806 (struct rs6000_opt_mask): New for target attribute/pragma support.
2807 (rs6000_opt_masks): Ditto.
2808 (struct rs6000_opt_var): Ditto.
2809 (rs6000_opt_vars): Ditto.
2810 (rs6000_previous_function): Ditto.
2812 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2813 wasn't already included.
2814 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2815 (enum processor_type): Ditto.
2816 (rs6000_cpu): Ditto.
2817 (enum fpu_type_t): Ditto.
2819 (enum rs6000_dependence_cost): Ditto.
2820 (enum rs6000_nop_insertion): Ditto.
2821 (enum group_termination): Ditto.
2822 (rs6000_long_double_type_size): Ditto.
2823 (rs6000_ieeequad): Ditto.
2824 (rs6000_altivec_abi): Ditto.
2825 (rs6000_spe_abi): Ditto.
2826 (rs6000_spe): Ditto.
2827 (rs6000_float_gprs): Ditto.
2828 (rs6000_alignment_flags): Ditto.
2829 (rs6000_sched_insert_nops): Ditto.
2830 (enum rs6000_vector): Ditto.
2831 (enum rs6000_abi): Ditto.
2832 (rs6000_current_opt): Ditto.
2833 (rs6000_debug_*): Delete.
2834 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2835 (TARGET_DEBUG*): Ditto.
2837 * config/rs6000/rs6000-opts.h: New header file to define the enums
2838 that are used in target variables that are now defined in rs6000.opt.
2840 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2842 (rs6000_sdata): Ditto.
2843 (rs6000_abi_name): Delete.
2844 (rs6000_sdata_name): Ditto.
2845 (rs6000_tls_size_string): Ditto.
2847 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2849 * common.opt (debug_struct_ordinary, debug_struct_generic): New
2851 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2852 should_emit_struct_debug): Move from opts.c.
2853 * flag-types.h (enum debug_struct_file): Move from opts.c.
2854 * flags.h (should_emit_struct_debug): Remove.
2855 (base_of_path): Declare.
2856 (set_struct_debug_option): Add gcc_options parameter.
2857 * optc-gen.awk, opth-gen.awk: Handle array variables.
2858 * opts.c (enum debug_struct_file, debug_struct_ordinary,
2859 debug_struct_generic): Remove.
2860 (set_struct_debug_option): Add gcc_options parameter.
2861 (base_of_path): Remove static.
2862 (main_input_basename, main_input_baselength, matches_main_base,
2863 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2865 * toplev.c (main_input_basename, main_input_baselength): Define
2867 * toplev.h (main_input_basename, main_input_baselength): Declare
2870 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2872 * common.opt (flag_instrument_functions_exclude_functions,
2873 flag_instrument_functions_exclude_files): New Variable definitions.
2874 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2875 * gimplify.c (char_p): Declare type and vectors.
2876 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
2877 * opts.c (flag_instrument_functions_exclude_functions,
2878 flag_instrument_functions_exclude_files): Remove.
2879 (add_comma_separated_to_vector): Take void **.
2880 (flag_instrument_functions_exclude_p): Move to gimplify.c.
2881 (common_handle_option): Use options structure for
2882 -finstrument-functions-exclude- options.
2884 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2886 * doc/options.texi (Var): Document effects of Defer.
2888 * opt-functions.awk (var_type, var_set): Handle deferred options.
2889 * opts-common.c (set_option): Handle CLVC_DEFER.
2890 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2891 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2892 fstack-limit-symbol=): Mark as deferred.
2893 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2895 (print_filtered_help): Don't report state of CLVC_DEFER options.
2896 (common_handle_option): Move code for OPT_fcall_used_,
2897 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2898 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2899 OPT_fstack_limit_symbol_ to opts-global.c.
2900 (option_enabled, get_option_state): Handle CLVC_DEFER.
2901 * opts.h: Include vec.h.
2902 (enum cl_var_type): Add CLVC_DEFER.
2903 (cl_deferred_option): Define type and vectors.
2904 (handle_common_deferred_options): Declare.
2905 * opts-global.c: New.
2906 * toplev.c (toplev_main): Call handle_common_deferred_options
2907 * Makefile.in (OPTS_H): Include $(VEC_H).
2908 (OBJS-common): Include opts-global.o.
2909 (opts.o): Update dependencies.
2910 (opts-global.o): Add dependencies.
2912 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2914 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2915 to objc_declare_protocols.
2917 2010-11-19 Richard Guenther <rguenther@suse.de>
2920 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2921 IDENTIFIERs do not stream TREE_TYPE.
2922 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2924 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
2926 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2928 2010-11-19 Jakub Jelinek <jakub@redhat.com>
2931 * dwarf2out.c (const_ok_for_output_1): Don't complain about
2932 non-delegitimized TLS UNSPECs.
2934 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
2935 Ian Lance Taylor <iant@google.com>
2937 * config/darwin-c.c (darwin_additional_format_types): Export.
2939 2010-11-18 Paul Koning <ni1d@arrl.net>
2941 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2944 2010-11-18 Paul Koning <ni1d@arrl.net>
2946 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2947 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2948 * config/pdp11/pdp11.opt (-mabshi): Delete.
2950 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
2952 * resource.h (struct resources): Fix typo in the comment.
2954 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2957 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2959 2010-11-18 Richard Henderson <rth@redhat.com>
2962 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2963 maybe_copy_epilogue_insn; handle prologue insns as well.
2964 * rtl.h, cfglayout.c: Update for rename.
2965 * recog.c (peep2_attempt): Copy prologue/epilogue data for
2966 RTX_FRAME_RELATED_P insns.
2968 2010-11-18 Jakub Jelinek <jakub@redhat.com>
2971 * builtins.c (fold_builtin_printf): Don't copy and modify string
2972 before build_string_literal, instead modify what
2973 build_string_literal returned.
2975 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2978 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2979 REALPART_EXPR and IMAGPART_EXPR.
2981 2010-11-18 Richard Guenther <rguenther@suse.de>
2983 PR tree-optimization/46172
2984 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2986 (slpeel_tree_peel_loop_to_edge): Call it.
2988 2010-11-18 Jeff Law <law@redhat.com>
2990 PR middle-end-optimization/46297
2991 * postreload.c (reload_combine_note_store): Deal with embedded
2992 side effects in MEM expressions.
2994 2010-11-18 Richard Guenther <rguenther@suse.de>
2997 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2998 when checking is not enabled.
3000 2010-11-18 Richard Guenther <rguenther@suse.de>
3003 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3005 (gimple_register_canonical_type): Also cache the canoncial type
3006 for non type leaders.
3008 2010-11-18 Richard Guenther <rguenther@suse.de>
3010 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3012 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3015 * sel-sched-ir.c (init_expr): Use the correct type for
3017 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3019 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3021 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3022 as well as -mrelocatable at the same time.
3024 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3027 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3028 Call the clz builtin.
3030 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3031 Steve Ellcey <sje@cup.hp.com>
3034 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3035 if section attribute used.
3037 2010-11-17 Jan Hubicka <jh@suse.cz>
3039 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3040 expand errno setting variant when optimizing for size.
3042 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3044 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3045 Reverse backward loop. Fix formatting issues.
3047 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3049 * c-parser.c (c_token_is_qualifier,
3050 c_parser_next_token_is_qualifier): New.
3051 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3052 Improve error message on specs->tagdef_seen_p.
3053 (c_parser_struct_or_union_specifier): Improve error recovery.
3054 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3055 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3056 using c_parser_next_token_is_qualifier; extend it to cover
3057 a ctsk_tagdef typespec and !typespec_ok in general.
3059 2010-11-17 Richard Guenther <rguenther@suse.de>
3061 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3062 (gimple_mod_pow2_value_transform): Likewise.
3063 (gimple_mod_subtract_transform): Likewise.
3065 2010-11-17 Richard Guenther <rguenther@suse.de>
3068 * gimple.c (gimple_register_canonical_type): Make sure to only
3069 make type leaders canonical types.
3071 2010-11-17 Michael Matz <matz@suse.de>
3073 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3074 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3075 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3076 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3077 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3078 (pass_build_ssa): ... but here.
3079 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3080 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3081 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3082 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3083 * predict.c (rebuild_frequencies): Ditto.
3084 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3085 * emit-rtl.c (verify_rtl_sharing): Ditto.
3086 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3087 * tree-ssa-live.c (remove_unused_locals): Ditto.
3088 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3089 * tree-ssa.c (pass_early_warn_uninitialized,
3090 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3091 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3092 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3093 * passes.c (pass_postreload, execute_todo): Ditto.
3094 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3096 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3098 * doc/invoke.texi (-dy): Remove.
3099 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3100 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3101 * langhooks.c (lhd_do_nothing_i): Remove.
3102 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3103 * toplev.c (set_yydebug): Remove.
3104 (compile_file): Update call to lang_hooks.parse_file.
3105 (decode_d_option): Don't handle -dy.
3107 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3109 PR rtl-optimization/46440
3110 * combine.c (update_cfg_for_uncondjump): When changing
3111 an indirect jump into unconditional jump, remove BARRIERs
3114 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3116 * opts.c (target_handle_option): Do not assert that loc ==
3119 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3120 Richard Guenther <rguenther@suse.de>
3123 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3124 call_may_clobber_ref_p_1): Return true for __sync_* and some
3125 OpenMP builtins that act as threading barriers.
3127 2010-11-17 Richard Guenther <rguenther@suse.de>
3129 PR tree-optimization/46498
3130 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3132 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3134 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3135 (xtensa_function_arg_boundary): ...this.
3136 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3137 thinko in declaration.
3138 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3139 number of parameters to picochip_function_arg_boundary.
3140 (picochip_arg_advance): Likewise.
3142 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3145 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3146 under check for type.
3148 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3150 * ifcvt.c (dead_or_predicable): Fix typo.
3152 2010-11-16 Richard Henderson <rth@redhat.com>
3154 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3155 * config/s390/s390.opt (mfused-madd): Remove.
3156 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3157 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3158 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3159 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3161 2010-11-16 Richard Henderson <rth@redhat.com>
3163 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3164 * config/rs6000/rs6000.opt (mfused-madd): Remove.
3165 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3166 (*altivec_vmaddfp_1): Remove.
3167 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3168 (altivec_mulv4sf3): Expand to FMA directly.
3169 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3170 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3171 * config/rs6000/paired.md (paired_madds0): Use FMA.
3172 (paired_madds1): Likewise.
3173 (*paired_madd): Rename from paired_madd; use FMA.
3174 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3175 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3176 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3177 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3178 (rs6000_emit_madd): Use fma_optab.
3179 (rs6000_emit_msub): Use fms_optab.
3180 (rs6000_emit_nmsub): Expand the FMA pattern directly.
3181 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3182 (*fmasf4_fpr): Rename from fmasf4_fpr.
3183 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3184 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3185 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3186 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3187 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3188 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3189 (*fmadf4_fpr): Rename from fmadf4_fpr.
3190 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3191 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3192 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3193 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3194 (fmasf4, fmadf4): Macroize into...
3195 (fma<FMA_F>4): ... here.
3196 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3197 (nfma<FMA_F>4, nfms<FMA_F>4): New.
3198 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3200 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3201 (*vsx_fmadd<mode>4_1): Remove.
3202 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3203 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3204 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3205 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3206 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3207 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3208 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3210 2010-11-16 Richard Henderson <rth@redhat.com>
3212 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3213 (fmasf4, fnmadf4, fnmasf4): Likewise.
3214 (unnamed plus+mult insns and splitters): Delete.
3216 2010-11-16 Richard Henderson <rth@redhat.com>
3218 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3219 (fnma<VSF>4): Rename from fnms_<VSF>.
3220 (fms<VSF>4): Rename from fms_<VSF>.
3221 (fma<VDF>4): Rename from fma_<VDF>.
3222 (fms<VDF>4): Rename from fms_<VDF>.
3223 (nfma<VDF>4): Rename from fnma_<VDF>.
3224 (nfms<VDF>4): Rename from fnms_<VDF>.
3225 (fnma<VDF>4, fnms<VDF>4): New expanders.
3226 (floatunsdisf2): Update for the renames.
3227 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3228 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3230 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3232 PR rtl-optimization/46490
3233 * combine.c (expand_compound_operation): Fix thinko.
3235 2010-11-16 Richard Henderson <rth@redhat.com>
3238 * recog.c (peep2_attempt): Convert frame-related info when possible.
3239 (peep2_fill_buffer): Allow frame-related insns into the buffer.
3240 (peephole2_optimize): Allow peep2_attempt to fail.
3242 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3244 PR rtl-optimization/46315
3245 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3246 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3248 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
3249 (remove_reg_equal_equiv_notes_for_defs): ...this.
3250 (delete_unmarked_insns): Adjust to above renaming.
3251 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3252 referring to registers set in the insns being moved, if any.
3254 * df-core.c (df_ref_dump): New function extracted from...
3255 (df_refs_chain_dump): ...here. Call it.
3256 (df_regs_chain_dump): Likewise.
3257 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3258 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
3260 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
3262 PR rtl-optimization/46395
3263 * postreload.c (reload_combine): Invalidate register use
3264 information on all control flow insns.
3266 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3267 LABEL_REF in UNSPEC operand.
3269 2010-11-16 Jan Hubicka <jh@suse.cz>
3271 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3272 when !flag_toplevel_reorder do not remove unless variable is
3273 COMDAT or ARTIFICIAL.
3274 * ipa.c (varpool_can_remove_if_no_refs): ... here.
3275 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3276 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3277 * varpool.c (decide_is_variable_needed): Do not handle visibility
3279 (varpool_finalize_decl): Likewise.
3280 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3281 update outdated comment on DECL_RTL_SET_P check.
3283 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3285 * config/sol2.h (NM_FLAGS): Define.
3286 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3287 * doc/tm.texi: Update.
3289 2010-11-16 Nick Clifton <nickc@redhat.com>
3291 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3292 (msubsf4): Rename to fmssf4, and use fma.
3293 (nmaddsf4): Rename to fnmasf4 and use fma.
3294 (nmsubsf4): Rename to fnmssf4 and use fma.
3296 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
3299 * config/score/score3.c (score3_return_in_memory): Constify arguments.
3300 (score3_in_small_data_p, score3_function_value): Likewise.
3301 (score3_trampoline_init): Use LCT_NORMAL.
3302 (score3_print_operand): Initialize code as UNKNOWN.
3303 * config/score/predicates.md (score_load_multiple_operation):
3304 Remove unused variable.
3305 (score_store_multiple_operation): Likewise.
3306 * config/score/score7.c (score7_return_in_memory): Constify arguments.
3307 (score7_in_small_data_p, score7_function_value): Likewise.
3308 (score7_trampoline_init): Use LCT_NORMAL.
3309 (score7_print_operand): Initialize code as UNKNOWN.
3310 * config/score/score3.h (score3_return_in_memory): Update prototype.
3311 (score3_in_small_data_p, score3_function_value): Likewise.
3312 * config/score/score-protos.h (score_function_value): Likewise.
3313 * config/score/score7.h (score7_return_in_memory): Update prototype.
3314 (score7_in_small_data_p, score7_function_value): Likewise.
3315 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3316 (score_return_in_memory, score_pass_by_reference): Constify arguments.
3317 (score_output_mi_thunk, score_function_prologue): Don't return a value.
3318 (score_function_epilogue, score_in_small_data_p): Likewise.
3319 (score_option_override, score_asm_trampoline_template): Likewise.
3320 (score_trampoline_init, score_print_operand): Likewise.
3321 (score_print_operand_address, score_prologue): Likewise.
3322 (score_epilogue, score_call, score_call_value): Likewise.
3323 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3324 (score_function_arg_advance): Likewise. Make static.
3325 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3326 (score_function_arg, score_legitimate_address_p): Make static.
3327 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3328 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3329 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3330 Allow (W) == HOST_BITS_PER_WIDE_INT.
3333 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3334 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3336 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3338 * config/arc/arc.c: Delete pasto.
3339 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3341 2010-11-16 Anatoly Sokolov <aesok@post.ru>
3343 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3344 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3345 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3346 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3347 (mn10300_preferred_reload_class,
3348 mn10300_preferred_output_reload_class): New functions.
3350 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3352 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3353 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3354 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3355 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3357 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3359 * builtins.c (std_gimplify_va_arg_expr): Use
3360 targetm.calls.function_arg_boundary.
3361 * function.c (assign_parms, locate_and_pad_parm): Likewise.
3362 * calls.c (struct arg_data): Update comment.
3363 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3364 * target.def (function_arg_boundary): Define.
3365 * targhooks.h (default_function_arg_boundary): Declare.
3366 * targhooks.c (default_function_arg_boundary): Define.
3367 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3368 TARGET_FUNCTION_ARG_BOUNDARY.
3369 (FUNCTION_ARG_BOUNDARY): Delete.
3370 (TARGET_FUNCTION_ARG_BOUNDARY): New.
3371 * doc/tm.texi: Regenerate.
3372 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3373 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3374 * config/arc/arc.c (arc_function_arg_boundary): Define.
3375 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3376 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3377 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3378 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3379 (arm_function_arg_boundary): Define.
3380 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3381 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3382 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3383 * config/frv/frv.c (frv_function_arg_boundary): Make static.
3384 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3385 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3386 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3387 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3388 (ix86_compat_function_arg_boundary): Take and return unsigned int.
3389 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3390 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3391 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3392 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3393 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3394 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3395 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3396 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3397 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3398 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3399 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3400 (TARGET_FUNCTION_ARG_BOUNDARY): Define.