1 2010-06-15 Alan Modra <amodra@gmail.com>
3 * doc/invoke.texi: Add mcmodel to powerpc options.
4 * configure.ac: Add HAVE_LD_LARGE_TOC test.
5 * configure: Regenerate.
6 * config.in: Regenerate.
7 * config/rs6000/linux64.opt (mcmodel): New.
8 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9 (TARGET_CMODEL): Define.
10 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
11 select CMODEL_MEDIUM default.
12 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
13 (TARGET_CMODEL): Define default.
14 * config/rs6000/rs6000.c (cmodel): New variable.
15 (rs6000_explicit_options): Add cmodel field.
16 (rs6000_handle_option): Handle -mcmodel.
17 (create_TOC_reference): Add largetoc_reg param. Generate high,
18 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
19 (rs6000_delegitimize_address): Recognise new toc reference rtl
21 (rs6000_legitimize_reload_address): Handle new toc references.
22 (print_operand_address): Handle legitimate_constant_pool_address_p
24 (rs6000_eliminate_indexed_memrefs): Tidy.
25 (rs6000_emit_move): Tweak threshold for inlining constants.
26 Keep rs6000_emit_allocate_stack large stack frame offsets
27 loaded into r0 inline.
28 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
29 (tocrel_base, tocrel_offset): New variables.
30 (toc_relative_expr_p): Set them here.
31 (print_operand_address): Skip over any offset on constant pool
33 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
34 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
35 (offsettable_ok_by_alignment): New function.
36 (rs6000_emit_move): Address suitably aligned local symbol_refs
37 relative to the toc pointer for -mcmodel=medium.
38 (legitimate_constant_pool_address_p): Make param const_rtx. Add
39 strict param. Allow lo_sum version of addressing. Verify reg
40 used for -mminimal-toc and -mcmodel != small. Update all callers.
41 * config/rs6000/constraints.md: Update for above change.
42 * config/rs6000/predicates.md: Likewise.
43 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
45 (tls_gd): Split for -mcmodel=medium/large.
46 (tls_gd_high, tls_gd_low): New.
47 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
48 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
49 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
50 (largetoc_high, largetoc_low): New.
51 (cmptf_internal2): Add clobber.
52 * config/rs6000/rs6000-protos.h: Update.
54 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
56 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
57 true if no prefetch is going to be generated for a given group.
58 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
59 estimate the prefetch_count.
60 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
61 prefetch count by considering the unroll_factor and prefetch_mod
62 for is_loop_prefetching_profitable.
64 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
66 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
67 anything if the argument is not a MEM.
69 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
74 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
76 (canonicalize_loop_ivs): Likewise.
78 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
81 * haifa-sched.c (setup_insn_reg_pressure_info,
82 update_register_pressure): Reject debug insns.
83 (ready_sort): Don't setup reg pressure for debug insns.
84 (schedule_insn): Don't update reg pressure for debug insns.
86 2010-06-14 Richard Guenther <rguenther@suse.de>
88 * lto-streamer.c (cached_bp): Remove.
89 (bitpack_delete): Likewise.
90 (bitpack_create): Likewise.
91 (bp_get_next_word): Likewise.
92 (bp_pack_value, bp_unpack_value): Move ...
93 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
95 (struct bitpack_d): Likewise.
96 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
98 * lto-streamer-out.c (lto_output_bitpack): Remove.
99 (pack_ts_base_value_fields): Adjust. Avoid conditional
101 (pack_value_fields): Adjust.
102 (lto_write_tree): Likewise.
103 (output_gimple_stmt): Likewise.
104 (output_function): Likewise.
105 * lto-streamer-in.c (input_gimple_stmt): Adjust.
106 (input_function): Likewise.
107 (unpack_ts_base_value_fields): Adjust. Avoid conditional
109 (lto_input_bitpack): Remove.
110 (lto_materialize_tree): Adjust.
111 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
112 * lto-cgraph.c (lto_output_edge): Adjust.
113 (lto_output_node): Likewise.
114 (lto_output_varpool_node): Likewise.
115 (lto_output_ref): Likewise.
116 (input_node): Likewise.
117 (input_varpool_node): Likewise.
118 (input_ref): Likewise.
119 (input_edge): Likewise.
120 (output_node_opt_summary): Likewise.
121 (input_node_opt_summary): Likewise.
122 * ipa-pure-const.c (pure_const_write_summary): Likewise.
123 (pure_const_read_summary): Likewise.
124 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
125 (ipa_read_indirect_edge_info): Likewise.
126 (ipa_write_node_info): Likewise.
127 (ipa_read_node_info): Likewise.
129 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
132 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with
134 (vec_extract_lo_v16hi): Likewise.
135 (vec_extract_lo_v32qi): Likewise.
137 2010-06-14 Jakub Jelinek <jakub@redhat.com>
140 * tree.h (build_call_expr): Don't define as vararg macro, instead
142 * builtins.c (build_call_nofold): Remove.
143 (expand_builtin_int_roundingfn, expand_builtin_pow,
144 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
145 expand_builtin_memset_args, expand_builtin_strcmp,
146 expand_builtin_strncmp, expand_builtin_memory_chk): Use
147 build_call_nofold_loc instead of build_call_nofold.
148 (build_call_expr): New function.
150 PR tree-optimization/44508
151 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE
153 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
154 don't eliminate trivially dead stmts.
155 * tree-vrp.c (vrp_finalize): Pass false as last argument
156 to substitute_and_fold.
157 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
158 to substitute_and_fold.
159 * tree-ssa-ccp.c (ccp_finalize): Likewise.
162 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
163 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
164 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
165 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
166 ggc_strdup instead of xstrdup.
168 2010-06-14 Ira Rosen <irar@il.ibm.com>
170 PR tree-optimization/44507
171 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
172 to build initial vector for BIT_AND_EXPR.
173 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
175 2010-06-14 Jakub Jelinek <jakub@redhat.com>
177 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
178 adjust z10prop set_attr.
180 2010-06-13 Jan Hubicka <jh@suse.cz>
182 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
183 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
184 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
185 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
186 datastructure checks into checking asserts.
187 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
188 * tree-ssa-sccvn.c (VN_INFO): Likewise.
189 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
190 df_ref_create_structure): Likewise.
191 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
192 pool_free): Use gcc_checking_assert.
193 * alias.c (get_alias_set): Likewise.
194 * var-tracking.c (variable_htab_free, shared_hash_copy,
195 canonicalize_values_mark, variable_merge_over_cur): Likewise.
196 * lto-streamer.c (bp_unpack_value): Likewise.
198 2010-06-13 Richard Guenther <rguenther@suse.de>
200 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
201 Do not stream but initialize TYPE_CANONICAL to NULL.
202 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
203 * gimple.c (gimple_types_compatible_p): Disregard
204 TYPE_STRUCTURAL_EQUALITY_P.
205 (gimple_register_type): Use TYPE_CANONICAL as cache.
206 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
207 before registering common types.
208 * config/i386/i386.c (ix86_function_arg_boundary): Do not
209 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
210 * tree.h (TYPE_CANONICAL): Clarify documentation.
212 2010-06-13 Anatoly Sokolov <aesok@post.ru>
214 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
215 LIBCALL_VALUE): Remove macros.
216 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
217 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
218 TARGET_FUNCTION_VALUE_REGNO_P): Define.
219 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
220 (ia64_function_value): Make static. Handle receiving the function
221 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
223 2010-06-12 Jan Hubicka <jh@suse.cz>
225 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
228 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
230 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
232 2010-06-12 Jan Hubicka <jh@suse.cz>
234 * df-core.c (df_clear_bb_info): New function.
235 (df_set_blocks): bb_info is always allocated.
236 (df_get_bb_info): Use block_info_elt_size.
237 (df_set_bb_info): Likewise.
238 (df_compact_blocks): Update for new block_info.
239 (grow_bb_info): New function.
240 * df-problems.c (df_grow_bb_info): Move to df-core.c
241 (df_rd_set_bb_info): Remove.
242 (df_rd_free_bb_info): Do not free block pool.
243 (df_rd_alloc): Do not create pool, use check for
244 obstack presence instead of NULL pointer for new blocks.
245 (df_rd_free): DO not free alloc pool; clear block_info.
246 (problem_RD): Add size of block info structure.
247 (df_lr_set_bb_info): Remove.
248 (df_lr_free_bb_info): Do not free block pool.
249 (df_lr_alloc): Do not create pool, use check for
250 obstack presence instead of NULL pointer for new blocks.
251 (df_lr_free): DO not free alloc pool; clear block_info.
252 (problem_LR): Add size of block info structure.
253 (df_live_set_bb_info): Remove.
254 (df_live_free_bb_info): Do not free block pool.
255 (df_live_alloc): Do not create pool, use check for
256 obstack presence instead of NULL pointer for new blocks.
257 (df_live_free): DO not free alloc pool; clear block_info.
258 (problem_LIVE): Add size of block info structure.
259 (problem_CHAIN): Add size of block info structure.
260 (df_byte_lr_set_bb_info): Remove.
261 (df_byte_lr_free_bb_info): Do not free block pool.
262 (df_byte_lr_alloc): Do not create pool, use check for
263 obstack presence instead of NULL pointer for new blocks.
264 (df_byte_lr_free): DO not free alloc pool; clear block_info.
265 (problem_BYTE_LR): Add size of block info structure.
266 (problem_NOTE): Add size of block info structure.
267 (df_byte_MD_set_bb_info): Remove.
268 (df_byte_MD_free_bb_info): Do not free block pool.
269 (df_byte_MD_alloc): Do not create pool, use check for
270 obstack presence instead of NULL pointer for new blocks.
271 (df_byte_MD_free): DO not free alloc pool; clear block_info.
272 (problem_BD): Add size of block info structure.
273 * df-scan.c (df_scan_free_internal): Free block pool.
274 (df_scan_set_bb_info): Remove.
275 (df_scan_free_bb_info): Check for artificial_defs instead
276 of bb_info being non-NULL.
277 (df_scan_alloc): DO not create df_scan_block pool.
278 (problem_SCAN): Set size of block info.
279 (df_bb_refs_record): Do not allocate bb_info.
280 * df.h (df_problem): Add block_info_elt_size.
281 (struct dataflow): Change block_info to void *.
282 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
283 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
286 2010-06-12 Jan Hubicka <jh@suse.cz>
288 PR tree-optimize/44485
289 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
290 containing use of return value of noreturn function.
292 2010-06-12 Anatoly Sokolov <aesok@post.ru>
294 * targhooks.c (default_function_value): Don't use
295 FUNCTION_OUTGOING_VALUE.
296 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
297 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
299 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
301 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*,
302 mips*-*-linux*): Add crtfastmath.o to extra_parts.
303 * config/mips/crtfastmath.c: New.
304 * config/mips/linux.h (ENDFILE_SPEC): New.
306 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
308 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
309 old_type in parameter.
310 (gcc_type_for_value): Update call to gcc_type_for_interval.
311 (compute_type_for_level_1): Renamed compute_type_for_level.
312 Update call to gcc_type_for_interval.
314 2010-06-11 Joseph Myers <joseph@codesourcery.com>
316 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
317 flto-compression-level=, ftree-parallelize-loops=): Add
320 2010-06-11 Joseph Myers <joseph@codesourcery.com>
322 * opts-common.c: Include options.h.
323 (integral_argument): Move from opts.c.
324 (decode_cmdline_option): New. Based on read_cmdline_option.
325 * opts.c (integral_argument): Move to opts-common.c.
326 (read_cmdline_option): Move most contents to
327 decode_cmdline_option. Use %qs in diagnostics.
328 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
329 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
330 decode_cmdline_option): New.
332 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
335 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
336 (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX.
337 (partiysi2_cmp): Ditto.
338 (*partiyhi2_cmp): Ditto.
339 (*parityqi2_cmp): Remove.
341 2010-06-11 Jan Hubicka <jh@suse.cz>
343 * bitmap.h (bmp_iter_next_bit): New.
344 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
346 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
347 Eric Botcazou <ebotcazou@adacore.com>
349 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
352 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
354 * config/i386/i386.md (unspec): New define_c_enum.
357 2010-06-10 Jakub Jelinek <jakub@redhat.com>
359 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
360 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
361 (lazy_hex_fp_value): New function.
362 (builtin_define_with_hex_fp_value): Provide definitions lazily.
363 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
365 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
368 * tree-if-conv.c (bb_predicate_s): New struct.
369 (bb_predicate_p): New.
370 (bb_has_predicate): New.
372 (set_bb_predicate): New.
373 (bb_predicate_gimplified_stmts): New.
374 (set_bb_predicate_gimplified_stmts): New.
375 (add_bb_predicate_gimplified_stmts): New.
376 (init_bb_predicate): New.
377 (free_bb_predicate): New.
378 (is_predicated): Use bb_predicate.
379 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
380 (predicate_bbs): Same. Gimplify the condition of the basic blocks
381 before processing their successors.
382 (clean_predicate_lists): Removed.
383 (find_phi_replacement_condition): Use bb_predicate.
384 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
386 (insert_gimplified_predicates): New.
387 (combine_blocks): Call insert_gimplified_predicates.
388 (tree_if_conversion): Call free_bb_predicate instead of
389 clean_predicate_lists.
391 2010-10-11 Paul Brook <paul@codesourcery.com>
393 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
394 * config/arm/arm.c (all_architectures): Change v7e-m default to
396 * config/arm/arm-cores.def: Add cortex-m4.
397 * config/arm/arm-tune.md: Regenerate.
399 2010-06-11 Jan Hubicka <jh@suse.cz>
401 * ipa-pure-const.c (special_builtlin_state): New function.
402 (check_call): Use it instead of special casign BUILT_IN_RETURN.
403 (propagate_pure_const): Use it.
405 2010-06-11 Jan Hubicka <jh@suse.cz>
407 * df-problems.c (df_live_scratch): Convert to bitmap_head.
408 (df_live_alloc): Initialize df_live_scratch when initializing
410 (df_live_transfer_function): Update uses of df_live_scratch.
411 (df_live_free): Free problem_data; clear df_live_scratch before
412 releasing the obstack.
413 (df_md_free): Free problem data.
415 2010-06-11 Jan Hubicka <jh@suse.cz>
417 * doc/invoke.texi (Wsuggest-attribute): Document.
418 (Wmissing-noreturn): Remove.
419 * ipa-pure-const.c (warn_function_noreturn): New function.
420 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
421 warn_missing_noreturn.
422 * common.opt (Wsuggest-attribute=noreturn): New.
423 * tree-flow.h (warn_function_noreturn): Declare.
424 * tree-cfg.c (execute_warn_function_noreturn): Use
425 warn_function_noreturn.
426 (gate_warn_function_noreturn): New.
427 (pass_warn_function_noreturn): Update.
429 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
431 * c-typeck.c (handle_warn_cast_qual): Add loc
432 parameter. Improve warning message.
433 (build_c_cast): Pass location to handle_warn_cast_qual.
435 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
437 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
438 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
440 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
442 2010-06-10 Dodji Seketeli <dodji@redhat.com>
445 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
448 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
450 * system.h (helper_const_non_const_cast): New inline for
452 (CONST_CAST2): For gcc version <= 4.0 use
453 new helper to do const/non-const casting.
455 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
457 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
458 * Makefile.in (OBJS-common): Include insn-enums.o.
459 (insn-enums.o): New rule.
460 (simple_generated_c): Add insn-enums.c.
461 (build/genenums.o): New rule.
462 (genprogmd): Add "enums".
463 * genconstants.c (print_enum_type): Declare a C string array
465 * genenums.c: New file.
466 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
467 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
468 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
470 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
472 * doc/md.texi (define_enum_attr): Document.
473 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
474 * read-md.h (lookup_enum_type): Declare.
475 * read-md.c (lookup_enum_type): New function.
476 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
477 * genattrtab.c (attr_desc): Add an enum_name field.
478 (evaluate_eq_attr): Take the associated attribute as argument.
479 Get the enum prefix from the enum_name field, if defined.
480 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
481 (simplify_test_exp): Pass attr to evaluate_eq_attr.
482 (add_attr_value): New function, split out from...
483 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
484 (write_test_expr): Pass attr to evaluate_eq_attr.
485 (write_attr_get): Use the enum_name as the enum tag, if defined.
486 (write_attr_valueq): Use the enum_name as a prefix, if defined.
487 (find_attr): Initialize enum_name.
488 (main): Handle DEFINE_ENUM_ATTR.
489 * gensupport.c (process_rtx): Likewise.
490 * config/mips/mips.h (mips_tune_attr): Delete.
491 * config/mips/mips.md (cpu): Use define_attr_enum.
493 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
495 * doc/md.texi (define_c_enum, define_enum): Document.
496 * read-md.h (md_constant): Add a parent_enum field.
497 (enum_value, enum_type): New structures.
498 (upcase_string, traverse_enum_types): Declare.
499 * read-md.c (enum_types): New variable.
500 (upcase_string, add_constant): New functions.
501 (handle_constants): Don't create the hash table here.
503 (traverse_md_constants): Don't check for a null md_constants.
504 (decimal_string, handle_enum, traverse_enum_types): New functions.
505 (read_md_files): Initialize md_constants and md_enums.
506 * genconstants.c (print_md_constant): Ignore info argument.
507 Only print constants that belong to no enum.
508 (print_enum_type): New function.
509 (main): Don't pass stdout to print_md_constant. Call print_enum_type
510 for each defined enum type.
511 * config/mips/mips.md (processor): New define_enum.
512 (unspec): New define_c_enum.
513 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
514 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
515 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
516 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
517 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
518 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
519 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
520 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
521 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
522 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
523 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
524 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
525 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
526 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
527 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
528 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
529 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
530 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
531 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
532 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
533 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
534 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
535 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
536 (UNSPEC_RDDSP): Move to mips-dsp.md.
537 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
538 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
539 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
540 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
541 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
542 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
543 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
544 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
545 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
546 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
547 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
548 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
549 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
550 Moved to mips-dspr2.md.
551 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
552 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
553 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
554 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
555 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
556 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
557 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
558 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
559 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
560 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
561 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
562 UNSPEC_LOONGSON_PSADBH)
563 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
564 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
565 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
566 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
567 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
568 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
569 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
570 (cpu): Update comment.
571 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
572 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
573 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
574 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
575 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
576 UNSPEC_LOONGSON_PCMPEQ)
577 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
578 UNSPEC_LOONGSON_PINSR_0)
579 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
580 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
581 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
582 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
583 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
584 UNSPEC_LOONGSON_PSADBH)
585 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
586 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
587 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
588 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
589 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
590 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
591 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
592 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
593 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
594 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
595 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
596 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
597 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
598 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
599 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
600 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
601 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
602 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
603 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
604 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
605 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
606 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
607 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
608 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
609 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
610 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
611 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
612 (UNSPEC_RDDSP): Moved from mips.md.
613 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
614 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
615 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
616 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
617 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
618 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
619 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
620 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
621 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
622 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
623 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
624 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
625 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
626 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
627 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
628 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
629 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
630 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
631 (UNSPEC_SCC): Moved from mips.md.
632 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
633 "processor_type" to "processor".
634 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
635 * config/mips/mips.h (processor_type): Delete.
636 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
637 "processor_type" to "processor".
639 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
641 * configure.ac (tm_include_list): Add insn-constants.h.
642 * configure: Regenerate.
643 * Makefile.in (GTM_H): Move insn-constants.h here from...
645 * mkconfig.sh: Remove special handling for insn-constants.h.
647 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
649 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
650 (BUILD_MD): ...this new variable.
651 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
652 that include the old contents of simple_generated_h and
654 (simple_generated_h, simple_generated_c): Include them. Add
656 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
657 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
658 Remove these dependencies from the main rule and include
659 insn-conditions.md in the command line only if it appears
660 in the dependency list.
661 (insn-constants.h, s-constants): Delete.
662 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
664 (build/genmddeps.o): Likewise.
665 (genprogrtl): New variable that contains everything from genprogmd
666 except mddeps and constants.
667 (genprogmd): Redefine in terms of genprogrtl. Make these programs
668 depend on $(BUILD_MD)
669 (genprog): New variable. Make these programs depend on
671 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
672 (main): Use read_md_files instead of init_rtx_reader_args.
673 * genconstants.c: As for genmddeps.c.
674 * read-md.h (read_skip_construct): Declare.
675 * read-md.c (read_skip_construct): New function.
676 (handle_file): Allow a null handle_directive, skipping the
678 (parse_include): Update the comment accordingly.
680 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
682 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
683 * genmddeps.c: Include read-md.h.
684 (main): Call init_rtx_reader_args instead of init_md_reader_args.
685 * genattr.c (main): Likewise.
686 * genattrtab.c (main): Likewise.
687 * genautomata.c (main): Likewise.
688 * gencodes.c (main): Likewise.
689 * genconditions.c (main): Likewise.
690 * genconfig.c (main): Likewise.
691 * genconstants.c (main): Likewise.
692 * genemit.c (main): Likewise.
693 * genextract.c (main): Likewise.
694 * genflags.c (main): Likewise.
695 * genopinit.c (main): Likewise.
696 * genoutput.c (main): Likewise.
697 * genpeep.c (main): Likewise.
698 * genrecog.c (main): Likewise.
699 * genpreds.c (main): Likewise.
700 * gensupport.h (in_fname): Move to read-md.h.
701 (init_md_reader_args_cb): Rename to...
702 (init_rtx_reader_args_cb): ...this and return a bool.
703 (init_md_reader_args): Rename to...
704 (init_rtx_reader_args): ...this and return a bool.
705 (include_callback): Move to read-md.h.
706 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
707 (file_name_list, first_dir_md_include): Move to read-md.c
708 (first_bracket_include): Delete unused variable.
709 (last_dir_md_include): Move to read-md.c.
710 (process_include): Delete, moving code to read-md.c:handle_include.
711 (process_rtx): Don't handle INCLUDE.
712 (save_string): Delete.
713 (rtx_handle_directive): New function.
714 (init_md_reader_args_cb): Rename to...
715 (init_rtx_reader_args_cb): ...this and return a boolean success value.
717 (init_md_reader_args): Rename to...
718 (init_rtx_reader_args): ...this and return a boolean success value.
719 * rtl.def (INCLUDE): Delete.
720 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
722 * read-rtl.c (read_conditions): Don't gobble ')' here.
723 (read_mapping): Likewise.
724 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
725 Handle top-level non-rtx constructs here rather than in read_rtx_1.
726 Store the whole queue in *X. Remove call to init_md_reader.
727 (read_rtx_1): Rename to...
728 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
729 Don't handle top-level non-rtx constructs here. Don't handle (nil)
731 (read_nested_rtx): New function. Handle (nil) here rather than
733 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
735 * read-md.h (directive_handler_t): New type.
736 (in_fname, include_callback): Moved from read-md.h.
737 (read_constants, init_md_reader): Delete.
738 (read_md_files): Declare.
739 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
740 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
742 (read_constants): Rename to...
743 (handle_constants): ...this. Don't gobble ')' here.
744 (handle_include, handle_file, handle_toplevel_file)
745 (parse_include): New functions, mostly taken from gensupport.c.
746 (init_md_reader): Subsume into...
747 (read_md_files): ...this new function.
749 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
751 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
752 (unread_char): Decrement read_md_lineno after putting back '\n'.
753 * read-md.c (fatal_with_file_and_line): Push back any characters
754 that we decide not to add to the context.
755 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
756 fatal_expected_char in cases where '/' ends a line (for example).
757 (read_name): Don't increment read_md_lineno here.
758 (read_escape): Likewise.
759 (read_quoted_string): Likewise.
760 (read_braced_string): Likewise.
762 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
764 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
765 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
766 * genconstants.c: Include read-md.h.
767 * read-rtl.c (md_constants): Move to read-md.c.
768 (md_name): Move to read-md.h.
769 (initialize_iterators): Use leading_string_hash instead of def_hash
770 and leading_string_eq_p instead of def_name_eq_p.
771 (read_name): Move to read-md.c.
772 (def_hash, def_name_eq_p): Delete.
773 (read_constants, traverse_md_constants): Move to read-md.c.
774 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
775 * read-md.h: Include hashtab.h.
776 (md_name): Moved from read-rtl.c.
777 (md_constant): Moved from read-md.h.
778 (leading_string_hash, leading_string_eq_p, read_name)
779 (read_constants, traverse_md_constants): Declare.
780 * read-md.c (md_constants): Moved from read-rtl.c.
781 (leading_string_hash, leading_string_eq_p): New functions.
782 (read_name, read_constants, traverse_md_constants): Moved from
785 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
787 * read-rtl.c (md_name): New structure.
788 (read_name): Take an md_name instead of a buffer pointer.
789 Use the "string" field instead of strcpy when expanding constants.
790 (read_constants): Remove the tmp_char argument. Update the calls
791 to read_name, using two local name buffers instead of the tmp_char
792 argument. Merge the constant-creation code.
793 (read_conditions): Remove the tmp_char argument. Update the calls
794 to read_name, using a local name buffer instead of the tmp_char
796 (read_mapping): Replace tmp_char variable with a local name buffer.
797 Update the calls to read_name.
798 (read_rtx_1): Likewise. Update the calls to read_constants and
801 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
803 * Makefile.in (build/read-md.o): Depend on errors.h.
804 * read-md.h (error_with_line): Declare.
805 * read-md.c: Include errors.h.
806 (message_with_line_1): New function, extracted from...
807 (message_with_line): ...here.
808 (error_with_line): New function.
809 * genattrtab.c: If a call to message_with_line is followed by
810 "have_error = 1;", replace both statements with a call to
812 * genoutput.c: Likewise.
813 * genpreds.c: Likewise.
814 * genrecog.c: If a call to message_with_line is followed by
815 "error_count++;", replace both statements with a call to
817 (errorcount): Delete.
818 (main): Don't check it.
819 * gensupport.c: If a call to message_with_line is followed by
820 "errors = 1;", replace both statements with a call to error_with_line.
822 (process_define_cond_exec): Check have_error instead of errors.
823 (init_md_reader_args_cb): Likewise. Don't set errors.
825 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
827 * read-md.h (read_md_file): Declare.
828 (read_char, unread_char): New functions.
829 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
830 (read_quoted_string, read_string): Remove FILE * argument.
831 * read-md.c (read_md_file): New variable.
832 (read_md_filename, read_md_lineno): Update comments and remove
833 unnecessary initialization.
834 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
835 (read_escape, read_quoted_string, read_braced_string, read_string):
836 Remove FILE * argument. Update calls accordingly, using read_char
837 and unread_char instead of getc and ungetc.
838 * rtl.h (read_rtx): Remove FILE * argument.
839 * read-rtl.c (iterator_group): Remove FILE * argument from
841 (iterator_traverse_data): Remove "infile" field.
842 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
843 (add_mapping, read_name, read_constants, read_conditions)
844 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
845 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
846 Remove file arguments from all calls, using read_char and unread_char
847 instead of getc and ungetc.
848 * gensupport.c (process_include): Preserve read_md_file around
849 the include. Set read_md_file to the handle of the included file.
850 Update call to read_rtx.
851 (init_md_reader_args_cb): Set read_md_file to the handle of the file
852 and remove local FILE *. Update calls to read_rtx.
854 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
856 * read-md.h (read_rtx_lineno): Rename to...
857 (read_md_lineno): ...this.
858 (read_rtx_filename): Rename to...
859 (read_md_filename): ...this.
860 (copy_rtx_ptr_loc): Rename to...
861 (copy_md_ptr_loc): ...this.
862 (print_rtx_ptr_loc): Rename to...
863 (print_md_ptr_loc): ...this.
864 * read-md.c: Likewise. Update references after renaming.
865 (string_obstack): Replace RTL with MD in comment.
866 (set_rtx_ptr_loc): Rename to...
867 (set_md_ptr_loc): ...this.
868 (get_rtx_ptr_loc): Rename to...
869 (get_md_ptr_loc): ...this.
870 * genconditions.c: Update references after renaming.
871 * genemit.c: Likewise.
872 * genoutput.c: Likewise.
873 * genpreds.c: Likewise.
874 * gensupport.c: Likewise.
875 * read-rtl.c: Likewise.
877 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
879 * Makefile.in (READ_MD_H): New variable.
880 (BUILD_RTL): Add build/read-md.o.
881 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
882 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
883 (build/genattrtab.o, build/genconditions.o build/genemit.o)
884 (build/genextract.o, build/genflags.o, build/genoutput.o)
885 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
886 (build/read-md.o): New rule.
887 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
888 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
889 * coretypes.h: ...here.
890 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
891 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
892 * genattr.c: Include read-md.h.
893 * genattrtab.c: Likewise.
894 * genconditions.c: Likewise.
895 * genemit.c: Likewise.
896 * genextract.c: Likewise.
897 * genflags.c: Likewise.
898 * genoutput.c: Likewise.
899 * genpreds.c: Likewise.
900 * genrecog.c: Likewise.
901 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
902 (join_c_conditions, print_c_condition, read_rtx_filename)
903 (read_rtx_lineno): Move to read-md.h.
904 * read-rtl.c: Include read-md.h.
905 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
906 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
907 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
908 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
909 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
910 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
911 (read_braced_string, read_string): Move to read-md.c.
912 (read_rtx): Move some initialization to init_md_reader and call
914 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
916 * gensupport.c: Include read-md.h.
917 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
918 * read-md.h, read-md.c: New files.
920 2010-06-10 Anatoly Sokolov <aesok@post.ru>
922 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
923 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
924 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
925 * config/moxie/moxie.c (moxie_function_value): Make static.
926 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
927 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
929 2010-06-10 Martin Jambor <mjambor@suse.cz>
931 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
932 * dbgcnt.def (tree_sra): New counter.
933 * tree-sra.c: Include dbgcnt.h.
934 (gate_intra_sra): Check tree_sra debug counter.
936 2010-06-10 Martin Jambor <mjambor@suse.cz>
938 PR tree-optimization/44258
939 * tree-sra.c (build_access_subtree): Return false iff there is a
941 (build_access_trees): Likewise.
942 (analyze_all_variable_accesses): Disqualify candidates if
943 build_access_trees returns true for them.
945 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
948 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
949 tail-recurse into canonical node. Fast-forward over
950 non-canonical VALUEs.
952 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
955 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
956 (*addsi_1_zext) <TYPE_LEA>: Likewise.
957 (add lea splitter): Likewise.
958 (add_zext lea splitter): Likewise.
960 2010-06-10 Joseph Myers <joseph@codesourcery.com>
962 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
964 2010-06-10 Jan Hubicka <jh@suse.cz>
966 * df-problems.c (df_live_problem_data): Add live_bitmaps.
967 (df_live_alloc): Initialize problem data and live_osbtacks.
968 (df_live_finalize): Remove obstack, problem data; do not
970 (df_live_top_dump, df_live_bottom_dump): Do not dump old
971 data when not allocated.
972 (df_live_verify_solution_start): Do not allocate problem data.
973 (df_live_verify_solution_end): Check if out is allocated.
974 (struct df_md_problem_data): New structure.
975 (df_md_alloc): Allocate problem data.
976 (df_md_free): Free problem data; do not clear bitmaps.
978 2010-06-10 Jan Beulich <jbeulich@novell.com>
981 * configure.ac: Replace $() with ${} when intending to expand
982 variables rather than invoking commands.
983 * configure: Re-generate.
985 2010-06-10 Jan Hubicka <jh@suse.cz>
987 PR rtl-optimization/44460
988 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
989 TYPE_NEEDS_CONSTRUCTING sanity check.
991 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
993 * doc/include/fdl.texi: Move to GFDL version 1.3.
995 * doc/cpp.texi: Move to GFDL version 1.3.
996 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
997 * doc/gccint.texi: Move to GFDL version 1.3.
998 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
999 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
1000 * doc/invoke.texi: Move to GFDL version 1.3.
1002 2010-06-09 Jan Hubicka <jh@suse.cz>
1004 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
1006 (propagate) ... here; swap the order.
1008 2010-06-09 Jan Hubicka <jh@suse.cz>
1010 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
1011 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
1012 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
1013 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
1015 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1017 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
1018 Do not the gather memory reference in the outer loop if the step
1021 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1023 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
1024 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
1025 8 to 4. Minor change of the related comments.
1027 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1029 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1030 the scev analysis when the variable is not used outside the loop
1031 in a close phi node: call compute_overall_effect_of_inner_loop.
1033 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1035 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1036 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1037 (build_sese_conditions_before): Renamed call to single_pred_cond.
1038 (build_sese_conditions_after): Same.
1040 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1042 * graphite-poly.h: Fix comments and indentation.
1043 * graphite-sese-to-poly.c: Same.
1044 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1045 * tree-chrec.c: Fix comments and indentation.
1046 (tree-ssa-loop-niter.c): Same.
1048 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
1050 PR rtl-optimization/42461
1051 * dce.c (deletable_insn_p): Return true for const or pure calls again.
1052 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
1054 2010-06-09 Jan Hubicka <jh@suse.cz>
1056 * bitmap.c (bitmap_and): Walk array forward.
1057 (bitmap_and_compl_into): Likewise.
1058 (bitmap_xor): Likewise.
1059 (bitmap_xor_into): Likewise.
1060 (bitmap_equal_p): Likewise.
1061 (bitmap_intersect_p): Likewise.
1062 (bitmap_intersect_compl_p): Likewise.
1063 (bitmap_ior_and_into): Likewise.
1064 (bitmap_elt_copy): Likewise.
1065 (bitmap_and_compl): Likewise.
1066 (bitmap_elt_ior): Likewise.
1068 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
1070 * opts-common.c (prune_options): Ensure replacement argv array
1071 is correctly terminated by a NULL entry.
1073 2010-06-09 Jan Hubicka <jh@suse.cz>
1075 * cgraph.h (varpool_first_static_initializer,
1076 varpool_next_static_initializer): Make checking only when
1078 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
1079 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
1080 gcc_assert to gcc_checking_assert.
1081 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
1082 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
1083 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
1084 op_iter_init_phiuse, op_iter_init_phidef,
1085 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
1086 gcc_checking_assert.
1087 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
1088 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
1089 partition_is_global, live_on_entry, live_on_exit,
1090 live_merge_and_clear): Likewise.
1091 * system.h (gcc_checking_assert): New macro.
1092 * gimple.h (set_bb_seq): Use gcc_checking_assert.
1094 2010-06-09 Jason Merrill <jason@redhat.com>
1096 * Makefile.in (TAGS): Collect tags info from c-family.
1098 2010-06-09 Jan Hubicka <jh@suse.cz>
1100 * gimple.h (gcc_gimple_checking_assert): New macro.
1101 (gimple_set_def_ops, gimple_set_use_ops,
1102 gimple_set_vuse, gimple_set_vdef,
1103 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
1104 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
1105 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
1106 gimple_asm_output_op, gimple_asm_output_op_ptr,
1107 gimple_asm_set_output_op, gimple_asm_clobber_op,
1108 gimple_asm_set_clobber_op, gimple_asm_label_op,
1109 gimple_asm_set_label_op, gimple_try_set_kind,
1110 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
1111 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
1112 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
1113 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
1114 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
1115 gimple_omp_for_set_initial, gimple_omp_for_final,
1116 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
1117 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
1118 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
1119 conditional with ENABLE_GIMPLE_CHECKING.
1120 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
1122 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
1124 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
1125 (get_computation_cost_at): Use it.
1126 (determine_use_iv_cost_condition): Likewise.
1127 (determine_iv_cost): Likewise.
1129 2010-06-09 Richard Guenther <rguenther@suse.de>
1131 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
1134 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
1136 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
1138 2010-06-09 Martin Jambor <mjambor@suse.cz>
1140 PR tree-optimization/44423
1141 * tree-sra.c (dump_access): Dump also grp_assignment_read.
1142 (analyze_access_subtree): Pass negative allow_replacements to children
1143 if the current type is scalar.
1145 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
1148 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
1149 * doc/plugins.texi (Plugin license check): Update information
1150 on type of plugin_is_GPL_compatible.
1151 * Makefile.in (PLUGINCC): Define as $(COMPILER).
1152 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
1154 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
1156 * config/arm/arm.c (thumb2_reorg): New function.
1157 (arm_reorg): Call it.
1158 * config/arm/thumb2.md (define_peephole2 for flag clobbering
1159 arithmetic operations): Delete.
1161 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
1164 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
1167 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
1170 * gcc-plugin.h: Encapsulate all declarations in extern "C".
1172 2010-06-08 Jan Hubicka <jh@suse.cz>
1174 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
1175 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
1177 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
1179 PR tree-optimization/39874
1181 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
1183 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1184 same_bool_result_p): New.
1185 (and_var_with_comparison, and_var_with_comparison_1,
1186 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1187 (or_var_with_comparison, or_var_with_comparison_1,
1188 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1189 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1190 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1191 of combine_comparisons.
1192 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1194 2010-06-08 Anatoly Sokolov <aesok@post.ru>
1196 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1197 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1198 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1199 pdp11_function_value_regno_p): New functions.
1200 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1201 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1203 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
1205 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
1206 Thumb-2 in the MINUS case.
1208 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1210 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
1212 * doc/gty.texi (GTY Options): Document typed GC allocation and
1213 variable_size GTY option.
1215 * ggc-internal.h: New.
1217 * ggc.h: Update copyright year.
1218 (digit_string): Move to stringpool.c.
1219 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
1220 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
1221 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
1222 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
1223 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
1224 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
1225 (ggc_force_collect, ggc_get_size, ggc_statistics)
1226 (ggc_print_common_statistics): Move to ggc-internal.h.
1227 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
1228 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
1229 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
1230 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
1231 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
1232 (ggc_alloc_zone_pass_stat): Remove.
1233 (ggc_internal_alloc_stat, ggc_internal_alloc)
1234 (ggc_internal_cleared_alloc_stat): New.
1235 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
1236 (ggc_internal_vec_alloc_stat)
1237 (ggc_internal_cleared_vec_alloc_stat)
1238 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
1239 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
1240 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
1241 (ggc_cleared_alloc_ptr_array_two_args): New.
1242 (htab_create_ggc, splay_tree_new_ggc): Redefine.
1243 (ggc_splay_alloc): Change the type of the first argument to
1245 (ggc_alloc_string): Make macro.
1246 (ggc_alloc_string_stat): New.
1247 (ggc_strdup): Redefine.
1248 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
1249 (ggc_alloc_rtvec_sized): New.
1250 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
1251 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
1252 (ggc_internal_cleared_alloc_zone_stat)
1253 (ggc_internal_zone_alloc_stat)
1254 (ggc_internal_zone_cleared_alloc_stat)
1255 (ggc_internal_zone_vec_alloc_stat)
1256 (ggc_alloc_zone_rtx_def_stat)
1257 (ggc_alloc_zone_tree_node_stat)
1258 (ggc_alloc_zone_cleared_tree_node_stat)
1259 (ggc_alloc_cleared_gimple_statement_d_stat): New.
1261 * ggc-common.c: Include ggc-internal.h.
1262 (ggc_internal_cleared_alloc_stat): Rename from
1263 ggc_alloc_cleared_stat.
1264 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
1265 (ggc_calloc): Remove.
1266 (ggc_cleared_alloc_htab_ignore_args): New.
1267 (ggc_cleared_alloc_ptr_array_two_args): New.
1268 (ggc_splay_alloc): Add obj_type parameter.
1269 (init_ggc_heuristics): Formatting fixes.
1271 * ggc-none.c: Update copyright year.
1272 (ggc_alloc_stat): Rename to ggc_alloc_stat.
1273 (ggc_alloc_cleared_stat): Rename to
1274 ggc_internal_cleared_alloc_stat.
1275 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1277 * ggc-page.c: Update copyright year. Include ggc-internal.h.
1278 Remove references to ggc_alloc in comments.
1279 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
1280 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
1281 (new_ggc_zone, destroy_ggc_zone): Remove.
1282 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1284 * ggc-zone.c: Include ggc-internal.h. Remove references to
1285 ggc_alloc in comments.
1286 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
1287 (ggc_internal_alloc_zone_pass_stat): New.
1288 (ggc_internal_cleared_alloc_zone_stat): New.
1289 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
1290 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
1291 (new_ggc_zone, destroy_ggc_zone): Remove.
1293 * stringpool.c: Update copyright year. Include ggc-internal.h
1294 (digit_vector): Make static.
1295 (digit_string): Moved from ggc.h.
1296 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
1297 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
1299 * Makefile.in (GGC_INTERNAL_H): New.
1300 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
1301 $(GGC_INTERNAL_H) to dependencies.
1303 * gentype.c: Update copyright year.
1304 (walk_type): Accept variable_size GTY option.
1305 (USED_BY_TYPED_GC_P): New macro.
1306 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
1307 whitespace at the end of strings.
1308 (get_type_specifier, variable_size_p): New functions.
1309 (alloc_quantity, alloc_zone): New enums.
1310 (write_typed_alloc_def): New function.
1311 (write_typed_struct_alloc_def): Likewise.
1312 (write_typed_typed_typedef_alloc_def): Likewise.
1313 (write_typed_alloc_defns): Likewise.
1314 (output_typename, write_splay_tree_allocator_def): Likewise.
1315 (write_splay_tree_allocators): Likewise.
1316 (main): Call write_typed_alloc_defns and
1317 write_splay_tree_allocators.
1319 * lto-streamer.h (lto_file_decl_data_ptr): New.
1321 * passes.c (order): Define using cgraph_node_ptr.
1323 * strinpool.c (struct string_pool_data): Declare nested_ptr using
1326 * gimple.h (union gimple_statement_d): Likewise.
1328 * rtl.h (struct rtx_def): Likewise.
1329 (struct rtvec_def): Likewise.
1331 * tree.h (union tree_node): Likewise.
1333 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
1335 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
1337 * tree-scalar-evolution.c (scev_initialize): Likewise.
1339 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
1341 * dwarf2asm.c (dw2_force_const_mem): Likewise.
1343 * omp-low.c (lower_omp_critical): Likewise.
1345 * bitmap.h (struct bitmap_head_def): Update comment to not
1346 reference ggc_alloc.
1348 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
1350 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
1352 * ipa-prop.c (duplicate_ggc_array): Rename to
1353 duplicate_ipa_jump_func_array. Use typed GC allocation.
1354 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
1356 * gimple.c (gimple_alloc_stat): Use
1357 ggc_alloc_cleared_gimple_statement_d_stat.
1359 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
1361 * tree.c (make_node_stat): Use
1362 ggc_alloc_zone_cleared_tree_node_stat.
1363 (make_tree_vec_stat): Likewise.
1364 (build_vl_exp_stat): Likewise.
1365 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
1366 (make_tree_binfo_stat): Likewise.
1367 (tree_cons_stat): Likewise.
1369 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
1370 (shallow_copy_rtx_stat): Likewise.
1371 (make_node_stat): Likewise.
1373 * lto-symtab.c: Fix comment.
1375 * tree-cfg.c (create_bb): Update comment to not reference
1377 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
1379 * varpool.c (varpool_node): Use typed GC allocation.
1380 (varpool_extra_name_alias): Likewise.
1382 * varasm.c (emutls_decl): Likewise.
1383 (get_unnamed_section): Likewise.
1384 (get_noswitch_section): Likewise.
1385 (get_section): Likewise.
1386 (get_block_for_section): Likewise.
1387 (build_constant_desc): Likewise.
1388 (create_constant_pool): Likewise.
1389 (force_const_mem): Likewise.
1391 * tree.c (build_vl_exp_stat): Likewise.
1392 (build_real): Likewise.
1393 (build_string): Likewise.
1394 (decl_debug_expr_insert): Likewise.
1395 (decl_value_expr_insert): Likewise.
1396 (type_hash_add): Likewise.
1397 (build_omp_clause): Likewise.
1399 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
1401 * tree-ssa.c (init_tree_ssa): Likewise.
1403 * tree-ssa-structalias.c (heapvar_insert): Likewise.
1405 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
1407 * tree-ssa-loop-niter.c (record_estimate): Likewise.
1409 * tree-ssa-alias.c (get_ptr_info): Likewise.
1411 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
1413 * tree-phinodes.c (allocate_phi_node): Likewise.
1415 * tree-iterator.c (tsi_link_before): Likewise.
1416 (tsi_link_after): Likewise.
1418 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
1420 * tree-dfa.c (create_var_ann): Likewise.
1422 * tree-cfg.c (create_bb): Likewise.
1424 * toplev.c (alloc_for_identifier_to_locale): Likewise.
1425 (general_init): Likewise.
1427 * stringpool.c (stringpool_ggc_alloc): Likewise.
1428 (gt_pch_save_stringpool): Likewise.
1430 * sese.c (if_region_set_false_region): Likewise.
1432 * passes.c (do_per_function_toporder): Likewise.
1434 * optabs.c (set_optab_libfunc): Likewise.
1435 (set_conv_libfunc): Likewise.
1437 * lto-symtab.c (lto_symtab_register_decl): Likewise.
1439 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
1440 (input_eh_region): Likewise.
1441 (input_eh_lp): Likewise.
1442 (make_new_block): Likewise.
1443 (unpack_ts_real_cst_value_fields): Likewise.
1445 * lto-section-in.c (lto_new_in_decl_state): Likewise.
1447 * lto-cgraph.c (input_node_opt_summary): Likewise.
1449 * loop-init.c (loop_optimizer_init): Likewise.
1451 * lambda.h (lambda_vector_new): Likewise.
1453 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1455 * ira.c (update_equiv_regs): Likewise.
1457 * ipa.c (cgraph_node_set_new): Likewise.
1458 (cgraph_node_set_add): Likewise.
1459 (varpool_node_set_new): Likewise.
1460 (varpool_node_set_add): Likewise.
1462 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
1463 (duplicate_ipa_jump_func_array): Likewise.
1464 (ipa_read_node_info): Likewise.
1466 * ipa-cp.c (ipcp_create_replace_map): Likewise.
1468 * integrate.c (get_hard_reg_initial_val): Likewise.
1470 * gimple.c (gimple_alloc_stat): Likewise.
1471 (gimple_build_omp_for): Likewise.
1472 (gimple_seq_alloc): Likewise.
1473 (gimple_copy): Likewise.
1475 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
1476 (gsi_insert_after_without_update): Likewise.
1478 * function.c (add_frame_space): Likewise.
1479 (insert_temp_slot_address): Likewise.
1480 (assign_stack_temp_for_type): Likewise.
1481 (allocate_struct_function): Likewise.
1482 (types_used_by_var_decl_insert): Likewise.
1484 * except.c (init_eh_for_function): Likewise.
1485 (gen_eh_region): Likewise.
1486 (gen_eh_region_catch): Likewise.
1487 (gen_eh_landing_pad): Likewise.
1488 (add_call_site): Likewise.
1490 * emit-rtl.c (get_mem_attrs): Likewise.
1491 (get_reg_attrs): Likewise.
1492 (start_sequence): Likewise.
1493 (init_emit): Likewise.
1495 * dwarf2out.c (new_cfi): Likewise.
1496 (queue_reg_save): Likewise.
1497 (dwarf2out_frame_init): Likewise.
1498 (new_loc_descr): Likewise.
1499 (find_AT_string): Likewise.
1500 (new_die): Likewise.
1501 (add_var_loc_to_decl): Likewise.
1502 (clone_die): Likewise.
1503 (clone_as_declaration): Likewise.
1504 (break_out_comdat_types): Likewise.
1505 (new_loc_list): Likewise.
1506 (loc_descriptor): Likewise.
1507 (add_loc_descr_to_each): Likewise.
1508 (add_const_value_attribute): Likewise.
1509 (tree_add_const_value_attribute): Likewise.
1510 (add_comp_dir_attribute): Likewise.
1511 (add_name_and_src_coords_attributes): Likewise.
1512 (lookup_filename): Likewise.
1513 (store_vcall_insn): Likewise.
1514 (dwarf2out_init): Likewise.
1516 * dbxout.c (dbxout_init): Likewise.
1518 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1520 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1522 * config/score/score7.c (score7_output_external): Likewise.
1524 * config/score/score3.c (score3_output_external): Likewise.
1526 * config/s390/s390.c (s390_init_machine_status): Likewise.
1528 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
1529 (rs6000_init_machine_status): Likewise.
1530 (output_toc): Likewise.
1532 * config/pa/pa.c (pa_init_machine_status): Likewise.
1533 (get_deferred_plabel): Likewise.
1535 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
1537 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
1539 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
1541 * config/mep/mep.c (mep_init_machine_status): Likewise.
1542 (mep_note_pragma_flag): Likewise.
1544 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
1546 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
1548 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
1550 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1551 (i386_pe_maybe_record_exported_symbol): Likewise.
1553 * config/i386/i386.c (get_dllimport_decl): Likewise.
1554 (ix86_init_machine_status): Likewise.
1555 (assign_386_stack_local): Likewise.
1557 * config/frv/frv.c (frv_init_machine_status): Likewise.
1559 * config/darwin.c (machopic_indirection_name): Likewise.
1561 * config/cris/cris.c (cris_init_machine_status): Likewise.
1563 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
1565 * config/avr/avr.c (avr_init_machine_status): Likewise.
1567 * config/arm/arm.c (arm_init_machine_status): Likewise.
1569 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
1570 (alpha_need_linkage): Likewise.
1571 (alpha_use_linkage): Likewise.
1573 * cgraph.c (cgraph_allocate_node): Likewise.
1574 (cgraph_create_edge_1): Likewise.
1575 (cgraph_create_indirect_edge): Likewise.
1576 (cgraph_add_asm_node): Likewise.
1578 * cfgrtl.c (init_rtl_bb_info): Likewise.
1580 * cfgloop.c (alloc_loop): Likewise.
1581 (rescan_loop_exit): Likewise.
1583 * cfg.c (init_flow): Likewise.
1584 (alloc_block): Likewise.
1585 (unchecked_make_edge): Likewise.
1587 * c-parser.c (c_parse_init): Likewise.
1588 (c_parse_file): Likewise.
1590 * c-decl.c (bind): Likewise.
1591 (record_inline_static): Likewise.
1592 (push_scope): Likewise.
1593 (make_label): Likewise.
1594 (lookup_label_for_goto): Likewise.
1595 (finish_struct): Likewise.
1596 (finish_enum): Likewise.
1597 (c_push_function_context): Likewise.
1599 * bitmap.c (bitmap_element_allocate): Likewise.
1600 (bitmap_gc_alloc_stat): Likewise.
1602 * alias.c (record_alias_subset): Likewise.
1603 (init_alias_analysis): Likewise.
1605 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
1607 * fold-const.c (fold_comparison): Remove redundant parenthesis.
1608 * tree-inline.c (expand_call_inline): Pass translated return value of
1609 cgraph_inline_failed_string to diagnostic function.
1611 2010-06-08 Andrew Pinski <pinskia@gmail.com>
1612 Shujing Zhao <pearly.zhao@oracle.com>
1615 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
1616 implicit bad conversions is initialization.
1617 (error_init): Use gmsgid instead of msgid for argument name and change
1619 (pedwarn_init): Use gmsgid instead of msgid for argument name and
1620 change the call for pedwarn.
1621 (warning_init): Use gmsgid instead of msgid for argument name and
1622 change the call for warning.
1624 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
1626 * config/mips/mips-protos.h (mips_print_operand): Delete.
1627 (mips_print_operand_address): Delete.
1628 * config/mips/mips.h (mips_print_operand_punct): Delete.
1629 (PRINT_OPERAND): Delete.
1630 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1631 (PRINT_OPERAND_ADDRESS): Delete.
1632 * config/mips/mips.c (mips_print_operand_punct): Make static.
1633 (mips_print_operand_address): Make static.
1634 (mips_print_operand): Make static. Call
1635 mips_print_operand_punct_valid_p.
1636 (mips_print_operand_punct_valid_p): New function.
1637 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1638 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1640 2010-06-07 Jan Hubicka <jh@suse.cz>
1643 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
1646 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
1648 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
1651 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1653 * doc/sourcebuild.texi (Effective-Target Keywords, Other
1654 attributes): Document gas.
1656 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
1658 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
1659 <TYPE_LEA>: Split instruction.
1660 <default>: Remove alternative 2 handling.
1661 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
1662 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
1663 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
1665 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
1666 (ashift_zext lea splitter): Use DImode for multiplication.
1668 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
1669 to generate addition.
1671 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1673 * common.opt (fira-verbose): Use Var.
1674 (fpcc-struct-return): Use Init instead of VarExists.
1675 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
1677 * flags.h (flag_signed_char, flag_short_enums,
1678 flag_pcc_struct_return, flag_ira_verbose,
1679 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
1680 * toplev.c (flag_detailed_statistics, flag_signed_char,
1681 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
1682 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
1683 * toplev.h (flag_crossjumping, flag_if_conversion,
1684 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
1685 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
1686 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
1687 flag_cprop_registers, time_report, flag_ira_loop_pressure,
1688 flag_ira_coalesce, flag_ira_move_spills,
1689 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
1691 2010-06-07 Jan Hubicka <jh@suse.cz>
1693 * df-core.c (df_analyze_problem): Do verification after allocation.
1695 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
1696 (df_lr_alloc): Initialize problem data; move bitmaps to
1698 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
1699 (df_lr_verify_solution_start): Do not initialize problem data;
1700 allocate bitmaps in lr_bitmaps.
1701 (df_lr_verify_solution_end): Do not free problem data.
1703 2010-06-07 Jan Hubicka <jh@suse.cz>
1705 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
1706 if caller is noreturn.
1707 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
1708 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
1709 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
1710 * ipa-pure-const.c (check_decl): Add IPA parameter.
1711 (state_from_flags): New function.
1712 (better_state, worse_state): New functions.
1713 (check_call): When in IPA mode, do not care about callees.
1714 (check_load, check_store): Update.
1715 (check_ipa_load, check_ipa_store): New.
1716 (check_stmt): When in IPA mode, use IPA checkers.
1717 (analyze_function): Use state_from_flags.
1718 (propagate): Check indirect edges and references.
1720 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
1722 PR rtl-optimization/44404
1723 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
1724 of count_occurrences to see if it's safe to modify mem_insn.
1726 2010-06-07 Richard Guenther <rguenther@suse.de>
1728 * gimplify.c (gimplify_cleanup_point_expr): For empty body
1729 and EH-only cleanup drop the cleanup instead of inserting it
1732 2010-06-07 Ira Rosen <irar@il.ibm.com>
1734 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
1736 * targhooks.c (default_builtin_vectorization_cost): New function.
1737 * targhooks.h (default_builtin_vectorization_cost): Declare.
1738 * target.h (enum vect_cost_for_stmt): Define.
1739 (builtin_vectorization_cost): Change argument and comment.
1740 * tree-vectorizer.h: Remove cost model macros.
1741 * tree-vect-loop.c: Include target.h.
1742 (vect_get_cost): New function.
1743 (vect_estimate_min_profitable_iters): Replace cost model macros with
1744 calls to vect_get_cost.
1745 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
1746 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
1747 default implementation.
1748 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
1749 calls to target hook builtin_vectorization_cost.
1750 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
1752 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
1753 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
1754 implementation to return costs.
1755 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1756 * config/spu/spu.h: Remove vectorizer cost model macros.
1757 * config/i386/i386.h: Likewise.
1758 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
1759 a call to target hook builtin_vectorization_cost.
1761 2010-06-06 Sriraman Tallam <tmsriram@google.com>
1764 * config/i386/i386.c (override_options): Turn zee pass on for level 2
1765 and above and defer till target is known.
1766 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
1769 2010-05-25 Jan Hubicka <jh@suse.cz>
1771 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
1772 (df_compact_blocks): Likewise.
1773 * df.h (struct df): Turn hardware_regs_used,
1774 regular_block_artificial_uses, eh_block_artificial_uses,
1775 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
1777 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
1778 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
1779 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
1780 df_scan_blocks, df_insn_delete, df_insn_rescan,
1781 df_insn_rescan_debug_internal, df_insn_rescan_all,
1782 df_process_deferred_rescans, df_process_deferred_rescans,
1783 df_notes_rescan, df_get_call_refs, df_get_call_refs,
1784 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
1785 df_record_entry_block_defs, df_record_exit_block_uses,
1786 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
1787 df_scan_verify): Update.
1789 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1792 * c-common.c (is_typedef_decl): Move this definition ...
1793 * tree.c (is_typedef_decl): ... here.
1794 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1795 * c-common.h (is_typedef_decl): Move this declaration ...
1796 * tree.h (is_typedef_decl): ... here.
1797 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1798 * dwarf2out.c (is_naming_typedef_decl): New function.
1799 (gen_tagged_type_die): Split out of ...
1800 (gen_type_die_with_usage): ... this function. When an anonymous
1801 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1802 is emitted for the typedef.
1803 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1804 anonymous tagged types.
1806 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1809 * c-decl.c (grokdeclarator): Delete warning.
1811 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
1813 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
1814 newly built CALL_EXPR.
1815 * tree-profile.c (tree_profiling): Don't profile functions produced
1818 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
1822 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
1823 endianness-independent.
1825 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1827 * c-common.c: Move to c-family/.
1828 * c-common.def: Likewise.
1829 * c-common.h: Likewise.
1830 * c-cppbuiltin.c: Likewise.
1831 * c-dump.c: Likewise.
1832 * c-format.c: Likewise.
1833 * c-format.h : Likewise.
1834 * c-gimplify.c: Likewise.
1835 * c-lex.c: Likewise.
1836 * c-omp.c: Likewise.
1838 * c-opts.c: Likewise.
1839 * c-pch.c: Likewise.
1840 * c-ppoutput.c: Likewise.
1841 * c-pragma.c: Likewise.
1842 * c-pragma.h: Likewise.
1843 * c-pretty-print.c: Likewise.
1844 * c-pretty-print.h: Likewise.
1845 * c-semantics.c: Likewise.
1846 * stub-objc.c: Likewise.
1848 * gengtype.c (get_file_langdir): Special-case files in c-family/.
1849 (get_output_file_with_visibility): Fix name for c-common.h.
1850 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
1852 * c-tree.h: Update include path for moved files.
1853 * c-lang.c: Likewise.
1854 * c-lang.h: Likewise.
1855 * c-parser.c: Likewise.
1856 * c-convert.c: Likewise.
1857 * c-decl.c: Likewise.
1858 * c-objc-common.c: Likewise.
1859 * configure.ac: Make sure c-family/ exists in the build directory.
1860 * configure: Regenerate.
1861 * Makefile.in: Update paths for moved files. Regroup files per
1862 location and update dependencies. Move generated_files down after
1865 * config/spu/spu-c.c: Update paths for moved files.
1866 * config/mep/mep-pragma.c: Likewise.
1867 * config/darwin-c.c: Likewise.
1868 * config/i386/msformat-c.c: Likewise.
1869 * config/i386/i386-c.c: Likewise.
1870 * config/avr/avr-c.c: Likewise.
1871 * config/sol2-c.c: Likewise.
1872 * config/ia64/ia64-c.c: Likewise.
1873 * config/rs6000/rs6000-c.c: Likewise.
1874 * config/arm/arm.c: Likewise.
1875 * config/arm/arm-c.c: Likewise.
1876 * config/h8300/h8300.c: Likewise.
1877 * config/v850/v850-c.c: Likewise.
1879 * config/t-darwin: Fix dependencies for moved files.
1880 * config/t-sol2: Fix dependencies for moved files.
1881 * config/mep/t-mep: Fix dependencies for moved files.
1882 * config/ia64/t-ia64: Fix dependencies for moved files.
1883 * config/rs6000/t-rs6000: Fix dependencies for moved files.
1884 * config/v850/t-v850: Fix dependencies for moved files.
1885 * config/v850/t-v850e: Fix dependencies for moved files.
1887 * config/m32c/m32c-pragma.c
1889 * po/exgettext: Look in c-family/ also.
1891 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
1893 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
1894 (mark_control_dependent_edges_necessary): Call it instead of marking
1895 the last statement manually.
1896 (propagate_necessity): Likewise.
1898 2010-06-05 Jan Hubicka <jh@suse.cz>
1900 * basic-block.h (compute_dominance_frontiers): Updated.
1901 (compute_idf): Likewise.
1903 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
1904 for dominance frontiers.
1905 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
1906 (insert_updated_phi_nodes_for): Likewise.
1907 (update_ssa): Likewise.
1908 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1909 (compute_dominance_frontiers): Likewise.
1910 (compute_idf): Likewise.
1911 * df-problems.c (df_md_local_compute): Likewise.
1913 2010-06-05 Anatoly Sokolov <aesok@post.ru>
1915 * target.h (struct gcc_target): Add memory_move_cost field.
1916 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
1917 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
1918 * targhooks.c (default_memory_move_cost): New function.
1919 * targhooks.h (default_memory_move_cost): Declare function.
1920 * reload.h (memory_move_cost): Declare.
1921 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1922 * reginfo.c (memory_move_cost): New function.
1923 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1924 * ira.h (ira_memory_move_cost): Update comment.
1925 * ira.c: (ira_memory_move_cost): Update comment.
1926 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
1927 with memory_move_cost.
1928 * postreload.c (reload_cse_simplify_set): (Ditto.).
1929 * reload1.c (choose_reload_regs): (Ditto.).
1930 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
1931 (MEMORY_MOVE_COST): Revise documentation.
1933 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1934 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1935 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
1936 type of 'in' argument to bool.
1937 (TARGET_MEMORY_MOVE_COST): Define.
1939 2010-06-05 Jan Hubicka <jh@suse.cz>
1941 * ipa-pure-const.c (propagate): Fix typo in handling of functions
1942 that cannot return. Be more careful when merging the results with
1943 previously known ones.
1945 2010-06-05 Matthias Klose <doko@ubuntu.com>
1947 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
1948 function to add the -iplugindir option.
1949 (find_plugindir_spec_function): Add new declaration and function.
1950 (static_spec_func): Use it for "find-plugindir".
1952 2010-06-05 Jakub Jelinek <jakub@redhat.com>
1955 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
1956 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
1957 statement expression.
1959 2010-06-05 Jan Hubicka <jh@suse.cz>
1961 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
1962 (df_rd_problem_data): Convert sparse_invalidated_by_call,
1963 dense_invalidated_by_call to bitmap head.
1964 (df_rd_alloc, df_rd_bb_local_compute_process_def,
1965 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
1966 df_rd_start_dump, df_lr_verify_transfer_functions,
1967 df_live_verify_transfer_functions, df_chain_create_bb,
1968 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
1969 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
1970 df_simulate_one_insn_forwards, df_md_alloc,
1971 df_md_bb_local_compute_process_def,
1972 df_md_bb_local_compute_process_def, df_md_local_compute,
1973 df_md_transfer_function df_md_free): Update.
1975 2010-06-05 Joseph Myers <joseph@codesourcery.com>
1978 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
1979 target type for ADDR_EXPR; require no changes to qualifiers except
1981 * c-tree.h (c_build_type_variant): Remove.
1983 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1985 * genautomata.c (get_excl_set): Do work per element, not per char.
1986 (check_presence_pattern_sets): Similar.
1987 (check_absence_pattern_sets): Similar.
1989 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1991 * genautomata.c (curr_state_pass_num): Delete.
1992 (min_issue_delay_pass_states): Delete.
1993 (min_issue_delay): Delete.
1994 (initiate_min_issue_delay_pass_states): Delete.
1995 (output_min_issue_delay_table): Compute min_issue_delay_vect
1996 using a breadth-first search variant.
1997 (output_tables): Don't call initiate_min_issue_delay_pass_states.
1999 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
2002 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
2003 (df_byte_lr_bb_local_compute): Likewise.
2005 2010-06-03 Jason Merrill <jason@redhat.com>
2007 Implement noexcept operator (5.3.7)
2008 * c-common.c (c_common_reswords): Add noexcept.
2009 * c-common.h (enum rid): Add RID_NOEXCEPT.
2011 2010-06-04 Joseph Myers <joseph@codesourcery.com>
2013 * config/darwin-driver.c (darwin_default_min_version): Use
2014 GCC-specific formats in diagnostics.
2015 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
2017 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
2018 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
2019 eval_spec_function, handle_braces, process_brace_body, main,
2020 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
2021 getenv_spec_function, compare_version_strings,
2022 version_compare_spec_function): Use GCC-specific formats in
2025 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2027 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
2028 that operand 0 and operand 1 are equal.
2029 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
2030 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
2031 and operand 1 are equal.
2032 <default>: Ditto. Remove ??? comment.
2033 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
2034 and operand 1 are equal.
2035 <default>: Ditto. Remove ??? comment.
2036 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
2038 (*add<mode>_4) <default>: Ditto.
2039 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
2041 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
2043 * config/i386/i386-protos.h (ix86_print_operand): Declare.
2044 * config/i386/i386.c (ix86_print_operand): Make non-static.
2045 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
2046 * output.h (output_operand): Declare.
2047 * final.c (output_operand): Make non-static.
2049 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
2051 PR rtl-optimization/44013
2052 * sched-deps.c (add_dependence_list_and_free): Don't free lists
2053 when processing debug insns.
2056 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
2057 recursing. Check that recursion is bounded. Rename inner var
2058 to avoid hiding incoming argument.
2060 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2062 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
2067 (*addqi_ext_1_rex64): Ditto.
2068 (*addqi_ext_1): Ditto.
2070 (*addqi_4): Check for incdec_operand in QImode.
2072 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
2073 using SWI mode iterator.
2074 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
2075 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
2077 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
2078 using SWI mode iterator.
2080 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2083 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
2084 * c-format.c (gcc_diag_flag_specs): Add hash.
2085 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
2086 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
2087 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
2088 pp_c_cv_qualifiers. Handle qualifiers spelling here.
2089 (pp_c_type_qualifier_list): Call the function above.
2090 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
2091 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
2092 (WARN_FOR_QUALIFIERS): New macro.
2093 (convert_for_assignment): Use it.
2095 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
2097 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
2099 2010-06-04 Jan Hubicka <jh@suse.cz>
2101 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
2102 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
2103 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
2104 DF_BYTE_LR_OUT): Update for embedded bitmaps.
2105 * fwprop.c (single_def_use_enter_block): Likewise.
2106 * ddg.c (create_ddg_dep_from_intra_loop_link,
2107 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
2108 * loop-iv.c (latch_dominating_def): Likewise.
2109 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
2110 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
2111 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
2112 df_rd_transfer_function, df_rd_top_dump,
2113 df_rd_bottom_dump): Update.
2114 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
2115 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
2116 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
2117 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
2118 df_lr_verify_solution_start, df_lr_verify_solution_end,
2119 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
2120 df_live_free_bb_info, df_live_alloc, df_live_reset,
2121 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
2122 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
2123 df_live_verify_solution_start, df_live_verify_solution_end,
2124 df_live_verify_transfer_functions, df_chain_create_bb,
2125 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
2126 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2127 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2128 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
2129 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2130 df_byte_lr_transfer_function, df_byte_lr_top_dump,
2131 df_byte_lr_bottom_dump, df_create_unused_note,
2132 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
2133 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
2134 df_md_transfer_function, df_md_init, df_md_confluence_0,
2136 df_md_top_dump, df_md_bottom_dump): Update.
2137 (struct df_lr_problem_data): Embedd bitmap headers.
2139 2010-06-04 Jan Hubicka <jh@suse.cz>
2141 * dce.c (dce_process_block): Do not re-scan already marked
2144 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
2146 PR rtl-optimization/39871
2147 PR rtl-optimization/40615
2148 PR rtl-optimization/42500
2149 PR rtl-optimization/42502
2150 * ira.c (init_reg_equiv_memory_loc: New function.
2151 (ira): Call it twice.
2152 * reload.h (calculate_elim_costs_all_insns): Declare.
2153 * ira-costs.c: Include "reload.h".
2154 (regno_equiv_gains): New static variable.
2155 (init_costs): Allocate it.
2156 (finish_costs): Free it.
2157 (ira_costs): Call calculate_elim_costs_all_insns.
2158 (find_costs_and_classes): Take estimated elimination costs
2160 (ira_adjust_equiv_reg_cost): New function.
2161 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
2162 * reload1.c (init_eliminable_invariants, free_reg_equiv,
2163 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
2164 (elim_bb): New static variable.
2165 (reload): Move code out of here into init_eliminable_invariants and
2166 free_reg_equiv. Call them.
2167 (calculate_elim_costs_all_insns): New function.
2168 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
2169 all callers changed. If FOR_COSTS is true, don't call alter_reg,
2170 but call note_reg_elim_costly if we turned a valid memory address
2171 into an invalid one.
2172 * Makefile.in (ira-costs.o): Depend on reload.h.
2174 2010-06-04 Julian Brown <julian@codesourcery.com>
2176 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
2179 2010-06-04 Richard Guenther <rguenther@suse.de>
2182 * cgraph.h (struct varpool_node): Add lto_file_data field.
2183 * lto-cgraph.c (input_varpool_node): Initialize it.
2185 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2187 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2188 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2189 predicate in "type" attribute calculation.
2190 (*addsi_1_zext): Ditto.
2191 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2192 (*addsi_2_zext): Ditto.
2193 (*add<mode>_3): Ditto.
2194 (*addsi_3_zext): Ditto.
2195 (*add<mode>_5): Ditto.
2197 2010-06-03 Jan Hubicka <jh@suse.cz>
2199 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
2201 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2203 2010-06-03 Jan Hubicka <jh@suse.cz>
2205 * df-problems.c (df_create_unused_note, df_note_bb_compute):
2206 micro-optimize the checks when to add new note.
2208 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
2210 * final.c (output_asm_insn): Call
2211 targetm.asm_out.print_operand_punct_valid_p. Update comments.
2212 (output_operand): Call targetm.asm_out.print_operand. Update comments.
2213 (output_address): Call targetm.asm_out.print_operand_address.
2215 * target.h (struct gcc_target): Add print_operand,
2216 print_operand_address, and print_operand_punct_valid_p fields.
2217 * targhooks.h (default_print_operand): Declare.
2218 (default_print_operand_address): Declare.
2219 (default_print_operand_punct_valid_p): Declare.
2220 * targhooks.c (default_print_operand): Define.
2221 (default_print_operand_address): Define.
2222 (default_print_operand_punct_valid_p): Define.
2223 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
2224 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
2225 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2226 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
2227 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
2228 * vmsdbgout.c (addr_const_to_string): Update comment.
2229 * config/i386/i386.c (print_operand): Rename to...
2230 (ix86_print_operand): ...this. Make static.
2231 (print_operand_address): Rename to...
2232 (ix86_print_operand_address): ...this. Make static. Call
2233 ix86_print_operand instead of PRINT_OPERAND.
2234 (ix86_print_operand_punct_valid_p): New function.
2235 (TARGET_PRINT_OPERAND): Define.
2236 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2237 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2238 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
2239 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2240 (PRINT_OPERAND): Delete.
2241 (PRINT_OPERAND_ADDRESS): Delete.
2242 * config/i386/i386-protos.h (print_operand): Delete prototype.
2243 (print_operand_address): Delete prototype.
2245 2010-06-03 Richard Guenther <rguenther@suse.de>
2247 PR tree-optimization/44403
2248 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2249 Preserve pointer qualifiers.
2250 (vect_create_data_ref_ptr): Likewise.
2252 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
2255 * defaults.h (MAX_FIXED_MODE_SIZE): New.
2257 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
2259 2010-06-03 Jakub Jelinek <jakub@redhat.com>
2262 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
2263 return false if merging the bbs would lead to goto_locus
2264 location being lost from the IL.
2266 2010-06-03 Jan Hubicka <jh@suse.cz>
2267 Jakub Jelinek <jakub@redhat.com>
2269 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
2270 set->regs[i] is NULL or has just one entry.
2272 2010-06-03 Jan Hubicka <jh@suse.cz>
2274 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
2275 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
2277 2010-06-03 Paul Brook <paul@codesourcery.com>
2279 * config/arm/arm.c (FL_TUNE): Define.
2280 (arm_default_cpu, arm_cpu_select): Remove.
2281 (all_cores): Populate core field.
2282 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
2283 (arm_find_cpu): New function.
2284 (arm_handle_option): Lookup cpu/architecture names.
2285 (arm_override_options): Cleanup mcpu/march/mtune handling.
2286 (arm_file_start): Ditto.
2288 2010-06-03 Alan Modra <amodra@gmail.com>
2291 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
2292 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
2293 rtx to gen_load_toc_v4_PIC_1b. Tidy.
2294 (rs6000_emit_load_toc_table): Likewise.
2296 2010-06-02 Jan Hubicka <jh@suse.cz>
2298 * passes.c (init_optimization_passes): Put ipa reference
2299 after ipa pure-const.
2301 2010-06-02 Jan Hubicka <jh@suse.cz>
2303 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
2304 calls_read_all and calls_write_all.
2305 (get_reference_optimization_summary): Fix formatting.
2306 (is_proper_for_analysis): Check that decl is not readonly.
2307 (propagate_bits): Check CONST/PURE/noreturn flags.
2308 (ipa_init): Move all_module_statics to optimization_summary_obstack.
2309 (analyze_function): Ignore indirect edges.
2310 (copy_global_bitmap): For all module statics, do nothing.
2311 (generate_summary): Do not print calls_read_all/calls_write_all.
2312 (read_write_all_from_decl): Take node as argument; check
2313 cgraph_node_cannot_return.
2314 (propagate): Reorganize read_all/write_all computation;
2315 check indirect edges; check ecf flags; use all_module_statics
2316 in the results; do not free all_module_statics.
2317 (stream_out_bitmap): Handle all_module_statics.
2318 (ipa_reference_write_optimization_summary): Likewise; use
2319 varpool/cgraph encoders to get boundaries.
2320 (ipa_reference_read_optimization_summary): Read in all_module_statics;
2321 use it when possible.
2323 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2326 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
2327 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
2329 * doc/extend.texi (powerpc builtins): Document vec_recip,
2330 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
2332 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
2333 (rs6000_emit_swrsqrt): Ditto.
2334 (rs6000_emit_swdivsf): Delete.
2335 (rs6000_emit_swdivdf): Ditto.
2336 (rs6000_emit_swrsqrtsf): Ditto.
2338 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
2339 describe the reciprocal estimate support for each type.
2340 (recip_options): Map -mrecip=<opt> into option bits.
2341 (gen_2arg_fn_t): New typedef for binary rtx gen function.
2342 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
2343 reciprocal estimate instructions.
2344 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
2345 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
2346 Set up rs6000_recip_bits based on the -mrecip* options. Print the
2347 cost information if -mdebug=cost or -mdebug=reg.
2348 (rs6000_override_options): Set -mrecip-precision for power6, and
2349 power7 machines. If -mvsx or -mdfp, enable various options that
2350 came in previous instruction set ISAs, unless the option was
2351 explicitly disabled by the command line option. Parse
2352 -mrecip=<opt> options.
2353 (rs6000_builtin_vectorized_function): Add support for vectorizing
2354 the reciprocal estimate builtins and expansions.
2355 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
2356 (bdesc_2arg): Add reciprocal estimate builtins.
2357 (bdesc_1arg): Add reciprocal square root estimate builtins.
2358 (rs6000_expand_builtin): Rewrite to use a switch statement,
2359 instead of multiple if/then/elses. Add reciprocal estimate builtins.
2360 (rs6000_init_builtins): Create declarations for reciprocal
2362 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
2363 sized, prefer traditional floating point registers, if integer
2364 vector types, prefer altivec registers. Don't actually look at
2365 the memory address any more.
2366 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
2368 (rs6000_load_constant_and_splat): New helper function to load up
2369 the constant for reciprocal estimate instructions.
2370 (rs6000_emit_madd): New helper function for generating
2371 multiply/add type instructions, based on the current switches.
2372 (rs6000_emit_msub): Ditto.
2373 (rs6000_emit_mnsub): Ditto.
2374 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
2375 replace a divide with a reciprocal estimate and fixup, adding
2376 support for machines with high precision and vectors.
2377 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
2378 low precision machines.
2379 (rs6000_emit_swdiv): New common function to be called to replace a
2380 division with reciprocal estimate and fixup.
2381 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
2382 for double and vector types. Add support for high precision machines.
2384 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
2385 the reciprocal estimate instructions can be generated.
2386 (TARGET_FRE): Ditto.
2387 (TARGET_FRSQRTES): Ditto.
2388 (TARGET_FRSQRTE): Ditto.
2389 (RS6000_RECIP_*): New macros for reciprocal estimate support.
2391 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
2392 square root estimate on vectors.
2393 (re<mode>2): New insn for reciprocal division estimate on vectors.
2395 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
2397 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
2398 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
2399 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
2400 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
2401 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
2402 (RS6000_BUILTIN_RSQRT): Ditto.
2403 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
2404 floating point builtin.
2406 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2407 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
2408 __RECIP_PRECISION__ based on the command line switches.
2409 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
2411 * config/rs6000/rs6000.opt (-mrecip): Document add support for
2412 replacing division instructions with reciprocal estimate and fixup.
2413 (-mrecip=<opt>): New option.
2414 (-mrecip-precision): Ditto.
2416 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
2417 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
2418 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
2421 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
2422 (UNSPEC_VREFP): Ditto.
2423 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
2424 conterparts with regard to support of -mno-fused-madd and -ffast-math.
2425 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
2426 reciprocal estimate instructions to be generated.
2427 (altivec_vrefp): Ditto.
2429 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
2431 (rreg): New mode attribute for reciprocal estimate support.
2432 (recip<mode>3): New insn for division using reciprocal estimate
2434 (divide define_split): New define_split to convert floating point
2435 division to use reciprocal estimate if the user used the
2436 appropriate options and the split is run when we can add new
2437 pseudo registers for the fixup.
2438 (rsqrt<mode>2): New insn for reciprocal square root support.
2439 (recipsf3): Move into recip<mode>3.
2441 (fres): Use TARGET_FRES.
2442 (rsqrtsf2): Move into rsqrt<mode>2.
2443 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
2444 (copysignsf3): Add support for VSX.
2445 (fred): Use TARGET_FRE.
2447 (rsqrtdf_internal1): New function for frsqrte instruciton.
2449 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
2452 2010-06-03 Richard Guenther <rguenther@suse.de>
2455 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
2456 (set_user_assembler_libfunc): Likewise.
2458 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2460 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
2462 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
2464 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
2465 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
2466 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
2467 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
2468 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
2469 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
2470 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
2471 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
2472 * defaults.h: Updated for above mentioned changes.
2474 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
2476 * c-common.c: Remove header include of tm_p.h.
2477 * Makefile.in (c-common.o): Remove TM_P_H dependency.
2479 2010-06-02 Jakub Jelinek <jakub@redhat.com>
2481 * tree.h (struct tree_decl_map): New type.
2482 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
2483 (tree_decl_map_hash): New prototype.
2484 (debug_expr_for_decl, value_expr_for_decl): Change into
2485 tree_decl_map hashtab from tree_map.
2486 (init_ttree): Adjust initialization.
2487 (tree_decl_map_hash): New function.
2488 (decl_debug_expr_lookup, decl_debug_expr_insert,
2489 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
2491 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2493 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
2495 * configure: Regenerate.
2496 * config.in: Regenerate.
2498 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
2499 (X86_64_EMULATION): Define.
2500 (TARGET_LD_EMULATION): Use them.
2502 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
2503 (SPARC64_EMULATION): Define.
2504 (LINK_ARCH_SPEC): Use them.
2506 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2508 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
2509 smallest_mode_for_size for computing the precision types of new
2510 graphite IVs. Do not call lang_hooks.types.type_for_size.
2512 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2514 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
2516 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
2518 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2521 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
2522 return false instead.
2524 2010-06-02 Jan Hubicka <jh@suse.cz>
2527 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
2528 create new cgraph node to check callee.
2530 2010-06-02 Richard Guenther <rguenther@suse.de>
2532 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
2534 2010-06-02 Richard Guenther <rguenther@suse.de>
2536 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
2537 (lto_wrapper_cleanup): ... this. Do not exit.
2538 (fatal): Adjust. Exit here.
2539 (fatal_perror): Likewise.
2540 (fatal_signal): New function.
2541 (main): Set up signal handlers to cleanup temporary files.
2542 * Makefile.in (lto-wrapper.o): Adjust dependencies.
2544 2010-06-02 Richard Guenther <rguenther@suse.de>
2546 PR tree-optimization/44377
2547 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
2549 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2551 * config/s390/2097.md (z10_fhex): Remove insn reservation.
2552 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
2553 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
2554 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
2556 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
2558 2010-06-02 Jan Hubicka <jh@suse.cz>
2560 * bitmap.c (bitmap_descriptor): Add search_iter.
2561 (bitmap_find_bit): Increment it.
2562 (print_statistics): Print it.
2564 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
2566 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
2567 instead of gimple_build_call_vec. Delete unnecessary local variable.
2569 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2571 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
2572 change from yesterday.
2574 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2576 * c-ada-spec.c: Clean up redundant includes.
2578 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
2580 * gimplify.c: Do not include except.h and optabs.h.
2581 (gimplify_body): Do not initialize RTL profiling.
2582 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
2583 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
2584 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
2585 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
2588 * tree-pretty-print.h: Include pretty-print.h.
2589 * gimple-pretty-print.h: Include pretty-print.h.
2591 * tree-pretty-print.c: Do not include diagnostic.h.
2592 * tree-vrp.c: Likewise.
2593 * tree-tailcall.c: Likewise
2594 * tree-scalar-evolution.c: Likewise
2595 * tree-ssa-dse.c: Likewise
2596 * tree-chrec.c: Likewise
2597 * tree-ssa-sccvn.c: Likewise
2598 * tree-ssa-copyrename.c: Likewise
2599 * tree-nomudflap.c: Likewise
2600 * tree-call-cdce.c: Likewise
2601 * tree-stdarg.c: Likewise
2602 * tree-ssa-math-opts.c: Likewise
2603 * tree-nrv.c: Likewise
2604 * tree-ssa-sink.c: Likewise
2605 * tree-browser.c: Likewise
2606 * tree-ssa-loop-ivcanon.c: Likewise
2607 * tree-ssa-loop.c: Likewise
2608 * tree-parloops.c: Likewise
2609 * tree-ssa-address.c: Likewise
2610 * tree-ssa-ifcombine.c: Likewise
2611 * tree-if-conv.c: Likewise
2612 * tree-data-ref.c: Likewise
2613 * tree-affine.c: Likewise
2614 * tree-ssa-phiopt.c: Likewise
2615 * tree-ssa-coalesce.c: Likewise
2616 * tree-ssa-pre.c: Likewise
2617 * tree-ssa-live.c: Likewise
2618 * tree-predcom.c: Likewise
2619 * tree-ssa-forwprop.c: Likewise
2620 * tree-ssa-dce.c: Likewise
2621 * tree-ssa-ter.c: Likewise
2622 * tree-ssa-loop-prefetch.c: Likewise
2623 * tree-optimize.c: Likewise
2624 * tree-ssa-phiprop.c: Likewise
2625 * tree-object-size.c: Likewise
2626 * tree-outof-ssa.c: Likewise
2627 * tree-ssa-structalias.c: Likewise
2628 * tree-switch-conversion.c: Likewise
2629 * tree-ssa-reassoc.c: Likewise
2630 * tree-ssa-operands.c: Likewise
2631 * tree-vectorizer.c: Likewise
2632 * tree-vect-data-refs.c: Likewise
2633 * tree-vect-generic.c: Likewise
2634 * tree-vect-stmts.c: Likewise
2635 * tree-vect-patterns.c: Likewise
2636 * tree-vect-slp.c: Likewise
2637 * tree-vect-loop.c: Likewise
2638 * tree-ssa-loop-ivopts.c: Likewise
2639 * tree-ssa-loop-im.c: Likewise
2640 * tree-ssa-loop-niter.c: Likewise
2641 * tree-ssa-loop-unswitch.c: Likewise
2642 * tree-ssa-loop-manip.c: Likewise
2643 * tree-ssa-loop-ch.c: Likewise
2644 * tree-dump.c: Likewise
2645 * tree-complex.c: Likewise
2647 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
2648 * tree-ssa-uninit.c: Likewise
2649 * tree-ssa-threadupdate.c: Likewise
2650 * tree-ssa-uncprop.c: Likewise
2651 * tree-ssa-ccp.c: Likewise
2652 * tree-ssa-dom.c: Likewise
2653 * tree-ssa-propagate.c: Likewise
2654 * tree-ssa-alias.c: Likewise
2655 * tree-dfa.c: Likewise
2656 * tree-cfgcleanup.c: Likewise
2657 * tree-sra.c: Likewise
2658 * tree-ssa-copy.c: Likewise
2659 * tree-ssa.c: Likewise
2660 * tree-profile.c: Likewise
2661 * tree-cfg.c: Likewise
2662 * tree-ssa-threadedge.c: Likewise
2663 * tree-vect-loop-manip.c: Likewise
2665 * tree-inline.c: Do not include diagnostic.h and expr.h.
2667 (copy_decl_for_dup_finish): Do not use NULL_RTX.
2669 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
2670 * tree-loop-distribution.c: Likewise.
2672 2010-06-01 Jan Hubicka <jh@suse.cz>
2674 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
2676 2010-06-01 Jan Hubicka <jh@suse.cz>
2678 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
2679 remove return value.
2680 (split_bbs_on_noreturn_calls) .... here.
2681 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
2682 * tree-flow.h (fixup_noreturn_call): New.
2684 2010-06-01 Jan Hubicka <jh@suse.cz>
2686 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
2688 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
2690 * tree.h (build_nt_call_list): Delete.
2691 * tree.c (build_nt_call_list): Delete.
2693 2010-06-01 Jan Hubicka <jh@suse.cz>
2695 * fwprop.c: Make emit-rtl.h include last.
2696 * rtlanal.c: Include emit-rtl.h.
2697 * genautomata.c: Output emit-rtl include into insn-automata.c
2698 * df-scan.c: Include emit-rtl.h.
2699 * haifa-sched.c: Indlude emit-rtl.h.
2700 * mode-switching.c: Indlude emit-rtl.h.
2701 * graph.c: Indlude emit-rtl.h.
2702 * sel-sched.c: Include emit-rtl.h.
2703 * sel-sched-ir.c: Include emit-rtl.h.
2704 * ira-build.c: Include emit-rtl.h.
2705 * emit-rtl.c: (first_insn, last_insn): Remove defines.
2706 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
2708 (set_new_first_and_last_insn, get_last_insn_anywhere,
2709 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
2710 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
2711 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
2712 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
2713 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
2714 Use accessor functions.
2715 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2716 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2717 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2718 mem_expr_equal_p): Move here from rtl.h.
2719 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
2720 Move here from emit-rtl.c; make inline.
2721 * cfglayout.h: Include emit-rtl.h.
2722 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2723 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2724 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2725 mem_expr_equal_p, get_insns, set_first-insn,
2726 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
2727 * reg-stack.c: Include emit-rtl.h.
2730 2010-06-01 Jan Hubicka <jh@suse.cz>
2732 * cgraph.h (tree_function_versioning): Update prototype.
2733 (cgraph_function_versioning): Update prototype.
2734 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
2736 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
2737 (cgraph_materialize_clone, save_inline_function_body): Update use of
2738 tree_function_versioning.
2739 * tree-inline.c (copy_bb): Look for previous copied block to link
2740 after; fix debug output.
2741 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
2742 (copy_body): Likewise.
2743 (expand_call_inline): Update use of copy_body.
2744 (tree_function_versioning): Update use of copy body; accept
2745 blocks_to_copy and new_entry.
2747 2010-06-01 Jan Hubicka <jh@suse.cz>
2749 * gegenrtl.c: Remove unnecesary prototypes.
2751 (gendef): Produce static inline.
2753 (main): Do not decode parameters; generate header only.
2754 * Makefile.in (genrtl.c): Remove.
2756 2010-06-01 Jan Hubicka <jh@suse.cz>
2758 * tree-switch-conversion.c (build_one_array): Make it readonly.
2760 2010-06-01 Richard Guenther <rguenther@suse.de>
2762 * optabs.c (init_optabs): Guard all accesses to reinit.
2763 * ipa-pure-const.c (propagate): Fix another typo.
2764 * opts.c (common_handle_option): Split assignment to bool.
2765 * c-opts.c (c_common_handle_option): Likewise.
2767 2010-06-01 Arnaud Charlet <charlet@adacore.com>
2768 Matthew Gingell <gingell@adacore.com>
2770 * doc/invoke.texi: Mention -fdump-ada-spec.
2771 * tree-dump.c (dump_files): Add ada-spec.
2772 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
2773 * tree-pass.h (tree_dump_index): Add TDI_ada.
2774 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
2775 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
2776 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
2777 * c-decl.c: Include c-ada-spec.h.
2778 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
2780 (c_write_global_declarations): Add handling of -fdump-ada-spec.
2781 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
2782 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
2783 * c-ada-spec.h, c-ada-spec.c: New files.
2785 2010-06-01 Richard Guenther <rguenther@suse.de>
2788 * ipa-pure-const.c (get_function_state): Hand back varying state
2789 if we do not have one.
2790 (has_function_state): New function.
2791 (duplicate_node_data): Adjust.
2792 (remove_node_data): Likewise.
2793 (pure_const_write_summary): Likewise.
2794 (propagate): Likewise. Fix typo.
2796 2010-06-01 Jan Hubicka <jh@suse.cz>
2798 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
2799 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
2800 (execute_all_ipa_transforms): Do not play with the states.
2802 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2804 * config/arm/t-linux-androideabi: New.
2805 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
2807 2010-06-01 Jan Hubicka <jh@suse.cz>
2809 * tree-inline.c (estimate_num_insns): For stdarg functions look
2810 into call statement to count cost of argument passing.
2812 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
2814 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
2815 argument for fprintf.
2816 (ix86_output_addr_diff_elt): Likewise.
2817 (x86_function_profiler): Likewise.
2818 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
2819 (LPREFIX): Likewise.
2820 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2822 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2825 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
2826 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
2827 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
2828 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
2829 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
2830 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
2831 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
2832 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
2835 2010-05-31 Jan Hubicka <jh@suse.cz>
2837 * tree.h (tree_range_check_failed): Declare noreturn.
2839 2010-05-31 Jan Hubicka <jh@suse.cz>
2841 * gimple.c (gimple_call_builtin_p): New function.
2842 * gimple.h (gimple_call_builtin_p): Declare.
2843 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
2845 (execute_warn_function_return): BUILT_IN_RETURN is return.
2846 (split_critical_edges): Return edges are not critical.
2847 (is_ctrl_altering_stmt): Builtin_in_return is altering.
2848 (gimple_verify_flow_info): Handle built_in_return.
2849 (execute_warn_function_return): Handle built_in_return.
2850 * ipa-pure-const.c (check_call): Ignore builtin_return.
2852 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2855 * expr.c (expand_assignment): Don't store anything for out-of-bounds
2856 array accesses with non-MEM.
2858 PR tree-optimization/44182
2859 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
2860 newly needs to end a bb is followed by debug stmts, instead return
2861 true from the function at the end.
2862 (maybe_move_debug_stmts_to_successors): New function.
2863 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
2865 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
2868 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
2870 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
2872 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
2873 for nested functions in non-optimized compilation.
2875 2010-05-31 Richard Guenther <rguenther@suse.de>
2877 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
2879 2010-05-30 Jan Hubicka <jh@suse.cz>
2881 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
2883 2010-05-30 Richard Guenther <rguenther@suse.de>
2886 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
2887 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
2890 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
2892 * config/darwin.c (output_objc_section_asm_op): Add comment.
2893 (name_needs_quotes): Add '_' to list of valid comment chars.
2894 (machopic_output_function_base_name): Remove unneeded quotes.
2895 (darwin_encode_section_info): Adjust asm whitespace.
2896 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
2897 (ASM_OUTPUT_LOCAL): Ditto.
2898 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
2899 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
2900 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
2902 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
2904 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
2905 RS6000_OUTPUT_BASENAME unconditionally.
2906 (rs6000_output_function_epilogue): Likewise.
2908 2010-05-30 Jan Hubicka <jh@suse.cz>
2910 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
2913 2010-05-30 Richard Guenther <rguenther@suse.de>
2915 * tree-cfg.c (verify_gimple_assign_single): Implement
2916 verification for COND_EXPR rhs.
2918 2010-05-30 Jan Hubicka <jh@suse.cz>
2920 * cgraph.h (cgraph_dump_file): Declare.
2921 * cgraphunit.c (cgraph_dump_file): Export.
2922 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
2924 2010-05-30 Jan Hubicka <jh@suse.cz>
2926 * dwarf2out.c (reference_to_unused,
2927 premark_types_used_by_global_vars_helper): Avoid creation of new
2930 2010-05-30 Jan Hubicka <jh@suse.cz>
2932 * cgraph.h (cgraph_node_cannot_return,
2933 cgraph_edge_cannot_lead_to_return): New functions.
2934 * cgraph.c (cgraph_node_cannot_return,
2935 cgraph_edge_cannot_lead_to_return): Use them.
2936 * ipa-pure-const.c (pure_const_names): New static var.
2937 (check_call): Handle calls not leading to return.
2938 (pure_const_read_summary): Dump info read.
2939 (propagate): Dump info about propagation process; ignore side effects
2940 of functions not leading to exit; fix handling of pure functions.
2942 2010-05-30 Jan Hubicka <jh@suse.cz>
2944 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
2945 for tail call epilogues.
2947 2010-05-30 Jan Hubicka <jh@suse.cz>
2949 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
2950 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
2953 2010-05-29 Jan Hubicka <jh@suse.cz>
2955 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
2956 node; remove references in node we no longer keep in cgrpah but need
2959 2010-05-29 Jan Hubicka <jh@suse.cz>
2961 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
2963 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2966 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
2968 2010-05-29 Jan Hubicka <jh@suse.cz>
2970 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
2971 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
2972 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
2973 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
2974 debug_names_replaced_by, debug_update_ssa): Likewise.
2975 * sbitmap.c (debug_sbitmap): Likewise.
2976 * genrecog.c (debug_decision, debug_decision_list): Likewise.
2977 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
2978 debug_tree_chain): Likewise.
2979 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
2980 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
2981 * optabs.c (debug_optab_libfuncs): Likewise.
2982 (verify_loop_closed_ssa): Likewise.
2983 * value-prof.c (verify_histograms): Likewise.
2984 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
2985 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
2986 * cfghooks.c (verify_flow_info): Likewise.
2987 * fold-const.c (debug_fold_checksum): Likewise.
2988 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
2989 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
2991 * omega.c (debug_omega_problem): Likewise.
2992 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
2993 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2994 * dominance.c (verify_dominators, debug_dominance_info,
2995 debug_dominance_tree): Likewise.
2996 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
2997 * df_regno_debug, df_ref_debug,
2998 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
2999 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3000 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3001 * sel-sched.c (debug_state): Likewise.
3002 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
3004 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
3005 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
3006 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
3007 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
3009 * c-pretty-print.c (debug_c_tree): Likewise.
3010 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
3011 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
3012 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
3013 * ebitmap.c (debug_ebitmap): Likewise.
3014 * function.c (debug_find_var_in_block_tree): Likewise.
3015 * print-rtl.c (debug_rtx): Likewise.
3016 (debug_rtx_count): Likewise.
3017 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
3018 * stor-layout.c (debug_rli): Likewise.
3019 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
3020 * tree-data-ref.c (debug_data_references,
3021 debug_data_dependence_relations, debug_data_reference,
3022 debug_data_dependence_relation, debug_rdg_vertex,
3023 debug_rdg_component, debug_rdg): Likewise.
3024 * tree-affine.c (debug_aff): Likewise.
3025 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
3027 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
3028 * emit-rtl.c (verify_rtl_sharing): Likewise.
3029 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
3030 debug_value_expressions): Likewise.
3031 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
3032 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
3033 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
3034 * cfglayout.c (verify_insn_chain): Likewise.
3035 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
3036 debug_clast_stmt, debug_generated_program): Likewise.
3037 * ggc-page.c (debug_print_page_list): Likewise.
3038 * tree-ssa-ter.c (debug_ter): Likewise.
3039 * graphite-dependences.c (debug_pddr): Likewise.
3040 * sched-deps.c (debug_ds): Likewise.
3041 * tree-ssa.c (verify_ssa): Likewise.
3042 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
3043 debug_scattering_functions, debug_iteration_domains, debug_pdr,
3044 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
3045 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
3046 * tree-inline.c (debug_find_tree): Likewise.
3047 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
3048 debug_ppl_powerset_matrix): Likewise.
3049 * var-tracking.c (debug_dv): Likewise.
3050 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
3051 * cfgloop.c (verify_loop_structure): Likewise.
3052 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
3053 * c-common.c (verify_sequence_points): Likewise.
3054 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
3055 debug_candidates, debug_rgn_dependencies): Likewise.
3056 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
3057 * debug_constraint_graph, debug_solution_for_var,
3058 debug_sa_points_to_info): Likewise.
3059 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
3061 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
3062 debug_loops, debug_loop, debug_loop_num): Likewise.
3063 * passes.c (debug_pass): Likewise.
3064 (dump_properties): Likewise; add cfglayout property.
3065 (debug_properties): Likewise.
3066 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
3067 * varpool.c (debug_varpool): Likewise.
3068 * regcprop.c (debug_value_data): Likewise.
3069 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
3070 debug_immediate_uses_for): Likewise.
3072 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3075 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
3076 Filter out insn-flags.h.
3078 2010-05-29 Jan Hubicka <jh@suse.cz>
3080 * cgraph.h (struct varpool_node_set_def,
3081 struct cgraph_node_set_def): Remove unused AUX pointer.
3082 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
3085 2010-05-29 Jan Hubicka <jh@suse.cz>
3088 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
3090 2010-05-29 Richard Guenther <rguenther@suse.de>
3092 * lto-streamer.c (cached_bp): New global variable.
3093 (bitpack_create): Return the cached bitpack, if available.
3094 (bitpack_delete): Clear and cache the bitpack, if appropriate.
3095 (bp_pack_value): Remove redundant asserts.
3097 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3100 * tree-if-conv.c (is_true_predicate): New.
3101 (is_predicated): Use is_true_predicate.
3102 (add_to_predicate_list): Same. Do not use unshare_expr.
3103 (add_to_dst_predicate_list): Same.
3105 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3107 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
3109 (predicate_bbs): Same.
3110 (clean_predicate_lists): Same.
3111 (find_phi_replacement_condition): Do not AND the predicate from
3114 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3117 * Makefile.in (build/gencondmd.o): Add a missing `\'.
3119 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3122 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
3123 (negdf2): Adjust expander pattern and use negdf2_slow.
3126 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
3128 * basic-block.h (struct control_flow_graph): Move last_label_uid field
3130 * df.h (struct df_base_ref): Move regno field up.
3131 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
3132 * expr.h (struct separate_ops): Move location field up.
3133 * optabs.h (struct optab_d): Move libcall_basename field down.
3134 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
3135 * config/i386/i386.h (struct machine_function): Convert call_abi field
3136 into a bitfield. Move cfa field to the end of the structure.
3138 2010-05-29 Jan Hubicka <jh@suse.cz>
3140 * varpool.c (varpool_get_node): Fix lookup.
3142 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3144 * config/spu/spu-protos.h: Do not include rtl.h. Protect
3145 RTL specific prototypes with #ifdef RTX_CODE.
3146 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
3147 * config/spu/t-spu-elf: Fix dependencies.
3149 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
3151 2010-05-29 Mike Stump <mikestump@comcast.net>
3154 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
3155 TM_H when building to avoid dependency loops.
3157 2010-05-29 Jan Hubicka <jh@suse.cz>
3159 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
3160 refs and body; not the whole node for masters of materialized
3163 2010-05-29 Mike Stump <mikestump@comcast.net>
3165 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
3167 2010-05-29 Jan Hubicka <jh@suse.cz>
3169 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
3170 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
3171 use of clone_function_name.
3172 * cgraph.h (cgraph_create_virtual_clone,
3173 cgraph_function_versioning): update prototypes.
3174 (clone_function_name): Declare.
3175 * ipa-cp.c (ipcp_insert_stage): Update call of
3176 cgraph_create_virtual_clone.
3177 * omp-low.c (create_omp_child_function_name): Use
3178 cgraph_create_virtual_clone.
3179 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
3180 (cgraph_function_versioning): Take SUFFIX argument; produce new name
3181 and make decl local.
3183 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3185 * vec.h: Include statistics.h
3186 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
3189 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3191 * c-lex.c: Do not include c-tree.h.
3192 * c-pretty-print.c: Likewise.
3193 * c-opts.c: Likewise.
3194 * c-gimplify.c: Likewise.
3195 * c-common.c: Likewise.
3196 * c-dump.c: Likewise. Include c-common.h.
3198 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3200 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
3201 before including diagnostic-core.h.
3202 (c_cpp_error): New prototype moved from c-tree.h.
3203 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
3204 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
3205 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
3206 (c_cpp_error): Prototype moved to c-common.h.
3207 * Makefile.in: Update dependency for C_COMMON_H.
3209 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3211 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
3212 * c-common.c (c_register_addr_space): Remove here.
3213 * c-decl.c (c_register_addr_space): Re-add here.
3215 2010-05-28 Mike Stump <mikestump@comcast.net>
3217 * config/darwin-c.c: Remove c-tree.h include.
3219 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3221 * gcc.c: Include diagnostic.h.
3222 (error_count): Remove. All users changed to use errorcount.
3223 (programname): Remove. All users changed to use progname.
3224 (fancy_abort, internal_error, fatal_error, error, warning, inform,
3226 (execute): Don't include "Internal error" and bug reporting
3227 information in argument of internal_error call.
3228 (process_command): Don't increment error_count after calling
3230 (input_filename): Rename to gcc_input_filename. All users
3232 (main): Call diagnostic_initialize. Register delete_temp_files
3233 with atexit. Use seen_error to test for errors.
3234 * gcc.h: Include diagnostic-core.h.
3235 (fatal_error, error, warning): Remove.
3236 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
3237 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
3238 (gcc.o): Update dependencies.
3240 2010-05-28 Jeff Law <law@redhat.com>
3242 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
3244 * ira.h (ira_bad_reload_regno): Declare
3245 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
3247 * ira-color.c (update_curr_costs): Free updated hard reg costs.
3248 (ira_reassign_conflict_allocnos): Remove bogus asserts.
3249 (allocno_reload_assign): Likewise.
3251 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
3253 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
3256 2010-05-28 Richard Guenther <rguenther@suse.de>
3259 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
3260 Stream fixed-point constants mode.
3261 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
3263 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
3264 Stream fixed-point constants mode.
3265 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
3268 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3270 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
3271 only place it was called from.
3272 (number_of_latch_executions): Do not return chrec_dont_know when the
3273 may_be_zero is a runtime condition: instead, return a COND_EXPR
3274 including the may_be_zero condition.
3275 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
3277 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
3280 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3282 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
3283 generate COND_EXPRs for degenerate_phi_result.
3285 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3288 * tree-if-conv.c (if_convertible_loop_p): Check the
3289 if-convertibility of phi nodes in non predicated BBs.
3291 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3293 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
3295 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3298 * gcc.c (inform, warning, inform): New functions.
3299 (fatal_ice): Rename to internal_error; change cmsgid parameter to
3300 gmsgid. All callers changed.
3301 (notice): Rename to fnotice; add parameter fp. All callers
3303 (fatal_error): Rename to fatal_signal. All users changed.
3304 (fatal): Rename to fatal_error; change cmsgid parameter to
3305 gmsgid. All callers changed.
3306 (process_command): Use warning instead of error for warnings.
3307 (end_going_arg): Don't use _() around argument of error.
3308 (do_spec_1): Use inform for message from %n specs. Use warning
3309 instead of error for warnings.
3310 (main): Use inform for comparison messages. Use warning for
3311 message about unused linker input.
3312 (error): Increment error_count. Print "error: ".
3313 * gcc.h (fatal): Change to fatal_error.
3315 * config/darwin-driver.c (darwin_default_min_version): Use warning
3316 instead of fprintf for warnings.
3317 * cppspec.c (lang_specific_driver): Use fatal_error instead of
3320 2010-05-28 Julian Brown <julian@codesourcery.com>
3322 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
3323 (*thumb2_addsi3_compare0_scratch): New.
3324 * config/arm/constraints.md (Pv): New.
3325 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
3327 (*addsi3_compare0_scratch): Likewise.
3329 2010-05-28 Jan Hubicka <jh@suse.cz>
3331 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
3333 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
3334 only on local statics.
3336 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
3338 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
3340 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
3343 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
3344 (OPTION_GLIBC): Define.
3346 2010-05-28 Jakub Jelinek <jakub@redhat.com>
3349 * dwarf2out.c (double_int_type_size_in_bits): New function.
3350 (round_up_to_align): Change first argument and return value to
3352 (field_byte_offset): Work internally on double_ints.
3355 * builtins.c (expand_movstr): Use a temporary pseudo instead
3356 of target even when target is not NULL and not const0_rtx, but
3357 fails movstr predicate.
3358 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
3360 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3362 * final.c (rest_of_clean_state): Use %m in errors instead of
3364 * gengtype.c (read_input_list, close_output_files): Use xstrerror
3365 instead of strerror.
3366 * toplev.c (process_options): Use %m in errors instead of strerror
3368 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
3371 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
3373 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
3374 (ix86_canonical_va_list_type): Make static. Add declaration.
3375 (ix86_enum_va_list): Make static. Reindent.
3376 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
3377 (ix86_canonical_va_list_type): Ditto.
3378 (ix86_enum_va_list): Ditto.
3380 2010-05-28 Richard Guenther <rguenther@suse.de>
3382 * lto-wrapper.c (run_gcc): With -save-temps generate a
3383 user-visible ltrans filename. Fixup ltrans unit numbering.
3385 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
3387 * c-common.c (c_common_nodes_and_builtins): Replace use
3388 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
3389 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
3390 to ix86_enum_va_list.
3391 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
3392 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
3393 (TARGET_ENUM_VA_LIST_P): Add hook description.
3394 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
3395 * target.h (gcc_target): Add enum_va_list hook.
3398 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
3399 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
3400 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
3402 2010-05-28 Alan Modra <amodra@gmail.com>
3405 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3406 emit_library_call machinery to set up __tls_get_addr calls.
3408 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>