]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
* bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
[thirdparty/gcc.git] / gcc / ChangeLog
1 2010-06-13 Jan Hubicka <jh@suse.cz>
2
3 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal datastructure
7 checks into checking asserts.
8 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9 * tree-ssa-sccvn.c (VN_INFO): Likewise.
10 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
11 df_ref_create_structure): Likewise.
12 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
13 pool_free): Use gcc_checking_assert.
14 * alias.c (get_alias_set): Likewise.
15 * var-tracking.c (variable_htab_free, shared_hash_copy,
16 canonicalize_values_mark, variable_merge_over_cur): Likewise.
17 * lto-streamer.c (bp_unpack_value): Likewise.
18
19 2010-06-13 Richard Guenther <rguenther@suse.de>
20
21 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
22 Do not stream but initialize TYPE_CANONICAL to NULL.
23 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24 * gimple.c (gimple_types_compatible_p): Disregard
25 TYPE_STRUCTURAL_EQUALITY_P.
26 (gimple_register_type): Use TYPE_CANONICAL as cache.
27 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
28 before registering common types.
29 * config/i386/i386.c (ix86_function_arg_boundary): Do not
30 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
31 * tree.h (TYPE_CANONICAL): Clarify documentation.
32
33 2010-06-13 Anatoly Sokolov <aesok@post.ru>
34
35 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
36 LIBCALL_VALUE): Remove macros.
37 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
38 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
39 TARGET_FUNCTION_VALUE_REGNO_P): Define.
40 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
41 (ia64_function_value): Make static. Handle receiving the function
42 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
43
44 2010-06-12 Jan Hubicka <jh@suse.cz>
45
46 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
47 at correct place.
48
49 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
50
51 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
52
53 2010-06-12 Jan Hubicka <jh@suse.cz>
54
55 * df-core.c (df_clear_bb_info): New function.
56 (df_set_blocks): bb_info is always allocated.
57 (df_get_bb_info): Use block_info_elt_size.
58 (df_set_bb_info): Likewise.
59 (df_compact_blocks): Update for new block_info.
60 (grow_bb_info): New function.
61 * df-problems.c (df_grow_bb_info): Move to df-core.c
62 (df_rd_set_bb_info): Remove.
63 (df_rd_free_bb_info): Do not free block pool.
64 (df_rd_alloc): Do not create pool, use check for
65 obstack presence instead of NULL pointer for new blocks.
66 (df_rd_free): DO not free alloc pool; clear block_info.
67 (problem_RD): Add size of block info structure.
68 (df_lr_set_bb_info): Remove.
69 (df_lr_free_bb_info): Do not free block pool.
70 (df_lr_alloc): Do not create pool, use check for
71 obstack presence instead of NULL pointer for new blocks.
72 (df_lr_free): DO not free alloc pool; clear block_info.
73 (problem_LR): Add size of block info structure.
74 (df_live_set_bb_info): Remove.
75 (df_live_free_bb_info): Do not free block pool.
76 (df_live_alloc): Do not create pool, use check for
77 obstack presence instead of NULL pointer for new blocks.
78 (df_live_free): DO not free alloc pool; clear block_info.
79 (problem_LIVE): Add size of block info structure.
80 (problem_CHAIN): Add size of block info structure.
81 (df_byte_lr_set_bb_info): Remove.
82 (df_byte_lr_free_bb_info): Do not free block pool.
83 (df_byte_lr_alloc): Do not create pool, use check for
84 obstack presence instead of NULL pointer for new blocks.
85 (df_byte_lr_free): DO not free alloc pool; clear block_info.
86 (problem_BYTE_LR): Add size of block info structure.
87 (problem_NOTE): Add size of block info structure.
88 (df_byte_MD_set_bb_info): Remove.
89 (df_byte_MD_free_bb_info): Do not free block pool.
90 (df_byte_MD_alloc): Do not create pool, use check for
91 obstack presence instead of NULL pointer for new blocks.
92 (df_byte_MD_free): DO not free alloc pool; clear block_info.
93 (problem_BD): Add size of block info structure.
94 * df-scan.c (df_scan_free_internal): Free block pool.
95 (df_scan_set_bb_info): Remove.
96 (df_scan_free_bb_info): Check for artificial_defs instead
97 of bb_info being non-NULL.
98 (df_scan_alloc): DO not create df_scan_block pool.
99 (problem_SCAN): Set size of block info.
100 (df_bb_refs_record): Do not allocate bb_info.
101 * df.h (df_problem): Add block_info_elt_size.
102 (struct dataflow): Change block_info to void *.
103 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
104 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
105 in-line structures.
106
107 2010-06-12 Jan Hubicka <jh@suse.cz>
108
109 PR tree-optimize/44485
110 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks containing
111 use of return value of noreturn function.
112
113 2010-06-12 Anatoly Sokolov <aesok@post.ru>
114
115 * targhooks.c (default_function_value): Don't use
116 FUNCTION_OUTGOING_VALUE.
117 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
118 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
119
120 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
121
122 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*,
123 mips*-*-linux*): Add crtfastmath.o to extra_parts.
124 * config/mips/crtfastmath.c: New.
125 * config/mips/linux.h (ENDFILE_SPEC): New.
126
127 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
128
129 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
130 old_type in parameter.
131 (gcc_type_for_value): Update call to gcc_type_for_interval.
132 (compute_type_for_level_1): Renamed compute_type_for_level.
133 Update call to gcc_type_for_interval.
134
135 2010-06-11 Joseph Myers <joseph@codesourcery.com>
136
137 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
138 flto-compression-level=, ftree-parallelize-loops=): Add
139 RejectNegative.
140
141 2010-06-11 Joseph Myers <joseph@codesourcery.com>
142
143 * opts-common.c: Include options.h.
144 (integral_argument): Move from opts.c.
145 (decode_cmdline_option): New. Based on read_cmdline_option.
146 * opts.c (integral_argument): Move to opts-common.c.
147 (read_cmdline_option): Move most contents to
148 decode_cmdline_option. Use %qs in diagnostics.
149 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
150 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
151 decode_cmdline_option): New.
152
153 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
154
155 PR target/44481
156 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
157 (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX.
158 (partiysi2_cmp): Ditto.
159 (*partiyhi2_cmp): Ditto.
160 (*parityqi2_cmp): Remove.
161
162 2010-06-11 Jan Hubicka <jh@suse.cz>
163
164 * bitmap.h (bmp_iter_next_bit): New.
165 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
166
167 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
168 Eric Botcazou <ebotcazou@adacore.com>
169
170 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
171 computed cost.
172
173 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
174
175 * config/i386/i386.md (unspec): New define_c_enum.
176 (unspecv): Ditto.
177
178 2010-06-10 Jakub Jelinek <jakub@redhat.com>
179
180 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
181 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
182 (lazy_hex_fp_value): New function.
183 (builtin_define_with_hex_fp_value): Provide definitions lazily.
184 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
185
186 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
187
188 PR middle-end/44483
189 * tree-if-conv.c (bb_predicate_s): New struct.
190 (bb_predicate_p): New.
191 (bb_has_predicate): New.
192 (bb_predicate): New.
193 (set_bb_predicate): New.
194 (bb_predicate_gimplified_stmts): New.
195 (set_bb_predicate_gimplified_stmts): New.
196 (add_bb_predicate_gimplified_stmts): New.
197 (init_bb_predicate): New.
198 (free_bb_predicate): New.
199 (is_predicated): Use bb_predicate.
200 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
201 (predicate_bbs): Same. Gimplify the condition of the basic blocks
202 before processing their successors.
203 (clean_predicate_lists): Removed.
204 (find_phi_replacement_condition): Use bb_predicate.
205 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
206 computations.
207 (insert_gimplified_predicates): New.
208 (combine_blocks): Call insert_gimplified_predicates.
209 (tree_if_conversion): Call free_bb_predicate instead of
210 clean_predicate_lists.
211
212 2010-10-11 Paul Brook <paul@codesourcery.com>
213
214 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
215 * config/arm/arm.c (all_architectures): Change v7e-m default to
216 cortexm4.
217 * config/arm/arm-cores.def: Add cortex-m4.
218 * config/arm/arm-tune.md: Regenerate.
219
220 2010-06-11 Jan Hubicka <jh@suse.cz>
221
222 * ipa-pure-const.c (special_builtlin_state): New function.
223 (check_call): Use it instead of special casign BUILT_IN_RETURN.
224 (propagate_pure_const): Use it.
225
226 2010-06-11 Jan Hubicka <jh@suse.cz>
227
228 * df-problems.c (df_live_scratch): Convert to bitmap_head.
229 (df_live_alloc): Initialize df_live_scratch when initializing
230 problem_data.
231 (df_live_transfer_function): Update uses of df_live_scratch.
232 (df_live_free): Free problem_data; clear df_live_scratch before
233 releasing the obstack.
234 (df_md_free): Free problem data.
235
236 2010-06-11 Jan Hubicka <jh@suse.cz>
237
238 * doc/invoke.texi (Wsuggest-attribute): Document.
239 (Wmissing-noreturn): Remove.
240 * ipa-pure-const.c (warn_function_noreturn): New function.
241 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
242 warn_missing_noreturn.
243 * common.opt (Wsuggest-attribute=noreturn): New.
244 * tree-flow.h (warn_function_noreturn): Declare.
245 * tree-cfg.c (execute_warn_function_noreturn): Use
246 warn_function_noreturn.
247 (gate_warn_function_noreturn): New.
248 (pass_warn_function_noreturn): Update.
249
250 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
251
252 * c-typeck.c (handle_warn_cast_qual): Add loc
253 parameter. Improve warning message.
254 (build_c_cast): Pass location to handle_warn_cast_qual.
255
256 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
257
258 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
259 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
260 insn mnemonic.
261 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
262
263 2010-06-10 Dodji Seketeli <dodji@redhat.com>
264
265 Fix bootstap on mips
266 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
267 be naming typedefs.
268
269 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
270
271 * system.h (helper_const_non_const_cast): New inline for
272 gcc version <= 4.0.
273 (CONST_CAST2): For gcc version <= 4.0 use
274 new helper to do const/non-const casting.
275
276 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
277
278 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
279 * Makefile.in (OBJS-common): Include insn-enums.o.
280 (insn-enums.o): New rule.
281 (simple_generated_c): Add insn-enums.c.
282 (build/genenums.o): New rule.
283 (genprogmd): Add "enums".
284 * genconstants.c (print_enum_type): Declare a C string array
285 for each enum.
286 * genenums.c: New file.
287 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
288 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
289 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
290
291 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
292
293 * doc/md.texi (define_enum_attr): Document.
294 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
295 * read-md.h (lookup_enum_type): Declare.
296 * read-md.c (lookup_enum_type): New function.
297 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
298 * genattrtab.c (attr_desc): Add an enum_name field.
299 (evaluate_eq_attr): Take the associated attribute as argument.
300 Get the enum prefix from the enum_name field, if defined.
301 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
302 (simplify_test_exp): Pass attr to evaluate_eq_attr.
303 (add_attr_value): New function, split out from...
304 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
305 (write_test_expr): Pass attr to evaluate_eq_attr.
306 (write_attr_get): Use the enum_name as the enum tag, if defined.
307 (write_attr_valueq): Use the enum_name as a prefix, if defined.
308 (find_attr): Initialize enum_name.
309 (main): Handle DEFINE_ENUM_ATTR.
310 * gensupport.c (process_rtx): Likewise.
311 * config/mips/mips.h (mips_tune_attr): Delete.
312 * config/mips/mips.md (cpu): Use define_attr_enum.
313
314 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
315
316 * doc/md.texi (define_c_enum, define_enum): Document.
317 * read-md.h (md_constant): Add a parent_enum field.
318 (enum_value, enum_type): New structures.
319 (upcase_string, traverse_enum_types): Declare.
320 * read-md.c (enum_types): New variable.
321 (upcase_string, add_constant): New functions.
322 (handle_constants): Don't create the hash table here.
323 Use add_constant.
324 (traverse_md_constants): Don't check for a null md_constants.
325 (decimal_string, handle_enum, traverse_enum_types): New functions.
326 (read_md_files): Initialize md_constants and md_enums.
327 * genconstants.c (print_md_constant): Ignore info argument.
328 Only print constants that belong to no enum.
329 (print_enum_type): New function.
330 (main): Don't pass stdout to print_md_constant. Call print_enum_type
331 for each defined enum type.
332 * config/mips/mips.md (processor): New define_enum.
333 (unspec): New define_c_enum.
334 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
335 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
336 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
337 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
338 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
339 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
340 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
341 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
342 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
343 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
344 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
345 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
346 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
347 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
348 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
349 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
350 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
351 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
352 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
353 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
354 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
355 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
356 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
357 (UNSPEC_RDDSP): Move to mips-dsp.md.
358 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
359 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
360 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
361 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
362 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
363 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
364 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
365 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
366 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
367 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
368 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
369 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
370 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
371 Moved to mips-dspr2.md.
372 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
373 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
374 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
375 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Moved from mips-ps-3d.md.
376 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
377 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
378 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
379 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
380 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
381 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
382 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD, UNSPEC_LOONGSON_PSADBH)
383 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
384 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
385 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
386 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
387 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
388 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
389 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved to mips-loongson2ef.md.
390 (cpu): Update comment.
391 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
392 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
393 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
394 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
395 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ)
396 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
397 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
398 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
399 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
400 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
401 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD, UNSPEC_LOONGSON_PSADBH)
402 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
403 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
404 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
405 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
406 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
407 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
408 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
409 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
410 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
411 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
412 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
413 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
414 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
415 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
416 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
417 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
418 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
419 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
420 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
421 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
422 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
423 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
424 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
425 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
426 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
427 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
428 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
429 (UNSPEC_RDDSP): Moved from mips.md.
430 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
431 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
432 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
433 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
434 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
435 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
436 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
437 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
438 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
439 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
440 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
441 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
442 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
443 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
444 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
445 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
446 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
447 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
448 (UNSPEC_SCC): Moved from mips.md.
449 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
450 "processor_type" to "processor".
451 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
452 * config/mips/mips.h (processor_type): Delete.
453 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
454 "processor_type" to "processor".
455
456 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
457
458 * configure.ac (tm_include_list): Add insn-constants.h.
459 * configure: Regenerate.
460 * Makefile.in (GTM_H): Move insn-constants.h here from...
461 (TM_H): ...here.
462 * mkconfig.sh: Remove special handling for insn-constants.h.
463
464 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
465
466 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
467 (BUILD_MD): ...this new variable.
468 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
469 that include the old contents of simple_generated_h and
470 simple_generated_c.
471 (simple_generated_h, simple_generated_c): Include them. Add
472 insn-constants.h.
473 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
474 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
475 Remove these dependencies from the main rule and include
476 insn-conditions.md in the command line only if it appears
477 in the dependency list.
478 (insn-constants.h, s-constants): Delete.
479 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
480 or gensupport.h.
481 (build/genmddeps.o): Likewise.
482 (genprogrtl): New variable that contains everything from genprogmd
483 except mddeps and constants.
484 (genprogmd): Redefine in terms of genprogrtl. Make these programs
485 depend on $(BUILD_MD)
486 (genprog): New variable. Make these programs depend on
487 $(BUILD_ERRORS).
488 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
489 (main): Use read_md_files instead of init_rtx_reader_args.
490 * genconstants.c: As for genmddeps.c.
491 * read-md.h (read_skip_construct): Declare.
492 * read-md.c (read_skip_construct): New function.
493 (handle_file): Allow a null handle_directive, skipping the
494 construct if so.
495 (parse_include): Update the comment accordingly.
496
497 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
498
499 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
500 * genmddeps.c: Include read-md.h.
501 (main): Call init_rtx_reader_args instead of init_md_reader_args.
502 * genattr.c (main): Likewise.
503 * genattrtab.c (main): Likewise.
504 * genautomata.c (main): Likewise.
505 * gencodes.c (main): Likewise.
506 * genconditions.c (main): Likewise.
507 * genconfig.c (main): Likewise.
508 * genconstants.c (main): Likewise.
509 * genemit.c (main): Likewise.
510 * genextract.c (main): Likewise.
511 * genflags.c (main): Likewise.
512 * genopinit.c (main): Likewise.
513 * genoutput.c (main): Likewise.
514 * genpeep.c (main): Likewise.
515 * genrecog.c (main): Likewise.
516 * genpreds.c (main): Likewise.
517 * gensupport.h (in_fname): Move to read-md.h.
518 (init_md_reader_args_cb): Rename to...
519 (init_rtx_reader_args_cb): ...this and return a bool.
520 (init_md_reader_args): Rename to...
521 (init_rtx_reader_args): ...this and return a bool.
522 (include_callback): Move to read-md.h.
523 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
524 (file_name_list, first_dir_md_include): Move to read-md.c
525 (first_bracket_include): Delete unused variable.
526 (last_dir_md_include): Move to read-md.c.
527 (process_include): Delete, moving code to read-md.c:handle_include.
528 (process_rtx): Don't handle INCLUDE.
529 (save_string): Delete.
530 (rtx_handle_directive): New function.
531 (init_md_reader_args_cb): Rename to...
532 (init_rtx_reader_args_cb): ...this and return a boolean success value.
533 Use read_md_args.
534 (init_md_reader_args): Rename to...
535 (init_rtx_reader_args): ...this and return a boolean success value.
536 * rtl.def (INCLUDE): Delete.
537 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
538 argument.
539 * read-rtl.c (read_conditions): Don't gobble ')' here.
540 (read_mapping): Likewise.
541 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
542 Handle top-level non-rtx constructs here rather than in read_rtx_1.
543 Store the whole queue in *X. Remove call to init_md_reader.
544 (read_rtx_1): Rename to...
545 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
546 Don't handle top-level non-rtx constructs here. Don't handle (nil)
547 here.
548 (read_nested_rtx): New function. Handle (nil) here rather than
549 in read_rtx_code.
550 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
551 gobble ')' here.
552 * read-md.h (directive_handler_t): New type.
553 (in_fname, include_callback): Moved from read-md.h.
554 (read_constants, init_md_reader): Delete.
555 (read_md_files): Declare.
556 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
557 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
558 from gensupport.c.
559 (read_constants): Rename to...
560 (handle_constants): ...this. Don't gobble ')' here.
561 (handle_include, handle_file, handle_toplevel_file)
562 (parse_include): New functions, mostly taken from gensupport.c.
563 (init_md_reader): Subsume into...
564 (read_md_files): ...this new function.
565
566 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
567
568 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
569 (unread_char): Decrement read_md_lineno after putting back '\n'.
570 * read-md.c (fatal_with_file_and_line): Push back any characters
571 that we decide not to add to the context.
572 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
573 fatal_expected_char in cases where '/' ends a line (for example).
574 (read_name): Don't increment read_md_lineno here.
575 (read_escape): Likewise.
576 (read_quoted_string): Likewise.
577 (read_braced_string): Likewise.
578
579 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
580
581 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
582 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
583 * genconstants.c: Include read-md.h.
584 * read-rtl.c (md_constants): Move to read-md.c.
585 (md_name): Move to read-md.h.
586 (initialize_iterators): Use leading_string_hash instead of def_hash
587 and leading_string_eq_p instead of def_name_eq_p.
588 (read_name): Move to read-md.c.
589 (def_hash, def_name_eq_p): Delete.
590 (read_constants, traverse_md_constants): Move to read-md.c.
591 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
592 * read-md.h: Include hashtab.h.
593 (md_name): Moved from read-rtl.c.
594 (md_constant): Moved from read-md.h.
595 (leading_string_hash, leading_string_eq_p, read_name)
596 (read_constants, traverse_md_constants): Declare.
597 * read-md.c (md_constants): Moved from read-rtl.c.
598 (leading_string_hash, leading_string_eq_p): New functions.
599 (read_name, read_constants, traverse_md_constants): Moved from
600 read-rtl.c.
601
602 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
603
604 * read-rtl.c (md_name): New structure.
605 (read_name): Take an md_name instead of a buffer pointer.
606 Use the "string" field instead of strcpy when expanding constants.
607 (read_constants): Remove the tmp_char argument. Update the calls
608 to read_name, using two local name buffers instead of the tmp_char
609 argument. Merge the constant-creation code.
610 (read_conditions): Remove the tmp_char argument. Update the calls
611 to read_name, using a local name buffer instead of the tmp_char
612 argument.
613 (read_mapping): Replace tmp_char variable with a local name buffer.
614 Update the calls to read_name.
615 (read_rtx_1): Likewise. Update the calls to read_constants and
616 read_conditions.
617
618 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
619
620 * Makefile.in (build/read-md.o): Depend on errors.h.
621 * read-md.h (error_with_line): Declare.
622 * read-md.c: Include errors.h.
623 (message_with_line_1): New function, extracted from...
624 (message_with_line): ...here.
625 (error_with_line): New function.
626 * genattrtab.c: If a call to message_with_line is followed by
627 "have_error = 1;", replace both statements with a call to
628 error_with_line.
629 * genoutput.c: Likewise.
630 * genpreds.c: Likewise.
631 * genrecog.c: If a call to message_with_line is followed by
632 "error_count++;", replace both statements with a call to
633 error_with_line.
634 (errorcount): Delete.
635 (main): Don't check it.
636 * gensupport.c: If a call to message_with_line is followed by
637 "errors = 1;", replace both statements with a call to error_with_line.
638 (errors): Delete.
639 (process_define_cond_exec): Check have_error instead of errors.
640 (init_md_reader_args_cb): Likewise. Don't set errors.
641
642 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
643
644 * read-md.h (read_md_file): Declare.
645 (read_char, unread_char): New functions.
646 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
647 (read_quoted_string, read_string): Remove FILE * argument.
648 * read-md.c (read_md_file): New variable.
649 (read_md_filename, read_md_lineno): Update comments and remove
650 unnecessary initialization.
651 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
652 (read_escape, read_quoted_string, read_braced_string, read_string):
653 Remove FILE * argument. Update calls accordingly, using read_char
654 and unread_char instead of getc and ungetc.
655 * rtl.h (read_rtx): Remove FILE * argument.
656 * read-rtl.c (iterator_group): Remove FILE * argument from
657 "find_builtin".
658 (iterator_traverse_data): Remove "infile" field.
659 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
660 (add_mapping, read_name, read_constants, read_conditions)
661 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
662 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
663 Remove file arguments from all calls, using read_char and unread_char
664 instead of getc and ungetc.
665 * gensupport.c (process_include): Preserve read_md_file around
666 the include. Set read_md_file to the handle of the included file.
667 Update call to read_rtx.
668 (init_md_reader_args_cb): Set read_md_file to the handle of the file
669 and remove local FILE *. Update calls to read_rtx.
670
671 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
672
673 * read-md.h (read_rtx_lineno): Rename to...
674 (read_md_lineno): ...this.
675 (read_rtx_filename): Rename to...
676 (read_md_filename): ...this.
677 (copy_rtx_ptr_loc): Rename to...
678 (copy_md_ptr_loc): ...this.
679 (print_rtx_ptr_loc): Rename to...
680 (print_md_ptr_loc): ...this.
681 * read-md.c: Likewise. Update references after renaming.
682 (string_obstack): Replace RTL with MD in comment.
683 (set_rtx_ptr_loc): Rename to...
684 (set_md_ptr_loc): ...this.
685 (get_rtx_ptr_loc): Rename to...
686 (get_md_ptr_loc): ...this.
687 * genconditions.c: Update references after renaming.
688 * genemit.c: Likewise.
689 * genoutput.c: Likewise.
690 * genpreds.c: Likewise.
691 * gensupport.c: Likewise.
692 * read-rtl.c: Likewise.
693
694 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
695
696 * Makefile.in (READ_MD_H): New variable.
697 (BUILD_RTL): Add build/read-md.o.
698 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
699 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
700 (build/genattrtab.o, build/genconditions.o build/genemit.o)
701 (build/genextract.o, build/genflags.o, build/genoutput.o)
702 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
703 (build/read-md.o): New rule.
704 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
705 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
706 * coretypes.h: ...here.
707 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
708 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
709 * genattr.c: Include read-md.h.
710 * genattrtab.c: Likewise.
711 * genconditions.c: Likewise.
712 * genemit.c: Likewise.
713 * genextract.c: Likewise.
714 * genflags.c: Likewise.
715 * genoutput.c: Likewise.
716 * genpreds.c: Likewise.
717 * genrecog.c: Likewise.
718 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
719 (join_c_conditions, print_c_condition, read_rtx_filename)
720 (read_rtx_lineno): Move to read-md.h.
721 * read-rtl.c: Include read-md.h.
722 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
723 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
724 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
725 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
726 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
727 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
728 (read_braced_string, read_string): Move to read-md.c.
729 (read_rtx): Move some initialization to init_md_reader and call
730 init_md_reader here.
731 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
732 Move to read-md.h.
733 * gensupport.c: Include read-md.h.
734 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
735 * read-md.h, read-md.c: New files.
736
737 2010-06-10 Anatoly Sokolov <aesok@post.ru>
738
739 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
740 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
741 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
742 * config/moxie/moxie.c (moxie_function_value): Make static.
743 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
744 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
745
746 2010-06-10 Martin Jambor <mjambor@suse.cz>
747
748 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
749 * dbgcnt.def (tree_sra): New counter.
750 * tree-sra.c: Include dbgcnt.h.
751 (gate_intra_sra): Check tree_sra debug counter.
752
753 2010-06-10 Martin Jambor <mjambor@suse.cz>
754
755 PR tree-optimization/44258
756 * tree-sra.c (build_access_subtree): Return false iff there is a
757 partial overlap.
758 (build_access_trees): Likewise.
759 (analyze_all_variable_accesses): Disqualify candidates if
760 build_access_trees returns true for them.
761
762 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
763
764 PR debug/41371
765 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
766 tail-recurse into canonical node. Fast-forward over
767 non-canonical VALUEs.
768
769 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
770
771 PR boostrap/44470
772 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
773 (*addsi_1_zext) <TYPE_LEA>: Likewise.
774 (add lea splitter): Likewise.
775 (add_zext lea splitter): Likewise.
776
777 2010-06-10 Joseph Myers <joseph@codesourcery.com>
778
779 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
780
781 2010-06-10 Jan Hubicka <jh@suse.cz>
782
783 * df-problems.c (df_live_problem_data): Add live_bitmaps.
784 (df_live_alloc): Initialize problem data and live_osbtacks.
785 (df_live_finalize): Remove obstack, problem data; do not
786 clear all bitmaps.
787 (df_live_top_dump, df_live_bottom_dump): Do not dump old
788 data when not allocated.
789 (df_live_verify_solution_start): Do not allocate problem data.
790 (df_live_verify_solution_end): Check if out is allocated.
791 (struct df_md_problem_data): New structure.
792 (df_md_alloc): Allocate problem data.
793 (df_md_free): Free problem data; do not clear bitmaps.
794
795 2010-06-10 Jan Beulich <jbeulich@novell.com>
796
797 PR bootstrap/37304
798 * configure.ac: Replace $() with ${} when intending to expand
799 variables rather than invoking commands.
800 * configure: Re-generate.
801
802 2010-06-10 Jan Hubicka <jh@suse.cz>
803
804 PR rtl-optimization/44460
805 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
806 TYPE_NEEDS_CONSTRUCTING sanity check.
807
808 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
809
810 * doc/include/fdl.texi: Move to GFDL version 1.3.
811
812 * doc/cpp.texi: Move to GFDL version 1.3.
813 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
814 * doc/gccint.texi: Move to GFDL version 1.3.
815 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
816 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
817 * doc/invoke.texi: Move to GFDL version 1.3.
818
819 2010-06-09 Jan Hubicka <jh@suse.cz>
820
821 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
822 Break out from ...
823 (propagate) ... here; swap the order.
824
825 2010-06-09 Jan Hubicka <jh@suse.cz>
826
827 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
828 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
829 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
830 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
831
832 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
833
834 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
835 Do not the gather memory reference in the outer loop if the step
836 is not a constant.
837
838 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
839
840 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
841 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
842 8 to 4. Minor change of the related comments.
843
844 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
845
846 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
847 the scev analysis when the variable is not used outside the loop
848 in a close phi node: call compute_overall_effect_of_inner_loop.
849
850 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
851
852 * graphite-sese-to-poly.c (single_pred_cond): Renamed
853 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
854 (build_sese_conditions_before): Renamed call to single_pred_cond.
855 (build_sese_conditions_after): Same.
856
857 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
858
859 * graphite-poly.h: Fix comments and indentation.
860 * graphite-sese-to-poly.c: Same.
861 (build_sese_conditions_before): Compute stmt and gbb only when needed.
862 * tree-chrec.c: Fix comments and indentation.
863 (tree-ssa-loop-niter.c): Same.
864
865 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
866
867 PR rtl-optimization/42461
868 * dce.c (deletable_insn_p): Return true for const or pure calls again.
869 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
870
871 2010-06-09 Jan Hubicka <jh@suse.cz>
872
873 * bitmap.c (bitmap_and): Walk array forward.
874 (bitmap_and_compl_into): Likewise.
875 (bitmap_xor): Likewise.
876 (bitmap_xor_into): Likewise.
877 (bitmap_equal_p): Likewise.
878 (bitmap_intersect_p): Likewise.
879 (bitmap_intersect_compl_p): Likewise.
880 (bitmap_ior_and_into): Likewise.
881 (bitmap_elt_copy): Likewise.
882 (bitmap_and_compl): Likewise.
883 (bitmap_elt_ior): Likewise.
884
885 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
886
887 * opts-common.c (prune_options): Ensure replacement argv array
888 is correctly terminated by a NULL entry.
889
890 2010-06-09 Jan Hubicka <jh@suse.cz>
891
892 * cgraph.h (varpool_first_static_initializer,
893 varpool_next_static_initializer): Make checking only when
894 checking enabled.
895 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
896 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
897 gcc_assert to gcc_checking_assert.
898 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
899 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
900 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
901 op_iter_init_phiuse, op_iter_init_phidef,
902 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
903 gcc_checking_assert.
904 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
905 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
906 partition_is_global, live_on_entry, live_on_exit,
907 live_merge_and_clear): Likewise.
908 * system.h (gcc_checking_assert): New macro.
909 * gimple.h (set_bb_seq): Use gcc_checking_assert.
910
911 2010-06-09 Jason Merrill <jason@redhat.com>
912
913 * Makefile.in (TAGS): Collect tags info from c-family.
914
915 2010-06-09 Jan Hubicka <jh@suse.cz>
916
917 * gimple.h (gcc_gimple_checking_assert): New macro.
918 (gimple_set_def_ops, gimple_set_use_ops,
919 gimple_set_vuse, gimple_set_vdef,
920 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
921 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
922 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
923 gimple_asm_output_op, gimple_asm_output_op_ptr,
924 gimple_asm_set_output_op, gimple_asm_clobber_op,
925 gimple_asm_set_clobber_op, gimple_asm_label_op,
926 gimple_asm_set_label_op, gimple_try_set_kind,
927 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
928 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
929 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
930 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
931 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
932 gimple_omp_for_set_initial, gimple_omp_for_final,
933 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
934 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
935 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
936 conditional with ENABLE_GIMPLE_CHECKING.
937 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
938
939 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
940
941 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
942 (get_computation_cost_at): Use it.
943 (determine_use_iv_cost_condition): Likewise.
944 (determine_iv_cost): Likewise.
945
946 2010-06-09 Richard Guenther <rguenther@suse.de>
947
948 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
949 replace constants.
950
951 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
952
953 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
954
955 2010-06-09 Martin Jambor <mjambor@suse.cz>
956
957 PR tree-optimization/44423
958 * tree-sra.c (dump_access): Dump also grp_assignment_read.
959 (analyze_access_subtree): Pass negative allow_replacements to children
960 if the current type is scalar.
961
962 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
963
964 PR testsuite/42843
965 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
966 * doc/plugins.texi (Plugin license check): Update information
967 on type of plugin_is_GPL_compatible.
968 * Makefile.in (PLUGINCC): Define as $(COMPILER).
969 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
970
971 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
972
973 * config/arm/arm.c (thumb2_reorg): New function.
974 (arm_reorg): Call it.
975 * config/arm/thumb2.md (define_peephole2 for flag clobbering
976 arithmetic operations): Delete.
977
978 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
979
980 PR target/44067
981 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
982 e500v2 target.
983
984 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
985
986 PR plugins/44459
987 * gcc-plugin.h: Encapsulate all declarations in extern "C".
988
989 2010-06-08 Jan Hubicka <jh@suse.cz>
990
991 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
992 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
993
994 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
995
996 PR tree-optimization/39874
997 PR middle-end/28685
998 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
999 Declare.
1000 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1001 same_bool_result_p): New.
1002 (and_var_with_comparison, and_var_with_comparison_1,
1003 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1004 (or_var_with_comparison, or_var_with_comparison_1,
1005 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1006 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1007 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1008 of combine_comparisons.
1009 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1010
1011 2010-06-08 Anatoly Sokolov <aesok@post.ru>
1012
1013 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1014 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1015 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1016 pdp11_function_value_regno_p): New functions.
1017 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1018 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1019
1020 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
1021
1022 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
1023 Thumb-2 in the MINUS case.
1024
1025 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1026
1027 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
1028
1029 * doc/gty.texi (GTY Options): Document typed GC allocation and
1030 variable_size GTY option.
1031
1032 * ggc-internal.h: New.
1033
1034 * ggc.h: Update copyright year.
1035 (digit_string): Move to stringpool.c.
1036 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
1037 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
1038 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
1039 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
1040 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
1041 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
1042 (ggc_force_collect, ggc_get_size, ggc_statistics)
1043 (ggc_print_common_statistics): Move to ggc-internal.h.
1044 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
1045 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
1046 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
1047 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
1048 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
1049 (ggc_alloc_zone_pass_stat): Remove.
1050 (ggc_internal_alloc_stat, ggc_internal_alloc)
1051 (ggc_internal_cleared_alloc_stat): New.
1052 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
1053 (ggc_internal_vec_alloc_stat)
1054 (ggc_internal_cleared_vec_alloc_stat)
1055 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
1056 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
1057 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
1058 (ggc_cleared_alloc_ptr_array_two_args): New.
1059 (htab_create_ggc, splay_tree_new_ggc): Redefine.
1060 (ggc_splay_alloc): Change the type of the first argument to
1061 enum gt_types_enum.
1062 (ggc_alloc_string): Make macro.
1063 (ggc_alloc_string_stat): New.
1064 (ggc_strdup): Redefine.
1065 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
1066 (ggc_alloc_rtvec_sized): New.
1067 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
1068 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
1069 (ggc_internal_cleared_alloc_zone_stat)
1070 (ggc_internal_zone_alloc_stat)
1071 (ggc_internal_zone_cleared_alloc_stat)
1072 (ggc_internal_zone_vec_alloc_stat)
1073 (ggc_alloc_zone_rtx_def_stat)
1074 (ggc_alloc_zone_tree_node_stat)
1075 (ggc_alloc_zone_cleared_tree_node_stat)
1076 (ggc_alloc_cleared_gimple_statement_d_stat): New.
1077
1078 * ggc-common.c: Include ggc-internal.h.
1079 (ggc_internal_cleared_alloc_stat): Rename from
1080 ggc_alloc_cleared_stat.
1081 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
1082 (ggc_calloc): Remove.
1083 (ggc_cleared_alloc_htab_ignore_args): New.
1084 (ggc_cleared_alloc_ptr_array_two_args): New.
1085 (ggc_splay_alloc): Add obj_type parameter.
1086 (init_ggc_heuristics): Formatting fixes.
1087
1088 * ggc-none.c: Update copyright year.
1089 (ggc_alloc_stat): Rename to ggc_alloc_stat.
1090 (ggc_alloc_cleared_stat): Rename to
1091 ggc_internal_cleared_alloc_stat.
1092 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1093
1094 * ggc-page.c: Update copyright year. Include ggc-internal.h.
1095 Remove references to ggc_alloc in comments.
1096 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
1097 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
1098 (new_ggc_zone, destroy_ggc_zone): Remove.
1099 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1100
1101 * ggc-zone.c: Include ggc-internal.h. Remove references to
1102 ggc_alloc in comments.
1103 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
1104 (ggc_internal_alloc_zone_pass_stat): New.
1105 (ggc_internal_cleared_alloc_zone_stat): New.
1106 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
1107 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
1108 (new_ggc_zone, destroy_ggc_zone): Remove.
1109
1110 * stringpool.c: Update copyright year. Include ggc-internal.h
1111 (digit_vector): Make static.
1112 (digit_string): Moved from ggc.h.
1113 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
1114 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
1115
1116 * Makefile.in (GGC_INTERNAL_H): New.
1117 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
1118 $(GGC_INTERNAL_H) to dependencies.
1119
1120 * gentype.c: Update copyright year.
1121 (walk_type): Accept variable_size GTY option.
1122 (USED_BY_TYPED_GC_P): New macro.
1123 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
1124 whitespace at the end of strings.
1125 (get_type_specifier, variable_size_p): New functions.
1126 (alloc_quantity, alloc_zone): New enums.
1127 (write_typed_alloc_def): New function.
1128 (write_typed_struct_alloc_def): Likewise.
1129 (write_typed_typed_typedef_alloc_def): Likewise.
1130 (write_typed_alloc_defns): Likewise.
1131 (output_typename, write_splay_tree_allocator_def): Likewise.
1132 (write_splay_tree_allocators): Likewise.
1133 (main): Call write_typed_alloc_defns and
1134 write_splay_tree_allocators.
1135
1136 * lto-streamer.h (lto_file_decl_data_ptr): New.
1137
1138 * passes.c (order): Define using cgraph_node_ptr.
1139
1140 * strinpool.c (struct string_pool_data): Declare nested_ptr using
1141 ht_identifier_ptr.
1142
1143 * gimple.h (union gimple_statement_d): Likewise.
1144
1145 * rtl.h (struct rtx_def): Likewise.
1146 (struct rtvec_def): Likewise.
1147
1148 * tree.h (union tree_node): Likewise.
1149
1150 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
1151
1152 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
1153
1154 * tree-scalar-evolution.c (scev_initialize): Likewise.
1155
1156 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
1157
1158 * dwarf2asm.c (dw2_force_const_mem): Likewise.
1159
1160 * omp-low.c (lower_omp_critical): Likewise.
1161
1162 * bitmap.h (struct bitmap_head_def): Update comment to not
1163 reference ggc_alloc.
1164
1165 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
1166
1167 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
1168
1169 * ipa-prop.c (duplicate_ggc_array): Rename to
1170 duplicate_ipa_jump_func_array. Use typed GC allocation.
1171 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
1172
1173 * gimple.c (gimple_alloc_stat): Use
1174 ggc_alloc_cleared_gimple_statement_d_stat.
1175
1176 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
1177
1178 * tree.c (make_node_stat): Use
1179 ggc_alloc_zone_cleared_tree_node_stat.
1180 (make_tree_vec_stat): Likewise.
1181 (build_vl_exp_stat): Likewise.
1182 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
1183 (make_tree_binfo_stat): Likewise.
1184 (tree_cons_stat): Likewise.
1185
1186 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
1187 (shallow_copy_rtx_stat): Likewise.
1188 (make_node_stat): Likewise.
1189
1190 * lto-symtab.c: Fix comment.
1191
1192 * tree-cfg.c (create_bb): Update comment to not reference
1193 ggc_alloc_cleared.
1194 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
1195
1196 * varpool.c (varpool_node): Use typed GC allocation.
1197 (varpool_extra_name_alias): Likewise.
1198
1199 * varasm.c (emutls_decl): Likewise.
1200 (get_unnamed_section): Likewise.
1201 (get_noswitch_section): Likewise.
1202 (get_section): Likewise.
1203 (get_block_for_section): Likewise.
1204 (build_constant_desc): Likewise.
1205 (create_constant_pool): Likewise.
1206 (force_const_mem): Likewise.
1207
1208 * tree.c (build_vl_exp_stat): Likewise.
1209 (build_real): Likewise.
1210 (build_string): Likewise.
1211 (decl_debug_expr_insert): Likewise.
1212 (decl_value_expr_insert): Likewise.
1213 (type_hash_add): Likewise.
1214 (build_omp_clause): Likewise.
1215
1216 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
1217
1218 * tree-ssa.c (init_tree_ssa): Likewise.
1219
1220 * tree-ssa-structalias.c (heapvar_insert): Likewise.
1221
1222 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
1223
1224 * tree-ssa-loop-niter.c (record_estimate): Likewise.
1225
1226 * tree-ssa-alias.c (get_ptr_info): Likewise.
1227
1228 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
1229
1230 * tree-phinodes.c (allocate_phi_node): Likewise.
1231
1232 * tree-iterator.c (tsi_link_before): Likewise.
1233 (tsi_link_after): Likewise.
1234
1235 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
1236
1237 * tree-dfa.c (create_var_ann): Likewise.
1238
1239 * tree-cfg.c (create_bb): Likewise.
1240
1241 * toplev.c (alloc_for_identifier_to_locale): Likewise.
1242 (general_init): Likewise.
1243
1244 * stringpool.c (stringpool_ggc_alloc): Likewise.
1245 (gt_pch_save_stringpool): Likewise.
1246
1247 * sese.c (if_region_set_false_region): Likewise.
1248
1249 * passes.c (do_per_function_toporder): Likewise.
1250
1251 * optabs.c (set_optab_libfunc): Likewise.
1252 (set_conv_libfunc): Likewise.
1253
1254 * lto-symtab.c (lto_symtab_register_decl): Likewise.
1255
1256 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
1257 (input_eh_region): Likewise.
1258 (input_eh_lp): Likewise.
1259 (make_new_block): Likewise.
1260 (unpack_ts_real_cst_value_fields): Likewise.
1261
1262 * lto-section-in.c (lto_new_in_decl_state): Likewise.
1263
1264 * lto-cgraph.c (input_node_opt_summary): Likewise.
1265
1266 * loop-init.c (loop_optimizer_init): Likewise.
1267
1268 * lambda.h (lambda_vector_new): Likewise.
1269
1270 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1271
1272 * ira.c (update_equiv_regs): Likewise.
1273
1274 * ipa.c (cgraph_node_set_new): Likewise.
1275 (cgraph_node_set_add): Likewise.
1276 (varpool_node_set_new): Likewise.
1277 (varpool_node_set_add): Likewise.
1278
1279 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
1280 (duplicate_ipa_jump_func_array): Likewise.
1281 (ipa_read_node_info): Likewise.
1282
1283 * ipa-cp.c (ipcp_create_replace_map): Likewise.
1284
1285 * integrate.c (get_hard_reg_initial_val): Likewise.
1286
1287 * gimple.c (gimple_alloc_stat): Likewise.
1288 (gimple_build_omp_for): Likewise.
1289 (gimple_seq_alloc): Likewise.
1290 (gimple_copy): Likewise.
1291
1292 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
1293 (gsi_insert_after_without_update): Likewise.
1294
1295 * function.c (add_frame_space): Likewise.
1296 (insert_temp_slot_address): Likewise.
1297 (assign_stack_temp_for_type): Likewise.
1298 (allocate_struct_function): Likewise.
1299 (types_used_by_var_decl_insert): Likewise.
1300
1301 * except.c (init_eh_for_function): Likewise.
1302 (gen_eh_region): Likewise.
1303 (gen_eh_region_catch): Likewise.
1304 (gen_eh_landing_pad): Likewise.
1305 (add_call_site): Likewise.
1306
1307 * emit-rtl.c (get_mem_attrs): Likewise.
1308 (get_reg_attrs): Likewise.
1309 (start_sequence): Likewise.
1310 (init_emit): Likewise.
1311
1312 * dwarf2out.c (new_cfi): Likewise.
1313 (queue_reg_save): Likewise.
1314 (dwarf2out_frame_init): Likewise.
1315 (new_loc_descr): Likewise.
1316 (find_AT_string): Likewise.
1317 (new_die): Likewise.
1318 (add_var_loc_to_decl): Likewise.
1319 (clone_die): Likewise.
1320 (clone_as_declaration): Likewise.
1321 (break_out_comdat_types): Likewise.
1322 (new_loc_list): Likewise.
1323 (loc_descriptor): Likewise.
1324 (add_loc_descr_to_each): Likewise.
1325 (add_const_value_attribute): Likewise.
1326 (tree_add_const_value_attribute): Likewise.
1327 (add_comp_dir_attribute): Likewise.
1328 (add_name_and_src_coords_attributes): Likewise.
1329 (lookup_filename): Likewise.
1330 (store_vcall_insn): Likewise.
1331 (dwarf2out_init): Likewise.
1332
1333 * dbxout.c (dbxout_init): Likewise.
1334
1335 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1336
1337 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1338
1339 * config/score/score7.c (score7_output_external): Likewise.
1340
1341 * config/score/score3.c (score3_output_external): Likewise.
1342
1343 * config/s390/s390.c (s390_init_machine_status): Likewise.
1344
1345 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
1346 (rs6000_init_machine_status): Likewise.
1347 (output_toc): Likewise.
1348
1349 * config/pa/pa.c (pa_init_machine_status): Likewise.
1350 (get_deferred_plabel): Likewise.
1351
1352 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
1353
1354 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
1355
1356 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
1357
1358 * config/mep/mep.c (mep_init_machine_status): Likewise.
1359 (mep_note_pragma_flag): Likewise.
1360
1361 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
1362
1363 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
1364
1365 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
1366
1367 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1368 (i386_pe_maybe_record_exported_symbol): Likewise.
1369
1370 * config/i386/i386.c (get_dllimport_decl): Likewise.
1371 (ix86_init_machine_status): Likewise.
1372 (assign_386_stack_local): Likewise.
1373
1374 * config/frv/frv.c (frv_init_machine_status): Likewise.
1375
1376 * config/darwin.c (machopic_indirection_name): Likewise.
1377
1378 * config/cris/cris.c (cris_init_machine_status): Likewise.
1379
1380 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
1381
1382 * config/avr/avr.c (avr_init_machine_status): Likewise.
1383
1384 * config/arm/arm.c (arm_init_machine_status): Likewise.
1385
1386 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
1387 (alpha_need_linkage): Likewise.
1388 (alpha_use_linkage): Likewise.
1389
1390 * cgraph.c (cgraph_allocate_node): Likewise.
1391 (cgraph_create_edge_1): Likewise.
1392 (cgraph_create_indirect_edge): Likewise.
1393 (cgraph_add_asm_node): Likewise.
1394
1395 * cfgrtl.c (init_rtl_bb_info): Likewise.
1396
1397 * cfgloop.c (alloc_loop): Likewise.
1398 (rescan_loop_exit): Likewise.
1399
1400 * cfg.c (init_flow): Likewise.
1401 (alloc_block): Likewise.
1402 (unchecked_make_edge): Likewise.
1403
1404 * c-parser.c (c_parse_init): Likewise.
1405 (c_parse_file): Likewise.
1406
1407 * c-decl.c (bind): Likewise.
1408 (record_inline_static): Likewise.
1409 (push_scope): Likewise.
1410 (make_label): Likewise.
1411 (lookup_label_for_goto): Likewise.
1412 (finish_struct): Likewise.
1413 (finish_enum): Likewise.
1414 (c_push_function_context): Likewise.
1415
1416 * bitmap.c (bitmap_element_allocate): Likewise.
1417 (bitmap_gc_alloc_stat): Likewise.
1418
1419 * alias.c (record_alias_subset): Likewise.
1420 (init_alias_analysis): Likewise.
1421
1422 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
1423
1424 * fold-const.c (fold_comparison): Remove redundant parenthesis.
1425 * tree-inline.c (expand_call_inline): Pass translated return value of
1426 cgraph_inline_failed_string to diagnostic function.
1427
1428 2010-06-08 Andrew Pinski <pinskia@gmail.com>
1429 Shujing Zhao <pearly.zhao@oracle.com>
1430
1431 PR c/37724
1432 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
1433 implicit bad conversions is initialization.
1434 (error_init): Use gmsgid instead of msgid for argument name and change
1435 the call for error.
1436 (pedwarn_init): Use gmsgid instead of msgid for argument name and
1437 change the call for pedwarn.
1438 (warning_init): Use gmsgid instead of msgid for argument name and
1439 change the call for warning.
1440
1441 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
1442
1443 * config/mips/mips-protos.h (mips_print_operand): Delete.
1444 (mips_print_operand_address): Delete.
1445 * config/mips/mips.h (mips_print_operand_punct): Delete.
1446 (PRINT_OPERAND): Delete.
1447 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1448 (PRINT_OPERAND_ADDRESS): Delete.
1449 * config/mips/mips.c (mips_print_operand_punct): Make static.
1450 (mips_print_operand_address): Make static.
1451 (mips_print_operand): Make static. Call
1452 mips_print_operand_punct_valid_p.
1453 (mips_print_operand_punct_valid_p): New function.
1454 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1455 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1456
1457 2010-06-07 Jan Hubicka <jh@suse.cz>
1458
1459 PR middle-end/44454
1460 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
1461 are allocated.
1462
1463 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
1464
1465 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
1466 name of RECORD.
1467
1468 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1469
1470 * doc/sourcebuild.texi (Effective-Target Keywords, Other
1471 attributes): Document gas.
1472
1473 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
1474
1475 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
1476 <TYPE_LEA>: Split instruction.
1477 <default>: Remove alternative 2 handling.
1478 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
1479 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
1480 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
1481
1482 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
1483 (ashift_zext lea splitter): Use DImode for multiplication.
1484
1485 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
1486 to generate addition.
1487
1488 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1489
1490 * common.opt (fira-verbose): Use Var.
1491 (fpcc-struct-return): Use Init instead of VarExists.
1492 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
1493 toplev.c.
1494 * flags.h (flag_signed_char, flag_short_enums,
1495 flag_pcc_struct_return, flag_ira_verbose,
1496 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
1497 * toplev.c (flag_detailed_statistics, flag_signed_char,
1498 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
1499 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
1500 * toplev.h (flag_crossjumping, flag_if_conversion,
1501 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
1502 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
1503 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
1504 flag_cprop_registers, time_report, flag_ira_loop_pressure,
1505 flag_ira_coalesce, flag_ira_move_spills,
1506 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
1507
1508 2010-06-07 Jan Hubicka <jh@suse.cz>
1509
1510 * df-core.c (df_analyze_problem): Do verification after allocation.
1511
1512 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
1513 (df_lr_alloc): Initialize problem data; move bitmaps to
1514 lr_bitmaps obstack.
1515 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
1516 (df_lr_verify_solution_start): Do not initialize problem data;
1517 allocate bitmaps in lr_bitmaps.
1518 (df_lr_verify_solution_end): Do not free problem data.
1519
1520 2010-06-07 Jan Hubicka <jh@suse.cz>
1521
1522 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
1523 if caller is noreturn.
1524 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
1525 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
1526 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
1527 * ipa-pure-const.c (check_decl): Add IPA parameter.
1528 (state_from_flags): New function.
1529 (better_state, worse_state): New functions.
1530 (check_call): When in IPA mode, do not care about callees.
1531 (check_load, check_store): Update.
1532 (check_ipa_load, check_ipa_store): New.
1533 (check_stmt): When in IPA mode, use IPA checkers.
1534 (analyze_function): Use state_from_flags.
1535 (propagate): Check indirect edges and references.
1536
1537 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
1538
1539 PR rtl-optimization/44404
1540 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
1541 of count_occurrences to see if it's safe to modify mem_insn.
1542
1543 2010-06-07 Richard Guenther <rguenther@suse.de>
1544
1545 * gimplify.c (gimplify_cleanup_point_expr): For empty body
1546 and EH-only cleanup drop the cleanup instead of inserting it
1547 unconditionally.
1548
1549 2010-06-07 Ira Rosen <irar@il.ibm.com>
1550
1551 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
1552 documentation.
1553 * targhooks.c (default_builtin_vectorization_cost): New function.
1554 * targhooks.h (default_builtin_vectorization_cost): Declare.
1555 * target.h (enum vect_cost_for_stmt): Define.
1556 (builtin_vectorization_cost): Change argument and comment.
1557 * tree-vectorizer.h: Remove cost model macros.
1558 * tree-vect-loop.c: Include target.h.
1559 (vect_get_cost): New function.
1560 (vect_estimate_min_profitable_iters): Replace cost model macros with
1561 calls to vect_get_cost.
1562 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
1563 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
1564 default implementation.
1565 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
1566 calls to target hook builtin_vectorization_cost.
1567 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
1568 Likewise.
1569 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
1570 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
1571 implementation to return costs.
1572 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1573 * config/spu/spu.h: Remove vectorizer cost model macros.
1574 * config/i386/i386.h: Likewise.
1575 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
1576 a call to target hook builtin_vectorization_cost.
1577
1578 2010-06-06 Sriraman Tallam <tmsriram@google.com>
1579
1580 PR target/44319
1581 * config/i386/i386.c (override_options): Turn zee pass on for level 2
1582 and above and defer till target is known.
1583 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
1584 turn off otherwise.
1585
1586 2010-05-25 Jan Hubicka <jh@suse.cz>
1587
1588 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
1589 (df_compact_blocks): Likewise.
1590 * df.h (struct df): Turn hardware_regs_used,
1591 regular_block_artificial_uses, eh_block_artificial_uses,
1592 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
1593 bitmap_head.
1594 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
1595 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
1596 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
1597 df_scan_blocks, df_insn_delete, df_insn_rescan,
1598 df_insn_rescan_debug_internal, df_insn_rescan_all,
1599 df_process_deferred_rescans, df_process_deferred_rescans,
1600 df_notes_rescan, df_get_call_refs, df_get_call_refs,
1601 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
1602 df_record_entry_block_defs, df_record_exit_block_uses,
1603 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
1604 df_scan_verify): Update.
1605
1606 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1607
1608 PR c++/44188
1609 * c-common.c (is_typedef_decl): Move this definition ...
1610 * tree.c (is_typedef_decl): ... here.
1611 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1612 * c-common.h (is_typedef_decl): Move this declaration ...
1613 * tree.h (is_typedef_decl): ... here.
1614 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1615 * dwarf2out.c (is_naming_typedef_decl): New function.
1616 (gen_tagged_type_die): Split out of ...
1617 (gen_type_die_with_usage): ... this function. When an anonymous
1618 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1619 is emitted for the typedef.
1620 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1621 anonymous tagged types.
1622
1623 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1624
1625 PR c/20000
1626 * c-decl.c (grokdeclarator): Delete warning.
1627
1628 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
1629
1630 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
1631 newly built CALL_EXPR.
1632 * tree-profile.c (tree_profiling): Don't profile functions produced
1633 for built-in stuff.
1634
1635 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
1636
1637 PR bootstrap/44427
1638 PR bootstrap/44428
1639 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
1640 endianness-independent.
1641
1642 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1643
1644 * c-common.c: Move to c-family/.
1645 * c-common.def: Likewise.
1646 * c-common.h: Likewise.
1647 * c-cppbuiltin.c: Likewise.
1648 * c-dump.c: Likewise.
1649 * c-format.c: Likewise.
1650 * c-format.h : Likewise.
1651 * c-gimplify.c: Likewise.
1652 * c-lex.c: Likewise.
1653 * c-omp.c: Likewise.
1654 * c.opt: Likewise.
1655 * c-opts.c: Likewise.
1656 * c-pch.c: Likewise.
1657 * c-ppoutput.c: Likewise.
1658 * c-pragma.c: Likewise.
1659 * c-pragma.h: Likewise.
1660 * c-pretty-print.c: Likewise.
1661 * c-pretty-print.h: Likewise.
1662 * c-semantics.c: Likewise.
1663 * stub-objc.c: Likewise.
1664
1665 * gengtype.c (get_file_langdir): Special-case files in c-family/.
1666 (get_output_file_with_visibility): Fix name for c-common.h.
1667 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
1668
1669 * c-tree.h: Update include path for moved files.
1670 * c-lang.c: Likewise.
1671 * c-lang.h: Likewise.
1672 * c-parser.c: Likewise.
1673 * c-convert.c: Likewise.
1674 * c-decl.c: Likewise.
1675 * c-objc-common.c: Likewise.
1676 * configure.ac: Make sure c-family/ exists in the build directory.
1677 * configure: Regenerate.
1678 * Makefile.in: Update paths for moved files. Regroup files per
1679 location and update dependencies. Move generated_files down after
1680 ALL_GTFILES_H.
1681
1682 * config/spu/spu-c.c: Update paths for moved files.
1683 * config/mep/mep-pragma.c: Likewise.
1684 * config/darwin-c.c: Likewise.
1685 * config/i386/msformat-c.c: Likewise.
1686 * config/i386/i386-c.c: Likewise.
1687 * config/avr/avr-c.c: Likewise.
1688 * config/sol2-c.c: Likewise.
1689 * config/ia64/ia64-c.c: Likewise.
1690 * config/rs6000/rs6000-c.c: Likewise.
1691 * config/arm/arm.c: Likewise.
1692 * config/arm/arm-c.c: Likewise.
1693 * config/h8300/h8300.c: Likewise.
1694 * config/v850/v850-c.c: Likewise.
1695
1696 * config/t-darwin: Fix dependencies for moved files.
1697 * config/t-sol2: Fix dependencies for moved files.
1698 * config/mep/t-mep: Fix dependencies for moved files.
1699 * config/ia64/t-ia64: Fix dependencies for moved files.
1700 * config/rs6000/t-rs6000: Fix dependencies for moved files.
1701 * config/v850/t-v850: Fix dependencies for moved files.
1702 * config/v850/t-v850e: Fix dependencies for moved files.
1703
1704 * config/m32c/m32c-pragma.c
1705
1706 * po/exgettext: Look in c-family/ also.
1707
1708 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
1709
1710 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
1711 (mark_control_dependent_edges_necessary): Call it instead of marking
1712 the last statement manually.
1713 (propagate_necessity): Likewise.
1714
1715 2010-06-05 Jan Hubicka <jh@suse.cz>
1716
1717 * basic-block.h (compute_dominance_frontiers): Updated.
1718 (compute_idf): Likewise.
1719
1720 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
1721 for dominance frontiers.
1722 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
1723 (insert_updated_phi_nodes_for): Likewise.
1724 (update_ssa): Likewise.
1725 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1726 (compute_dominance_frontiers): Likewise.
1727 (compute_idf): Likewise.
1728 * df-problems.c (df_md_local_compute): Likewise.
1729
1730 2010-06-05 Anatoly Sokolov <aesok@post.ru>
1731
1732 * target.h (struct gcc_target): Add memory_move_cost field.
1733 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
1734 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
1735 * targhooks.c (default_memory_move_cost): New function.
1736 * targhooks.h (default_memory_move_cost): Declare function.
1737 * reload.h (memory_move_cost): Declare.
1738 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1739 * reginfo.c (memory_move_cost): New function.
1740 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1741 * ira.h (ira_memory_move_cost): Update comment.
1742 * ira.c: (ira_memory_move_cost): Update comment.
1743 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
1744 with memory_move_cost.
1745 * postreload.c (reload_cse_simplify_set): (Ditto.).
1746 * reload1.c (choose_reload_regs): (Ditto.).
1747 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
1748 (MEMORY_MOVE_COST): Revise documentation.
1749
1750 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1751 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1752 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
1753 type of 'in' argument to bool.
1754 (TARGET_MEMORY_MOVE_COST): Define.
1755
1756 2010-06-05 Jan Hubicka <jh@suse.cz>
1757
1758 * ipa-pure-const.c (propagate): Fix typo in handling of functions
1759 that cannot return. Be more careful when merging the results with
1760 previously known ones.
1761
1762 2010-06-05 Matthias Klose <doko@ubuntu.com>
1763
1764 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
1765 function to add the -iplugindir option.
1766 (find_plugindir_spec_function): Add new declaration and function.
1767 (static_spec_func): Use it for "find-plugindir".
1768
1769 2010-06-05 Jakub Jelinek <jakub@redhat.com>
1770
1771 PR c++/44361
1772 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
1773 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
1774 statement expression.
1775
1776 2010-06-05 Jan Hubicka <jh@suse.cz>
1777
1778 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
1779 (df_rd_problem_data): Convert sparse_invalidated_by_call,
1780 dense_invalidated_by_call to bitmap head.
1781 (df_rd_alloc, df_rd_bb_local_compute_process_def,
1782 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
1783 df_rd_start_dump, df_lr_verify_transfer_functions,
1784 df_live_verify_transfer_functions, df_chain_create_bb,
1785 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
1786 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
1787 df_simulate_one_insn_forwards, df_md_alloc,
1788 df_md_bb_local_compute_process_def,
1789 df_md_bb_local_compute_process_def, df_md_local_compute,
1790 df_md_transfer_function df_md_free): Update.
1791
1792 2010-06-05 Joseph Myers <joseph@codesourcery.com>
1793
1794 PR c/44322
1795 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
1796 target type for ADDR_EXPR; require no changes to qualifiers except
1797 for function types.
1798 * c-tree.h (c_build_type_variant): Remove.
1799
1800 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1801
1802 * genautomata.c (get_excl_set): Do work per element, not per char.
1803 (check_presence_pattern_sets): Similar.
1804 (check_absence_pattern_sets): Similar.
1805
1806 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1807
1808 * genautomata.c (curr_state_pass_num): Delete.
1809 (min_issue_delay_pass_states): Delete.
1810 (min_issue_delay): Delete.
1811 (initiate_min_issue_delay_pass_states): Delete.
1812 (output_min_issue_delay_table): Compute min_issue_delay_vect
1813 using a breadth-first search variant.
1814 (output_tables): Don't call initiate_min_issue_delay_pass_states.
1815
1816 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
1817
1818 PR boostrap/44421
1819 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
1820 (df_byte_lr_bb_local_compute): Likewise.
1821
1822 2010-06-03 Jason Merrill <jason@redhat.com>
1823
1824 Implement noexcept operator (5.3.7)
1825 * c-common.c (c_common_reswords): Add noexcept.
1826 * c-common.h (enum rid): Add RID_NOEXCEPT.
1827
1828 2010-06-04 Joseph Myers <joseph@codesourcery.com>
1829
1830 * config/darwin-driver.c (darwin_default_min_version): Use
1831 GCC-specific formats in diagnostics.
1832 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
1833 diagnostics.
1834 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
1835 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
1836 eval_spec_function, handle_braces, process_brace_body, main,
1837 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
1838 getenv_spec_function, compare_version_strings,
1839 version_compare_spec_function): Use GCC-specific formats in
1840 diagnostics.
1841
1842 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1843
1844 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
1845 that operand 0 and operand 1 are equal.
1846 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
1847 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
1848 and operand 1 are equal.
1849 <default>: Ditto. Remove ??? comment.
1850 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
1851 and operand 1 are equal.
1852 <default>: Ditto. Remove ??? comment.
1853 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
1854 are equal.
1855 (*add<mode>_4) <default>: Ditto.
1856 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
1857
1858 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
1859
1860 * config/i386/i386-protos.h (ix86_print_operand): Declare.
1861 * config/i386/i386.c (ix86_print_operand): Make non-static.
1862 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
1863 * output.h (output_operand): Declare.
1864 * final.c (output_operand): Make non-static.
1865
1866 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
1867
1868 PR rtl-optimization/44013
1869 * sched-deps.c (add_dependence_list_and_free): Don't free lists
1870 when processing debug insns.
1871
1872 PR debug/41371
1873 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
1874 recursing. Check that recursion is bounded. Rename inner var
1875 to avoid hiding incoming argument.
1876
1877 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1878
1879 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
1880 operands[2] == 255.
1881 (*addqi_3): Ditto.
1882 (*addqi_4): Ditto.
1883 (*addqi_5): Ditto.
1884 (*addqi_ext_1_rex64): Ditto.
1885 (*addqi_ext_1): Ditto.
1886
1887 (*addqi_4): Check for incdec_operand in QImode.
1888
1889 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
1890 using SWI mode iterator.
1891 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
1892 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
1893 mode iterator.
1894 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
1895 using SWI mode iterator.
1896
1897 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1898
1899 PR c/25880
1900 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
1901 * c-format.c (gcc_diag_flag_specs): Add hash.
1902 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
1903 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
1904 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
1905 pp_c_cv_qualifiers. Handle qualifiers spelling here.
1906 (pp_c_type_qualifier_list): Call the function above.
1907 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
1908 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
1909 (WARN_FOR_QUALIFIERS): New macro.
1910 (convert_for_assignment): Use it.
1911
1912 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
1913
1914 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
1915
1916 2010-06-04 Jan Hubicka <jh@suse.cz>
1917
1918 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
1919 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
1920 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
1921 DF_BYTE_LR_OUT): Update for embedded bitmaps.
1922 * fwprop.c (single_def_use_enter_block): Likewise.
1923 * ddg.c (create_ddg_dep_from_intra_loop_link,
1924 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
1925 * loop-iv.c (latch_dominating_def): Likewise.
1926 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
1927 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
1928 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
1929 df_rd_transfer_function, df_rd_top_dump,
1930 df_rd_bottom_dump): Update.
1931 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
1932 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
1933 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
1934 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
1935 df_lr_verify_solution_start, df_lr_verify_solution_end,
1936 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
1937 df_live_free_bb_info, df_live_alloc, df_live_reset,
1938 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
1939 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
1940 df_live_verify_solution_start, df_live_verify_solution_end,
1941 df_live_verify_transfer_functions, df_chain_create_bb,
1942 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
1943 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1944 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1945 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
1946 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
1947 df_byte_lr_transfer_function, df_byte_lr_top_dump,
1948 df_byte_lr_bottom_dump, df_create_unused_note,
1949 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
1950 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
1951 df_md_transfer_function, df_md_init, df_md_confluence_0,
1952 df_md_confluence_n,
1953 df_md_top_dump, df_md_bottom_dump): Update.
1954 (struct df_lr_problem_data): Embedd bitmap headers.
1955
1956 2010-06-04 Jan Hubicka <jh@suse.cz>
1957
1958 * dce.c (dce_process_block): Do not re-scan already marked
1959 instructions.
1960
1961 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
1962
1963 PR rtl-optimization/39871
1964 PR rtl-optimization/40615
1965 PR rtl-optimization/42500
1966 PR rtl-optimization/42502
1967 * ira.c (init_reg_equiv_memory_loc: New function.
1968 (ira): Call it twice.
1969 * reload.h (calculate_elim_costs_all_insns): Declare.
1970 * ira-costs.c: Include "reload.h".
1971 (regno_equiv_gains): New static variable.
1972 (init_costs): Allocate it.
1973 (finish_costs): Free it.
1974 (ira_costs): Call calculate_elim_costs_all_insns.
1975 (find_costs_and_classes): Take estimated elimination costs
1976 into account.
1977 (ira_adjust_equiv_reg_cost): New function.
1978 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
1979 * reload1.c (init_eliminable_invariants, free_reg_equiv,
1980 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
1981 (elim_bb): New static variable.
1982 (reload): Move code out of here into init_eliminable_invariants and
1983 free_reg_equiv. Call them.
1984 (calculate_elim_costs_all_insns): New function.
1985 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
1986 all callers changed. If FOR_COSTS is true, don't call alter_reg,
1987 but call note_reg_elim_costly if we turned a valid memory address
1988 into an invalid one.
1989 * Makefile.in (ira-costs.o): Depend on reload.h.
1990
1991 2010-06-04 Julian Brown <julian@codesourcery.com>
1992
1993 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
1994 for pool ranges.
1995
1996 2010-06-04 Richard Guenther <rguenther@suse.de>
1997
1998 PR lto/41584
1999 * cgraph.h (struct varpool_node): Add lto_file_data field.
2000 * lto-cgraph.c (input_varpool_node): Initialize it.
2001
2002 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2003
2004 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2005 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2006 predicate in "type" attribute calculation.
2007 (*addsi_1_zext): Ditto.
2008 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2009 (*addsi_2_zext): Ditto.
2010 (*add<mode>_3): Ditto.
2011 (*addsi_3_zext): Ditto.
2012 (*add<mode>_5): Ditto.
2013
2014 2010-06-03 Jan Hubicka <jh@suse.cz>
2015
2016 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
2017 of bitmap_bit_p.
2018 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2019
2020 2010-06-03 Jan Hubicka <jh@suse.cz>
2021
2022 * df-problems.c (df_create_unused_note, df_note_bb_compute):
2023 micro-optimize the checks when to add new note.
2024
2025 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
2026
2027 * final.c (output_asm_insn): Call
2028 targetm.asm_out.print_operand_punct_valid_p. Update comments.
2029 (output_operand): Call targetm.asm_out.print_operand. Update comments.
2030 (output_address): Call targetm.asm_out.print_operand_address.
2031 Update comments.
2032 * target.h (struct gcc_target): Add print_operand,
2033 print_operand_address, and print_operand_punct_valid_p fields.
2034 * targhooks.h (default_print_operand): Declare.
2035 (default_print_operand_address): Declare.
2036 (default_print_operand_punct_valid_p): Declare.
2037 * targhooks.c (default_print_operand): Define.
2038 (default_print_operand_address): Define.
2039 (default_print_operand_punct_valid_p): Define.
2040 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
2041 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
2042 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2043 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
2044 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
2045 * vmsdbgout.c (addr_const_to_string): Update comment.
2046 * config/i386/i386.c (print_operand): Rename to...
2047 (ix86_print_operand): ...this. Make static.
2048 (print_operand_address): Rename to...
2049 (ix86_print_operand_address): ...this. Make static. Call
2050 ix86_print_operand instead of PRINT_OPERAND.
2051 (ix86_print_operand_punct_valid_p): New function.
2052 (TARGET_PRINT_OPERAND): Define.
2053 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2054 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2055 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
2056 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2057 (PRINT_OPERAND): Delete.
2058 (PRINT_OPERAND_ADDRESS): Delete.
2059 * config/i386/i386-protos.h (print_operand): Delete prototype.
2060 (print_operand_address): Delete prototype.
2061
2062 2010-06-03 Richard Guenther <rguenther@suse.de>
2063
2064 PR tree-optimization/44403
2065 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2066 Preserve pointer qualifiers.
2067 (vect_create_data_ref_ptr): Likewise.
2068
2069 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
2070
2071 PR c++/44294
2072 * defaults.h (MAX_FIXED_MODE_SIZE): New.
2073
2074 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
2075
2076 2010-06-03 Jakub Jelinek <jakub@redhat.com>
2077
2078 PR debug/44375
2079 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
2080 return false if merging the bbs would lead to goto_locus
2081 location being lost from the IL.
2082
2083 2010-06-03 Jan Hubicka <jh@suse.cz>
2084 Jakub Jelinek <jakub@redhat.com>
2085
2086 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
2087 set->regs[i] is NULL or has just one entry.
2088
2089 2010-06-03 Jan Hubicka <jh@suse.cz>
2090
2091 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
2092 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
2093
2094 2010-06-03 Paul Brook <paul@codesourcery.com>
2095
2096 * config/arm/arm.c (FL_TUNE): Define.
2097 (arm_default_cpu, arm_cpu_select): Remove.
2098 (all_cores): Populate core field.
2099 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
2100 (arm_find_cpu): New function.
2101 (arm_handle_option): Lookup cpu/architecture names.
2102 (arm_override_options): Cleanup mcpu/march/mtune handling.
2103 (arm_file_start): Ditto.
2104
2105 2010-06-03 Alan Modra <amodra@gmail.com>
2106
2107 PR target/44169
2108 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
2109 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
2110 rtx to gen_load_toc_v4_PIC_1b. Tidy.
2111 (rs6000_emit_load_toc_table): Likewise.
2112
2113 2010-06-02 Jan Hubicka <jh@suse.cz>
2114
2115 * passes.c (init_optimization_passes): Put ipa reference
2116 after ipa pure-const.
2117
2118 2010-06-02 Jan Hubicka <jh@suse.cz>
2119
2120 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
2121 calls_read_all and calls_write_all.
2122 (get_reference_optimization_summary): Fix formatting.
2123 (is_proper_for_analysis): Check that decl is not readonly.
2124 (propagate_bits): Check CONST/PURE/noreturn flags.
2125 (ipa_init): Move all_module_statics to optimization_summary_obstack.
2126 (analyze_function): Ignore indirect edges.
2127 (copy_global_bitmap): For all module statics, do nothing.
2128 (generate_summary): Do not print calls_read_all/calls_write_all.
2129 (read_write_all_from_decl): Take node as argument; check
2130 cgraph_node_cannot_return.
2131 (propagate): Reorganize read_all/write_all computation;
2132 check indirect edges; check ecf flags; use all_module_statics
2133 in the results; do not free all_module_statics.
2134 (stream_out_bitmap): Handle all_module_statics.
2135 (ipa_reference_write_optimization_summary): Likewise; use
2136 varpool/cgraph encoders to get boundaries.
2137 (ipa_reference_read_optimization_summary): Read in all_module_statics;
2138 use it when possible.
2139
2140 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2141
2142 PR target/44218
2143 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
2144 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
2145
2146 * doc/extend.texi (powerpc builtins): Document vec_recip,
2147 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
2148
2149 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
2150 (rs6000_emit_swrsqrt): Ditto.
2151 (rs6000_emit_swdivsf): Delete.
2152 (rs6000_emit_swdivdf): Ditto.
2153 (rs6000_emit_swrsqrtsf): Ditto.
2154
2155 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
2156 describe the reciprocal estimate support for each type.
2157 (recip_options): Map -mrecip=<opt> into option bits.
2158 (gen_2arg_fn_t): New typedef for binary rtx gen function.
2159 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
2160 reciprocal estimate instructions.
2161 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
2162 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
2163 Set up rs6000_recip_bits based on the -mrecip* options. Print the
2164 cost information if -mdebug=cost or -mdebug=reg.
2165 (rs6000_override_options): Set -mrecip-precision for power6, and
2166 power7 machines. If -mvsx or -mdfp, enable various options that
2167 came in previous instruction set ISAs, unless the option was
2168 explicitly disabled by the command line option. Parse
2169 -mrecip=<opt> options.
2170 (rs6000_builtin_vectorized_function): Add support for vectorizing
2171 the reciprocal estimate builtins and expansions.
2172 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
2173 (bdesc_2arg): Add reciprocal estimate builtins.
2174 (bdesc_1arg): Add reciprocal square root estimate builtins.
2175 (rs6000_expand_builtin): Rewrite to use a switch statement,
2176 instead of multiple if/then/elses. Add reciprocal estimate builtins.
2177 (rs6000_init_builtins): Create declarations for reciprocal
2178 estimate builtins.
2179 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
2180 sized, prefer traditional floating point registers, if integer
2181 vector types, prefer altivec registers. Don't actually look at
2182 the memory address any more.
2183 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
2184 builtins.
2185 (rs6000_load_constant_and_splat): New helper function to load up
2186 the constant for reciprocal estimate instructions.
2187 (rs6000_emit_madd): New helper function for generating
2188 multiply/add type instructions, based on the current switches.
2189 (rs6000_emit_msub): Ditto.
2190 (rs6000_emit_mnsub): Ditto.
2191 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
2192 replace a divide with a reciprocal estimate and fixup, adding
2193 support for machines with high precision and vectors.
2194 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
2195 low precision machines.
2196 (rs6000_emit_swdiv): New common function to be called to replace a
2197 division with reciprocal estimate and fixup.
2198 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
2199 for double and vector types. Add support for high precision machines.
2200
2201 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
2202 the reciprocal estimate instructions can be generated.
2203 (TARGET_FRE): Ditto.
2204 (TARGET_FRSQRTES): Ditto.
2205 (TARGET_FRSQRTE): Ditto.
2206 (RS6000_RECIP_*): New macros for reciprocal estimate support.
2207
2208 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
2209 square root estimate on vectors.
2210 (re<mode>2): New insn for reciprocal division estimate on vectors.
2211
2212 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
2213 New builtin.
2214 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
2215 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
2216 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
2217 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
2218 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
2219 (RS6000_BUILTIN_RSQRT): Ditto.
2220 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
2221 floating point builtin.
2222
2223 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2224 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
2225 __RECIP_PRECISION__ based on the command line switches.
2226 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
2227
2228 * config/rs6000/rs6000.opt (-mrecip): Document add support for
2229 replacing division instructions with reciprocal estimate and fixup.
2230 (-mrecip=<opt>): New option.
2231 (-mrecip-precision): Ditto.
2232
2233 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
2234 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
2235 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
2236 precision scalar.
2237
2238 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
2239 (UNSPEC_VREFP): Ditto.
2240 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
2241 conterparts with regard to support of -mno-fused-madd and -ffast-math.
2242 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
2243 reciprocal estimate instructions to be generated.
2244 (altivec_vrefp): Ditto.
2245
2246 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
2247 estimate support.
2248 (rreg): New mode attribute for reciprocal estimate support.
2249 (recip<mode>3): New insn for division using reciprocal estimate
2250 and fixup builtins.
2251 (divide define_split): New define_split to convert floating point
2252 division to use reciprocal estimate if the user used the
2253 appropriate options and the split is run when we can add new
2254 pseudo registers for the fixup.
2255 (rsqrt<mode>2): New insn for reciprocal square root support.
2256 (recipsf3): Move into recip<mode>3.
2257 (recipdf3): Ditto.
2258 (fres): Use TARGET_FRES.
2259 (rsqrtsf2): Move into rsqrt<mode>2.
2260 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
2261 (copysignsf3): Add support for VSX.
2262 (fred): Use TARGET_FRE.
2263 (fred_fpr): Ditto.
2264 (rsqrtdf_internal1): New function for frsqrte instruciton.
2265
2266 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
2267 (vec_rsqrt): Ditto.
2268
2269 2010-06-03 Richard Guenther <rguenther@suse.de>
2270
2271 PR middle-end/44291
2272 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
2273 (set_user_assembler_libfunc): Likewise.
2274
2275 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2276
2277 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
2278 defaults.h.
2279 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
2280 to defaults.h
2281 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
2282 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
2283 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
2284 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
2285 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
2286 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
2287 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
2288 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
2289 * defaults.h: Updated for above mentioned changes.
2290
2291 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
2292
2293 * c-common.c: Remove header include of tm_p.h.
2294 * Makefile.in (c-common.o): Remove TM_P_H dependency.
2295
2296 2010-06-02 Jakub Jelinek <jakub@redhat.com>
2297
2298 * tree.h (struct tree_decl_map): New type.
2299 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
2300 (tree_decl_map_hash): New prototype.
2301 (debug_expr_for_decl, value_expr_for_decl): Change into
2302 tree_decl_map hashtab from tree_map.
2303 (init_ttree): Adjust initialization.
2304 (tree_decl_map_hash): New function.
2305 (decl_debug_expr_lookup, decl_debug_expr_insert,
2306 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
2307
2308 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2309
2310 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
2311 linker emulations.
2312 * configure: Regenerate.
2313 * config.in: Regenerate.
2314
2315 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
2316 (X86_64_EMULATION): Define.
2317 (TARGET_LD_EMULATION): Use them.
2318
2319 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
2320 (SPARC64_EMULATION): Define.
2321 (LINK_ARCH_SPEC): Use them.
2322
2323 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2324
2325 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
2326 smallest_mode_for_size for computing the precision types of new
2327 graphite IVs. Do not call lang_hooks.types.type_for_size.
2328
2329 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2330
2331 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
2332 information.
2333 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
2334
2335 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2336
2337 PR middle-end/44363
2338 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
2339 return false instead.
2340
2341 2010-06-02 Jan Hubicka <jh@suse.cz>
2342
2343 PR middle-end/44295
2344 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
2345 create new cgraph node to check callee.
2346
2347 2010-06-02 Richard Guenther <rguenther@suse.de>
2348
2349 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
2350
2351 2010-06-02 Richard Guenther <rguenther@suse.de>
2352
2353 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
2354 (lto_wrapper_cleanup): ... this. Do not exit.
2355 (fatal): Adjust. Exit here.
2356 (fatal_perror): Likewise.
2357 (fatal_signal): New function.
2358 (main): Set up signal handlers to cleanup temporary files.
2359 * Makefile.in (lto-wrapper.o): Adjust dependencies.
2360
2361 2010-06-02 Richard Guenther <rguenther@suse.de>
2362
2363 PR tree-optimization/44377
2364 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
2365
2366 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2367
2368 * config/s390/2097.md (z10_fhex): Remove insn reservation.
2369 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
2370 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
2371 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
2372 instruction.
2373 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
2374
2375 2010-06-02 Jan Hubicka <jh@suse.cz>
2376
2377 * bitmap.c (bitmap_descriptor): Add search_iter.
2378 (bitmap_find_bit): Increment it.
2379 (print_statistics): Print it.
2380
2381 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
2382
2383 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
2384 instead of gimple_build_call_vec. Delete unnecessary local variable.
2385
2386 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2387
2388 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
2389 change from yesterday.
2390
2391 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2392
2393 * c-ada-spec.c: Clean up redundant includes.
2394
2395 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
2396
2397 * gimplify.c: Do not include except.h and optabs.h.
2398 (gimplify_body): Do not initialize RTL profiling.
2399 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
2400 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
2401 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
2402 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
2403 langhooks.h.
2404
2405 * tree-pretty-print.h: Include pretty-print.h.
2406 * gimple-pretty-print.h: Include pretty-print.h.
2407
2408 * tree-pretty-print.c: Do not include diagnostic.h.
2409 * tree-vrp.c: Likewise.
2410 * tree-tailcall.c: Likewise
2411 * tree-scalar-evolution.c: Likewise
2412 * tree-ssa-dse.c: Likewise
2413 * tree-chrec.c: Likewise
2414 * tree-ssa-sccvn.c: Likewise
2415 * tree-ssa-copyrename.c: Likewise
2416 * tree-nomudflap.c: Likewise
2417 * tree-call-cdce.c: Likewise
2418 * tree-stdarg.c: Likewise
2419 * tree-ssa-math-opts.c: Likewise
2420 * tree-nrv.c: Likewise
2421 * tree-ssa-sink.c: Likewise
2422 * tree-browser.c: Likewise
2423 * tree-ssa-loop-ivcanon.c: Likewise
2424 * tree-ssa-loop.c: Likewise
2425 * tree-parloops.c: Likewise
2426 * tree-ssa-address.c: Likewise
2427 * tree-ssa-ifcombine.c: Likewise
2428 * tree-if-conv.c: Likewise
2429 * tree-data-ref.c: Likewise
2430 * tree-affine.c: Likewise
2431 * tree-ssa-phiopt.c: Likewise
2432 * tree-ssa-coalesce.c: Likewise
2433 * tree-ssa-pre.c: Likewise
2434 * tree-ssa-live.c: Likewise
2435 * tree-predcom.c: Likewise
2436 * tree-ssa-forwprop.c: Likewise
2437 * tree-ssa-dce.c: Likewise
2438 * tree-ssa-ter.c: Likewise
2439 * tree-ssa-loop-prefetch.c: Likewise
2440 * tree-optimize.c: Likewise
2441 * tree-ssa-phiprop.c: Likewise
2442 * tree-object-size.c: Likewise
2443 * tree-outof-ssa.c: Likewise
2444 * tree-ssa-structalias.c: Likewise
2445 * tree-switch-conversion.c: Likewise
2446 * tree-ssa-reassoc.c: Likewise
2447 * tree-ssa-operands.c: Likewise
2448 * tree-vectorizer.c: Likewise
2449 * tree-vect-data-refs.c: Likewise
2450 * tree-vect-generic.c: Likewise
2451 * tree-vect-stmts.c: Likewise
2452 * tree-vect-patterns.c: Likewise
2453 * tree-vect-slp.c: Likewise
2454 * tree-vect-loop.c: Likewise
2455 * tree-ssa-loop-ivopts.c: Likewise
2456 * tree-ssa-loop-im.c: Likewise
2457 * tree-ssa-loop-niter.c: Likewise
2458 * tree-ssa-loop-unswitch.c: Likewise
2459 * tree-ssa-loop-manip.c: Likewise
2460 * tree-ssa-loop-ch.c: Likewise
2461 * tree-dump.c: Likewise
2462 * tree-complex.c: Likewise
2463
2464 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
2465 * tree-ssa-uninit.c: Likewise
2466 * tree-ssa-threadupdate.c: Likewise
2467 * tree-ssa-uncprop.c: Likewise
2468 * tree-ssa-ccp.c: Likewise
2469 * tree-ssa-dom.c: Likewise
2470 * tree-ssa-propagate.c: Likewise
2471 * tree-ssa-alias.c: Likewise
2472 * tree-dfa.c: Likewise
2473 * tree-cfgcleanup.c: Likewise
2474 * tree-sra.c: Likewise
2475 * tree-ssa-copy.c: Likewise
2476 * tree-ssa.c: Likewise
2477 * tree-profile.c: Likewise
2478 * tree-cfg.c: Likewise
2479 * tree-ssa-threadedge.c: Likewise
2480 * tree-vect-loop-manip.c: Likewise
2481
2482 * tree-inline.c: Do not include diagnostic.h and expr.h.
2483 Include rtl.h.
2484 (copy_decl_for_dup_finish): Do not use NULL_RTX.
2485
2486 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
2487 * tree-loop-distribution.c: Likewise.
2488
2489 2010-06-01 Jan Hubicka <jh@suse.cz>
2490
2491 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
2492
2493 2010-06-01 Jan Hubicka <jh@suse.cz>
2494
2495 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
2496 remove return value.
2497 (split_bbs_on_noreturn_calls) .... here.
2498 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
2499 * tree-flow.h (fixup_noreturn_call): New.
2500
2501 2010-06-01 Jan Hubicka <jh@suse.cz>
2502
2503 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
2504
2505 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
2506
2507 * tree.h (build_nt_call_list): Delete.
2508 * tree.c (build_nt_call_list): Delete.
2509
2510 2010-06-01 Jan Hubicka <jh@suse.cz>
2511
2512 * fwprop.c: Make emit-rtl.h include last.
2513 * rtlanal.c: Include emit-rtl.h.
2514 * genautomata.c: Output emit-rtl include into insn-automata.c
2515 * df-scan.c: Include emit-rtl.h.
2516 * haifa-sched.c: Indlude emit-rtl.h.
2517 * mode-switching.c: Indlude emit-rtl.h.
2518 * graph.c: Indlude emit-rtl.h.
2519 * sel-sched.c: Include emit-rtl.h.
2520 * sel-sched-ir.c: Include emit-rtl.h.
2521 * ira-build.c: Include emit-rtl.h.
2522 * emit-rtl.c: (first_insn, last_insn): Remove defines.
2523 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
2524 Move to emit-rtl.h.
2525 (set_new_first_and_last_insn, get_last_insn_anywhere,
2526 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
2527 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
2528 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
2529 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
2530 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
2531 Use accessor functions.
2532 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2533 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2534 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2535 mem_expr_equal_p): Move here from rtl.h.
2536 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
2537 Move here from emit-rtl.c; make inline.
2538 * cfglayout.h: Include emit-rtl.h.
2539 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2540 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2541 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2542 mem_expr_equal_p, get_insns, set_first-insn,
2543 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
2544 * reg-stack.c: Include emit-rtl.h.
2545 * dce.c: Likewise.
2546
2547 2010-06-01 Jan Hubicka <jh@suse.cz>
2548
2549 * cgraph.h (tree_function_versioning): Update prototype.
2550 (cgraph_function_versioning): Update prototype.
2551 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
2552 bitmap.
2553 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
2554 (cgraph_materialize_clone, save_inline_function_body): Update use of
2555 tree_function_versioning.
2556 * tree-inline.c (copy_bb): Look for previous copied block to link
2557 after; fix debug output.
2558 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
2559 (copy_body): Likewise.
2560 (expand_call_inline): Update use of copy_body.
2561 (tree_function_versioning): Update use of copy body; accept
2562 blocks_to_copy and new_entry.
2563
2564 2010-06-01 Jan Hubicka <jh@suse.cz>
2565
2566 * gegenrtl.c: Remove unnecesary prototypes.
2567 (gendecl): Remove.
2568 (gendef): Produce static inline.
2569 (gencode): Remove.
2570 (main): Do not decode parameters; generate header only.
2571 * Makefile.in (genrtl.c): Remove.
2572
2573 2010-06-01 Jan Hubicka <jh@suse.cz>
2574
2575 * tree-switch-conversion.c (build_one_array): Make it readonly.
2576
2577 2010-06-01 Richard Guenther <rguenther@suse.de>
2578
2579 * optabs.c (init_optabs): Guard all accesses to reinit.
2580 * ipa-pure-const.c (propagate): Fix another typo.
2581 * opts.c (common_handle_option): Split assignment to bool.
2582 * c-opts.c (c_common_handle_option): Likewise.
2583
2584 2010-06-01 Arnaud Charlet <charlet@adacore.com>
2585 Matthew Gingell <gingell@adacore.com>
2586
2587 * doc/invoke.texi: Mention -fdump-ada-spec.
2588 * tree-dump.c (dump_files): Add ada-spec.
2589 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
2590 * tree-pass.h (tree_dump_index): Add TDI_ada.
2591 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
2592 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
2593 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
2594 * c-decl.c: Include c-ada-spec.h.
2595 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
2596 functions.
2597 (c_write_global_declarations): Add handling of -fdump-ada-spec.
2598 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
2599 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
2600 * c-ada-spec.h, c-ada-spec.c: New files.
2601
2602 2010-06-01 Richard Guenther <rguenther@suse.de>
2603
2604 PR lto/43853
2605 * ipa-pure-const.c (get_function_state): Hand back varying state
2606 if we do not have one.
2607 (has_function_state): New function.
2608 (duplicate_node_data): Adjust.
2609 (remove_node_data): Likewise.
2610 (pure_const_write_summary): Likewise.
2611 (propagate): Likewise. Fix typo.
2612
2613 2010-06-01 Jan Hubicka <jh@suse.cz>
2614
2615 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
2616 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
2617 (execute_all_ipa_transforms): Do not play with the states.
2618
2619 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2620
2621 * config/arm/t-linux-androideabi: New.
2622 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
2623
2624 2010-06-01 Jan Hubicka <jh@suse.cz>
2625
2626 * tree-inline.c (estimate_num_insns): For stdarg functions look
2627 into call statement to count cost of argument passing.
2628
2629 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
2630
2631 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
2632 argument for fprintf.
2633 (ix86_output_addr_diff_elt): Likewise.
2634 (x86_function_profiler): Likewise.
2635 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
2636 (LPREFIX): Likewise.
2637 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2638
2639 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2640
2641 PR target/44338
2642 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
2643 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
2644 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
2645 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
2646 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
2647 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
2648 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
2649 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
2650 TARGET_FUSED_MADD.
2651
2652 2010-05-31 Jan Hubicka <jh@suse.cz>
2653
2654 * tree.h (tree_range_check_failed): Declare noreturn.
2655
2656 2010-05-31 Jan Hubicka <jh@suse.cz>
2657
2658 * gimple.c (gimple_call_builtin_p): New function.
2659 * gimple.h (gimple_call_builtin_p): Declare.
2660 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
2661 to exit.
2662 (execute_warn_function_return): BUILT_IN_RETURN is return.
2663 (split_critical_edges): Return edges are not critical.
2664 (is_ctrl_altering_stmt): Builtin_in_return is altering.
2665 (gimple_verify_flow_info): Handle built_in_return.
2666 (execute_warn_function_return): Handle built_in_return.
2667 * ipa-pure-const.c (check_call): Ignore builtin_return.
2668
2669 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2670
2671 PR middle-end/44337
2672 * expr.c (expand_assignment): Don't store anything for out-of-bounds
2673 array accesses with non-MEM.
2674
2675 PR tree-optimization/44182
2676 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
2677 newly needs to end a bb is followed by debug stmts, instead return
2678 true from the function at the end.
2679 (maybe_move_debug_stmts_to_successors): New function.
2680 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
2681
2682 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
2683
2684 PR target/44161
2685 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
2686
2687 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
2688
2689 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
2690 for nested functions in non-optimized compilation.
2691
2692 2010-05-31 Richard Guenther <rguenther@suse.de>
2693
2694 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
2695
2696 2010-05-30 Jan Hubicka <jh@suse.cz>
2697
2698 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
2699
2700 2010-05-30 Richard Guenther <rguenther@suse.de>
2701
2702 PR lto/42975
2703 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
2704 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
2705 no longer needed.
2706
2707 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
2708
2709 * config/darwin.c (output_objc_section_asm_op): Add comment.
2710 (name_needs_quotes): Add '_' to list of valid comment chars.
2711 (machopic_output_function_base_name): Remove unneeded quotes.
2712 (darwin_encode_section_info): Adjust asm whitespace.
2713 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
2714 (ASM_OUTPUT_LOCAL): Ditto.
2715 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
2716 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
2717 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
2718
2719 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
2720
2721 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
2722 RS6000_OUTPUT_BASENAME unconditionally.
2723 (rs6000_output_function_epilogue): Likewise.
2724
2725 2010-05-30 Jan Hubicka <jh@suse.cz>
2726
2727 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
2728 nodes.
2729
2730 2010-05-30 Richard Guenther <rguenther@suse.de>
2731
2732 * tree-cfg.c (verify_gimple_assign_single): Implement
2733 verification for COND_EXPR rhs.
2734
2735 2010-05-30 Jan Hubicka <jh@suse.cz>
2736
2737 * cgraph.h (cgraph_dump_file): Declare.
2738 * cgraphunit.c (cgraph_dump_file): Export.
2739 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
2740
2741 2010-05-30 Jan Hubicka <jh@suse.cz>
2742
2743 * dwarf2out.c (reference_to_unused,
2744 premark_types_used_by_global_vars_helper): Avoid creation of new
2745 varpool nodes.
2746
2747 2010-05-30 Jan Hubicka <jh@suse.cz>
2748
2749 * cgraph.h (cgraph_node_cannot_return,
2750 cgraph_edge_cannot_lead_to_return): New functions.
2751 * cgraph.c (cgraph_node_cannot_return,
2752 cgraph_edge_cannot_lead_to_return): Use them.
2753 * ipa-pure-const.c (pure_const_names): New static var.
2754 (check_call): Handle calls not leading to return.
2755 (pure_const_read_summary): Dump info read.
2756 (propagate): Dump info about propagation process; ignore side effects
2757 of functions not leading to exit; fix handling of pure functions.
2758
2759 2010-05-30 Jan Hubicka <jh@suse.cz>
2760
2761 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
2762 for tail call epilogues.
2763
2764 2010-05-30 Jan Hubicka <jh@suse.cz>
2765
2766 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
2767 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
2768 dump files.
2769
2770 2010-05-29 Jan Hubicka <jh@suse.cz>
2771
2772 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
2773 node; remove references in node we no longer keep in cgrpah but need
2774 body of.
2775
2776 2010-05-29 Jan Hubicka <jh@suse.cz>
2777
2778 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
2779
2780 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2781
2782 PR target/44165
2783 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
2784
2785 2010-05-29 Jan Hubicka <jh@suse.cz>
2786
2787 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
2788 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
2789 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
2790 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
2791 debug_names_replaced_by, debug_update_ssa): Likewise.
2792 * sbitmap.c (debug_sbitmap): Likewise.
2793 * genrecog.c (debug_decision, debug_decision_list): Likewise.
2794 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
2795 debug_tree_chain): Likewise.
2796 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
2797 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
2798 * optabs.c (debug_optab_libfuncs): Likewise.
2799 (verify_loop_closed_ssa): Likewise.
2800 * value-prof.c (verify_histograms): Likewise.
2801 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
2802 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
2803 * cfghooks.c (verify_flow_info): Likewise.
2804 * fold-const.c (debug_fold_checksum): Likewise.
2805 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
2806 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
2807 Likewise.
2808 * omega.c (debug_omega_problem): Likewise.
2809 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
2810 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2811 * dominance.c (verify_dominators, debug_dominance_info,
2812 debug_dominance_tree): Likewise.
2813 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
2814 * df_regno_debug, df_ref_debug,
2815 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
2816 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
2817 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
2818 * sel-sched.c (debug_state): Likewise.
2819 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
2820 Likewise.
2821 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
2822 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
2823 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
2824 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
2825 Likewise.
2826 * c-pretty-print.c (debug_c_tree): Likewise.
2827 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
2828 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
2829 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
2830 * ebitmap.c (debug_ebitmap): Likewise.
2831 * function.c (debug_find_var_in_block_tree): Likewise.
2832 * print-rtl.c (debug_rtx): Likewise.
2833 (debug_rtx_count): Likewise.
2834 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
2835 * stor-layout.c (debug_rli): Likewise.
2836 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
2837 * tree-data-ref.c (debug_data_references,
2838 debug_data_dependence_relations, debug_data_reference,
2839 debug_data_dependence_relation, debug_rdg_vertex,
2840 debug_rdg_component, debug_rdg): Likewise.
2841 * tree-affine.c (debug_aff): Likewise.
2842 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
2843 Likewise.
2844 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
2845 * emit-rtl.c (verify_rtl_sharing): Likewise.
2846 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
2847 debug_value_expressions): Likewise.
2848 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
2849 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
2850 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
2851 * cfglayout.c (verify_insn_chain): Likewise.
2852 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
2853 debug_clast_stmt, debug_generated_program): Likewise.
2854 * ggc-page.c (debug_print_page_list): Likewise.
2855 * tree-ssa-ter.c (debug_ter): Likewise.
2856 * graphite-dependences.c (debug_pddr): Likewise.
2857 * sched-deps.c (debug_ds): Likewise.
2858 * tree-ssa.c (verify_ssa): Likewise.
2859 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
2860 debug_scattering_functions, debug_iteration_domains, debug_pdr,
2861 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
2862 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
2863 * tree-inline.c (debug_find_tree): Likewise.
2864 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
2865 debug_ppl_powerset_matrix): Likewise.
2866 * var-tracking.c (debug_dv): Likewise.
2867 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
2868 * cfgloop.c (verify_loop_structure): Likewise.
2869 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
2870 * c-common.c (verify_sequence_points): Likewise.
2871 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
2872 debug_candidates, debug_rgn_dependencies): Likewise.
2873 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
2874 * debug_constraint_graph, debug_solution_for_var,
2875 debug_sa_points_to_info): Likewise.
2876 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
2877 Likewie.
2878 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
2879 debug_loops, debug_loop, debug_loop_num): Likewise.
2880 * passes.c (debug_pass): Likewise.
2881 (dump_properties): Likewise; add cfglayout property.
2882 (debug_properties): Likewise.
2883 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
2884 * varpool.c (debug_varpool): Likewise.
2885 * regcprop.c (debug_value_data): Likewise.
2886 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
2887 debug_immediate_uses_for): Likewise.
2888
2889 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2890
2891 PR bootstrap/44315
2892 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
2893 Filter out insn-flags.h.
2894
2895 2010-05-29 Jan Hubicka <jh@suse.cz>
2896
2897 * cgraph.h (struct varpool_node_set_def,
2898 struct cgraph_node_set_def): Remove unused AUX pointer.
2899 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
2900 VEC_empty macro.
2901
2902 2010-05-29 Jan Hubicka <jh@suse.cz>
2903
2904 PR middle-end/44324
2905 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
2906
2907 2010-05-29 Richard Guenther <rguenther@suse.de>
2908
2909 * lto-streamer.c (cached_bp): New global variable.
2910 (bitpack_create): Return the cached bitpack, if available.
2911 (bitpack_delete): Clear and cache the bitpack, if appropriate.
2912 (bp_pack_value): Remove redundant asserts.
2913
2914 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2915
2916 PR middle-end/44306
2917 * tree-if-conv.c (is_true_predicate): New.
2918 (is_predicated): Use is_true_predicate.
2919 (add_to_predicate_list): Same. Do not use unshare_expr.
2920 (add_to_dst_predicate_list): Same.
2921
2922 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2923
2924 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
2925 field on edges.
2926 (predicate_bbs): Same.
2927 (clean_predicate_lists): Same.
2928 (find_phi_replacement_condition): Do not AND the predicate from
2929 edge->aux.
2930
2931 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 PR bootstrap/44315
2934 * Makefile.in (build/gencondmd.o): Add a missing `\'.
2935
2936 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2937
2938 PR target/44261
2939 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
2940 (negdf2): Adjust expander pattern and use negdf2_slow.
2941 (negsf2): Likewise.
2942
2943 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
2944
2945 * basic-block.h (struct control_flow_graph): Move last_label_uid field
2946 up.
2947 * df.h (struct df_base_ref): Move regno field up.
2948 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
2949 * expr.h (struct separate_ops): Move location field up.
2950 * optabs.h (struct optab_d): Move libcall_basename field down.
2951 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
2952 * config/i386/i386.h (struct machine_function): Convert call_abi field
2953 into a bitfield. Move cfa field to the end of the structure.
2954
2955 2010-05-29 Jan Hubicka <jh@suse.cz>
2956
2957 * varpool.c (varpool_get_node): Fix lookup.
2958
2959 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2960
2961 * config/spu/spu-protos.h: Do not include rtl.h. Protect
2962 RTL specific prototypes with #ifdef RTX_CODE.
2963 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
2964 * config/spu/t-spu-elf: Fix dependencies.
2965
2966 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
2967
2968 2010-05-29 Mike Stump <mikestump@comcast.net>
2969
2970 PR bootstrap/44315
2971 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
2972 TM_H when building to avoid dependency loops.
2973
2974 2010-05-29 Jan Hubicka <jh@suse.cz>
2975
2976 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
2977 refs and body; not the whole node for masters of materialized
2978 clones.
2979
2980 2010-05-29 Mike Stump <mikestump@comcast.net>
2981
2982 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
2983
2984 2010-05-29 Jan Hubicka <jh@suse.cz>
2985
2986 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
2987 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
2988 use of clone_function_name.
2989 * cgraph.h (cgraph_create_virtual_clone,
2990 cgraph_function_versioning): update prototypes.
2991 (clone_function_name): Declare.
2992 * ipa-cp.c (ipcp_insert_stage): Update call of
2993 cgraph_create_virtual_clone.
2994 * omp-low.c (create_omp_child_function_name): Use
2995 cgraph_create_virtual_clone.
2996 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
2997 (cgraph_function_versioning): Take SUFFIX argument; produce new name
2998 and make decl local.
2999
3000 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3001
3002 * vec.h: Include statistics.h
3003 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
3004 with VEC_H.
3005
3006 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3007
3008 * c-lex.c: Do not include c-tree.h.
3009 * c-pretty-print.c: Likewise.
3010 * c-opts.c: Likewise.
3011 * c-gimplify.c: Likewise.
3012 * c-common.c: Likewise.
3013 * c-dump.c: Likewise. Include c-common.h.
3014
3015 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3016
3017 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
3018 before including diagnostic-core.h.
3019 (c_cpp_error): New prototype moved from c-tree.h.
3020 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
3021 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
3022 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
3023 (c_cpp_error): Prototype moved to c-common.h.
3024 * Makefile.in: Update dependency for C_COMMON_H.
3025
3026 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3027
3028 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
3029 * c-common.c (c_register_addr_space): Remove here.
3030 * c-decl.c (c_register_addr_space): Re-add here.
3031
3032 2010-05-28 Mike Stump <mikestump@comcast.net>
3033
3034 * config/darwin-c.c: Remove c-tree.h include.
3035
3036 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3037
3038 * gcc.c: Include diagnostic.h.
3039 (error_count): Remove. All users changed to use errorcount.
3040 (programname): Remove. All users changed to use progname.
3041 (fancy_abort, internal_error, fatal_error, error, warning, inform,
3042 fnotice): Remove.
3043 (execute): Don't include "Internal error" and bug reporting
3044 information in argument of internal_error call.
3045 (process_command): Don't increment error_count after calling
3046 perror_with_name.
3047 (input_filename): Rename to gcc_input_filename. All users
3048 changed.
3049 (main): Call diagnostic_initialize. Register delete_temp_files
3050 with atexit. Use seen_error to test for errors.
3051 * gcc.h: Include diagnostic-core.h.
3052 (fatal_error, error, warning): Remove.
3053 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
3054 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
3055 (gcc.o): Update dependencies.
3056
3057 2010-05-28 Jeff Law <law@redhat.com>
3058
3059 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
3060 functions.
3061 * ira.h (ira_bad_reload_regno): Declare
3062 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
3063
3064 * ira-color.c (update_curr_costs): Free updated hard reg costs.
3065 (ira_reassign_conflict_allocnos): Remove bogus asserts.
3066 (allocno_reload_assign): Likewise.
3067
3068 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
3069
3070 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
3071 build1_stat.
3072
3073 2010-05-28 Richard Guenther <rguenther@suse.de>
3074
3075 PR lto/44312
3076 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
3077 Stream fixed-point constants mode.
3078 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
3079 and TYPE_PRECISION.
3080 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
3081 Stream fixed-point constants mode.
3082 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
3083 and TYPE_PRECISION.
3084
3085 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3086
3087 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
3088 only place it was called from.
3089 (number_of_latch_executions): Do not return chrec_dont_know when the
3090 may_be_zero is a runtime condition: instead, return a COND_EXPR
3091 including the may_be_zero condition.
3092 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
3093 of nb_iterations.
3094 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
3095 COND_EXPRs.
3096
3097 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3098
3099 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
3100 generate COND_EXPRs for degenerate_phi_result.
3101
3102 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3103
3104 PR middle-end/44293
3105 * tree-if-conv.c (if_convertible_loop_p): Check the
3106 if-convertibility of phi nodes in non predicated BBs.
3107
3108 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3109
3110 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
3111
3112 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3113
3114 PR driver/15303
3115 * gcc.c (inform, warning, inform): New functions.
3116 (fatal_ice): Rename to internal_error; change cmsgid parameter to
3117 gmsgid. All callers changed.
3118 (notice): Rename to fnotice; add parameter fp. All callers
3119 changed.
3120 (fatal_error): Rename to fatal_signal. All users changed.
3121 (fatal): Rename to fatal_error; change cmsgid parameter to
3122 gmsgid. All callers changed.
3123 (process_command): Use warning instead of error for warnings.
3124 (end_going_arg): Don't use _() around argument of error.
3125 (do_spec_1): Use inform for message from %n specs. Use warning
3126 instead of error for warnings.
3127 (main): Use inform for comparison messages. Use warning for
3128 message about unused linker input.
3129 (error): Increment error_count. Print "error: ".
3130 * gcc.h (fatal): Change to fatal_error.
3131 (warning): Declare.
3132 * config/darwin-driver.c (darwin_default_min_version): Use warning
3133 instead of fprintf for warnings.
3134 * cppspec.c (lang_specific_driver): Use fatal_error instead of
3135 fatal.
3136
3137 2010-05-28 Julian Brown <julian@codesourcery.com>
3138
3139 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
3140 (*thumb2_addsi3_compare0_scratch): New.
3141 * config/arm/constraints.md (Pv): New.
3142 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
3143 for ARM mode only.
3144 (*addsi3_compare0_scratch): Likewise.
3145
3146 2010-05-28 Jan Hubicka <jh@suse.cz>
3147
3148 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
3149 check.
3150 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
3151 only on local statics.
3152
3153 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
3154
3155 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
3156
3157 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
3158
3159 PR bootstrap/44314
3160 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
3161 (OPTION_GLIBC): Define.
3162
3163 2010-05-28 Jakub Jelinek <jakub@redhat.com>
3164
3165 PR debug/41048
3166 * dwarf2out.c (double_int_type_size_in_bits): New function.
3167 (round_up_to_align): Change first argument and return value to
3168 double_int.
3169 (field_byte_offset): Work internally on double_ints.
3170
3171 PR target/43636
3172 * builtins.c (expand_movstr): Use a temporary pseudo instead
3173 of target even when target is not NULL and not const0_rtx, but
3174 fails movstr predicate.
3175 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
3176
3177 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3178
3179 * final.c (rest_of_clean_state): Use %m in errors instead of
3180 strerror (errno).
3181 * gengtype.c (read_input_list, close_output_files): Use xstrerror
3182 instead of strerror.
3183 * toplev.c (process_options): Use %m in errors instead of strerror
3184 (errno).
3185 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
3186 (errno).
3187
3188 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
3189
3190 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
3191 (ix86_canonical_va_list_type): Make static. Add declaration.
3192 (ix86_enum_va_list): Make static. Reindent.
3193 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
3194 (ix86_canonical_va_list_type): Ditto.
3195 (ix86_enum_va_list): Ditto.
3196
3197 2010-05-28 Richard Guenther <rguenther@suse.de>
3198
3199 * lto-wrapper.c (run_gcc): With -save-temps generate a
3200 user-visible ltrans filename. Fixup ltrans unit numbering.
3201
3202 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
3203
3204 * c-common.c (c_common_nodes_and_builtins): Replace use
3205 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
3206 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
3207 to ix86_enum_va_list.
3208 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
3209 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
3210 (TARGET_ENUM_VA_LIST_P): Add hook description.
3211 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
3212 * target.h (gcc_target): Add enum_va_list hook.
3213
3214 PR bootstrap/44299
3215 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
3216 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
3217 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
3218
3219 2010-05-28 Alan Modra <amodra@gmail.com>
3220
3221 PR target/44266
3222 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3223 emit_library_call machinery to set up __tls_get_addr calls.
3224
3225 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3226
3227 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
3228
3229 2010-05-28 Dodji Seketeli <dodji@redhat.com>
3230
3231 Revert fix for PR c++/44188
3232 * c-common.c (is_typedef_decl): Revert the moving of this
3233 definition ...
3234 * tree.c (is_typedef_decl): ... here.
3235 (typdef_variant_p): Revert the moving of this definition
3236 here from gcc/cp/tree.c.
3237 * c-common.h (is_typedef_decl): Revert the moving of this
3238 declaration ...
3239 * tree.h (is_typedef_decl): ... here.
3240 (typedef_variant_p): Revert the moving of this declaration here
3241 from gcc/cp/cp-tree.h
3242 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
3243 (gen_tagged_type_die): Revert the splitting out of ...
3244 (gen_type_die_with_usage): ... this function. Revert the anonymous
3245 tagged type handling.
3246 (gen_typedef_die): Revert emitting DW_TAG_typedef for
3247 typedefs naming anonymous tagged types.
3248
3249 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
3250
3251 * config/rs6000/rs6000-modes.def (PSImode): Delete.
3252
3253 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
3254
3255 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
3256 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
3257 throughout.
3258 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
3259 "xer" to "ca".
3260 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
3261 XER_REGS to CA_REGS throughout.
3262 * config/rs6000/rs6000.h: Same.
3263 (ADDITIONAL_REGISTER_NAMES): Add "xer".
3264 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
3265 that mode_iterator "P" is the size for arithmetic carries as well.
3266 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
3267
3268 2010-05-28 Jakub Jelinek <jakub@redhat.com>
3269
3270 PR bootstrap/44255
3271 * combine.c (struct rtx_subst_pair): Define unconditionally.
3272 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
3273 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
3274 Call make_compound_operation on pair->to.
3275 (propagate_for_debug): Don't call make_compound_operation here.
3276 Always use simplify_replace_fn_rtx.
3277
3278 2010-05-27 Sterling Augustine <sterling@tensilica.com>
3279
3280 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
3281 * config/xtensa/xtensa.c (override_options): Check
3282 TARGET_FORCE_NO_PIC and set flag_pic.
3283 * config/xtensa/xtensa.opt: Document -mforce-no-pic
3284
3285 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
3286
3287 PR bootstrap/44299
3288 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
3289 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
3290
3291 2010-05-27 Joseph Myers <joseph@codesourcery.com>
3292
3293 * diagnostic-core.h: New. Contents moved from diagnostic.h and
3294 toplev.h.
3295 * diagnostic.c: Don't include toplev.h.
3296 (progname): Define. Moved from toplev.c.
3297 (seen_error): New function.
3298 * diagnostic.h: Include diagnostic-core.h.
3299 (diagnostic_t, emit_diagnostic): Don't declare here.
3300 * toplev.c (progname): Move to toplev.c.
3301 (emit_debug_global_declarations, compile_file, finalize,
3302 do_compile, toplev_main): Use seen_error.
3303 * toplev.h: Include diagnostic-core.h.
3304 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
3305 internal_error, warning, warning_at, error, error_n, error_at,
3306 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
3307 verbatim, fnotice, progname): Move to diagnostic-core.h.
3308 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
3309 (expand_builtin_expect): Use seen_error.
3310 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
3311 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
3312 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
3313 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
3314 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
3315 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
3316 errorcount for errors.
3317 * c-opts.c (c_common_finish): Use seen_error.
3318 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
3319 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
3320 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
3321 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
3322 (get_coverage_counts): Use seen_error.
3323 * dwarf2out.c (dwarf2out_finish): Use seen_error.
3324 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
3325 gimplify_body): Use seen_error.
3326 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
3327 * ipa-pure-const.c (gate_pure_const): Use seen_error.
3328 * ipa-reference.c (gate_reference): Use seen_error.
3329 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
3330 * lambda-code.c: Include diagnostic-core.h instead of
3331 diagnostic.h.
3332 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
3333 * lto-compress.c: Include diagnostic-core.h instead of
3334 diagnostic.h.
3335 * lto-section-in.c: Include diagnostic-core.h instead of
3336 diagnostic.h.
3337 * lto-streamer-out.c: Include diagnostic-core.h instead of
3338 diagnostic.h.
3339 * lto-streamer.c: Include diagnostic-core.h instead of
3340 diagnostic.h.
3341 (gate_lto_out): Use seen_error.
3342 * matrix-reorg.c: Include diagnostic-core.h instead of
3343 diagnostic.h.
3344 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
3345 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
3346 (gate_expand_omp, lower_omp_1): Use seen_error.
3347 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
3348 (rest_of_decl_compilation, rest_of_type_compilation,
3349 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
3350 * tree-cfg.c (label_to_block_fn): Use seen_error.
3351 * tree-inline.c (optimize_inline_calls): Use seen_error.
3352 * tree-mudflap.c (mudflap_finish_file): Use
3353 seen_error.
3354 * tree-optimize.c (gate_all_optimizations,
3355 gate_all_early_local_passes, gate_all_early_optimizations): Use
3356 seen_error.
3357 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
3358 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
3359 (varpool_remove_unreferenced_decls,
3360 varpool_assemble_pending_decls): Use seen_error.
3361 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
3362 (TOPLEV_H, DIAGNOSTIC_H): Update.
3363 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
3364 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
3365 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
3366 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
3367 coverage.o, lambda-code.o): Update dependencies.
3368
3369 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3370
3371 PR c++/44188
3372 * c-common.c (is_typedef_decl): Move this definition ...
3373 * tree.c (is_typedef_decl): ... here.
3374 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3375 * c-common.h (is_typedef_decl): Move this declaration ...
3376 * tree.h (is_typedef_decl): ... here.
3377 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3378 * dwarf2out.c (is_naming_typedef_decl): New function.
3379 (gen_tagged_type_die): Split out of ...
3380 (gen_type_die_with_usage): ... this function. When an anonymous
3381 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3382 is emitted for the typedef.
3383 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3384 anonymous tagged types.
3385
3386 2010-05-27 Jason Merrill <jason@redhat.com>
3387
3388 * print-tree.c (debug_vec_tree): New fn.
3389 (print_vec_tree): New fn.
3390 * tree.h: Declare them.
3391 * gdbinit.in (pvt): New command.
3392
3393 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
3394
3395 * gdbinit.in (pdd): New command.
3396
3397 2010-05-27 Jan Hubicka <jh@suse.cz>
3398
3399 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
3400 (update_caller_keys): Return early if there are no callers;
3401 only update fibheap when decresing the key.
3402 (update_callee_keys): Avoid recursion.
3403 (decide_inlining_of_small_functions): When badness does not match;
3404 re-insert into fibheap.
3405
3406 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3407
3408 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
3409 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
3410 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
3411 (ALL_HOST_OBJS): Now a union of the above two.
3412 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
3413 all files in ALL_HOST_FRONTEND_OBJS.
3414 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
3415
3416 * c-common.c: Pretend to be a backend file by undefining
3417 IN_GCC_FRONTEND (still need rtl.h here).
3418
3419 2010-05-27 Jan Hubicka <jh@suse.cz>
3420
3421 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
3422 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
3423
3424 2010-05-27 Jan Hubicka <jh@suse.cz>
3425
3426 * sched-ebb.c: Rename struct deps to struct deps_desc.
3427 * ddg.c: Likewise.
3428 * sel-sched-ir.c: Likewise.
3429 * sched-deps.c: Likewise.
3430 * sched-int.h: Likewise.
3431 * sched-rgn.c: Likewise.
3432
3433 2010-05-27 Jon Beniston <jon@beniston.com>
3434
3435 PR 43726
3436 * config/lm32/lm32.h: Remove definition of
3437 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
3438
3439 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
3440
3441 PR lto/44230
3442 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
3443
3444 2010-05-27 Richard Guenther <rguenther@suse.de>
3445
3446 PR tree-optimization/44284
3447 * tree-vect-stmts.c (vectorizable_assignment): Handle
3448 sign-changing conversions as simple copy.
3449
3450 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3451
3452 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
3453 Bionic C library.
3454 (__gthread_active_p): Check for pthread_create if compiling against
3455 Bionic C library.
3456
3457 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3458
3459 Support compilation for Android platform. Reimplement -mandroid.
3460
3461 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
3462 (*android*): Set ANDROID_DEFAULT.
3463 (arm*-*-linux*): Include linux-android.h.
3464 (arm*-*-eabi*): Don't include previous -mandroid implementation.
3465 * config/arm/eabi.h: Remove, move Android-specific parts ...
3466 * config/linux-android.h: ... here. New file.
3467 * config/arm/eabi.opt: Rename to ...
3468 * config/linux-android.opt: ... this.
3469 (mandroid): Allow -mno-android option. Initialize based on
3470 ANDROID_DEFAULT.
3471 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
3472 Move logic to corresponding LINUX_TARGET_* macros.
3473 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
3474 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
3475 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
3476 Android definitions.
3477 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
3478 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
3479 Document.
3480
3481 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3482
3483 Add support for Bionic C library
3484
3485 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
3486 macro.
3487 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
3488 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
3489
3490 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
3491 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
3492 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
3493 to support multiple C libraries. Handle Bionic.
3494 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
3495 (BIONIC_DYNAMIC_LINKER64): Define.
3496 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
3497 Update.
3498 (TARGET_HAS_SINCOS): Enable for Bionic.
3499
3500 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
3501 the last option specified on command line take effect.
3502 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
3503 (mbionic): New.
3504 (mglibc, muclibc): Update.
3505
3506 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
3507 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
3508 DEFAULT_LIBC.
3509
3510 * doc/invoke.texi (-mglibc, -muclibc): Update.
3511 (-mbionic): Document.
3512
3513 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3514
3515 * c-common.h (c_register_addr_space): Add prototype.
3516 (ADDR_SPACE_KEYWORD): Remove.
3517 * c-common.c (c_register_addr_space): New function.
3518 (c_addr_space_name): Reimplement.
3519 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
3520
3521 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
3522 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
3523
3524 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
3525 Remove TARGET_ADDR_SPACE_KEYWORDS.
3526
3527 2010-05-27 Joseph Myers <joseph@codesourcery.com>
3528
3529 * input.c: New file.
3530 * input.h (main_input_filename): Move declaration to toplev.h.
3531 * toplev.c (input_location, line_table): Move to input.c
3532 * toplev.h (main_input_filename): Move declaration from input.h.
3533 * tree.c (expand_location): Move to input.c.
3534 * Makefile.in (OBJS-common): Add input.o.
3535 (input.o): Add dependencies.
3536
3537 2010-05-27 Richard Guenther <rguenther@suse.de>
3538
3539 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
3540 for non-existant files.
3541 (fork_execute): Mark args_name file as deleted.
3542
3543 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
3544
3545 PR bootstrp/44287
3546 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
3547 (narrow_signed_type): Likewise.
3548
3549 2010-05-26 Jan Hubicka <jh@suse.cz>
3550
3551 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
3552 edge only when checking is enabled; check using former_clone_of;
3553 check inline clones too.
3554 (cgraph_materialize_clone): Record former_clone_of pointer.
3555 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
3556 combining redirections; dump args_to_skip bitmap
3557 (cgraph_materialize_all_clones): Do no redirection here.
3558 * ipa-inline.c (inline_transform): Do redirection here.
3559 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
3560 cheking only).
3561
3562 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3563
3564 * config/avr/avr-c.c: Do not include regs.h.
3565 Include cpplib.h for cpp_define and tree.h for c-common.h.
3566 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
3567 * config/avr/t-avr: Fix dependencies for avr-c.o.
3568
3569 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3570
3571 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
3572 string instead of SYMBOL_REF rtx.
3573 * rtl.h (set_stack_check_libfunc): Move prototype from here...
3574 * libfuncs.h: ...to here. Adjust for explow.c change.
3575
3576 2010-05-26 Joseph Myers <joseph@codesourcery.com>
3577
3578 * pretty-print.c: Don't include ggc.h.
3579 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
3580 (identifier_to_locale): Use them for allocation.
3581 * pretty-print.h (identifier_to_locale_alloc,
3582 identifier_to_locale_free): Declare.
3583 * toplev.c (alloc_for_identifier_to_locale): New.
3584 (general_init): Set identifier_to_locale_alloc and
3585 identifier_to_locale_free.
3586 * Makefile.in (pretty-print.o): Update dependencies.
3587
3588 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
3589
3590 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
3591 pointer types if they have different alignment or mode.
3592
3593 2010-05-26 Anatoly Sokolov <aesok@post.ru>
3594
3595 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3596 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3597 * config/sparc/sparc-protos.h (function_value): Remove declaration.
3598 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
3599 sparc_function_value_regno_p): New functions.
3600 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3601 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3602 (function_value): Rename to...
3603 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
3604 argument to 'outgoing'.
3605 (function_arg_record_value, function_arg_union_value,
3606 function_arg_vector_value): Update comment.
3607
3608 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
3609
3610 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
3611 (fde_needed_for_eh_p): New predicate.
3612 (output_call_frame_info): Use it throughout to decide whether FDEs
3613 are needed for EH purpose.
3614 (dwarf2out_begin_prologue): Reorder assignments.
3615
3616 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3617
3618 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
3619 special case loop->header.
3620 (is_predicated): New.
3621 (if_convertible_loop_p): Call it.
3622
3623 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3624
3625 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
3626 iterator in parameter. Do not generate code during the analysis.
3627 (tree_if_convert_cond_stmt): Removed.
3628 (tree_if_convert_stmt): Removed.
3629 (predicate_bbs): New.
3630 (if_convertible_loop_p): Call predicate_bbs.
3631 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
3632 now contains all the analysis part.
3633
3634 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3635
3636 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
3637 statements in the analysis part.
3638 (tree_if_convert_stmt): Update comment.
3639 (remove_conditions_and_labels): New.
3640 (combine_blocks): Call remove_conditions_and_labels.
3641 (tree_if_conversion): Update comment.
3642
3643 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3644
3645 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
3646 than 2 predecessors or more than 2 successors.
3647
3648 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3649
3650 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
3651 of loops in which the data dependence analysis fails.
3652
3653 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3654
3655 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
3656 CDI_POST_DOMINATORS.
3657 (tree_if_conversion): Same.
3658
3659 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3660
3661 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
3662
3663 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
3664
3665 * tree-if-conv.c: Update copyright years. Fix comments.
3666 Fix indentation.
3667
3668 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
3669
3670 * builtin-types.def (BT_INT128): New primitive type.
3671 (BT_UINT128): Likewise.
3672 * c-common.c (c_common_r): Add __int128 keyword.
3673 (c_common_type_for_size): Handle __int128.
3674 (c_common_type_for_mode): Likewise.
3675 (c_common_signed_or_unsigned_type): Likewise.
3676 (c_common_nodes_and_builtins): Add builtin type
3677 if target supports 128-bit integer scalar.
3678 * c-common.h (enum rid): Add RID_INT128.
3679 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
3680 if target supports 128-bit integer scalar.
3681 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
3682 (finish_declspecs): Likewise.
3683 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
3684 (c_token_starts_declspecs): Likewise.
3685 (c_parser_declspecs): Likewise.
3686 (c_parser_attributes): Likewise.
3687 (c_parser_objc_selector): Likewise.
3688 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
3689 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
3690 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
3691 * tree.c (make_or_reuse_type): Likewise.
3692 (make_unsigned_type): Likewise.
3693 (build_common_tree_nodes_2): Likewise.
3694 * tree.h (enum integer_type_kind): Add itk_int128 and
3695 itk_unsigned_int128.
3696 (int128_integer_type_node): New define.
3697 (int128_unsigned_type_node): New define.
3698 * doc/extend.texi: Add documentation about __int128 type.
3699
3700 2010-05-26 Richard Guenther <rguenther@suse.de>
3701
3702 * tree-ssa-sccvn.c (copy_nary): Adjust.
3703 (copy_phis): Rename to ...
3704 (copy_phi): ... this. Adjust.
3705 (copy_references): Rename to ...
3706 (copy_reference): ... this. Adjust.
3707 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
3708 result into the valid table.
3709
3710 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3711
3712 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
3713 insn-config.h, insn-codes.h, recog.h, and optabs.h.
3714
3715 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3716
3717 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
3718
3719 2010-05-26 Richard Guenther <rguenther@suse.de>
3720
3721 * opts.c (common_handle_option): Handle OPT_Ofast.
3722
3723 2010-05-26 Joseph Myers <joseph@codesourcery.com>
3724
3725 * diagnostic.c: Don't include opts.h.
3726 (permissive_error_option): Define.
3727 (diagnostic_initialize): Take n_opts parameter. Allocate memory
3728 for classify_diagnostic. Don't use memset for
3729 classify_diagnostic. Initialize new and recently added fields.
3730 (diagnostic_classify_diagnostic): Use context->n_opts instead of
3731 N_OPTS.
3732 (diagnostic_report_diagnostic): Pass context parameter to
3733 diagnostic_report_warnings_p. Use option_enabled and option_name
3734 hooks from context.
3735 (emit_diagnostic): Use permissive_error_option.
3736 (permerror): Likewise.
3737 * diagnostic.h: Don't include options.h.
3738 (struct diagnostic_context): Add n_opts, opt_permissive,
3739 inhibit_warnings, warn_system_headers, option_enabled and
3740 option_name fields. Change classify_diagnostic to a pointer.
3741 * opts-diagnostic.h: New file.
3742 * opts.c: Include opts-diagnostic.h.
3743 (common_handle_option): Set global_dc fields for -Wfatal-errors,
3744 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
3745 (option_name): New function.
3746 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
3747 (c_common_handle_option): Set global_dc->permissive for
3748 -fpermissive.
3749 * c-common.c (c_cpp_error): Save and restore
3750 global_dc->warn_system_headers, not variable warn_system_headers.
3751 * toplev.c: Include opts-diagnostic.h.
3752 (general_init): Update call to diagnostic_initialize. Set
3753 global_dc->show_column, global_dc->option_enabled and
3754 global_dc->option_name.
3755 (process_options): Don't set global_dc fields here.
3756 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
3757 (diagnostic.o, opts.o, toplev.o): Update dependencies.
3758
3759 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
3760
3761 * config/picochip/picochip.md (movsi): Split a movsi from a
3762 const after reload.
3763
3764 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3765
3766 * ggc-zone.c: Update copyright year.
3767 (poison_region): Mark memory for Valgrind as undefined before
3768 memset () call and inaccessible afterwards.
3769 (ggc_pch_total_size): Change type of i to int.
3770
3771 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3772
3773 * ggc-common.c (ggc_free_overhead): Allow empty slot.
3774
3775 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3776
3777 * ggc-common.c: Update copyright year.
3778 (ggc_rlimit_bound): Remove prototype. Compile only if
3779 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
3780 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
3781 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
3782 (ggc_min_heapsize_heuristic): Likewise.
3783
3784 2010-05-26 Richard Guenther <rguenther@suse.de>
3785
3786 PR rtl-optimization/44164
3787 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
3788 no-common access-path disambiguation.
3789 (indirect_ref_may_alias_decl_p): Adjust.
3790 (indirect_refs_may_alias_p): Likewise.
3791 (refs_may_alias_p_1): Likewise.
3792
3793 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3794
3795 * c-typeck.c: Do not include expr.h.
3796
3797 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3798
3799 * rtl.h (decl_default_tls_model): Move prototype from here...
3800 * output.h: ...to here.
3801 * c-decl.c: Do not include rtl.h.
3802 * c-pragma.c: Likewise.
3803 * c-parser.c: Likewise.
3804 * c-gimplify.c: Likewise. And also not hard-reg-set.
3805 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
3806 FIXME note for it. Add a FIXME note for expr.h.
3807 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
3808 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
3809 defined.
3810
3811 2010-05-26 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR target/44199
3814 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
3815 or total_size is larger than red zone size for non-V4 ABI, emit a
3816 stack_tie resp. frame_tie insn before stack pointer restore.
3817 * config/rs6000/rs6000.md (frame_tie): New insn.
3818
3819 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
3820
3821 * function.h (struct function): Add can_throw_non_call_exceptions bit.
3822 * lto-streamer-in.c (input_function): Stream it in.
3823 * lto-streamer-out.c (output_function): Stream it out.
3824 * function.c (allocate_struct_function): Set it.
3825 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
3826 for flag_non_call_exceptions.
3827 * cfgbuild.c (control_flow_insn_p): Likewise.
3828 (make_edges): Likewise.
3829 * cfgexpand.c (expand_stack_alignment): Likewise.
3830 * combine.c (distribute_notes): Likewise.
3831 * cse.c (cse_extended_basic_block): Likewise.
3832 * except.c (insn_could_throw_p): Likewise.
3833 * gcse.c (simple_mem): Likewise.
3834 * ipa-pure-const.c (check_call): Likewise.
3835 (check_stmt ): Likewise.
3836 * lower-subreg.c (lower-subreg.c): Likewise.
3837 * optabs.c (emit_libcall_block): Likewise.
3838 (prepare_cmp_insn): Likewise.
3839 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
3840 * postreload.c (rest_of_handle_postreload): Likewise.
3841 * reload1.c (reload_as_needed): Likewise.
3842 (emit_input_reload_insns): Likewise.
3843 (emit_output_reload_insns): Likewise.
3844 (fixup_abnormal_edges): Likewise.
3845 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
3846 * store-motion.c (find_moveable_store): Likewise.
3847 * tree-eh.c (stmt_could_throw_p): Likewise.
3848 (tree_could_throw_p): Likewise.
3849 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3850 * config/arm/arm.c (arm_expand_prologue): Likewise.
3851 (thumb1_expand_prologue): Likewise.
3852 * config/rx/rx.md (cbranchsf4): Likewise.
3853 (cmpsf): Likewise.
3854 * config/s390/s390.c (s390_emit_prologue): Likewise.
3855 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
3856 (inline_forbidden_into_p): New predicate.
3857 (expand_call_inline): Use it to forbid inlining.
3858 (tree_can_inline_p): Likewise.
3859
3860 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3861
3862 * config/i386/i386-c.c: Do not include rtl.h.
3863 * config/i386/t-i386: Update dependencies.
3864
3865 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3866
3867 * attribs.c: Do not include rtl.h.
3868 * Makefile.in: Update dependencies.
3869
3870 2010-05-25 Anatoly Sokolov <aesok@post.ru>
3871
3872 * double-int.h (double_int_and): New.
3873 * combine.c (try_combine): Clean up, use double_int_* and
3874 immed_double_int_const functions.
3875
3876 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3877
3878 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
3879 stderr to /dev/null instead of grep -q.
3880 * configure: Regenerate.
3881
3882 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3883
3884 * Makefile.in (EXCEPT_H): Fix typo.
3885
3886 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
3887
3888 * ira-build.c (update_conflict_hard_reg_costs): New.
3889 (ira_build): Call update_conflict_hard_reg_costs.
3890
3891 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3892
3893 PR debug/41371
3894 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
3895 ENABLE_CHECKING.
3896 (intersect_loc_chains): Walk the s2var's loc_chain together
3897 with s1node chain as long as the locations are equal, don't
3898 call find_loc_in_1pdv in that case.
3899
3900 PR debug/42801
3901 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
3902 (copy_bind_expr): ... instead of here.
3903 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
3904 if the block hasn't been remapped.
3905 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
3906 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
3907
3908 2010-05-25 Richard Guenther <rguenther@suse.de>
3909
3910 PR middle-end/44069
3911 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
3912 out-of-bounds array accesses.
3913
3914 2010-05-25 Richard Guenther <rguenther@suse.de>
3915
3916 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
3917 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
3918 (run_gcc): Re-organize to make cleanup easier.
3919
3920 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3921
3922 * config/s390/s390.c (optimization_options): Fix and move the
3923 flag_prefetch_loop_arrays override ...
3924 (override_options): ... here.
3925
3926 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3927
3928 * diagnostic.c: Don't include plugin.h.
3929 (diagnostic_report_diagnostic): Don't handle plugins specially
3930 here. Pass context to internal_error callback.
3931 * diagnostic.h (struct diagnostic_context): Add context parameter
3932 to internal_error callback.
3933 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
3934 * plugin.h (struct diagnostic_context): Declare.
3935 (warn_if_plugins, plugins_internal_error_function): Declare.
3936 * toplev.c (general_init): Set global_dc->internal_error.
3937 * Makefile.in (diagnostic.o): Update dependencies.
3938
3939 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
3940
3941 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
3942 * config/rs6000/t-darwin64: New.
3943 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
3944 build crt2.
3945
3946 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
3947
3948 PR 44203
3949 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
3950 match the original (and intended) behaviour before r159557. This
3951 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
3952 in two ways.
3953
3954 2010-05-25 Richard Guenther <rguenther@suse.de>
3955
3956 * doc/invoke.texi: Document -Ofast.
3957 * target.h (struct gcc_target): Add handle_ofast.
3958 * target-def.h (TARGET_HANDLE_OFAST): Add.
3959 (TARGET_INITIALIZER): Adjust.
3960 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
3961 * common.opt (Ofast): Add.
3962
3963 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3964
3965 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
3966 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
3967
3968 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3969
3970 PR target/43610
3971 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
3972 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
3973 false_rtx. Use false_rtx to compute the correct *ptest for reversed
3974 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
3975
3976 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3977
3978 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
3979 DW_OP_minus with negated offset instead of DW_OP_plus.
3980 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
3981
3982 2010-05-25 Wei Guozhi <carrot@google.com>
3983
3984 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
3985 tst instruction and a new alternative.
3986 * config/arm/constraints.md (Pu): New constraint.
3987
3988 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
3989
3990 * function.c (assign_stack_local_1): Initialize variable
3991 to avoid warning when bootstrapping at -O3.
3992
3993 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
3994
3995 * configure.ac (all_lang_makefiles): Remove everything related to it.
3996 * configure: Regenerate.
3997 * Makefile.in: Fix reference to ada Make-lang.in.
3998 Remove support for LANG_MAKEFILES.
3999
4000 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
4001 Sandra Loosemore <sandra@codesourcery.com>
4002
4003 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
4004 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
4005 description. Add arm_neon_fp16_ok.
4006 (Add Options): Add arm_neon and arm_neon_fp16.
4007
4008 2010-05-24 Joseph Myers <joseph@codesourcery.com>
4009
4010 * diagnostic.c: Don't include flags.h.
4011 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
4012 context parameters. Check flags in the context passed as a parameter.
4013 (diagnostic_build_prefix): Add context parameter. Check
4014 show_column flag in context.
4015 (diagnostic_action_after_output): Check fatal_errors flag in context.
4016 (diagnostic_report_current_module): Check show_column flag in context.
4017 (default_diagnostic_starter): Update call to
4018 diagnostic_build_prefix.
4019 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
4020 (emit_diagnostic): Pass context to permissive_error_kind.
4021 (permerror): Pass context to permissive_error_kind.
4022 * diagnostic.h (struct diagnostic_context): Add show_column,
4023 pedantic_errors, permissive and fatal_errors fields.
4024 (diagnostic_build_prefix): Update prototype.
4025 * langhooks.c
4026 * toplev.c (process_options): Set flags in global_dc from
4027 flag_show_column, flag_pedantic_errors, flag_permissive,
4028 flag_fatal_errors.
4029 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
4030 to diagnostic_build_prefix.
4031 * Makefile.in (diagnostic.o): Update dependencies.
4032
4033 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
4034
4035 * config/i386/ia32intrin.h (__crc32q): Define only if
4036 __SSE4_2__ is defined.
4037
4038 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
4039
4040 PR target/44132
4041 PR middle-end/43602
4042 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
4043 DECL_VISIBILITY_SPECIFIED.
4044 (emutls_decl): Set DECL_PRESERVE_P and copy
4045 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
4046 (emutls_finalize_control_var): New callback.
4047 (emutls_finish): Finalize emutls control variables.
4048 * toplev.c (compile_file): Move the call to emutls_finish ()
4049 before varpool_assemble_pending_decls ().
4050
4051 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
4052
4053 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
4054 added to the preprocessor condition.
4055
4056 2010-05-24 Paul Brook <paul@codesourcery.com>
4057
4058 * gengtype-lex.l: Add HARD_REG_SET.
4059 * expr.c (expand_expr_real_1): Record writes to hard registers.
4060 * function.c (rtl_data): Add asm_clobbers.
4061 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
4062 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
4063 Use crtl->asm_clobbers.
4064
4065 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4066
4067 * doc/makefile.texi (Makefile): Mention stages 'profile'
4068 and 'feedback' for profiledbootstrap.
4069
4070 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
4071
4072 PR target/44245
4073 * config/i386/i386.c (def_builtin): Properly check
4074 OPTION_MASK_ISA_64BIT.
4075
4076 2010-05-23 Joseph Myers <joseph@codesourcery.com>
4077
4078 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
4079 typedefs with different but compatible types. Allow duplicate
4080 typedefs with the same type except for pedantic non-C1X, but give
4081 warning for variably modified types.
4082 * c-typeck.c (tagged_types_tu_compatible_p,
4083 function_types_compatible_p, type_lists_compatible_p,
4084 comptypes_internal): Add parameter different_types_p; set
4085 *different_types_p for different but compatible types. All
4086 callers changed.
4087 (comptypes_check_different_types): New.
4088 * c-tree.h (comptypes_check_different_types): Declare.
4089
4090 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
4091
4092 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
4093 * jump.c: Include basic-block.h.
4094 * profile.c: Likewise.
4095 * tree-profile.c: Likewise.
4096 * coverage.c: Likewise.
4097 * basic-block.h (optimize_function_for_size_p): Move to function.h.
4098 (optimize_function_for_speed_p): Likewise.
4099 * function.h (optimize_function_for_size_p,
4100 optimize_function_for_speed_p): Moved here from basic-block.h.
4101 * Makefile.in: Update dependencies.
4102
4103 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4104
4105 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
4106 before calling make; allow override through $MAKE.
4107 * doc/invoke.texi (Optimize Options): Document override.
4108
4109 2010-05-23 Anatoly Sokolov <aesok@post.ru>
4110
4111 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
4112 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4113 (rs6000_mode_dependent_address_ptr): Make static.
4114 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4115 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
4116 Remove.
4117
4118 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
4119
4120 PR target/43869
4121 * config/i386/i386.c: Make sure that the correct regparm is passed.
4122
4123 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
4124
4125 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
4126 * sbitmap.c: ...to here to internalize sbitmap element access.
4127 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
4128 Explain why basic-block.h is included.
4129 * function.h: Include tm.h for CUMULATIVE_ARGS.
4130 * Makefile.in: Update dependencies.
4131
4132 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
4133
4134 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
4135 New core types.
4136 * sbitmap.h (struct sbitmap_def): Do not typedef here.
4137 * sbitmap.c: Include sbitmap.h.
4138 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
4139 hard-reg-set.h. Split everything related to regsets out from here...
4140 * regset.h: ...to here. New file.
4141 * df.h: Include regset.h and sbitmap.h.
4142 * tree-flow.h: Likewise.
4143 * cfgloop.h: Likewise.
4144 * except.h: Do not include sbitmap.h. Include hashtab.h.
4145 * cgraph.h: Include vec.h and function.h.
4146 * reload.h (struct insn_chain): Change types of live_throughout
4147 and dead_or_set from regset_head to bitmap_head.
4148 (compute_use_by_pseudos): Be defined also if regset.h is not included.
4149 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
4150 spilled_regs from regset_head to bitmap_head to avoid dependency
4151 in regset.h.
4152 * sel-sched-ir.h: Include regset.h.
4153 * reload.c: Include df.h before reload.h.
4154 * caller-save.c: Likewise.
4155 * reload1.c: Likewise.
4156 * ira.c: Likewise.
4157 (mark_elimination): Update type of r to bitmap, consistent with
4158 DF_LR_IN.
4159 * dominance.c: Include bitmap.h.
4160 * modulo-sched.c: Include df.h.
4161 * cfganal.c: Include bitmap.h and sbitmap.h.
4162 * cfgbuild.c: Include sbitmap.h.
4163 * lcm.c: Include sbitmap.h.
4164 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
4165 * domwalk.c: Include sbitmap.h, exclude ggc.h.
4166 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
4167 * cselib.c: Include bitmap.h.
4168 * tree-optimize.c: Include regset.h.
4169 * stmt.c: Include bitmap.h.
4170 * Makefile.in: Update dependencies.
4171
4172 2010-05-22 Jan Hubicka <jh@suse.cz>
4173
4174 * cgraph.h (struct varpool_node): Add same_comdat_group.
4175 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
4176 pointer.
4177 (output_varpool): Update call of lto_output_varpool_node.
4178 (input_varpool): Read same_comdat_group pointer.
4179 (input_varpool_1): Fixup same_comdat_group pointer.
4180 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
4181 group is needed, all are.
4182 * varpool.c (varpool_remove_node): Remove node from same comdat group
4183 linklist too.
4184 (varpool_analyze_pending_decls): Walk same comdat groups.
4185
4186 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
4187
4188 * rtl.h (union rtunion_def): Remove rt_bit member.
4189 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
4190 * print-rtl (print_rtx): Do not print the member.
4191 * gengtype.c (adjust_field_rtx_def): Do not handle it.
4192 * gengenrtl.c (type_from_format): Likewise.
4193 (accessor_from_format): Likewise.
4194
4195 2010-05-22 Joseph Myers <joseph@codesourcery.com>
4196
4197 * dbgcnt.c: Include toplev.h instead of errors.h.
4198 * ira-emit.c: Don't include errors.h.
4199 * ira.c: Include toplev.h instead of errors.h.
4200 * lto-compress.c: Include toplev.h instead of errors.h.
4201 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
4202 ira.o, dbgcnt.o): Update dependencies.
4203
4204 2010-05-22 Richard Guenther <rguenther@suse.de>
4205
4206 * gimple.c (gimple_types_compatible_p): Check type qualifications
4207 before merging pointer to complete and pointer to incomplete type.
4208 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
4209 we use our own resolution algorithm. The gold linker plugin
4210 doesn't do the job we want it to do here.
4211
4212 2010-05-22 Anatoly Sokolov <aesok@post.ru>
4213
4214 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4215 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4216 (sparc_mode_dependent_address_p): New function.
4217
4218 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
4219
4220 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
4221
4222 * timevar.c: Do not include any core headers.
4223 (timevar_print): De-i18n-ize.
4224 (print_time): Likewise.
4225 * timevar.h (timevar_push, timevar_pop): Make inline functions.
4226
4227 2010-05-21 Joseph Myers <joseph@codesourcery.com>
4228
4229 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
4230 langhooks-def.h.
4231 (diagnostic_initialize): Initialize x_data not last_function.
4232 (diagnostic_report_current_function): Move to tree-diagnostic.c.
4233 (default_diagnostic_starter): Call
4234 diagnostic_report_current_module not
4235 diagnostic_report_current_function.
4236 (diagnostic_report_diagnostic): Initialize x_data not
4237 abstract_origin.
4238 (verbatim): Likewise.
4239 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
4240 x_data.
4241 (struct diagnostic_context): Change last_function to x_data.
4242 (diagnostic_auxiliary_data): Replace with
4243 diagnostic_context_auxiliary_data and
4244 diagnostic_info_auxiliary_data.
4245 (diagnostic_last_function_changed, diagnostic_set_last_function,
4246 diagnostic_report_current_function): Move to tree-diagnostic.h.
4247 (print_declaration, dump_generic_node, print_generic_stmt,
4248 print_generic_stmt_indented, print_generic_expr,
4249 print_generic_decl, debug_c_tree, dump_omp_clauses,
4250 print_call_name, debug_generic_expr, debug_generic_stmt,
4251 debug_tree_chain, default_tree_printer): Move to
4252 tree-pretty-print.h.
4253 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
4254 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
4255 gimple-pretty-print.h.
4256 * pretty-print.c: Don't include tree.h
4257 (pp_base_format): Don't handle %K here.
4258 (pp_base_tree_identifier): Move to tree-pretty-print.c.
4259 * pretty-print.h (text_info): Change abstract_origin to x_data.
4260 (pp_tree_identifier, pp_unsupported_tree,
4261 pp_base_tree_identifier): Move to tree-pretty-print.h.
4262 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
4263 tree-pretty-print.h: New files.
4264 * tree-pretty-print.c: Include tree-pretty-print.h.
4265 (percent_K_format): New. Moved from pretty-print.c.
4266 (pp_base_tree_identifier): Move from pretty-print.c.
4267 * c-objc-common.c: Include tree-pretty-print.h.
4268 (c_tree_printer): Handle %K here.
4269 * langhooks.c: Include tree-diagnostic.h.
4270 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
4271 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
4272 (default_tree_printer): Handle %K using percent_K_format.
4273 (general_init): Use default_tree_diagnostic_starter.
4274 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
4275 (free_lang_data): Use default_tree_diagnostic_starter.
4276 * c-pretty-print.c: Include tree-pretty-print.h.
4277 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
4278 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
4279 * dwarf2out.c: Include tree-pretty-print.h.
4280 * except.c: Include tree-pretty-print.h.
4281 * gimple-pretty-print.c: Include tree-pretty-print.h and
4282 gimple-pretty-print.h.
4283 * gimplify.c: Include tree-pretty-print.h.
4284 * graphite-poly.c: Include tree-pretty-print.h and
4285 gimple-pretty-print.h.
4286 * ipa-cp.c: Include tree-pretty-print.h.
4287 * ipa-inline.c: Include gimple-pretty-print.h.
4288 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
4289 * ipa-pure-const.c: Include gimple-pretty-print.h.
4290 * ipa-struct-reorg.c: Include tree-pretty-print.h and
4291 gimple-pretty-print.h.
4292 * ipa-type-escape.c: Include tree-pretty-print.h.
4293 * print-rtl.c: Include tree-pretty-print.h.
4294 * print-tree.c: Include gimple-pretty-print.h.
4295 * sese.c: Include tree-pretty-print.h.
4296 * tree-affine.c: Include tree-pretty-print.h.
4297 * tree-browser.c: Include tree-pretty-print.h.
4298 * tree-call-cdce.c: Include gimple-pretty-print.h.
4299 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
4300 * tree-chrec.c: Include tree-pretty-print.h.
4301 * tree-data-ref.c: Include tree-pretty-print.h and
4302 gimple-pretty-print.h.
4303 * tree-dfa.c: Include tree-pretty-print.h.
4304 * tree-if-conv.c: Include tree-pretty-print.h and
4305 gimple-pretty-print.h.
4306 * tree-inline.c: Include tree-pretty-print.h.
4307 * tree-into-ssa.c: Include tree-pretty-print.h and
4308 gimple-pretty-print.h.
4309 * tree-nrv.c: Include tree-pretty-print.h.
4310 * tree-object-size.c: Include tree-pretty-print.h and
4311 gimple-pretty-print.h.
4312 * tree-outof-ssa.c: Include tree-pretty-print.h and
4313 gimple-pretty-print.h.
4314 * tree-parloops.c: Include tree-pretty-print.h and
4315 gimple-pretty-print.h.
4316 * tree-predcom.c: Include tree-pretty-print.h and
4317 gimple-pretty-print.h.
4318 * tree-scalar-evolution.c: Include tree-pretty-print.h and
4319 gimple-pretty-print.h.
4320 * tree-sra.c: Include tree-pretty-print.h.
4321 * tree-ssa-address.c: Include tree-pretty-print.h.
4322 * tree-ssa-alias.c: Include tree-pretty-print.h.
4323 * tree-ssa-ccp.c: Include tree-pretty-print.h and
4324 gimple-pretty-print.h.
4325 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
4326 * tree-ssa-copy.c: Include tree-pretty-print.h and
4327 gimple-pretty-print.h.
4328 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
4329 * tree-ssa-dce.c: Include tree-pretty-print.h and
4330 gimple-pretty-print.h.
4331 * tree-ssa-dom.c: Include tree-pretty-print.h and
4332 gimple-pretty-print.h.
4333 * tree-ssa-dse.c: Include gimple-pretty-print.h.
4334 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
4335 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
4336 * tree-ssa-live.c: Include tree-pretty-print.h and
4337 gimple-pretty-print.h.
4338 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
4339 gimple-pretty-print.h.
4340 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
4341 gimple-pretty-print.h.
4342 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
4343 gimple-pretty-print.h.
4344 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
4345 gimple-pretty-print.h.
4346 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
4347 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
4348 * tree-ssa-operands.c: Include tree-pretty-print.h and
4349 gimple-pretty-print.h.
4350 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
4351 gimple-pretty-print.h.
4352 * tree-ssa-pre.c: Include tree-pretty-print.h and
4353 gimple-pretty-print.h.
4354 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
4355 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
4356 gimple-pretty-print.h.
4357 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
4358 gimple-pretty-print.h.
4359 * tree-ssa-sink.c: Include gimple-pretty-print.h.
4360 * tree-ssa-ter.c: Include tree-pretty-print.h and
4361 gimple-pretty-print.h.
4362 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
4363 * tree-ssa.c: Include tree-pretty-print.h and
4364 gimple-pretty-print.h.
4365 * tree-stdarg.c: Include gimple-pretty-print.h.
4366 * tree-switch-conversion.c: Include gimple-pretty-print.h.
4367 * tree-tailcall.c: Include tree-pretty-print.h and
4368 gimple-pretty-print.h.
4369 * tree-vect-data-refs.c: Include tree-pretty-print.h and
4370 gimple-pretty-print.h.
4371 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
4372 gimple-pretty-print.h.
4373 * tree-vect-loop.c: Include tree-pretty-print.h and
4374 gimple-pretty-print.h.
4375 * tree-vect-patterns.c: Include gimple-pretty-print.h.
4376 * tree-vect-slp.c: Include tree-pretty-print.h and
4377 gimple-pretty-print.h.
4378 * tree-vect-stmts.c: Include tree-pretty-print.h and
4379 gimple-pretty-print.h.
4380 * tree-vectorizer.c: Include tree-pretty-print.h.
4381 * tree-vrp.c: Include tree-pretty-print.h and
4382 gimple-pretty-print.h.
4383 * value-prof.c: Include tree-pretty-print.h and
4384 gimple-pretty-print.h.
4385 * var-tracking.c: Include tree-pretty-print.h.
4386 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
4387 (tree-diagnostic.o): New dependencies.
4388 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
4389 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
4390 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
4391 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
4392 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
4393 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
4394 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
4395 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
4396 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
4397 tree-ssa-address.o, tree-ssa-loop-niter.o,
4398 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
4399 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
4400 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
4401 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
4402 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
4403 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
4404 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
4405 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
4406 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
4407 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
4408 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
4409 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
4410 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
4411 tree-switch-conversion.o, var-tracking.o, value-prof.o,
4412 cfgexpand.o, pretty-print.o): Update dependencies.
4413
4414 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
4415
4416 * tree-ssa-structalias.c: Remove tm_p.h from include.
4417
4418 2010-05-21 Jeff Law <law@redhat.com>
4419
4420 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
4421
4422 2010-05-21 Jason Merrill <jason@redhat.com>
4423
4424 * tree-eh.c (cleanup_is_dead_in): New.
4425 (lower_try_finally): Don't generate a dead cleanup region.
4426 (lower_cleanup): Likewise.
4427
4428 2010-05-21 Jakub Jelinek <jakub@redhat.com>
4429
4430 PR debug/44223
4431 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
4432 unchain each use from the cyclic next_regno_use chain first.
4433
4434 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
4435
4436 * real: Do not include gmp.h, mpfr.h, and mpc.h.
4437 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
4438 (real_value_negate, real_value_abs): New prototypes.
4439 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
4440 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
4441 new include file for interface between MPFR and REAL_VALUE_TYPE.
4442 * real.c: Include realmpfr.h.
4443 (real_arithmetic2): Remove legacy function.
4444 (real_value_negate): New.
4445 (real_value_abs): New.
4446 (mfpr_from_real, real_from_mpfr): Move from here...
4447 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
4448 * builtins.c: Include realmpfr.h.
4449 * fold-const.c: Include realmpfr.h.
4450 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
4451 (fold_negate_const): Likewise.
4452 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
4453 * toplev.c: Include realmpfr.h.
4454 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
4455 and real_value_negate.
4456 * fixed-value.c (check_real_for_fixed_mode): Likewise.
4457 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
4458 (vfp3_const_double_index): Likewise.
4459 (arm_print_operand): Likewise.
4460 * Makefile.in: Update dependencies.
4461
4462 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4463
4464 * config/s390/s390.c (override_options): Increase the default
4465 of max-completely-peel-times.
4466
4467 2010-05-21 Julian Brown <julian@codesourcery.com>
4468 Mark Mitchell <mark@codesourcery.com>
4469
4470 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
4471 sibling calls for Thumb-1.
4472 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
4473 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
4474 Thumb-2.
4475 (*call_insn, *call_value_insn): Don't use for Thumb-2.
4476 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
4477 for Thumb-2.
4478 (return): New expander.
4479 (*arm_return): New name for ARM return insn.
4480 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
4481
4482 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
4483
4484 * config.gcc (sparc64-*-rtems*): New target.
4485
4486 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
4487
4488 * tree.c (build_function_decl_skip_args): Fix grammar.
4489 (build_function_type_list_1): Fix typos, adjust formatting.
4490
4491 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
4492
4493 * tree.h: Include real.h and fixed-value.h as basic datatypes.
4494 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
4495 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
4496 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
4497 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
4498 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
4499 tree-pretty-print.c, tree-loop-distribution.c,
4500 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
4501 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
4502 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
4503 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
4504 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
4505 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
4506 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
4507 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
4508 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
4509 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
4510 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
4511 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
4512 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
4513 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
4514 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
4515 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
4516 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
4517 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
4518 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
4519 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
4520 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
4521 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
4522 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
4523 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
4524 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
4525 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
4526 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
4527 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
4528 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
4529 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
4530 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
4531 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
4532 config/score/score7.c, config/score/score.c, config/arm/arm.c,
4533 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
4534 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
4535 config/bfin/bfin.c: Clean up redundant includes.
4536 * Makefile.in: Update accordingly.
4537
4538 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
4539
4540 PR middle-end/44204
4541 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
4542 statement has no arguments.
4543
4544 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
4545
4546 PR/44139
4547 * varasm.c (emutls_decl): Merge attributes to new decl.
4548
4549 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
4550
4551 PR middle-end/44101
4552 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
4553 around the uniquized constructor if its type requires a conversion.
4554
4555 2010-05-21 Jakub Jelinek <jakub@redhat.com>
4556
4557 PR debug/44205
4558 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
4559 at -O0 goto_locus of any of the incoming edges differs from
4560 goto_locus of outgoing edge, or gimple_location of any of the
4561 labels differs.
4562
4563 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
4564
4565 * ira.c (ira_non_ordered_class_hard_regs): Define.
4566 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
4567 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
4568 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
4569 cost of unaligned hard regs when allocating multi-reg pseudos.
4570
4571 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
4572
4573 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
4574 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
4575 for TARGET_NO_FLOAT.
4576 * config/mips/mips.c (mips_file_start): Expand conditional expression
4577 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
4578 (mips_override_options): Move -mno-float override -msoft-float and
4579 -mhard-float.
4580 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
4581 Condition(TARGET_SUPPORTS_NO_FLOAT).
4582 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
4583 __mips_no_float here.
4584 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
4585 (TARGET_SUPPORTS_NO_FLOAT): Define.
4586 * config/mips/sdemtk.opt: Delete.
4587
4588 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
4589
4590 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
4591
4592 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
4593
4594 PR target/43733
4595 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
4596 * configure: Regenerate.
4597 * config.in: Regenerate.
4598 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
4599 instead of sahf only for 64bit targets.
4600
4601 2010-05-20 Jakub Jelinek <jakub@redhat.com>
4602
4603 PR debug/44178
4604 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
4605 setup_ref_regs for DEBUG_INSNs.
4606
4607 2010-05-20 Jan Hubicka <jh@suse.cz>
4608
4609 PR middle-end/44197
4610 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
4611
4612 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
4613
4614 PR bootstrap/43870
4615 * df-scan.c (df_ref_compare): Stabilize sort.
4616
4617 2010-05-20 Jakub Jelinek <jakub@redhat.com>
4618
4619 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
4620 argument. Don't use DW_OP_piece if offset is non-zero,
4621 put offset into second DW_OP_bit_piece argument.
4622 (dw_sra_loc_expr): Adjust callers. For memory expressions
4623 compute offset.
4624
4625 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
4626
4627 PR target/44202
4628 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
4629 settings for 16-bit-constant "addo" alternative.
4630
4631 2010-05-19 James E. Wilson <wilson@codesourcery.com>
4632
4633 * config/mips/mips-dsp.md (add<DSPV:mode>3,
4634 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
4635
4636 PR target/43764
4637 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
4638 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
4639 Use it.
4640
4641 2010-05-19 Joseph Myers <joseph@codesourcery.com>
4642
4643 * diagnostic.c (FLOAT, FFS): Don't undefine.
4644 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
4645 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
4646 include ordering.
4647
4648 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4649
4650 * combine.c (propagate_for_debug): Call make_compound_operation
4651 on the source value.
4652 (try_combine): When implementing a split chosen by find_split_point,
4653 either copy i2src or set it to null. Assert that i2src is not null
4654 before substituting into CALL_INSN_FUNCTION_USAGE.
4655
4656 2010-05-19 Anatoly Sokolov <aesok@post.ru>
4657
4658 * double-int.h (double_int_ior): New function.
4659 * tree.h (build_int_cst_wide_type): Remove.
4660 * tree.c (build_int_cst_wide_type): Remove.
4661 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
4662 of build_int_cst_wide_type.
4663 * stor-layout.c (set_sizetype): (Ditto.).
4664 * dojump.c (do_jump): Use build_int_cstu instead of
4665 build_int_cst_wide_type.
4666
4667 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
4668
4669 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
4670 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
4671 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
4672 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
4673 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
4674 propagate the 'data' argument to copy_tree_r.
4675 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
4676 Propagate 'data' argument to walk_tree.
4677 (copy_if_shared): New function.
4678 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
4679 (unmark_visited): New function.
4680 (unshare_body): Call copy_if_shared instead of doing it manually.
4681 (unvisit_body): Call unmark_visited instead of doing it manually.
4682
4683 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
4684
4685 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
4686 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
4687 * hooks.c: Likewise.
4688 * target-def.h (TARGET_FOLD_BUILTIN): Define to
4689 hook_tree_tree_int_treep_bool_null.
4690 * target.h (struct gcc_target): Update signature of fold_builtin
4691 field.
4692 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
4693 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
4694 instead of the call expression.
4695 (fold_builtin_call_array): Pass n and argarray directly.
4696 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
4697 consing a list.
4698 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
4699 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
4700 `i' and use it in place of `arity'.
4701 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
4702 Dereference `args' directly.
4703 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
4704
4705 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4706
4707 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4708 3dnow, sse3, sse2.
4709 (Directives): Document optional dg-require-effective-target
4710 selector.
4711
4712 2010-05-19 Richard Guenther <rguenther@suse.de>
4713
4714 PR lto/44196
4715 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
4716
4717 2010-05-19 Richard Guenther <rguenther@suse.de>
4718
4719 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
4720 * common.opt (fwhopr=): New.
4721 * opts.c (common_handle_option): Handle OPT_fwhopr.
4722 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
4723 * collect2.c (main): Match -fwhopr*.
4724 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
4725 Execute ltrans stage in parallel when jobs is bigger than 1.
4726
4727 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4728
4729 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4730 pentiumpro on Solaris 8/x86 with Sun as.
4731 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
4732 hidden alias bug.
4733 (gcc_cv_as_ix86_quad): Check for .quad directive.
4734 * configure: Regenerate.
4735 * config.in: Regenerate.
4736 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
4737
4738 2010-05-19 Martin Jambor <mjambor@suse.cz>
4739
4740 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
4741 also for indirect edges. Actual printing moved...
4742 (ipa_print_node_jump_functions_for_edge): ...here.
4743 (ipa_compute_jump_functions): Renamed to
4744 ipa_compute_jump_functions_for_edge and made static.
4745 (ipa_compute_jump_functions): New function.
4746 (make_edge_direct_to_target): Check if the number of arguments on
4747 the newly direct edge is the same as the number of parametrs of
4748 the callee.
4749 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
4750 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
4751 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4752 analysis functions unconditionally, call the new
4753 ipa_analyze_params_uses on the node instead of every edge.
4754
4755 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
4756
4757 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
4758 to tree.
4759 (dump_mem_ref): Adopt debug code to handle a tree as step. This
4760 also checks for a constant int vs. non-constant but
4761 loop-invariant steps.
4762 (find_or_create_group): Change the sort algorithm to only consider
4763 steps that are constant ints.
4764 (idx_analyze_ref): Adopt code to handle a tree instead of a
4765 HOST_WIDE_INT for step.
4766 (gather_memory_references_ref): Handle tree instead of int and be
4767 prepared to see a NULL_TREE.
4768 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
4769 prefetches if the step cannot be calculated at compile time.
4770 (issue_prefetch_ref): Issue prefetches for non-constant but
4771 loop-invariant steps.
4772
4773 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4774
4775 Revert:
4776 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4777
4778 * tree.h (build_call_list): Remove.
4779 * tree.c (build_call_list): Remove.
4780
4781 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4782
4783 * tree.h (build_call_list): Remove.
4784 * tree.c (build_call_list): Remove.
4785
4786 2010-05-18 Jan Hubicka <jh@suse.cz>
4787
4788 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
4789
4790 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
4791
4792 PR rtl-optimization/43332
4793 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
4794
4795 2010-05-18 Anatoly Sokolov <aesok@post.ru>
4796
4797 * tree.h (build_int_cstu): Implement as static inline.
4798 * tree.c (build_int_cstu): Remove function.
4799 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
4800 sign extended.
4801
4802 2010-05-18 Richard Guenther <rguenther@suse.de>
4803
4804 PR lto/44143
4805 * lto-wrapper.c (verbose): New variable. Initialize from -v.
4806 (debug): Initialize from -save-temps.
4807 (collect_execute): Print command-line when verbose.
4808 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
4809 for ltrans invocation. Produce -dumpbase flag again.
4810 (process_args): Remove.
4811 (main): Simplify.
4812 * collect2.c (maybe_run_lto_and_relink): Only pass object
4813 files to lto-wrapper.
4814 * gcc.c (LINK_COMMAND_SPEC): Likewise.
4815
4816 2010-05-18 Jan Hubicka <jh@suse.cz>
4817
4818 * opts.c (decode_options): Do not disable whopr at ipa_cp.
4819 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
4820
4821 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4822
4823 PR lto/44184
4824 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
4825 in a GIMPLE_ASM.
4826 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
4827 in a GIMPLE_ASM.
4828
4829 2010-05-18 Jakub Jelinek <jakub@redhat.com>
4830
4831 PR debug/41371
4832 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
4833 rtx_equal_p inline.
4834
4835 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4836
4837 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
4838 lto-macho as lto_binary_reader.
4839
4840 * darwin.c (darwin_asm_named_section): Do not add assembler comment
4841 after .section directive; just print it before the directive instead.
4842
4843 2010-05-17 Jan Hubicka <jh@suse.cz>
4844
4845 * cgraph.c (cgraph_create_virtual_clone): Only check
4846 versionable_function_p when not in wpa and checking is enabled.
4847 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
4848 there are no more functions to materialize.
4849
4850 2010-05-17 Jan Hubicka <jh@suse.cz>
4851
4852 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
4853 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
4854 New functions.
4855 (output_cgraph): Call output_cgraph_opt_summary.
4856 (input_cgrpah): Call input_cgraph_opt_summary.
4857 (output_cgraph_opt_summary_p, output_node_opt_summary,
4858 input_node_opt_summary, input_cgraph_opt_section): New functions.
4859 * lto-section-in.c (lto_section_name): Add cgraphopt.
4860 * tree-inline.c (tree_function_versioning): Handle parm_num.
4861 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
4862 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
4863
4864 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4865
4866 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
4867 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
4868 the insn to prefetch ratio heuristic to loops with known trip count.
4869
4870 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4871
4872 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
4873 (schedule_prefetches): Do not generate a prefetch if the unroll factor
4874 is far from what is required by the prefetch.
4875
4876 2010-05-17 Jan Hubicka <jh@suse.cz>
4877
4878 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
4879 (ipcp_estimate_growth): Likewise.
4880 (ipcp_const_param_count): Likewise.
4881 (ipcp_insert_stage): Likewise.
4882 * ipa-prop.c (visit_load_for_mod_analysis): New function.
4883 (visit_store_addr_for_mod_analysis): Set used flag.
4884 (ipa_detect_param_modifications): Set used flag for SSE params;
4885 update use of walk_stmt_load_store_addr_ops.
4886 (ipa_print_node_params): Print used flag.
4887 (ipa_write_node_info): Stream used flag.
4888 (ipa_read_node_info): Likewise.
4889 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
4890 (ipa_is_param_used): New function.
4891 (lto_ipa_fixup_call_notes): Remove unused declaration.
4892
4893 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4894
4895 PR target/44074
4896 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
4897 * configure: Regenerate.
4898 * config.in: Regenerate.
4899 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
4900 !HAVE_AS_IX86_REP_LOCK_PREFIX.
4901 Don't emit whitespace.
4902 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
4903 (*rep_movsi): Likewise.
4904 (*rep_movsi_rex64): Likewise.
4905 (*rep_movqi): Likewise.
4906 (*rep_movqi_rex64): Likewise.
4907 (*rep_stosdi_rex64): Likewise.
4908 (*rep_stossi): Likewise.
4909 (*rep_stossi_rex64): Likewise.
4910 (*rep_stosqi): Likewise.
4911 (*rep_stosqi_rex64): Likewise.
4912 (*cmpstrnqi_nz_1): Use {%;} after repz.
4913 (*cmpstrnqi_nz_rex_1): Likewise.
4914 (*cmpstrnqi_1): Likewise.
4915 (*cmpstrnqi_rex_1): Likewise.
4916 (*strlenqi_1): Use {%;} after repnz.
4917 (*strlenqi_rex_1): Likewise.
4918 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
4919 (*sync_compare_and_swap<mode>): Likewise.
4920 (sync_double_compare_and_swap<mode>): Likewise.
4921 (*sync_double_compare_and_swapdi_pic): Likewise.
4922 (sync_old_add<mode>): Likewise.
4923 (sync_add<mode>): Likewise.
4924 (sync_sub<mode>): Likewise.
4925 (sync_<code><mode>): Likewise.
4926
4927 2010-05-17 Martin Jambor <mjambor@suse.cz>
4928
4929 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
4930 otr_token and polymorphic.
4931 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
4932 (cgraph_clone_edge): Copy the above fields.
4933 * tree.c (get_binfo_at_offset): New function.
4934 * tree.h (get_binfo_at_offset): Declare.
4935 * ipa-prop.h (enum jump_func_type): Added known_type jump function
4936 type, reordered items, updated comments.
4937 (union jump_func_value): Added base_type field, reordered fields.
4938 (enum ipa_lattice_type): Moved down in the file.
4939 (struct ipa_param_descriptor): New field polymorphic.
4940 (ipa_is_param_polymorphic): New function.
4941 * ipa-prop.c: Include gimple.h and gimple-fold.h.
4942 (ipa_print_node_jump_functions): Print known type jump functions.
4943 (compute_complex_pass_through): Renamed to...
4944 (compute_complex_assign_jump_func): this.
4945 (compute_complex_ancestor_jump_func): New function.
4946 (compute_known_type_jump_func): Likewise.
4947 (compute_scalar_jump_functions): Create known type and complex ancestor
4948 jump functions.
4949 (ipa_note_param_call): New parameter polymorphic, set the corresponding
4950 flag in the call note accordingly.
4951 (ipa_analyze_call_uses): Renamed to...
4952 (ipa_analyze_indirect_call_uses): this. New parameter target, define
4953 variable var only in the block where it is used.
4954 (ipa_analyze_virtual_call_uses): New function.
4955 (ipa_analyze_call_uses): Likewise.
4956 (combine_known_type_and_ancestor_jfs): Likewise.
4957 (update_jump_functions_after_inlining): Implemented handling of a
4958 number of new jump function types combination.
4959 (print_edge_addition_message): Removed.
4960 (make_edge_direct_to_target): New function.
4961 (try_make_edge_direct_simple_call): Likewise.
4962 (try_make_edge_direct_virtual_call): Likewise.
4963 (update_call_notes_after_inlining): Renamed to...
4964 (update_indirect_edges_after_inlining): this. Moved edge creation for
4965 indirect calls to try_make_edge_direct_simple_call, also calls
4966 try_make_edge_direct_virtual_call for virtual calls.
4967 (ipa_print_node_params): Changed the header message.
4968 (ipa_write_jump_function): Stream also known type jump functions.
4969 (ipa_read_jump_function): Likewise.
4970 (ipa_write_indirect_edge_info): Stream new fields in
4971 cgraph_indirect_call_info.
4972 (ipa_read_indirect_edge_info): Likewise.
4973 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
4974 GIMPLE_FOLD_H.
4975
4976 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4977
4978 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
4979
4980 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
4981
4982 * tree.h (CALL_EXPR_ARGS): Delete.
4983 (call_expr_arglist): Delete.
4984 * tree.c (call_expr_arglist): Delete.
4985 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
4986 targetm.fold_builtin.
4987 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
4988 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
4989 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
4990 arglist parameter. Use CALL_EXPR_ARG.
4991 (picochip_expand_builtin_3op): Likewise.
4992 (picochip_expand_builtin_2opvoid): Likewise.
4993 (picochip_expand_array_get): Likewise.
4994 (picochip_expand_array_put): Likewise.
4995 (picochip_expand_array_testport): Likewise.
4996 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
4997 rather than arglist.
4998 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
4999 CALL_EXPR_ARGS.
5000 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
5001 than TREE_VALUE and TREE_CHAIN.
5002 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
5003 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
5004 the arglist.
5005
5006 2010-05-17 Jakub Jelinek <jakub@redhat.com>
5007
5008 PR bootstrap/42347
5009 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
5010 to have no fallthru edge.
5011
5012 PR middle-end/44102
5013 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
5014 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
5015 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
5016 add BARRIER after previous bb if needed.
5017
5018 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
5019
5020 * tree.c (build_function_type_list_1): Remove bogus assert condition.
5021
5022 2010-05-17 Alan Modra <amodra@gmail.com>
5023
5024 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
5025 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
5026 with copy_reg rtx param.
5027 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
5028 Correct cases where code for ABI_V4 did not initialise the reg
5029 used to access frame. Also leave frame_reg_rtx as sp for large
5030 frames that save no regs.
5031
5032 2010-05-17 Martin Jambor <mjambor@suse.cz>
5033
5034 PR middle-end/44133
5035 * tree-sra.c (create_access_replacement): New parameter rename, mark
5036 the replaement for renaming only when it is true.
5037 (get_access_replacement): Pass true in the rename parameter of
5038 create_access_replacement.
5039 (get_unrenamed_access_replacement): New function.
5040 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
5041 replacement declaration from it.
5042
5043 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
5044
5045 * function.c (try_fit_stack_local, add_frame_space): New static
5046 functions.
5047 (assign_stack_local_1): Use them. Look for opportunities to use
5048 space previously wasted on alignment.
5049 * function.h (struct frame_space): New.
5050 (struct rtl_data): Add FRAME_SPACE_LIST member.
5051 * reload1.c (something_was_spilled): New static variable.
5052 (alter_reg): Set it.
5053 (reload): Test it in addition to testing if the frame size changed.
5054
5055 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
5056
5057 * config/s390/s390.c: Define sane prefetch settings and activate
5058 flag_prefetch_loop_arrays on -O3.
5059 * config/s390/s390.h: Declare that read can use write prefetch.
5060
5061 2010-05-17 Jakub Jelinek <jakub@redhat.com>
5062
5063 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
5064 build.
5065
5066 2010-05-16 Jan Hubicka <jh@suse.cz>
5067
5068 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
5069 function body; do not check stdarg field of struct function.
5070
5071 2010-05-16 Jan Hubicka <jh@suse.cz>
5072
5073 * cgraph.c (dump_cgraph_node): Dump versionable flag.
5074 * cgraph.h (cgraph_local_info): Add versionable flag.
5075 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
5076 (ipcp_versionable_function_p): Use it.
5077 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5078 versionable flag.
5079
5080 2010-05-16 Jan Hubicka <jh@suse.cz>
5081
5082 * cgraph.c (cgraph_clone_node): Take decl argument and insert
5083 clone into hash when it is different from orig.
5084 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
5085 * cgraph.h (cgraph_clone_node): Update prototype.
5086 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
5087 (lto_cgraph_encoder_delete): Delete body map.
5088 (lto_cgraph_encoder_size): Move to header.
5089 (lto_cgraph_encoder_encode_body_p,
5090 lto_set_cgraph_encoder_encode_body): New.
5091 (lto_output_node): Do not take written_decls argument; output clone_of
5092 pointer.
5093 (add_node_to): Add include_body_argument; call
5094 lto_set_cgraph_encoder_encode_body on master of the clone.
5095 (add_references): Update use of add_node_to.
5096 (compute_ltrans_boundary): Likewise.
5097 (output_cgraph): Do not create written_decls bitmap.
5098 (input_node): Take nodes argument; stream in clone_of correctly.
5099 (input_cgraph_1): Update use of input_node.
5100 * lto-streamer-out.c (lto_output): Use encoder info to decide
5101 what bodies to output.
5102 * ipa-inline.c (cgraph_clone_inlined_nodes,
5103 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
5104 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
5105 (lto_cgraph_encoder_size): Define here.
5106 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
5107 Declare.
5108
5109 2010-05-16 Richard Guenther <rguenther@suse.de>
5110
5111 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
5112 -fipa-type-escape.
5113 * ipa-type-escape.c (gate_type_escape_vars): Run when
5114 -fipa-struct-reorg runs.
5115 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
5116 * common.opt (fipa-type-escape): Remove.
5117
5118 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
5119
5120 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
5121 (decode_options): Likewise.
5122 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
5123
5124 2010-05-16 Jan Hubicka <jh@suse.cz>
5125
5126 * ipa.c (function_and_variable_visibility): Also bring local all
5127 aliases.
5128
5129 2010-05-16 Richard Guenther <rguenther@suse.de>
5130
5131 * alias.c (nonoverlapping_memrefs_p): Remove use of
5132 IPA type-escape information.
5133
5134 2010-05-16 Joseph Myers <joseph@codesourcery.com>
5135
5136 * c-common.c (c_common_reswords): Add _Static_assert for C.
5137 * c-parser.c (c_token_starts_declaration,
5138 c_parser_next_token_starts_declaration,
5139 c_parser_static_assert_declaration_no_semi,
5140 c_parser_static_assert_declaration): New.
5141 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
5142 Handle static assertions if static_assert_ok.
5143 (c_parser_external_declaration, c_parser_declaration_or_fndef,
5144 c_parser_compound_statement_nostart, c_parser_label,
5145 c_parser_for_statement, c_parser_objc_methodprotolist,
5146 c_parser_omp_for_loop): All callers of
5147 c_parser_declaration_or_fndef changed.
5148 (c_parser_struct_declaration): Handle static assertions.
5149 (c_parser_compound_statement_nostart): Use
5150 c_parser_next_token_starts_declaration and
5151 c_token_starts_declaration to detect start of declarations.
5152 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
5153 Likewise.
5154
5155 2010-05-16 Anatoly Sokolov <aesok@post.ru>
5156
5157 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5158 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5159 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5160 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5161 (mmix_function_outgoing_value): Rename to...
5162 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
5163 (mmix_function_value_regno_p): Make static.
5164 (mmix_libcall_value): New function.
5165 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
5166 mmix_function_value_regno_p): Remove declaration.
5167
5168 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
5169
5170 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
5171 BUILT_IN_ALLOCA if stack checking is enabled.
5172
5173 2010-05-16 Richard Guenther <rguenther@suse.de>
5174
5175 * var-tracking.c (vars_copy_1): Inline ...
5176 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
5177 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
5178 (variable_merge_over_cur): Adjust. Merge asserts.
5179 (variable_merge_over_src): Likewise.
5180 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
5181 (variable_post_merge_new_vals): Merge asserts.
5182 (variable_post_merge_perm_vals): Likewise.
5183 (find_mem_expr_in_1pdv): Likewise.
5184 (dataflow_set_different_value): Remove.
5185 (onepart_variable_different_p): Merge asserts.
5186 (variable_different_p): Likewise.
5187 (dataflow_set_different_1): Inline ...
5188 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
5189 (emit_notes_for_differences_1): Merge asserts.
5190
5191 2010-05-16 Richard Guenther <rguenther@suse.de>
5192
5193 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
5194 * optabs.c (libfunc_decl_hash): Likewise.
5195 * varasm.c (emutls_decl): Likewise.
5196
5197 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
5198
5199 * c-decl.c: Don't include gimple.h.
5200 (merge_decls): Do not copy gimple_body.
5201
5202 2010-05-15 Jason Merrill <jason@redhat.com>
5203
5204 * c.opt: Add -fnothrow-opt.
5205
5206 2010-05-15 Jan Hubicka <jh@suse.cz>
5207
5208 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
5209 analyzed.
5210 * passes.c (ipa_write_summaries): Write all analyzed nodes.
5211
5212 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
5213
5214 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
5215 * Makefile.in: Add it.
5216 Fix all other Makefile dependencies for changes below.
5217 * tree.h: Include it instead of defining VEC primitives here.
5218 * gimple.h: Likewise.
5219 * rtl.h: Likewise.
5220 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
5221 * except.h: Include vecir.h, break dependence on tree.h.
5222
5223 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
5224 Move from here...
5225 * tree-iterator.c: ...to here.
5226 * tree-iterator.h: Fix file introduction comment. Add extern markers.
5227
5228 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
5229 tm_p.h.
5230 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
5231 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
5232 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
5233 tree-mudflap.h, and target.h.
5234 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
5235 predict.h, tree-inline.h, gimple.h, and langhooks.h.
5236 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
5237 Add FIXME for why gimple.h is still included (should be unnecessary
5238 since GCC 4.5 gimplification unit-at-a-time).
5239 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
5240 * c-pragma.c: Add FIXME for why function.h needs to be included just
5241 for cfun, at front-end level.
5242 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
5243 Do not include ggc.h, but include vecprim.h for VEC(char).
5244 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
5245 Explain why target.h is included.
5246 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
5247 Explain why gimple.h is included.
5248 * c-ppoutput.c: Do not include tm.h.
5249 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
5250 * c-parses.c: Explain why rtl.h is included, and that this (and only
5251 this) is also why tm.h must be included.
5252 Do not include except.h.
5253 * c-lang.c: Do not include ggc.h.
5254
5255 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
5256
5257 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
5258
5259 2010-05-15 Joseph Myers <joseph@codesourcery.com>
5260
5261 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
5262 unions by default if those structs and unions have no tags. Do
5263 not condition anonymous struct and unions handling on flag_iso.
5264 Allow anonymous structs and unions for C1X.
5265 (finish_struct): Do not diagnose lack of named fields when
5266 anonymous structs and unions present for C1X. Accept flexible
5267 array members in structure with anonymous structs or unions but no
5268 directly named fields.
5269 * doc/extend.texi (Unnamed Fields): Update.
5270
5271 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
5272
5273 * gimple.h (compare_field_offset): Rename into...
5274 (gimple_compare_field_offset): ...this.
5275 * gimple.c (compare_field_offset): Rename into...
5276 (gimple_compare_field_offset): ...this. Compare the full access if
5277 the offset is self-referential.
5278 (gimple_types_compatible_p): Adjust for above renaming.
5279 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
5280 DECL_NONADDRESSABLE_P flag of fields before merging them.
5281
5282 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
5283
5284 * tree.h (ctor_to_list): Delete.
5285 * tree.c (ctor_to_list): Delete.
5286
5287 2010-05-15 Jan Hubicka <jh@suse.cz>
5288
5289 * ipa-reference.c: Include toplev.h
5290 (is_proper_for_analysis): Only add to all_module_statics
5291 if it is allocated.
5292 (write_node_summary_p, stream_out_bitmap,
5293 ipa_reference_write_optimization_summary,
5294 ipa_reference_read_optimization_summary): New.
5295 (struct ipa_opt_pass_d pass_ipa_reference): Add
5296 optimization summary streaming.
5297 * lto-cgraph.c (referenced_from_this_partition_p,
5298 reachable_from_this_partition_p): New functions.
5299 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
5300 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
5301 * opts.c (decode_options): Enable ipa_reference.
5302 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
5303 * lto-streamer.h (referenced_from_this_partition_p,
5304 reachable_from_this_partition_p): Declare.
5305
5306 2010-05-15 Richard Guenther <rguenther@suse.de>
5307
5308 PR tree-optimization/44038
5309 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
5310 taking the address of a V_C_E of a constant.
5311
5312 2010-05-14 Jan Hubicka <jh@suse.cz>
5313
5314 * tree.h (memory_identifier_string): Remove.
5315 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
5316 (ipa_reference_global_vars_info_d): Remove statics_not_read and
5317 statics_not_written.
5318 (ipa_reference_optimization_summary_d): New structure.
5319 (ipa_reference_optimization_summary_t): New type and vector.
5320 (ipa_reference_vars_info_d): Embedd structures instead of using
5321 pointers.
5322 (reference_vars_to_consider): Remove out of GGC space.
5323 (module_statics_escape): Remove.
5324 (global_info_obstack): Rename to ...
5325 (optimization_summary_obstack): ... this one.
5326 (initialization_status_t): Remove.
5327 (memory_identifier_string): Remove.
5328 (get_reference_vars_info): Fix indenting.
5329 (set_reference_vars_info): Likewise.
5330 (get_reference_optimization_summary): New.
5331 (set_reference_optimization_summary): New.
5332 (get_global_reference_vars_info): Remove.
5333 (ipa_reference_get_read_global): Remove.
5334 (ipa_reference_get_written_global): Remove.
5335 (ipa_reference_get_not_read_global): Update.
5336 (ipa_reference_get_not_written_global): Update.
5337 (is_proper_for_analysis): Outlaw addressable.
5338 (propagate_bits): Update for new datastructures.
5339 (analyze_variable): Remove.
5340 (init_function_info): Update for new datastructures.
5341 (clean_function_local_data): Remove.
5342 (clean_function): Remove.
5343 (copy_global_bitmap): Use optimizations_summary_obstack.
5344 (duplicate_node_data): Duplicate optimization summary only.
5345 (remove_node_data): Remove optimization summary only.
5346 (generate_summary): Do not analyze variables; do not compute
5347 module_statics_escape; do not prune solutions by it.
5348 (read_write_all_from_decl): Fix typos in comments.
5349 (propagate): Doscover readonly and nonaddressable first;
5350 update for new datastructures; share global bitmaps.
5351 * ipa-reference.h (ipa_reference_get_read_global,
5352 ipa_reference_get_written_global): Remove.
5353 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
5354 * Makefile.in: Remove ipa-refereference from GT files.
5355
5356 2010-05-14 Jakub Jelinek <jakub@redhat.com>
5357
5358 PR debug/44112
5359 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
5360 for all SYMBOL_REF_DECLs.
5361
5362 2010-05-14 Jan Hubicka <jh@suse.cz>
5363
5364 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
5365 (varpool_all_refs_explicit_p): New inline function.
5366 * ipa-reference.c: Update comment.
5367 (module_statics_written): Remove.
5368 (get_static_decl): Remove.
5369 (ipa_init): Do not initialize module_statics_written.
5370 (analyze_function): Likewise.
5371 (generate_summary): Likewise; do not compute module_statics_readonly
5372 and do not update variable flags.
5373 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
5374 * ipa.c: Inlucde flags.h
5375 (cgraph_local_node_p): New.
5376 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
5377 promote functions to local.
5378 (ipa_discover_readonly_nonaddressable_vars): New function.
5379 (function_and_variable_visibility): Use cgraph_local_node_p.
5380 * varpool.c (varpool_finalize_decl): Set force_output for
5381 DECL_PRESERVE_P vars.
5382
5383 2010-05-14 Jan Hubicka <jh@suse.cz>
5384
5385 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
5386
5387 2010-05-14 Richard Guenther <rguenther@suse.de>
5388
5389 PR tree-optimization/44119
5390 * tree-ssa-pre.c (eliminate): Properly mark replacement of
5391 a PHI node necessary.
5392
5393 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
5394
5395 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
5396
5397 2010-05-14 Jason Merrill <jason@redhat.com>
5398
5399 PR c++/44127
5400 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
5401 (gimple_call_set_nothrow): New.
5402 * gimple.c (gimple_build_call_from_tree): Call it.
5403 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
5404
5405 PR c++/44127
5406 * gimplify.c (gimplify_seq_add_stmt): No longer static.
5407 * gimple.h: Declare it.
5408 * gimple.c (gimple_build_eh_filter): No ops.
5409
5410 2010-05-14 Jan Hubicka <jh@suse.cz>
5411
5412 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
5413 nodes already in queue.
5414 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
5415 re-enqueueing node.
5416
5417 2010-05-14 Jakub Jelinek <jakub@redhat.com>
5418
5419 PR debug/44136
5420 * cfgexpand.c (expand_debug_expr): If non-memory op0
5421 has BLKmode, return NULL.
5422
5423 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
5424
5425 * config.gcc: Add support for --with-cpu option for bdver1.
5426 * config/i386/i386.h (TARGET_BDVER1): New macro.
5427 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
5428 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
5429 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
5430 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
5431 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
5432 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
5433 (processor_type): Add PROCESSOR_BDVER1.
5434 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
5435 processor_type in config/i386/i386.h.
5436 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
5437 movaps <reg, reg> instead of movapd <reg, reg> when replacing
5438 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
5439 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
5440 to emit packed xor instead of packed double/packed integer
5441 xor for SSE and AVX when moving a zero value.
5442 * config/i386/sse.md: Add check for
5443 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
5444 movapd/movdqa for SSE and AVX.
5445 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
5446 single logical operations i.e and, or and xor instead of packed double
5447 logical operations for SSE and AVX.
5448 * config/i386/i386-c.c (ix86_target_macros_internal):
5449 Add PROCESSOR_BDVER1.
5450 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
5451 (has_fma4, has_xop): New.
5452 * config/i386/i386.c (bdver1_cost): New variable.
5453 (m_BDVER1): New macro.
5454 (m_AMD_MULTIPLE): Add m_BDVER1.
5455 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
5456 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
5457 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
5458 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
5459 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
5460 x86_tune_sse_partial_reg_dependency,
5461 x86_tune_sse_unaligned_load_optimal,
5462 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
5463 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
5464 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
5465 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
5466 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
5467 Enable/disable for bdver1.
5468 (processor_target_table): Add bdver1_cost.
5469 (cpu_names): Add bdver1.
5470 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
5471 processor_alias_table.
5472 (ix86_expand_vector_move_misalign): Change.
5473 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
5474 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
5475 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
5476 of movupd/movdqu for SSE and AVX.
5477 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
5478 (ix86_tune_adjust_cost): Add code for bdver1.
5479 (standard_sse_constant_opcode): Add check for
5480 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
5481 of packed double xor for SSE and AVX.
5482
5483 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
5484
5485 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
5486 result to unsigned.
5487
5488 2010-05-14 Tristan Gingold <gingold@adacore.com>
5489
5490 * toplev.c (default_debug_hooks): Remove this variable.
5491 (process_options): Remove assignments to default_debug_hooks.
5492
5493 2010-05-14 Martin Jambor <mjambor@suse.cz>
5494
5495 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
5496 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
5497 * langhooks.h (struct lang_hooks_for_decls): Removed field
5498 fold_obj_type_ref.
5499 * tree.c (free_lang_data): Remove assignment to
5500 lang_hooks.fold_obj_type_ref.
5501 * tree.def (OBJ_TYPE_REF): Update comment.
5502
5503 2010-05-14 Richard Guenther <rguenther@suse.de>
5504
5505 PR tree-optimization/44124
5506 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
5507
5508 2010-05-14 Alan Modra <amodra@gmail.com>
5509
5510 PR target/44075
5511 * config/rs6000/rs6000.c (struct machine_function): Reorder
5512 fields for better packing. Add lr_save_state.
5513 (rs6000_ra_ever_killed): Return lr_save_state if set.
5514 (rs6000_emit_eh_reg_restore): Set lr_save_state.
5515
5516 2010-05-13 Jan Hubicka <jh@suse.cz>
5517
5518 * varpool.c (decide_is_variable_needed): Drop code checking
5519 TREE_SYMBOL_REFERENCED.
5520
5521 2010-05-13 Jan Hubicka <jh@suse.cz>
5522
5523 * final.c (output_addr_const): Do not call mark_decl_referenced.
5524 * cgraphunit.c (process_function_and_variable_attributes): Use
5525 mark_needed_node dirrectly.
5526 (assemble_thunk): Do not call mark_decl_referenced.
5527
5528 2010-05-13 Anatoly Sokolov <aesok@post.ru>
5529
5530 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
5531
5532 2010-05-13 Jeff Law <law@redhat.com>
5533
5534 * ira-conflicts.c (print_allocno_conflicts): New function broken out
5535 from...
5536 (print_conflicts): Call print_allocno_conflicts.
5537
5538 2010-05-13 Jakub Jelinek <jakub@redhat.com>
5539
5540 PR debug/44104
5541 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
5542 if it is NULL.
5543
5544 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
5545
5546 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
5547 t-mingw-w64 or t-mingw-w32 for multilib configuration.
5548 * config/i386/t-mingw-w32: New.
5549 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
5550
5551 2010-05-13 Martin Jambor <mjambor@suse.cz>
5552
5553 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
5554 gimple-fold.c).
5555 * gimple-fold.c (get_base_binfo_for_type): New function.
5556 (gimple_get_relevant_ref_binfo): Likewise.
5557 (gimple_fold_obj_type_ref_known_binfo): Likewise.
5558 (gimple_fold_obj_type_ref): Likewise.
5559 (fold_gimple_call): Simplify condition for folding virtual calls
5560 and call gimple_fold_obj_type_ref.
5561 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
5562 (gimple_fold_obj_type_ref_known_binfo): Likewise.
5563
5564 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
5565
5566 * config/rs6000/rs6000-protos.h
5567 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
5568 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
5569 (rs6000_debug_mode_dependent_address)
5570 (rs6000_mode_dependent_address_ptr): Likewise.
5571
5572 2010-05-13 Jakub Jelinek <jakub@redhat.com>
5573
5574 PR debug/43983
5575 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
5576 by SRA.
5577 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
5578 * tree-sra.c (create_access_replacement): Call unshare_expr before
5579 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
5580 * dwarf2out.c: Include tree-flow.h.
5581 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
5582 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5583 Handle DW_OP_bit_piece.
5584 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
5585 construct_piece_list, adjust_piece_list): New functions.
5586 (add_var_loc_to_decl): Handle SRA optimized variables.
5587 Adjust for var_loc_note to loc field renaming.
5588 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
5589 in VAR_LOCATION note.
5590 (new_loc_descr_op_bit_piece): New function.
5591 (dw_sra_loc_expr): New function.
5592 (dw_loc_list): Use it. Don't handle the last range after the
5593 loop, handle it inside of the loop. Adjust for var_loc_note
5594 to loc field renaming.
5595 (add_location_or_const_value_attribute): Only special case
5596 single entry loc lists if loc is NOTE_P. Adjust for
5597 var_loc_note to loc field renaming.
5598 (dwarf2out_var_location): Don't set newloc->var_loc_note
5599 and newloc->next here.
5600
5601 2010-05-12 Jan Hubicka <jh@suse.cz>
5602
5603 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
5604 flag.
5605 * cgraph.h (cgraph_only_called_directly_p,
5606 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
5607 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
5608 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
5609 (assemble
5610 * ipa.c (cgraph_remove_unreachable_nodes): Use
5611 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
5612 flags.
5613 * tree-inline.c (copy_bb): Check address_taken flag.
5614 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
5615 externally_visible flag.
5616
5617 2010-05-12 Jason Merrill <jason@redhat.com>
5618
5619 PR bootstrap/44048
5620 PR target/44099
5621 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
5622 * sdbout.c (plain_type_1): Likewise.
5623 * dwarf2out.c (is_base_type): Likewise.
5624 (gen_type_die_with_usage): Likewise. Generate
5625 DW_TAG_unspecified_type for any LANG_TYPE.
5626
5627 2010-05-12 Jan Hubicka <jh@suse.cz>
5628
5629 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
5630 indrect edges too.
5631 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
5632 (cgraph_clone_edge): Update.
5633 (cgraph_node_remove_callees): Remove indirect calls too.
5634 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
5635 (cgraph_create_indirect_edge): Update prototype.
5636 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
5637 is_proper_for_analysis.
5638 (add_new_function, visited_nodes, function_insertion_hook_holder,
5639 get_local_reference_vars_info, mark_address_taken, mark_address,
5640 mark_load, mark_store, check_asm_memory_clobber, check_call,
5641 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
5642 (ipa_init): Do not initialize visited_nodes;
5643 function_insertion_hook_holder.
5644 (analyze_variable): Rewrite.
5645 (analyze_function): Rewrite.
5646 (copy_local_bitmap): Remove.
5647 (duplicate_node_dat): Do not duplicate local info.
5648 (generate_summary): Simplify to only walk cgraph.
5649 (write_node_summary_p, ipa_reference_write_summary,
5650 ipa_reference_read_summary): Remove.
5651 (propagate): Do not remove function insertion;
5652 generate summary.
5653 (pass_ipa_reference): NULLify summary handling fields.
5654 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
5655 (input_edge): Input ecf_flags.
5656 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
5657 (update_indirect_edges_after_inlining): Ignore edges with unknown
5658 param.
5659
5660 2010-05-12 Sriraman Tallam <tmsriram@google.com>
5661
5662 * implicit-zee.c: New file.
5663 * tree-pass.h (pass_implicit_zee): Declare.
5664 * passes.c (init_optimization_passes): Add zee pass.
5665 * common.opt (fzee): New flag.
5666 * timevar.def (TV_ZEE): Define.
5667 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
5668 and beyond.
5669 * Makefile.in (implicit-zee.o): Add new build file.
5670
5671 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
5672 Nathan Froyd <froydnj@codesourcery.com>
5673
5674 * c-common.c (sync_resolve_params): Remove write-only variable.
5675
5676 2010-05-12 Anatoly Sokolov <aesok@post.ru>
5677
5678 * target.h (struct gcc_target): Add mode_dependent_address_p field.
5679 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
5680 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
5681 * targhooks.c (default_mode_dependent_address_p): New function.
5682 * targhooks.h (default_mode_dependent_address_p): Declare function.
5683 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
5684 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
5685 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
5686 target hook. Change return type to bool.
5687 * recog.h (mode_dependent_address_p): Change return type to bool.
5688
5689 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
5690 Nathan Froyd <froydnj@codesourcery.com>
5691
5692 * tree-mudflap.c (build_function_type_0, build_function_type_1,
5693 build_function_type_2, build_function_type_3): Remove.
5694 (mudflap_init): Use build_function_type_list.
5695
5696 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
5697 Nathan Froyd <froydnj@codesourcery.com>
5698
5699 * coverage.c (build_fn_info_value): Call build_constructor instead of
5700 build_constructor_from_list.
5701 (build_ctr_info_value): Likewise.
5702 (build_gcov_info): Likewise.
5703
5704 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
5705
5706 * tree.c (build_constructor): Compute TREE_CONSTANT for the
5707 resultant constructor.
5708 (build_constructor_single): Don't set TREE_CONSTANT.
5709 (build_constructor_from_list): Don't compute TREE_CONSTANT.
5710
5711 2010-05-12 Jan Hubicka <jh@suse.cz>
5712
5713 * cgraph.h (struct varpool_node): Add aux.
5714 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
5715 * varpool.c (varpool_remove_node): Do not remove initializer.
5716 (varpool_reset_queue): Export.
5717 (varpool_finalize_decl): Volatile vars are forced to be output.
5718 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
5719 replaced decl.
5720 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
5721 process_references, varpool_can_remove_if_no_refs): New functions.
5722 (cgraph_remove_unreachable_nodes): Handle variables too.
5723
5724 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
5725
5726 PR target/44088
5727 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
5728
5729 2010-05-12 Jakub Jelinek <jakub@redhat.com>
5730
5731 PR middle-end/44085
5732 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
5733 change value of ORT_TASK.
5734 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
5735 (omp_notice_threadprivate_variable): New function.
5736 (omp_notice_variable): Call it for threadprivate variables.
5737 If enclosing ctx is a task, print enclosing task rather than
5738 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
5739 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
5740 if task has untied clause.
5741
5742 PR debug/42278
5743 * dwarf2out.c (base_type_die): Don't add name attribute here.
5744 (modified_type_die): Instead of sizetype use
5745 its underlying original type. If a DW_TAG_base_type doesn't
5746 have name added, add __unknown__.
5747 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
5748 always call force_type_die instead.
5749
5750 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
5751
5752 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
5753 for __stack_chk_guard.
5754
5755 2010-05-11 Jakub Jelinek <jakub@redhat.com>
5756
5757 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
5758 don't call start_source_file debug hook here...
5759 (finish_options): ... but here, after outputting predefined and
5760 command line defines and undefs.
5761
5762 PR middle-end/44071
5763 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
5764 no fallthru edge.
5765 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
5766 optimizing away empty bb with no successors, move over its
5767 footer chain to fallthru predecessor.
5768 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
5769 (rtl_split_edge): For asm goto call patch_jump_insn even if
5770 splitting fallthru edge.
5771
5772 PR c++/44059
5773 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
5774 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
5775 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5776 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
5777 on DW.ref.* decls.
5778
5779 PR c++/44062
5780 * c-parser.c (c_parser_expression): Mark LHS of a comma
5781 expression as read if it is a decl, handled component or
5782 COMPOUND_EXPR with that on the RHS.
5783 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
5784 if it is a decl or handled component.
5785
5786 2010-05-11 Jan Hubicka <jh@suse.cz>
5787
5788 * lto-symtab.c (lto_symtab_free): New function.
5789 * lto-streamer.h (lto_symtab_free): Declare.
5790
5791 2010-05-11 Jan Hubicka <jh@suse.cz>
5792
5793 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
5794 that if function is needed it is reachable.
5795 (lto_output_node): See if it the function is reachable or referenced.
5796 (output_cgraph): Update call of lto_output_node.
5797 * lto-streamer.h (reachable_from_other_partition_p): Declare.
5798
5799 2010-05-11 Jan Hubicka <jh@suse.cz>
5800
5801 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
5802 Mark as used.
5803
5804 2010-05-11 Jan Hubicka <jh@suse.cz>
5805
5806 PR tree-optimize/44063
5807 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
5808 queue.
5809 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
5810 limits.
5811 (estimate_function_body_sizes): Compute sizes even when disregarding.
5812
5813 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
5814
5815 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
5816
5817 2010-05-11 Jan Hubicka <jh@suse.cz>
5818
5819 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
5820 into every boundary.
5821
5822 2010-05-11 Jan Hubicka <jh@suse.cz>
5823
5824 * matrix-reorg.c (matrix_reorg): Rebuild edges.
5825
5826 2010-05-11 Jan Hubicka <jh@suse.cz>
5827
5828 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
5829 lto_streamer_cache_delete): Put nodes into heap.
5830 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
5831 heap.
5832
5833 2010-05-11 Jan Hubicka <jh@suse.cz>
5834
5835 * cgraphbuild.c (cgraph_rebuild_references): New.
5836 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
5837 out extern inlines.
5838 * cgraph.h (cgraph_rebuild_references): Declare.
5839 * tree-inline.c (tree_function_versioning): Use it.
5840 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
5841
5842 2010-05-11 Jan Hubicka <jh@suse.cz>
5843
5844 * cgraph.c: Include ipa-utils.h
5845 (cgraph_create_virtual_clone): Update references.
5846 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
5847
5848 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5849
5850 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
5851 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
5852 cache size.
5853
5854 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5855
5856 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
5857
5858 2010-05-11 Jakub Jelinek <jakub@redhat.com>
5859
5860 * gcc.c (execute): For -### don't quote arguments that
5861 contain just alphanumerics and _/-. characters.
5862 * doc/invoke.texi: Document that change for -###.
5863
5864 PR debug/44023
5865 * df-problems.c (struct dead_debug): Add to_rescan field.
5866 (dead_debug_init): Clear to_rescan field.
5867 (dead_debug_finish): Rescan all debug insns in to_rescan
5868 bitmap and free the bitmap.
5869 (dead_debug_insert_before): Instead of rescanning debug insns
5870 immediately queue their rescanning until dead_debug_finish.
5871 (df_note_bb_compute): After dead_debug_add do continue instead
5872 of break.
5873
5874 2010-05-10 Jakub Jelinek <jakub@redhat.com>
5875
5876 PR debug/44028
5877 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
5878 clear also INSN_REG_USE_LIST.
5879
5880 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5881
5882 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
5883
5884 2010-05-10 Jan Hubicka <jh@suse.cz>
5885
5886 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
5887 commited change.
5888
5889 2010-05-10 Jan Hubicka <jh@suse.cz>
5890
5891 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
5892 Allocate encoders.
5893 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
5894 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
5895 (lto_streamer_cache_create): Init alloc pool.
5896 (lto_streamer_cache_delete): Free alloc pool.
5897 * lto-streamer.h: Include alloc pool.
5898 (lto_streamer_cache_d): Use alloc pool.
5899 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
5900
5901 2010-05-10 Jan Hubicka <jh@suse.cz>
5902
5903 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
5904 * cgraphbuild.c: Include except.h
5905 (record_type_list, record_eh_tables): New function.
5906 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
5907
5908 2010-05-10 Jan Hubicka <jh@suse.cz>
5909
5910 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
5911 __frame_dummy_init_array_entry, force_to_data): Attribute as used
5912 rather than unused.
5913
5914 2010-05-10 Michael Matz <matz@suse.de>
5915
5916 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
5917 (can_reassociate_p): Use FLOAT_TYPE_P.
5918 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
5919 (vect_force_simple_reduction): ... this.
5920 * tree-parloops.c (gather_scalar_reductions): Use
5921 vect_force_simple_reduction.
5922 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
5923 vect_is_simple_reduction, add modify argument, if true rewrite
5924 "a-b" into "a+(-b)".
5925 (vect_is_simple_reduction, vect_force_simple_reduction): New
5926 functions.
5927 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
5928
5929 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
5930 Vladimir Makarov <vmakarov@redhat.com>
5931
5932 PR rtl-optimization/44012
5933 * ira-build.c (remove_unnecessary_allocnos): Nullify
5934 regno_allocno_map of the removed allocno.
5935
5936 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5937
5938 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
5939 to /dev/null.
5940 * configure: Regenerate.
5941
5942 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5943
5944 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
5945 unused.
5946 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
5947 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
5948 support in Sun ld.
5949 * configure: Regenerate.
5950
5951 2010-05-10 Richard Guenther <rguenther@suse.de>
5952
5953 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
5954 marked if the entry identifier is marked.
5955
5956 2010-05-10 Richard Guenther <rguenther@suse.de>
5957
5958 * c-common.c (struct c_common_attributes): Add fnspec attribute.
5959 (handle_fnspec_attribute): New function.
5960 * gimple.h (gimple_call_return_flags): Declare.
5961 (gimple_call_arg_flags): Likewise.
5962 * gimple.c (gimple_call_arg_flags): New function.
5963 (gimple_call_return_flags): Likewise.
5964 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
5965 New argument flags.
5966 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
5967 return value flags.
5968 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
5969 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
5970 main work to ...
5971 (make_heapvar_for): ... this new function.
5972 (handle_rhs_call): Handle fnspec attribute argument specifiers.
5973 (handle_lhs_call): Likewise.
5974 (find_func_aliases): Adjust.
5975
5976 2010-05-10 Richard Guenther <rguenther@suse.de>
5977
5978 PR tree-optimization/44050
5979 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
5980
5981 2010-05-10 Wei Guozhi <carrot@google.com>
5982
5983 PR target/42879
5984 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
5985
5986 2010-05-09 Joseph Myers <joseph@codesourcery.com>
5987
5988 PR c/10676
5989 * c-typeck.c (lookup_field): Take a type directly. Update
5990 recursive calls.
5991 (build_component_ref): Update call to lookup_field.
5992 (set_init_label): Use lookup_field to find initialized field.
5993 Handle returned list of fields like a sequence of designators.
5994
5995 2010-05-09 Richard Guenther <rguenther@suse.de>
5996
5997 PR middle-end/44024
5998 * fold-const.c (tree_single_nonzero_warnv_p): Properly
5999 handle &FUNCTION_DECL.
6000
6001 2010-05-09 Joseph Myers <joseph@codesourcery.com>
6002
6003 PR c/4784
6004 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
6005 structures and unions recursively.
6006 (detect_field_duplicates): Move duplicate detection with a hash to
6007 detect_field_duplicates_hash. Always use a hash if anonymous
6008 structures or unions are present.
6009 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
6010 give errors.
6011
6012 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
6013
6014 PR target/44046
6015 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
6016 detect Atom, Core 2 and Core i7.
6017
6018 2010-05-09 Richard Guenther <rguenther@suse.de>
6019
6020 * gcc.c (store_arg): Handle temporary file deletion for
6021 joined arguments.
6022
6023 2010-05-09 Richard Guenther <rguenther@suse.de>
6024
6025 PR middle-end/44043
6026 * ipa-inline.c (estimate_function_body_sizes): Return after
6027 disregarding inline limits.
6028
6029 2010-05-09 Richard Guenther <rguenther@suse.de>
6030
6031 * gcc.c (store_arg): Revert last change.
6032
6033 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
6034
6035 PR middle-end/28685
6036 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
6037 (optimize_ops_list): Call it.
6038
6039 2010-05-08 Richard Guenther <rguenther@suse.de>
6040
6041 PR tree-optimization/44030
6042 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
6043 NECESSARY flag if we propagate from a inserted expression.
6044
6045 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6046
6047 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
6048 domain types as equal if they are both PLACEHOLDER_EXPRs.
6049
6050 2010-05-08 Richard Guenther <rguenther@suse.de>
6051
6052 * lto-wrapper.c (run_gcc): Remove linker output from
6053 command line for LTRANS invocation.
6054
6055 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
6056
6057 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6058 lto-macho as lto_binary_reader.
6059 * target.h (struct gcc_target): New hooks lto_start and lto_end.
6060 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
6061 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
6062 in lto_start and lto_end calls.
6063 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
6064 magic numbers.
6065 (scan_prog_file): Update is_elf_or_coff call.
6066 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
6067
6068 * collect2.c (main): Fix enum comparison.
6069
6070 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
6071 Add prototypes.
6072 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
6073 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
6074 and TARGET_ASM_LTO_END.
6075 * darwin.c: Include obstack.h and lto-streamer.h.
6076 (lto_section_names_offset, lto_section_names_obstack,
6077 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
6078 global variables.
6079 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
6080 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
6081 to a temporary file.
6082 (darwin_asm_lto_end): New function. Restore asm_out_file.
6083 (darwin_asm_named_section): For LTO sections, replace the name with
6084 the offset of the section name in a string table, and build this
6085 table.
6086 (darwin_file_start): Initialize global vars for LTO support.
6087 (darwin_file_end): If output to asm_out_file was redirected, append it
6088 to the proper asm_out_file here. Add the section names section.
6089
6090 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
6091
6092 * c-pragma.c (pending_weak_d, pending_weak): New.
6093 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
6094 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
6095 handle_pragma_weak): Update the uses of pending_weaks.
6096
6097 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6098
6099 PR documentation/44016
6100 * doc/standards.texi (Standards): Link to unversioned
6101 cxx0x_status.html page.
6102
6103 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
6104
6105 PR target/43708
6106 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
6107 in addition to TREE_USED, to avoid "set but unused" warnings.
6108
6109 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
6110
6111 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
6112 (is_loop_prefetching_profitable): Do not insert prefetches
6113 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
6114 times the prefetch ahead distance.
6115
6116 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
6117
6118 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
6119 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
6120 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
6121 the unroll_factor.
6122
6123 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
6124
6125 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
6126 a diagnostic info when the insn-to-mem ratio is too small.
6127
6128 2010-05-07 Richard Guenther <rguenther@suse.de>
6129
6130 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
6131 the linker plugin.
6132 (store_arg): Queue temp_filename for deletion instead of
6133 the whole argument.
6134
6135 2010-05-07 Richard Guenther <rguenther@suse.de>
6136
6137 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
6138 (run_gcc): Handle LTRANS phase invocation.
6139 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
6140
6141 2010-05-07 Jakub Jelinek <jakub@redhat.com>
6142
6143 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
6144 this is also meaningful on PARM_DECLs and RESULT_DECLs.
6145
6146 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6147
6148 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
6149
6150 2010-05-07 Richard Guenther <rguenther@suse.de>
6151
6152 PR tree-optimization/44020
6153 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
6154 code when PRE is not yet initialized.
6155
6156 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6157
6158 * config/mips/dbxmdebug.h: Remove.
6159 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
6160
6161 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
6162
6163 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
6164 with null pointer and also warn about ordered comparison of zero with
6165 pointer if -Wextra.
6166
6167 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6168
6169 * graphite-blocking.c
6170 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
6171 * graphite-clast-to-gimple.c
6172 (clast_to_gcc_expression): Same.
6173 (precision_for_value): Same.
6174 (precision_for_interval): Same.
6175 (gcc_type_for_interval): Same.
6176 (graphite_create_new_guard): Same.
6177 (compute_bounds_for_level): Same.
6178 (graphite_create_new_loop_guard): Same.
6179 * graphite-interchange.c
6180 (build_linearized_memory_access): Same.
6181 (pdr_stride_in_loop): Same.
6182 (memory_strides_in_loop_1): Same.
6183 (memory_strides_in_loop): Same.
6184 (extend_scattering): Same.
6185 (psct_scattering_dim_for_loop_depth): Same.
6186 (pbb_number_of_iterations): Same.
6187 * graphite-poly.h
6188 (debug_iteration_domains): Same.
6189 * graphite-ppl.c
6190 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6191 (ppl_set_inhomogeneous_gmp): Same.
6192 (ppl_strip_loop): Same.
6193 (ppl_lexico_compare_linear_expressions): Same.
6194 (ppl_read_polyhedron_matrix): Same.
6195 (ppl_max_for_le_pointset): Same.
6196 * graphite-ppl.h
6197 (ppl_read_polyhedron_matrix): Same.
6198 (tree_int_to_gmp): Same.
6199 (gmp_cst_to_tree): Same.
6200 (ppl_set_inhomogeneous): Same.
6201 (ppl_set_inhomogeneous_tree): Same.
6202 (ppl_set_coef): Same.
6203 (ppl_set_coef_tree): Same.
6204 * graphite-sese-to-poly.c
6205 (build_pbb_scattering_polyhedrons): Same.
6206 (build_scop_scattering): Same.
6207 (scan_tree_for_params_right_scev): Same.
6208 (scan_tree_for_params): Same.
6209 (find_params_in_bb): Same.
6210 (find_scop_parameters): Same.
6211 (add_upper_bounds_from_estimated_nit): Same.
6212 (build_loop_iteration_domains): Same.
6213 (add_condition_to_domain): Same.
6214 (pdr_add_memory_accesses): Same.
6215
6216 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6217
6218 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
6219 CLooG's value_* macros to their respective mpz_* counterparts.
6220 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
6221 (graphite_create_new_loop_guard): Same.
6222 * graphite-interchange.c (build_linearized_memory_access): Same.
6223 (pdr_stride_in_loop): Same.
6224 (memory_strides_in_loop_1): Same.
6225 (1st_interchange_profitable_p): Same.
6226 * graphite-poly.c (extend_scattering): Same.
6227 (psct_scattering_dim_for_loop_depth): Same.
6228 (pbb_number_of_iterations): Same.
6229 (pbb_number_of_iterations_at_time): Same.
6230 * graphite-poly.h (new_1st_loop): Same.
6231 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
6232 (oppose_constraint): Same.
6233 (insert_constraint_into_matrix): Same.
6234 (ppl_set_inhomogeneous_gmp): Same.
6235 (ppl_set_coef_gmp): Same.
6236 (ppl_strip_loop): Same.
6237 (ppl_lexico_compare_linear_expressions): Same.
6238 (ppl_max_for_le_pointset): Same.
6239 (ppl_min_for_le_pointset): Same.
6240 (ppl_build_realtion): Same.
6241 * graphite-ppl.h (gmp_cst_to_tree): Same.
6242 (ppl_set_inhomogeneous): Same.
6243 (ppl_set_inhomogeneous_tree): Same.
6244 (ppl_set_coef): Same.
6245 (ppl_set_coef_tree): Same.
6246 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
6247 (build_scop_scattering): Same.
6248 (add_value_to_dim): Same.
6249 (scan_tree_for_params_right_scev): Same.
6250 (scan_tree_for_params_int): Same.
6251 (scan_tree_for_params): Same.
6252 (find_params_in_bb): Same.
6253 (find_scop_parameters): Same.
6254 (add_upper_bounds_from_estimated_nit): Same.
6255 (build_loop_iteration_domains): Same.
6256 (create_linear_expr_from_tree): Same.
6257 (add_condition_to_domain): Same.
6258 (pdr_add_memory_accesses): Same.
6259
6260 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
6261 Jason Merrill <jason@redhat.com>
6262
6263 * c-common.c (c_common_reswords): Add nullptr.
6264 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
6265 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
6266 (gen_type_die_with_usage): Likewise.
6267 * dbxout.c (dbxout_type): Likewise.
6268 * sdbout.c (plain_type_1): Likewise.
6269
6270 2010-05-06 Jason Merrill <jason@redhat.com>
6271
6272 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
6273 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
6274 ret appropriately.
6275 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
6276
6277 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
6278 stripping WITH_SIZE_EXPR.
6279 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
6280 change.
6281
6282 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6283
6284 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
6285 list of obsolete configurations.
6286 Disabled check for obsolete configurations.
6287 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
6288 Removed support for previous versions.
6289 * config/mips/iris.h: Removed.
6290 * config/mips/iris5.h: Removed.
6291 * config/mips/iris6.h: Merged old iris.h contents.
6292 (TARGET_IRIX): Removed.
6293 (DRIVER_SELF_SPECS): Removed mabi=32.
6294 (IDENT_ASM_OP): Removed undef.
6295 (STARTFILE_SPEC): Removed mabi=32.
6296 (ENDFILE_SPEC): Likewise.
6297 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
6298 (MACHINE_TYPE): Update for IRIX 6.5.
6299 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
6300 TARGET_IRIX by TARGET_IRIX6.
6301 (mips_file_start): Likewise.
6302 (mips_output_external): Remove IRIX 5/6 O32 support.
6303 (mips_output_function_prologue): Likewise.
6304 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
6305 TARGET_IRIX6.
6306 (TARGET_CPU_CPP_BUILTINS): Likewise.
6307 (TARGET_IRIX): Removed.
6308 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
6309 (MULTILIB_DIRNAMES): Removed 32.
6310 (MULTILIB_OSDIRNAMES): Removed ../lib.
6311 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
6312 (Specific, mips-sgi-irix5): Document removal.
6313 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
6314 Remove references to older IRIX 6 releases and the O32 ABI.
6315
6316 2010-05-06 Jakub Jelinek <jakub@redhat.com>
6317
6318 PR bootstrap/43994
6319 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
6320 instead of DF_REF_REAL_REG.
6321
6322 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
6323
6324 PR target/43888
6325 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
6326 handling to still return true for x64 targets.
6327
6328 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
6329
6330 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
6331
6332 2010-05-06 Jan Hubicka <jh@suse.cz>
6333
6334 PR tree-optimization/43791
6335 * ipa-inline.c (update_caller_keys): Remove bogus
6336 disregard_inline_limits check.
6337
6338 2010-05-06 Michael Matz <matz@suse.de>
6339
6340 PR tree-optimization/43984
6341 * tree-ssa-pre.c (inserted_phi_names): Remove.
6342 (inserted_exprs): Change to bitmap.
6343 (create_expression_by_pieces): Set bits, don't append to vector.
6344 (insert_into_preds_of_block): Don't handle inserted_phi_names.
6345 (eliminate): Don't look at inserted_phi_names, remove deleted
6346 insns from inserted_exprs.
6347 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
6348 (init_pre, fini_pre): Allocate and free bitmaps.
6349 (execute_pre): Insert insns on edges before elimination.
6350
6351 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
6352
6353 * tree.c (initializer_zerop): Handle STRING_CST.
6354
6355 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6356
6357 PR 40989
6358 * doc/invoke.texi (Wimplicit): Document as C only.
6359 * opts.c (common_handle_option): Add argument kind.
6360 (handle_option): Rename as read_cmdline_option. Factor out code to...
6361 (handle_option): ... here. New.
6362 (handle_options): Rename as read_cmdline_options.
6363 (decode_options): Update call.
6364 (set_option): Use option index instead of option pointer. Classify
6365 diagnostics correctly.
6366 (enable_warning_as_error): Call handle_option.
6367 * opts.h (set_option): Update declaration.
6368 (handle_option): Declare.
6369 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
6370 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
6371 * c-opts.c (set_Wimplicit): Delete.
6372 (c_family_lang_mask): New static constant.
6373 (c_common_handle_option): Add argument kind. Use handle_option
6374 instead of set_Wimplicit.
6375 (c_common_post_options): warn_implicit and warn_implicit_int
6376 are disabled by default.
6377 * c-common.c (warn_implicit): Do not define here.
6378 * c-common.h (warn_implicit): Do not declare here.
6379 (c_common_handle_option): Update declaration.
6380 * lto-opts.c (lto_reissue_options): Update call to set_option.
6381
6382 2010-05-06 Richard Guenther <rguenther@suse.de>
6383
6384 PR tree-optimization/43571
6385 * domwalk.c (walk_dominator_tree): Walk the dominator
6386 sons in more optimal order.
6387
6388 2010-05-06 Richard Guenther <rguenther@suse.de>
6389
6390 PR tree-optimization/43934
6391 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
6392 (stmt_cost): Likewise.
6393 (extract_true_false_args_from_phi): New helper.
6394 (determine_max_movement): For PHI nodes verify we can hoist them
6395 and compute their cost.
6396 (determine_invariantness_stmt): Handle PHI nodes.
6397 (move_computations_stmt): Likewise. Hoist PHI nodes in
6398 if-converted form using COND_EXPRs.
6399 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
6400 (tree_ssa_lim): Likewise.
6401 * tree-flow.h (tree_ssa_lim): Adjust prototype.
6402 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
6403
6404 2010-05-06 Richard Guenther <rguenther@suse.de>
6405
6406 PR tree-optimization/43987
6407 * tree-ssa-structalias.c (could_have_pointers): For possibly
6408 address-taken variables force pointers to be recorded.
6409 (create_variable_info_for_1): Likewise.
6410 (push_fields_onto_fieldstack): Pass in wheter all fields
6411 must have pointers.
6412 (find_func_aliases): Query types instead of vars whether
6413 they contain pointers where appropriate.
6414
6415 2010-05-06 Jan Hubicka <jh@suse.cz>
6416
6417 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
6418 (record_reference, mark_address, mark_load, mark_store): Record
6419 references.
6420 (record_references_in_initializer): Update call of record_references.
6421 (rebuild_cgraph_edges): Remove all references before rebuiding.
6422 * cgraph.c (cgraph_create_node): Clear ref list.
6423 (cgraph_remove_node): Remove references.
6424 (dump_cgraph_node): Dump references.
6425 (cgraph_clone_node): Clone references.
6426 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
6427 (struct cgraph_node, varpool_node): Add ref_lst.
6428 * ipa-ref.c: New file.
6429 * ipa-ref.h: New file.
6430 * ipa-ref-inline.h: New file.
6431 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
6432 (referenced_from_other_partition_p): New function.
6433 (lto_output_varpool_node): Take set arugment; call
6434 referenced_from_other_partition.
6435 (lto_output_ref): New.
6436 (add_references): New.
6437 (output_refs): New.
6438 (output_cgraph): Compute boundary based on references; output refs.
6439 (output_varpool): Accept cgraph_node_set argument.
6440 (input_ref): New.
6441 (input_refs): New.
6442 (input_cgraph): Call input_refs.
6443 * lto-section-in.c (lto_section_name): Add refs.
6444 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
6445 (ipa-ref.o): New file.
6446 * varpool.c (varpool_node): Clear ipa ref list.
6447 (varpool_remove_node): Remove references.
6448 (dump_varpool_node): Dump references.
6449 (varpool_assemble_decl): Only compile finalized ones.
6450 (varpool_extra_name_alias): Initialize ref list.
6451 * lto-streamer.c (lto-get_section_name): Add .refs section.
6452 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
6453 (referenced_from_other_partition_p): Declared.
6454
6455 2010-05-06 Ira Rosen <irar@il.ibm.com>
6456
6457 PR tree-optimization/43901
6458 * tree-vect-stmts.c (vectorizable_call): Assert that vector
6459 type is not NULL if it's transformation phase, and return
6460 FALSE if it's analysis.
6461 (vectorizable_conversion, vectorizable_operation,
6462 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
6463
6464 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
6465
6466 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
6467 Delete.
6468 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
6469 New define.
6470 * config/mips/mips-protos.h
6471 (mips_small_register_classes_for_mode_p): Delete prototype.
6472
6473 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
6474
6475 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
6476 * config/arm/arm.c (multiple_operation_profitable_p,
6477 compute_offset_order): New static functions.
6478 (load_multiple_sequence, store_multiple_sequence): Use them.
6479 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
6480 memory offsets, not register numbers.
6481 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
6482
6483 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
6484
6485 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
6486 (get_pending_sizes, put_pending_size, put_pending_sizes):
6487 Update the uses of pending_sizes.
6488 * c-decl.c (store_parm_decls): Likewise.
6489 * c-tree.h (struct c_arg_info): Likewise.
6490 * tree.h: Update the prototype for get_pending_sizes and
6491 put_pending_sizes.
6492
6493 2010-05-05 Jason Merrill <jason@redhat.com>
6494
6495 PR debug/43370
6496 * c-common.c (handle_aligned_attribute): Respect
6497 ATTR_FLAG_TYPE_IN_PLACE.
6498
6499 PR testsuite/43758
6500 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
6501 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6502 (TARGET_INITIALIZER): Use it.
6503 * c-common.c (attribute_takes_identifier_p): Call it.
6504 * c-common.h: Update prototype.
6505 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
6506 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6507
6508 2010-05-05 Jakub Jelinek <jakub@redhat.com>
6509
6510 PR debug/43950
6511 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
6512 DW_ID_down_case for Fortran compilation units.
6513
6514 2010-05-05 Jan Hubicka <jh@suse.cz>
6515
6516 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
6517 handle aliases.
6518
6519 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
6520
6521 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
6522 a variable-sized RESULT_DECL.
6523
6524 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
6525
6526 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
6527
6528 2010-05-05 Jason Merrill <jason@redhat.com>
6529
6530 PR c++/43787
6531 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
6532 returns GS_OK.
6533 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
6534
6535 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
6536 Jakub Jelinek <jakub@redhat.com>
6537
6538 PR debug/43478
6539 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
6540 (dead_debug_init, dead_debug_finish): New functions.
6541 (dead_debug_add, dead_debug_insert_before): Likewise.
6542 (df_note_bb_compute): Initialize a dead_debug object, add dead
6543 debug uses to it, insert debug bind insns before death insns,
6544 reset debug insns that refer to pending uses at the end.
6545 * rtl.h (make_debug_expr_from_rtl): New prototype.
6546 * varasm.c (make_debug_expr_from_rtl): New function.
6547
6548 2010-05-05 Jan Hubicka <jh@suse.cz>
6549
6550 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
6551 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
6552 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
6553 lto_varpool_encoder_deref, lto_varpool_encoder_size,
6554 lto_varpool_encoder_encode_initializer_p,
6555 lto_set_varpool_encoder_encode_initializer): New functions.
6556 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
6557 call output_varpool.
6558 (input_varpool_node): Do not always set analyzed.
6559 (input_cgraph_1): Return vector of cgraph nodes.
6560 (input_varpool_1): Return vector of varpools.
6561 (input_cgraph): Free the vectors.
6562 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6563 output only initializers needed.
6564 (lto_output): Only call output_cgraph.
6565 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
6566 * lto-section-out.c (lto_new_out_decl_state): Initialize
6567 state->varpool_node_encoder.
6568 * lto-streamer.h (lto_varpool_encoder_d): New.
6569 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
6570 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
6571 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
6572 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
6573 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
6574 Declare.
6575 (output_varpool, input_varpool): Remove declarations.
6576
6577 2010-05-05 Jan Hubicka <jh@suse.cz>
6578
6579 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
6580 with body can prevail.
6581
6582 2010-05-05 Jan Hubicka <jh@suse.cz>
6583
6584 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
6585 size.
6586
6587 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6588
6589 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
6590
6591 * gengtype.h (erro_at_line): Constify pos argument.
6592
6593 * gengtype.c: Include hashtab.h.
6594 (enum gc_used): Document GC_MAYBE_POINTED_TO.
6595 (error_at_line): Constify pos argument.
6596 (do_typedef): Initialize p->opt field.
6597 (get_file_gtfilename): Fix comment typo.
6598 (struct walk_type_data): Constify line field.
6599 (get_output_file_for_structure): New function.
6600 (write_local_func_for_structure): Constify orig_s argument.
6601 Use get_output_file_for_structure.
6602 (write_func_for_structure): Use get_output_file_for_structure.
6603 (INDENT): New define.
6604 (dump_pair, dump_type, dump_type_list, dump_typekind)
6605 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
6606 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
6607 functions.
6608 (seen_types): New variable.
6609 (main): New variable do_dump. Process "-d" command line option.
6610 Call dump_everything if dump requested.
6611
6612 2010-05-05 Jakub Jelinek <jakub@redhat.com>
6613
6614 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
6615 in a temporary instead of invoking the macro multiple times.
6616 (track_expr_p): Likewise.
6617
6618 2010-05-04 Neil Vachharajani <nvachhar@google.com>
6619
6620 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
6621 per new semantics.
6622 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
6623 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
6624 conditions for printing notes.
6625 * common.opt (-Wcoverage-mismatch): Allow negative, default to
6626 true, update documentation.
6627 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
6628
6629 2010-05-04 Jakub Jelinek <jakub@redhat.com>
6630
6631 PR c/43981
6632 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
6633 on dimen.
6634
6635 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
6636
6637 PR target/43799
6638 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
6639 (*sse_prologue_save_insn1): Likewise.
6640 (SSE prologue save splitter): Likewise.
6641
6642 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
6643
6644 * tree.c (free_lang_data_in_one_sizepos): New inline function.
6645 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
6646 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
6647 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
6648 all decls. Call it on DECL_FIELD_OFFSET of fields.
6649 (find_decls_types_r): Follow DECL_VALUE_EXPR.
6650 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
6651
6652 2010-05-04 Martin Jambor <mjambor@suse.cz>
6653
6654 * tree-sra.c (build_access_from_expr_1): The first parameter type
6655 changed to simple tree.
6656 (build_access_from_expr): Likewise, gsi parameter was eliminated.
6657 (scan_assign_result): Renamed to assignment_mod_result, enum elements
6658 renamed as well.
6659 (build_accesses_from_assign): Removed all parameters except for a
6660 simple gimple statement. Now returns a simple bool.
6661 (scan_function): All non-analysis parts moved to separate functions
6662 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
6663 parameters and updated both callers.
6664 (sra_modify_expr): Removed parameter data.
6665 (sra_modify_function_body): New function.
6666 (perform_intra_sra): Call sra_modify_function_body to modify the
6667 function body.
6668 (replace_removed_params_ssa_names): Parameter data changed into
6669 adjustments vector.
6670 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
6671 changed the parameter dont_convert to convert with the opposite
6672 meaning.
6673 (sra_ipa_modify_assign): Parameter data changed into adjustments
6674 vector, return value changed to bool.
6675 (ipa_sra_modify_function_body): New function.
6676 (sra_ipa_reset_debug_stmts): Updated a comment.
6677 (modify_function): Use ipa_sra_modify_function_body to modify function
6678 body.
6679
6680 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
6681
6682 PR middle-end/43671
6683 * alias.c (true_dependence): Handle the same VALUE in x and mem.
6684 (canon_true_dependence): Likewise.
6685 (write_dependence_p): Likewise.
6686
6687 2010-05-04 Jan Hubicka <jh@suse.cz>
6688
6689 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
6690 * cgraphbuild.c: Include ipa-utils.h
6691 (record_reference_ctx): New struct.
6692 (record_reference): Simplify to work on initializers; not statements.
6693 (mark_address, mark_load, mark_store): New.
6694 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
6695 walk PHI nodes too.
6696 (record_references_in_initializer): Update use of record_reference.
6697 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
6698 walk PHI nodes too.
6699
6700 2010-05-04 Jan Hubicka <jh@suse.cz>
6701
6702 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
6703 node will be removed anyway.
6704 (lto_varpool_replace_node): Allow also unanalyzed nodes;
6705 relink aliases of node into prevailing node.
6706 * varpool.c (varpool_remove_node): Remove aliases properly;
6707 when removing node, remove all its aliases too; remove DECL_INITIAL
6708 of removed node; ggc_free the varpool node.
6709
6710 2010-05-04 Richard Guenther <rguenther@suse.de>
6711
6712 PR tree-optimization/43879
6713 * tree-ssa-structalias.c (alias_get_name): Use
6714 DECL_ASSEMBLER_NAME if available.
6715 (create_function_info_for): Return the varinfo node.
6716 (ipa_pta_execute): Associate same-body aliases and extra names
6717 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
6718
6719 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
6720
6721 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
6722
6723 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
6724
6725 PR bootstrap/43964
6726 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
6727 only if HONOR_REG_ALLOC_ORDER is not defined.
6728
6729 2010-05-04 Richard Guenther <rguenther@suse.de>
6730
6731 PR tree-optimization/43949
6732 * tree-vrp.c (extract_range_from_binary_expr): Only handle
6733 TRUNC_MOD_EXPR.
6734
6735 2010-04-26 Jason Merrill <jason@redhat.com>
6736
6737 * c.opt (-fstrict-enums): New.
6738 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
6739
6740 2010-05-03 David Ung <davidu@mips.com>
6741 James E. Wilson <wilson@codesourcery.com>
6742
6743 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
6744 emit the trap instruction before the divide for TUNE_74K.
6745
6746 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
6747
6748 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
6749 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
6750 based on the above, for new target hook.
6751
6752 * hooks.c (hook_bool_mode_true): New generic hook.
6753 * hooks.h (hook_bool_mode_true): Add prototype.
6754
6755 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
6756 target hook.
6757 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
6758 target hook, set to hook_bool_mode_false.
6759 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
6760 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
6761 with targetm.small_register_classes_for_mode_p.
6762 (find_reusable_reload): Likewise.
6763 (combine_reloads): Likewise.
6764 * reload1.c (reload_as_needed): Likewise.
6765 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
6766 * ifcvt.c (noce_process_if_block, check_cond_move_block,
6767 dead_or_predicable): Likewise.
6768 * regmove.c (optimize_reg_copy_1): Likewise.
6769 * calls.c (prepare_call_address): Likewise.
6770 (precompute_register_parameters): Likewise.
6771
6772 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
6773 hook definition.
6774 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
6775 implementation of the hook that considers all register classes
6776 small except for SH64.
6777 (sh_override_options): Use the new hook.
6778 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
6779 Add prototype.
6780
6781 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
6782 hook definition.
6783 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
6784 implementation of the hook that considers all register classes
6785 small for THUMB1.
6786 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
6787 Add prototype.
6788
6789 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
6790 hook definition.
6791 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
6792 implementation of the hook that considers all register classes
6793 small for MIPS16.
6794 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
6795 Add prototype.
6796
6797 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
6798 hook definition.
6799 * config/m32c/m32c.h: Likewise.
6800 * config/pdp11/pdp11.h: Likewise.
6801 * config/avr/avr.h: Likewise.
6802 * config/xtensa/xtensa.h: Likewise.
6803 * config/m68hc11/m68hc11.h: Likewise.
6804 * config/mn10300/mn10300.h: Likewise.
6805 * config/mcore/mcore.h: Likewise.
6806 * config/h8300/h8300.h: Likewise.
6807 * config/bfin/bfin.h: Likewise.
6808
6809 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
6810 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
6811
6812 2010-05-03 Anatoly Sokolov <aesok@post.ru>
6813
6814 * double-int.h (tree_to_double_int): Remove macro.
6815 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
6816 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6817 (tree_to_double_int): New function.
6818 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
6819 Move ...
6820 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6821
6822 2010-05-03 Richard Guenther <rguenther@suse.de>
6823
6824 PR tree-optimization/43971
6825 * tree-ssa-structalias.c (get_constraint_for_1): Fix
6826 constraints in the !flag_delete_null_pointer_checks case.
6827
6828 2010-05-03 Jakub Jelinek <jakub@redhat.com>
6829
6830 PR debug/43972
6831 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
6832 result mode matches original rtl mode.
6833
6834 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
6835
6836 PR target/43888
6837 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
6838
6839 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6840
6841 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
6842 when processing flag options.
6843
6844 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6845
6846 * gcov-iov.c (main): Change format string placeholder
6847 from %#08x to 0x%08x.
6848 * genchecksum.c (dosum): Change format string placeholder
6849 from %#02x to 0x%02x.
6850
6851 2010-05-02 Richard Guenther <rguenther@suse.de>
6852
6853 PR tree-optimization/43879
6854 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
6855
6856 2010-05-02 Bruno Haible <bruno@clisp.org>
6857
6858 * doc/extend.texi (Function Attributes): Fix a typo.
6859
6860 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6861
6862 Revert:
6863 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
6864 placeholder from 0x%x to %#x.
6865 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6866 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6867 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6868 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6869 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6870 * config/i386/i386.c (ix86_target_string): Ditto.
6871 * config/i386/i386.c (output_pic_addr_const): Ditto.
6872 (print_operand): Ditto.
6873
6874 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6875
6876 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
6877 placeholder from 0x%x to %#x.
6878 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
6879 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
6880 (ASM_OUTPUT_DEBUG_DATA): Ditto.
6881 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
6882 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
6883 * optc-gen.awk: Ditto.
6884 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
6885 (HOST_WIDE_INT_PRINT_HEX): Ditto.
6886 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
6887 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6888
6889 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6890
6891 * target.h (struct calls): Add function_value_regno_p field.
6892 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6893 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
6894 * targhooks.c (default_function_value_regno_p): New function.
6895 * targhooks.h (default_function_value_regno_p): Declare function.
6896 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
6897 * builtins.c. (apply_result_size): (Ditto.).
6898 * combine.c. (likely_spilled_retval_p): (Ditto.).
6899 * mode-switching.c. Include 'target.h'.
6900 (create_pre_exit): Use function_value_regno_p hook.
6901 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
6902 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
6903 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
6904
6905 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
6906 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
6907 (ix86_function_value_regno_p): Declare as static, change argument
6908 type to const unsigned int.
6909 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
6910
6911 2010-05-01 Richard Guenther <rguenther@suse.de>
6912
6913 PR tree-optimization/43949
6914 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
6915 types.
6916 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
6917
6918 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6919
6920 * rtl.h (CONST_DOUBLE_P): Define.
6921 (rtx_to_double_int): Declare.
6922 * emit-rtl.c (rtx_to_double_int): New function.
6923 * dwarf2out.c (insert_double): New function.
6924 (loc_descriptor, add_const_value_attribute): Clean up, use
6925 rtx_to_double_int and insert_double functions.
6926
6927 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
6928
6929 * doc/extend.texi (Inline): Add missing return keyword to examples.
6930 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
6931 "command-line".
6932
6933 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
6934
6935 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
6936 the variable part of the offset as well. Use highest_pow2_factor for
6937 all alignment checks.
6938
6939 2010-04-30 Richard Guenther <rguenther@suse.de>
6940
6941 PR tree-optimization/43879
6942 * tree-ssa-structalias.c (type_could_have_pointers): Functions
6943 can have pointers.
6944
6945 2010-04-30 Jan Hubicka <jh@suse.cz>
6946
6947 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
6948 varpool.
6949 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
6950
6951 2010-04-30 Jan Hubicka <jh@suse.cz>
6952
6953 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
6954 New.
6955 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
6956 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
6957 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
6958 cgraph_node_set_needs_ltrans_p): Remove.
6959
6960 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6961
6962 * sdbout.c: Include vec.h, do not include varray.h.
6963 (deferred_global_decls, sdbout_global_decl,
6964 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
6965 * toplev.c: Do not include varray.h.
6966 (dump_memory_report): Do not dump VARRAY statistics.
6967 * gengtype.c (open_base_file): Ignore varray.h.
6968 * Makefile.in: Update for abovementioned changes.
6969 Remove all traces of varray.c and varray.h.
6970 * varray.c: Remove file.
6971 * varray.h: Remove file.
6972
6973 2010-04-30 Jan Hubicka <jh@suse.cz>
6974
6975 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
6976 references.
6977
6978 2010-04-30 Jan Hubicka <jh@suse.cz>
6979
6980 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
6981 needed.
6982
6983 2010-04-30 Richard Guenther <rguenther@suse.de>
6984
6985 * tree-ssa-structalias.c (get_constraint_for_1): Generate
6986 constraints for CONSTRUCTOR.
6987
6988 2010-04-30 Richard Guenther <rguenther@suse.de>
6989
6990 PR lto/43946
6991 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
6992 first after all lowering passes.
6993
6994 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6995
6996 * toplev.c: Include varray.h for statistics dumping.
6997 * tree.h: Do not declare varray_head_tag.
6998 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
6999 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
7000 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
7001 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
7002 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
7003 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
7004 c-common.c, c-common.h, reg-stack.c, basic-block.h,
7005 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
7006 include varray.h.
7007 * Makefile.in: Update for abovementioned changes.
7008
7009 2010-04-30 Jakub Jelinek <jakub@redhat.com>
7010
7011 PR debug/43942
7012 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
7013
7014 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7015
7016 * config/picochip/picochip.c (picochip_legitimize_address): Define.
7017 Use this function to do machine-specific conversion.
7018 (picochip_legitimize_reload_address): Likewise.
7019 (picochip_legitimate_address_p): Check valid base register only if
7020 strict.
7021 (picochip_check_conditional_copy): Check for modw only if opnd is
7022 register.
7023 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
7024 to call the function in c.
7025 * config/picochip/picochip-protos.h
7026 (picochip_legitimize_reload_address): Define.
7027 * config/picochip/picochip.md (supported_compare1): Define.
7028
7029 2010-04-30 Jan Hubicka <jh@suse.cz>
7030
7031 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
7032 (cgraph_global_info): Remove inlined.
7033 (LTO_cgraph_tag_names): Remove.
7034 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
7035 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
7036 simplify cgraph tags and document.
7037 (lto_output_node): Use only LTO_cgraph_unavail_node and
7038 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
7039 for_functions_valid, global info, process and output flags.
7040 (input_overwrite_node): Initialize estimated stack size and
7041 estimated growth. Do not read flags we no longer store.
7042 (input_node): Likewise do not read info no longer stored.
7043 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
7044 flag.
7045
7046 2010-04-30 Richard Guenther <rguenther@suse.de>
7047
7048 PR tree-optimization/43879
7049 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7050 handle non-zero initializers.
7051
7052 2010-04-30 Richard Guenther <rguenther@suse.de>
7053
7054 * builtins.c (fold_builtin_1): Delete free (0).
7055
7056 2010-04-29 Jan Hubicka <jh@suse.cz>
7057
7058 * gengtype.c (open_base_files): Add lto-streamer.h
7059 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
7060 (pass_ipa_cp): GGC collect.
7061 * toplev. (compile_file): Do not output symbols.
7062 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
7063 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
7064 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
7065 * lto-section-in.c: Include ggc.h
7066 (lto_new_in_decl_state): Alloc in GGC.
7067 (lto_delete_in_decl_state): Likewise.
7068 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
7069 Collect.
7070
7071 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
7072
7073 PR target/42895
7074 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
7075 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
7076 (HONOR_REG_ALLOC_ORDER): Describe new macro.
7077 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
7078 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
7079 account only if HONOR_REG_ALLOC_ORDER is not defined.
7080 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
7081 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
7082
7083 2010-04-29 Jon Grant <04@jguk.org>
7084
7085 * collect2.c (vflag): Change type from int to bool.
7086 (debug): Likewise.
7087 (helpflag): New global bool.
7088 (main): Set vflag and debug with boolean, not integer truth values.
7089 Accept new "--help" option and output usage text if found.
7090 * collect2.h (vflag): Update prototype.
7091 (debug): Likewise.
7092
7093 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
7094
7095 PR bootstrap/43936
7096 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
7097
7098 2010-04-29 Richard Guenther <rguenther@suse.de>
7099
7100 PR bootstrap/43935
7101 * plugin.h (invoke_plugin_callbacks): Annotate arguments
7102 with ATTRIBUTE_UNUSED.
7103
7104 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
7105
7106 PR target/43921
7107 * config/i386/i386.c (get_some_local_dynamic_name): Replace
7108 INSN_P with NONDEBUG_INSN_P.
7109 (distance_non_agu_define): Likewise.
7110 (distance_agu_use): Likewise.
7111
7112 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
7113
7114 From Dominique d'Humieres <dominiq@lps.ens.fr>
7115 PR bootstrap/43858
7116 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
7117 test_set.
7118
7119 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
7120
7121 * plugin.h (invoke_plugin_callbacks): New inline function.
7122 * plugin.c (flag_plugin_added): New global flag.
7123 (add_new_plugin): Initialize above flag.
7124 (invoke_plugin_callbacks): Rename to ...
7125 (invoke_plugin_callbacks_full): ... this.
7126
7127 2010-04-28 Jan Hubicka <jh@suse.cz>
7128
7129 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
7130 (lto_varpool_replace_node): New.
7131 (lto_symtab_resolve_symbols): Resolve varpool nodes.
7132 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
7133 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
7134 * cgraph.h (varpool_node_ptr): New type.
7135 (varpool_node_ptr): New vector.
7136 (varpool_node_set_def): New structure.
7137 (varpool_node_set): New type.
7138 (varpool_node_set): New vector.
7139 (varpool_node_set_element_def): New structure.
7140 (varpool_node_set_element, const_varpool_node_set_element): New types.
7141 (varpool_node_set_iterator): New type.
7142 (varpool_node): Add prev pointers, add used_from_other_partition,
7143 in_other_partition.
7144 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
7145 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
7146 varpool_get_node, varpool_remove_node): Declare.
7147 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
7148 varpool_node_set_size): New inlines.
7149 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
7150 * tree-pass.h (varpool_node_set_def): Forward declare.
7151 (ipa_opt_pass_d): Summary writting takes vnode sets too.
7152 (ipa_write_optimization_summaries): Update prototype.
7153 * ipa-cp.c (ipcp_write_summary): Update.
7154 * ipa-reference.c (ipa_reference_write_summary): Update.
7155 * lto-cgraph.c (lto_output_varpool_node): New static function.
7156 (output_varpool): New function.
7157 (input_varpool_node): New static function.
7158 (input_varpool_1): New function.
7159 (input_cgraph): Input varpool.
7160 * ipa-pure-const.c (pure_const_write_summary): Update.
7161 * lto-streamer-out.c (lto_output): Update, output varpool too.
7162 (write_global_stream): Kill WPA hack.
7163 (produce_asm_for_decls): Update.
7164 (output_alias_pair_p): Handle variables.
7165 (output_unreferenced_globals): Output only needed partition of varpool.
7166 * ipa-inline.c (inline_write_summary): Update.
7167 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
7168 cgraph.
7169 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
7170 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
7171 varpool_node_set_new, varpool_node_set_add,
7172 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
7173 debug_varpool_node_set): New functions.
7174 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
7175 (execute_one_pass): Process new decls too.
7176 (ipa_write_summaries_2): Pass around vsets.
7177 (ipa_write_summaries_1): Likewise.
7178 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
7179 to add.
7180 (ipa_write_optimization_summaries_1): Pass around vsets.
7181 (ipa_write_optimization_summaries): Likewise.
7182 * varpool.c (varpool_get_node): New.
7183 (varpool_node): Update doubly linked lists.
7184 (varpool_remove_node): New.
7185 (dump_varpool_node): More dumping.
7186 (varpool_enqueue_needed_node): Update doubly linked lists.
7187 (decide_is_variable_needed): Kill ltrans hack.
7188 (varpool_finalize_decl): Kill lto hack.
7189 (varpool_assemble_decl): Skip decls in other partitions.
7190 (varpool_assemble_pending_decls): Update doubly linkes lists.
7191 (varpool_empty_needed_queue): Likewise.
7192 (varpool_extra_name_alias): Likewise.
7193 * lto-streamer.c (lto_get_section_name): Add vars section.
7194 * lto-streamer.h (lto_section_type): Update.
7195 (output_varpool, input_varpool): Declare.
7196
7197 2010-04-28 Mike Stump <mikestump@comcast.net>
7198
7199 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
7200
7201 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
7202
7203 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
7204 record or union type with RECORD_OR_UNION_TYPE_P predicate.
7205 (lto_input_ts_type_tree_pointers): Likewise.
7206 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
7207 (lto_output_ts_type_tree_pointers): Likewise.
7208
7209 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
7210
7211 Uniquization of constants at the Tree level
7212 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
7213 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
7214 bit to the end.
7215 (tree_output_constant_def): Declare.
7216 * gimplify.c (gimplify_init_constructor): When using block copy, first
7217 uniquize the constant constructor on the RHS.
7218 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
7219 DECL_IN_CONSTANT_POOL flag.
7220 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
7221 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
7222 constant pool.
7223 (assemble_variable): Deal with symbols belonging to the tree constant
7224 pool.
7225 (get_constant_section): Add ALIGN parameter and simplify.
7226 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
7227 (assemble_constant_contents): Use the expression of the VAR_DECL.
7228 (output_constant_def_contents): Use the alignment of the VAR_DECL.
7229 (tree_output_constant_def): New global function.
7230 (mark_constant): Use the expression of the VAR_DECL.
7231 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
7232 its expression.
7233 (output_object_block): Likewise and assemble the expression.
7234
7235 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
7236
7237 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
7238 hash_tree, eq_tree): New tree hash table.
7239 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
7240 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
7241 lto_orig_address_remove): Reimplement.
7242
7243 2010-04-28 Xinliang David Li <davidxl@google.com>
7244
7245 PR c/42643
7246 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
7247 (compute_uninit_opnds_pos): New function.
7248 (is_non_loop_exit_postdominating): New function.
7249 (compute_control_dep_chain): New function.
7250 (find_pdom): New function.
7251 (convert_control_dep_chain_into_preds): New function.
7252 (find_predicates): New function.
7253 (find_control_equiv_block): New function.
7254 (collect_phi_def_edges): New function.
7255 (find_def_preds): New function.
7256 (find_dom): New function.
7257 (dump_predicates): New function.
7258 (get_cmp_code): New function.
7259 (is_value_included_in): New function.
7260 (find_matching_predicate_in_rest_chains): New function.
7261 (use_pred_not_overlap_with_undef_path_pred): New function.
7262 (is_use_properly_guarded): New function.
7263 (normalize_cond_1): New function.
7264 (is_and_or_or): New function.
7265 (normalize_cond): New function.
7266 (is_gcond_subset_of): New function.
7267 (is_subset_of_any): New function.
7268 (is_or_set_subset_of): New function.
7269 (is_and_set_subset_of): New function.
7270 (is_norm_cond_subset_of): New function.
7271 (is_pred_expr_subset_of): New function.
7272 (is_pred_chain_subset_of): New function.
7273 (is_included_in): New function.
7274 (is_superset_of): New function.
7275 (find_uninit_use): New function.
7276 (warn_uninitialized_phi): New function.
7277 (compute_possibly_undefined_names): New function.
7278 (ssa_undefined_value_p): New function.
7279 (execute_late_warn_uninitialized): New function.
7280 * tree-ssa.c (ssa_undefined_value_p): Removed.
7281 (warn_uninit): Changed to extern.
7282 (warn_uninitialized_phi): Removed.
7283 (warn_uninitialized_vars): Changed to extern.
7284 (execute_late_warn_uninitialized): Removed
7285 * tree-flow.h: Add new prototypes.
7286 * timevar.def: Add new time variable.
7287 * Makefile.in: Add new build file.
7288
7289 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
7290
7291 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7292 type if available.
7293
7294 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7295
7296 PR target/22224
7297 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
7298
7299 2010-04-28 Martin Jambor <mjambor@suse.cz>
7300
7301 * cgraph.h (struct cgraph_node): New field indirect_calls.
7302 (struct cgraph_indirect_call_info): New type.
7303 (struct cgraph_edge): Removed field indirect_call. New fields
7304 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
7305 (cgraph_create_indirect_edge): Declare.
7306 (cgraph_make_edge_direct): Likewise.
7307 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
7308 * ipa-prop.h (struct ipa_param_call_note): Removed.
7309 (struct ipa_node_params): Removed field param_calls.
7310 (ipa_create_all_structures_for_iinln): Declare.
7311 * cgraph.c: Described indirect edges and uids in initial comment.
7312 (cgraph_add_edge_to_call_site_hash): New function.
7313 (cgraph_edge): Search also among the indirect edges, use
7314 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
7315 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
7316 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
7317 site hash.
7318 (initialize_inline_failed): Assign a reason to indirect edges.
7319 (cgraph_create_edge_1): New function.
7320 (cgraph_create_edge): Moved some functionality to
7321 cgraph_create_edge_1.
7322 (cgraph_create_indirect_edge): New function.
7323 (cgraph_edge_remove_callee): Add an assert checking for
7324 non-indirectness.
7325 (cgraph_edge_remove_caller): Special-case indirect edges.
7326 (cgraph_remove_edge): Likewise.
7327 (cgraph_set_edge_callee): New function.
7328 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
7329 (cgraph_make_edge_direct): New function.
7330 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
7331 the declaration of the call statement matches.
7332 (cgraph_node_remove_callees): Special-case indirect edges.
7333 (cgraph_clone_edge): Likewise.
7334 (cgraph_clone_node): Clone also the indirect edges.
7335 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
7336 indirect_call, dump count of indirect_calls edges.
7337 * ipa-prop.c (iinlining_processed_edges): New variable.
7338 (ipa_note_param_call): Create indirect edges instead of
7339 creating notes. New parameter node.
7340 (ipa_analyze_call_uses): New parameter node, pass it on to
7341 ipa_note_param_call.
7342 (ipa_analyze_stmt_uses): Likewise.
7343 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
7344 (print_edge_addition_message): Work on edges rather than on notes.
7345 (update_call_notes_after_inlining): Likewise, renamed to
7346 update_indirect_edges_after_inlining.
7347 (ipa_create_all_structures_for_iinln): New function.
7348 (ipa_free_node_params_substructures): Do not free notes.
7349 (ipa_edge_duplication_hook): Propagate bits within
7350 iinlining_processed_edges bitmap.
7351 (ipa_node_duplication_hook): Do not duplicate notes.
7352 (free_all_ipa_structures_after_ipa_cp): Renamed to
7353 ipa_free_all_structures_after_ipa_cp.
7354 (free_all_ipa_structures_after_iinln): Renamed to
7355 ipa_free_all_structures_after_iinln.
7356 (ipa_write_param_call_note): Removed.
7357 (ipa_read_param_call_note): Removed.
7358 (ipa_write_indirect_edge_info): New function.
7359 (ipa_read_indirect_edge_info): Likewise.
7360 (ipa_write_node_info): Do not stream notes, do stream information
7361 in indirect edges.
7362 (ipa_read_node_info): Likewise.
7363 (lto_ipa_fixup_call_notes): Removed.
7364 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
7365 * ipa-inline.c (pass_ipa_inline): Likewise.
7366 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
7367 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
7368 * tree-inline.c (copy_bb): Removed an unnecessary double check for
7369 is_gimple_call.
7370 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
7371 edges.
7372 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
7373 (output_cgraph): Stream also indirect edges.
7374 (lto_output_edge): Added capability to stream indirect edges.
7375 (input_edge): Likewise.
7376 (input_cgraph_1): Likewise.
7377 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
7378 of indirect edges.
7379
7380 2010-04-28 Richard Guenther <rguenther@suse.de>
7381
7382 PR tree-optimization/43879
7383 PR tree-optimization/43909
7384 * tree-ssa-structalias.c (struct variable_info): Add
7385 only_restrict_pointers flag.
7386 (new_var_info): Initialize it. Increment stats.total_vars here.
7387 (create_function_info_for): Do not increment stats.total_vars here.
7388 (get_function_part_constraint): Fix build with C++.
7389 (insert_into_field_list): Remove.
7390 (push_fields_onto_fieldstack): Properly merge fields.
7391 (create_variable_info_for): Split and simplify.
7392 (create_variable_info_for_1): New piece.
7393 (intra_create_variable_infos): Properly make restrict constraints
7394 from parameters.
7395
7396 2010-04-28 Richard Guenther <rguenther@suse.de>
7397
7398 PR c++/43880
7399 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
7400
7401 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
7402 Jan Hubicka <hubicka@ucw.cz>
7403
7404 * doc/invoke.texi (-Wsuggest-attribute=const,
7405 -Wsuggest-attribute=pure): Document.
7406 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
7407 (function_always_visible_to_compiler_p,
7408 suggest_attribute, warn_function_pure, warn_function_const):
7409 New functions.
7410 (check_call): Improve debug info.
7411 (analyze_function): Do not check availability.
7412 (add_new_function): Check availability.
7413 (propagate): Output warnings.
7414 (skip_function_for_local_pure_const): New function.
7415 (local_pure_const): Use it; output warnings.
7416 * common.opt (Wsuggest-attribute=const,
7417 Wsuggest-attribute=pure): New.
7418
7419 2010-04-27 Jakub Jelinek <jakub@redhat.com>
7420
7421 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
7422 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
7423 or DW_CFA_def_cfa_offset{,_sf}.
7424
7425 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
7426
7427 * tree.h: Fix truncated long macros.
7428
7429 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
7430
7431 * collect2.c (TARGET_64BIT): Redefine to target's default.
7432 * tlink.c: Likewise.
7433 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
7434 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
7435 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
7436 for underscoring __USER_LABEL_PREFIX__.
7437 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
7438 (SUB_LINK_ENTRY32): New.
7439 (SUB_LINK_ENTRY64): New.
7440 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
7441 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
7442 (SUB_LINK_ENTRY64): New.
7443 (SUB_LINK_ENTRY): New.
7444 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
7445 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
7446 x64 target is choosen.
7447 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
7448 * configure: Regenerated.
7449 * configure.ac (leading-mingw64-underscores): Option added.
7450
7451 2010-04-27 Jan Hubicka <jh@suse.cz>
7452
7453 * doc/invoke.texi (-fipa-profile): Document.
7454 * opts.c (decode_options): Enable ipa-profile at -O1.
7455 * timevar.def (TV_IPA_PROFILE): Define.
7456 * common.opt (fipa-profile): Add.
7457 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
7458 flag for clones.
7459 (cgraph_propagate_frequency): Handle only local ones.
7460 * tree-pass.h (pass_ipa_profile): Declare.
7461 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
7462 (pass_ipa_profile): Use TV_IPA_PROFILE.
7463 * ipa.c (ipa_profile): New function.
7464 (gate_ipa_profile): Likewise.
7465 (pass_ipa_profile): New global variable.
7466 * passes.c (pass_ipa_profile): New.
7467
7468 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
7469
7470 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
7471
7472 2010-04-27 Martin Jambor <mjambor@suse.cz>
7473
7474 PR middle-end/43812
7475 * ipa.c (dissolve_same_comdat_group_list): New function.
7476 (function_and_variable_visibility): Call
7477 dissolve_same_comdat_group_list when comdat group contains external or
7478 newly local nodes.
7479 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
7480 lists are circular and that they contain only DECL_ONE_ONLY nodes.
7481
7482 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
7483
7484 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
7485 (const_hash_1) <VECTOR_CST>: New case.
7486 (compare_constant) <VECTOR_CST>: Likewise.
7487 <ADDR_EXPR>: Deal with LABEL_REFs.
7488 (copy_constant) <VECTOR_CST>: New case.
7489
7490 2010-04-27 Jan Hubicka <jh@suse.cz>
7491
7492 * cgraph.c (cgraph_propagate_frequency): New function.
7493 * cgraph.h (cgraph_propagate_frequency): Declare.
7494 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
7495 cgraph_propagate_frequency.
7496
7497 2010-04-27 Jakub Jelinek <jakub@redhat.com>
7498
7499 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
7500
7501 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
7502
7503 PR target/40657
7504 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
7505 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
7506 here to determine which regs to push and how much stack to reserve.
7507
7508 2010-04-27 Jie Zhang <jie@codesourcery.com>
7509
7510 * doc/gimple.texi (gimple_statement_with_ops): Remove
7511 addresses_taken field.
7512 (gimple_statement_with_memory_ops): Likewise.
7513
7514 2010-04-27 Jan Hubicka <jh@suse.cz>
7515
7516 * tree-inline.c (eni_inlining_weights): Remove.
7517 (estimate_num_insns): Special case more builtins.
7518
7519 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
7520
7521 PR c/32207
7522 * c-typeck.c (build_binary_op): Move forward check for comparison
7523 pointer with null pointer constant and adjust the diagnostic message.
7524
7525 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
7526
7527 PR lto/42776
7528 * configure.ac (gcc_cv_as_section_has_align): Set if installed
7529 binutils supports extended .section directive needed by LTO, or
7530 warn if older binutils found.
7531 (LTO_BINARY_READER): New AC_SUBST'd variable.
7532 (LTO_USE_LIBELF): Likewise.
7533 * gcc/config.gcc (lto_binary_reader): New target-specific configure
7534 variable.
7535 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
7536 (LTO_USE_LIBELF): Likewise.
7537 * configure: Regenerate.
7538
7539 * collect2.c (is_elf): Rename from this ...
7540 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
7541 object files in addition to ELF-formatted ones.
7542 (scan_prog_file): Caller updated. Also allow for LTO info marker
7543 symbol to be prefixed or not by an extra underscore.
7544
7545 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
7546 * config/i386/winnt.c: Also #include lto-streamer.h
7547 (i386_pe_asm_named_section): Specify 1-byte section alignment for
7548 LTO named sections.
7549 (i386_pe_asm_output_aligned_decl_common): Add comment.
7550 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
7551
7552 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
7553
7554 PR target/43889
7555 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
7556 Add missing earlyclobber for second alternative.
7557
7558 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
7559
7560 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
7561 bits for artificial defs at the top of the block.
7562 * fwprop.c (single_def_use_enter_block): Don't call it.
7563
7564 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
7565
7566 PR 43715
7567 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
7568 instead of "$gcc_cv_objdump -T".
7569 Use "-undefined dynamic_lookup" on darwin.
7570 * gcc/configure: Regenerate.
7571
7572 2010-04-26 Jakub Jelinek <jakub@redhat.com>
7573
7574 PR c/43893
7575 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
7576
7577 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
7578
7579 * c-parser.c (struct c_token): Move location field up.
7580 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
7581 (struct c_declspecs): Convert typespec_word, storage_class, and
7582 default_int_p into bitfields.
7583 (struct c_declarator): Move loc field up.
7584
7585 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
7586
7587 * cfgloop.h (struct loop): Move can_be_parallel field up.
7588 * ipa-prop.h (struct ip_node_params): Move bitfields up.
7589 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
7590 down.
7591 (struct iv_cand): Convert pos field into a bitfield.
7592 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
7593 field up.
7594 (struct _stmt_vec_info): Shuffle fields for better packing.
7595
7596 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
7597
7598 * varasm.c (IN_NAMED_SECTION): Remove guard.
7599 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
7600 (IN_NAMED_SECTION_P): ...this.
7601 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
7602 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7603
7604 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
7605
7606 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
7607 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
7608 of shadowing it. Fix comments.
7609
7610 2010-04-26 Jan Hubicka <jh@suse.cz>
7611
7612 * cgraph.c (cgraph_create_node): Set node frequency to normal.
7613 (cgraph_clone_node): Copy function frequency.
7614 * cgraph.h (node_frequency): New enum
7615 (struct cgraph_node): Add.
7616 * final.c (rest_of_clean_state): Update.
7617 * lto-cgraph.c (lto_output_node): Output node frequency.
7618 (input_overwrite_node): Input node frequency.
7619 * tre-ssa-loop-ivopts (computation_cost): Update.
7620 * lto-streamer-out.c (output_function): Do not output function
7621 frequency.
7622 * predict.c (maybe_hot_frequency_p): Update and handle functions
7623 executed once.
7624 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
7625 attribute lookup.
7626 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
7627 (compute_function_frequency): Set noreturn functions to be executed
7628 once.
7629 (choose_function_section): Update.
7630 * lto-streamer-in.c (input_function): Do not input function frequency.
7631 * function.c (allocate_struct_function): Do not initialize function
7632 frequency.
7633 * function.h (function_frequency): Remove.
7634 (struct function): Remove function frequency.
7635 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
7636 (try_update): Update.
7637 * tree-inline.c (initialize_cfun): Do not update function frequency.
7638 * passes.c (pass_init_dump_file): Update.
7639 * i386.c (ix86_compute_frame_layout): Update.
7640 (ix86_pad_returns): Update.
7641
7642 2010-04-26 Jie Zhang <jie@codesourcery.com>
7643
7644 PR tree-optimization/43833
7645 * tree-vrp.c (range_int_cst_p): New.
7646 (range_int_cst_singleton_p): New.
7647 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
7648 when both operands are constants. Use range_int_cst_p in
7649 BIT_IOR_EXPR case.
7650
7651 2010-04-26 Jan Hubicka <jh@suse.cz>
7652
7653 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
7654
7655 2010-04-26 Richard Guenther <rguenther@suse.de>
7656
7657 PR lto/43080
7658 * gimple.c (gimple_decl_printable_name): Deal gracefully
7659 with a NULL DECL_NAME.
7660
7661 2010-04-26 Richard Guenther <rguenther@suse.de>
7662
7663 PR lto/42425
7664 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
7665 if emitting debug information and it is either a function
7666 or a namespace decl.
7667
7668 2010-04-26 Ira Rosen <irar@il.ibm.com>
7669
7670 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
7671 determine if the statement is vectorizable, and a macro to access it.
7672 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7673 Skip statements that can't be vectorized. If the analysis fails,
7674 mark the statement as unvectorizable if vectorizing basic block.
7675 (vect_compute_data_refs_alignment): Likewise.
7676 (vect_verify_datarefs_alignment): Skip statements marked as
7677 unvectorizable. Add print.
7678 (vect_analyze_group_access): Skip statements that can't be
7679 vectorized. If the analysis fails, mark the statement as
7680 unvectorizable if vectorizing basic block.
7681 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
7682 * tree-vect-stmts.c (vectorizable_store): Fix the number of
7683 generated stmts for SLP.
7684 (new_stmt_vec_info): Initialize the new field.
7685 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
7686 statements marked as unvectorizable.
7687
7688 2010-04-25 Joseph Myers <joseph@codesourcery.com>
7689
7690 * c-common.c (flag_isoc1x): New.
7691 (flag_isoc99): Update comment.
7692 * c-common.h (flag_isoc1x): New.
7693 (flag_isoc99): Update comment.
7694 * c-cppbuiltin.c (builtin_define_float_constants): Also define
7695 __<type>_DECIMAL_DIG__.
7696 * c-opts.c (set_std_c1x): New.
7697 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
7698 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
7699 * c.opt (-std=c1x, -std=gnu1x): New options.
7700 * doc/cpp.texi: Mention -std=c1x.
7701 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
7702 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
7703 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
7704 * doc/standards.texi: Mention C1X.
7705 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
7706 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
7707 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
7708 Define for C1X.
7709
7710 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
7711
7712 * config/i386/gmon-sol2.c (_mcleanup): Change format string
7713 placeholder from 0x%x to %#x.
7714 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
7715 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
7716 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
7717 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
7718 * config/i386/i386.c (ix86_target_string): Ditto.
7719 (output_pic_addr_const): Ditto.
7720 (print_operand): Ditto.
7721
7722 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
7723
7724 * combine.c (find_split_point): Add third argument. Use it
7725 to find nested multiply-accumulate instructions. Adjust calls.
7726 (try_combine): Adjust call to find_split_point.
7727
7728 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7729
7730 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
7731
7732 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
7733
7734 PR tree-optimization/41442
7735 * fold-const.c (merge_truthop_with_opposite_arm): New function.
7736 (fold_binary_loc): Call it.
7737
7738 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7739
7740 * toplev.c (general_init): Set default for fdiagnostics-show-option.
7741 * opts.c (common_handle_option): Allow disabling it.
7742 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
7743
7744 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
7745
7746 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
7747 between modes if both types are integral.
7748
7749 2010-04-23 Richard Guenther <rguenther@suse.de>
7750
7751 PR tree-optimization/43572
7752 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
7753
7754 2010-04-23 Richard Guenther <rguenther@suse.de>
7755
7756 PR lto/43455
7757 * tree-inline.c (tree_can_inline_p): Also check compatibility
7758 of return types.
7759
7760 2010-04-23 Martin Jambor <mjambor@suse.cz>
7761
7762 PR tree-optimization/43846
7763 * tree-sra.c (struct access): New flag grp_assignment_read.
7764 (build_accesses_from_assign): Set grp_assignment_read.
7765 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
7766 (enum mark_read_status): New type.
7767 (analyze_access_subtree): Propagate grp_assignment_read, create
7768 accesses also if both direct_read and root->grp_assignment_read.
7769
7770 2010-04-23 Martin Jambor <mjambor@suse.cz>
7771
7772 PR middle-end/43835
7773 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
7774 function does not have type attributes.
7775
7776 2010-04-23 Richard Guenther <rguenther@suse.de>
7777
7778 PR lto/42653
7779 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
7780 of FUNCTION_DECLs.
7781
7782 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7783
7784 * sese.h (create_if_region_on_edge): Remove.
7785
7786 * sese.c (create_if_region_on_edge): Make static.
7787
7788 * tree-inline.c: Do not include ggc.h.
7789
7790 * expr.c: Do not include ggc.h.
7791
7792 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
7793 dependencies.
7794
7795 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
7796
7797 PR target/43744
7798 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7799 in the middle of insns for casesi_worker_2.
7800
7801 2010-04-22 David Edelsohn <edelsohn@gnu.org>
7802
7803 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
7804
7805 2010-04-22 Ira Rosen <irar@il.ibm.com>
7806
7807 PR tree-optimization/43842
7808 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
7809 loop unrolling in update of exit phis. Fix comment.
7810 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
7811 least two reduction statements in the loop before starting SLP
7812 analysis.
7813
7814 2010-04-22 Nick Clifton <nickc@redhat.com>
7815
7816 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
7817
7818 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
7819
7820 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
7821 to simplify a + ~a.
7822
7823 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7824
7825 * tree-parloops.c (loop_parallel_p): New argument
7826 parloop_obstack. Pass it down.
7827 (parallelize_loops): New variable parloop_obstack. Initialize it,
7828 pass it down, free it.
7829
7830 * tree-loop-linear.c (linear_transform_loops): Pass down
7831 lambda_obstack.
7832
7833 * tree-data-ref.h (lambda_compute_access_matrices): New argument
7834 of type struct obstack *.
7835
7836 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
7837 scratch_obstack. Initialize it, pass down, free it.
7838
7839 * lambda.h (lambda_loop_new): Remove.
7840 (lambda_matrix_new, lambda_matrix_inverse)
7841 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
7842 argument of type struct obstack *.
7843
7844 * lambda-trans.c (lambda_trans_matrix_new): New argument
7845 lambda_obstack. Pass it down, use obstack allocation for ret.
7846 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
7847 it down.
7848
7849 * lambda-mat.c (lambda_matrix_get_column)
7850 (lambda_matrix_project_to_null): Remove.
7851 (lambda_matrix_new): New argument lambda_obstack. Use obstack
7852 allocation for mat.
7853 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
7854 lambda_obstack.
7855
7856 * lambda-code.c (lambda_loop_new): New function.
7857 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
7858 (lambda_compute_auxillary_space, lambda_compute_target_space)
7859 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
7860 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
7861 (build_access_matrix): New argument lambda_obstack. Use obstack
7862 allocation for am.
7863 (lambda_compute_step_signs, lambda_compute_access_matrices): New
7864 argument lambda_obstack. Pass it down.
7865
7866 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7867
7868 * optabs.h (expand_widening_mult): Declare.
7869
7870 2010-04-22 Richard Guenther <rguenther@suse.de>
7871
7872 PR tree-optimization/43845
7873 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
7874 lookup the CALL_EXPR function and arguments.
7875
7876 2010-04-22 Nick Clifton <nickc@redhat.com>
7877
7878 * config/stormy16/stormy16.c
7879 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
7880 * config/stormy16/stormy16.h: Tidy up formatting.
7881 (DONT_USE_BUILTIN_SETJMP): Remove definition.
7882 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
7883 (ineqbranchsi): Delete pattern.
7884 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
7885 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
7886 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
7887 stormy16-lib2-ucmpsi2.c.
7888
7889 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7890
7891 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
7892 df_simulate_find_noclobber_defs as appropriate. Keep track of an
7893 extra set merge_set_noclobber, and use it to relax the final test
7894 slightly.
7895 * df.h (df_simulate_find_noclobber_defs): Declare.
7896 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
7897 conditional defs.
7898 (df_simulate_find_noclobber_defs): New function.
7899
7900 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
7901
7902 * config/i386/i386.md: Use {} around multi-line preparation statements.
7903
7904 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7905
7906 * c-tree.h (push_init_level, pop_init_level, set_init_index)
7907 (process_init_element): New argument of type struct obstack *.
7908
7909 * c-typeck.c (push_init_level, pop_init_level, set_designator)
7910 (set_init_index, set_init_label, set_nonincremental_init)
7911 (set_nonincremental_init_from_string, find_init_member)
7912 (output_init_element, output_pending_init_elements)
7913 (process_init_element): New argument braced_init_obstack. Pass it
7914 down.
7915 (push_range_stack, add_pending_init): New argument
7916 braced_init_obstack. Use obstack allocation.
7917
7918 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
7919 braced_init_obstack. Pass it down.
7920 (c_parser_braced_init): New variables ret, braced_init_obstack.
7921 Initialize obstack, pass it down and finally free it.
7922
7923 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7924
7925 PR middle-end/29274
7926 * tree-pass.h (pass_optimize_widening_mul): Declare.
7927 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
7928 gate_optimize_widening_mul): New static functions.
7929 (pass_optimize_widening_mul): New.
7930 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
7931 <case MULT_EXPR>: Remove support for widening multiplies.
7932 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
7933 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
7934 simplify_gen_unary rather than directly building extensions.
7935 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
7936 WIDEN_MULT_EXPR.
7937 * expmed.c (expand_widening_mult): New function.
7938 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
7939
7940 2010-04-21 Jan Hubicka <jh@suse.cz>
7941
7942 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
7943 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
7944 * lto-wpa-fixup.c: Remove.
7945 * Makefile.in (lto-wpa-fixup.o): Remove.
7946 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
7947 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
7948 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
7949
7950 2010-04-21 Jan Hubicka <jh@suse.cz>
7951
7952 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
7953 add write_optimization_summary, read_optimization_summary.
7954 (ipa_write_summaries_of_cgraph_node_set): Remove.
7955 (ipa_write_optimization_summaries): Declare.
7956 (ipa_read_optimization_summaries): Declare.
7957 * ipa-cp.c (pass_ipa_cp): Update.
7958 * ipa-reference.c (pass_ipa_reference): Update.
7959 * ipa-pure-const.c (pass_ipa_pure_const): Update.
7960 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
7961 Update.
7962 * ipa-inline.c (pass_ipa_inline): Update.
7963 * ipa.c (pass_ipa_whole_program): Update.
7964 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
7965 * passes.c (ipa_write_summaries_1): Do not test wpa.
7966 (ipa_write_optimization_summaries_1): New.
7967 (ipa_write_optimization_summaries): New.
7968 (ipa_read_summaries): Do not test ltrans.
7969 (ipa_read_optimization_summaries_1): New.
7970 (ipa_read_optimization_summaries): New.
7971
7972 2010-04-21 Jan Hubicka <jh@suse.cz>
7973
7974 * lto-cgraph.c (lto_output_node): Do not output comdat groups
7975 for boundary nodes.
7976 (output_cgraph): Do not arrange comdat groups for boundary nodes.
7977
7978 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7979
7980 PR debug/40040
7981 * dwarf2out.c (add_name_and_src_coords_attributes): Add
7982 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
7983
7984 2010-04-21 Jan Hubicka <jh@suse.cz>
7985
7986 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
7987
7988 2010-04-21 Jan Hubicka <jh@suse.cz>
7989
7990 * varpool.c (decide_is_variable_needed): Variable is always needed
7991 during ltrans.
7992
7993 2010-04-21 Jan Hubicka <jh@suse.cz>
7994
7995 * opts.c (decode_options): Enable pure-const pass for whopr.
7996
7997 2010-04-21 Jan Hubicka <jh@suse.cz>
7998
7999 * cgraph.c (dump_cgraph_node): Dump also assembler name.
8000 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
8001 at WPA dumping.
8002 (cgraph_decide_inlining): Do not expect callee to be removed in all
8003 cases.
8004
8005 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
8006
8007 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
8008
8009 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
8010
8011 * config/i386/i386.md (x86_shrd): Add athlon_decode and
8012 amdfam10_decode attributes.
8013
8014 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8015
8016 PR middle-end/43570
8017 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
8018 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
8019 (lower_copyprivate_clauses): Use private var in outer
8020 context instead of original var. Make sure the types
8021 are correct for VLAs.
8022
8023 2010-04-21 Richard Guenther <rguenther@suse.de>
8024
8025 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
8026 to non-pointer objects.
8027
8028 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8029
8030 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
8031 last chain entry if it starts with the still current label.
8032 (add_location_or_const_value_attribute): Check that
8033 loc_list->first->next is NULL instead of comparing ->first with ->last.
8034 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
8035 to add_var_loc_to_decl.
8036
8037 * dwarf2out.c (output_call_frame_info): For dw_cie_version
8038 >= 4 add also address size and segment size fields into CIE header.
8039
8040 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
8041 long as address size is the same as sizeof (void *) and
8042 segment size is 0.
8043 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
8044 address size or segment size is unexpected, return DW_EH_PE_omit.
8045 (classify_object_over_fdes): If get_cie_encoding returned
8046 DW_EH_PE_omit, return -1.
8047 (init_object): If classify_object_over_fdes returned -1,
8048 pretend there were no FDEs at all.
8049
8050 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
8051
8052 * config/i386/i386.md (bswap<mode>2): Macroize expander from
8053 bswap{si,di}2 using SWI48 mode iterator.
8054 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
8055 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
8056 set modrm attribute of bswap insn to 0 and remove length attribute.
8057 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
8058 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
8059 set mode attribute to <MODE> and remove length attribute.
8060
8061 2010-04-20 James E. Wilson <wilson@codesourcery.com>
8062
8063 PR rtl-optimization/43520
8064 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
8065 zero available registers.
8066
8067 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8068
8069 * builtins.c (fold_builtin_cproj): Fold more cases.
8070
8071 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8072
8073 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
8074 (fold_builtin_1): Fold builtin cproj.
8075 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
8076 Use ATTR_CONST_NOTHROW_LIST.
8077
8078 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
8079
8080 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
8081 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
8082 ffsi2_no_cmove for !TARGET_CMOVE.
8083 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
8084 (ffssi2): Remove expander.
8085 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
8086 mode iterator.
8087 (ctz<mode>2): Ditto from ctz{si,di}2.
8088 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
8089 mode iterator.
8090 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
8091 mode iterator.
8092
8093 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8094
8095 * dwarf2out.c (AT_linkage_name): Define.
8096 (clone_as_declaration): Handle DW_AT_linkage_name.
8097 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
8098 of DW_AT_MIPS_linkage_name.
8099 (move_linkage_attr): Likewise.
8100 (dwarf2out_finish): Likewise.
8101
8102 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
8103
8104 PR middle-end/41952
8105 * fold-const.c (fold_comparison): New folding rule.
8106
8107 2010-04-20 Anatoly Sokolov <aesok@post.ru>
8108
8109 * double-int.h (double_int_setbit): Declare.
8110 * double-int.c (double_int_setbit): New function.
8111 * rtl.h (immed_double_int_const): Declare.
8112 * emit-rtl.c (immed_double_int_const): New function.
8113 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
8114 and immed_double_int_const functions.
8115 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
8116 expand_copysign_bit): (Ditto.).
8117 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
8118 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
8119 * dojump.c (prefer_and_bit_test): (Ditto.).
8120 * expr.c (convert_modes, reduce_to_bit_field_precision,
8121 const_vector_from_tree): (Ditto.).
8122 * expmed.c (mask_rtx, lshift_value): (Ditto.).
8123
8124 2010-04-20 Jan Hubicka <jh@suse.cz>
8125
8126 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
8127 (dump_cgraph_node): Dump new flags.
8128 * cgraph.h (struct cgraph_node): Add flags
8129 reachable_from_other_partition and in_other_partition.
8130 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
8131 other partition can not be removed.
8132 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
8133 the other partition must be output; silence sanity checking on
8134 leaking functions bodies from other paritition.
8135 * lto-cgraph.c (reachable_from_other_partition_p): New function.
8136 (lto_output_node): Output new flags; do not sanity check that inline
8137 clones are output; drop lto_forced_extern_inline_p code; do not mock
8138 visibility flags at partition boundaries.
8139 (add_node_to): New function.
8140 (output_cgraph): Use it to sort functions so masters appear before
8141 clones.
8142 (input_overwrite_node): Input new flags.
8143 * passes.c (ipa_write_summaries): Do not call
8144 lto_new_extern_inline_states.
8145 * lto-section-out.c (forced_extern_inline,
8146 lto_new_extern_inline_states lto_delete_extern_inline_states,
8147 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
8148 * lto-streamer.h (lto_new_extern_inline_states,
8149 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
8150 lto_forced_extern_inline_p): Kill.
8151
8152 2010-04-20 Richard Guenther <rguenther@suse.de>
8153
8154 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
8155 from vars that can have pointers.
8156 (process_constraint): Dump useless constraints.
8157
8158 2010-04-20 Richard Guenther <rguenther@suse.de>
8159
8160 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
8161 (dump_sa_points_to_info): Remove asserts.
8162 (init_base_vars): nothing_id isn't an escape point nor does it
8163 have pointers.
8164
8165 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8166
8167 * tree.h (TYPE_REF_IS_RVALUE): Define.
8168 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
8169 should_move_die_to_comdat, prune_unused_types_walk): Handle
8170 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
8171 (modified_type_die, gen_reference_type_die): Emit
8172 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
8173 if TYPE_REF_IS_RVALUE and -gdwarf-4.
8174
8175 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8176
8177 PR target/43635
8178 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
8179 calls for -fpic -m31 if they have been sibcall optimized.
8180
8181 2010-04-19 James E. Wilson <wilson@codesourcery.com>
8182
8183 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
8184 ar.lc fixed and call-used.
8185
8186 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
8187
8188 2010-04-19 Jan Hubicka <jh@suse.cz>
8189
8190 * opts.c (decode_options): Disable whpr incompatible passes.
8191 * lto/lto.c (lto_1_to_1_map): Skip clones.
8192 (read_cgraph_and_symbols): Do not mark everything as needed.
8193 (do_whole_program_analysis): Do map only after optimizing;
8194 set proper cgraph_state; use passmanager.
8195
8196 2010-04-19 DJ Delorie <dj@redhat.com>
8197
8198 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
8199 POINTER_PLUS_EXPR and fix them.
8200
8201 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
8202
8203 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
8204 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
8205 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
8206 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
8207 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
8208 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
8209 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
8210 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
8211 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
8212 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
8213 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
8214
8215 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
8216
8217 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
8218 (check_cond_move_block): Likewise.
8219 (cond_move_process_if_block): Likewise.
8220 (noce_find_if_block): Improve formatting.
8221 (find_if_header): Pass 0 to memset and tweak conditions.
8222 (cond_exec_find_if_block): Fix long lines and tweak conditions.
8223
8224 2010-04-19 Jakub Jelinek <jakub@redhat.com>
8225
8226 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
8227 for -gdwarf-4.
8228
8229 PR middle-end/43337
8230 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
8231 with non-local decl doesn't need chain.
8232
8233 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
8234
8235 * ira-color.c (allocno_reload_assign): Avoid accumulating
8236 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
8237
8238 2010-04-19 Martin Jambor <mjambor@suse.cz>
8239
8240 * gimple.h (create_tmp_reg): Declare.
8241 * gimplify.c (create_tmp_reg): New function.
8242 (gimplify_return_expr): Use create_tmp_reg.
8243 (gimplify_omp_atomic): Likewise.
8244 (gimple_regimplify_operands): Likewise.
8245 * tree-dfa.c (make_rename_temp): Likewise.
8246 * tree-predcom.c (predcom_tmp_var): Likewise.
8247 (reassociate_to_the_same_stmt): Likewise.
8248 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
8249 (get_replaced_param_substitute): Likewise.
8250 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
8251 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
8252 * tree-ssa-pre.c (get_representative_for): Likewise.
8253 (create_expression_by_pieces): Likewise.
8254 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
8255 (create_tailcall_accumulator): Likewise.
8256
8257 2010-04-19 Martin Jambor <mjambor@suse.cz>
8258
8259 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
8260 new_stmt.
8261 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
8262
8263 2010-04-19 Richard Guenther <rguenther@suse.de>
8264
8265 PR tree-optimization/43796
8266 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
8267 from SCEV in the lattice.
8268 (vrp_visit_phi_node): Dump change.
8269
8270 2010-04-19 Richard Guenther <rguenther@suse.de>
8271
8272 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
8273 * configure: Re-generated.
8274
8275 2010-04-19 Richard Guenther <rguenther@suse.de>
8276
8277 PR tree-optimization/43783
8278 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
8279 constant ARRAY_REF operands two and three if possible.
8280
8281 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
8282
8283 PR target/43766
8284 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
8285
8286 2010-04-19 Jie Zhang <jie@codesourcery.com>
8287
8288 PR target/43662
8289 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
8290
8291 2010-04-19 Ira Rosen <irar@il.ibm.com>
8292
8293 PR tree-optimization/37027
8294 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
8295 and macro to access it.
8296 (vectorizable_reduction): Add argument.
8297 (vect_get_slp_defs): Likewise.
8298 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
8299 statements for possible use in SLP.
8300 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
8301 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
8302 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
8303 add new argument.
8304 (vectorizable_reduction): Likewise.
8305 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
8306 vect_get_slp_defs.
8307 (vectorizable_type_demotion, vectorizable_type_promotion,
8308 vectorizable_store): Likewise.
8309 (vect_analyze_stmt): Update call to vectorizable_reduction.
8310 (vect_transform_stmt): Likewise.
8311 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
8312 (vect_build_slp_tree): Fix indentation. Check that there are no loads
8313 from different interleaving chains in same node.
8314 (vect_slp_rearrange_stmts): New function.
8315 (vect_supported_load_permutation_p): Allow load permutations for
8316 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
8317 inside SLP nodes if necessary.
8318 (vect_analyze_slp_instance): Handle reductions.
8319 (vect_analyze_slp): Try to build SLP instances originating from groups
8320 of reductions.
8321 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
8322 (vect_get_constant_vectors): Create initial vectors for reductions
8323 according to reduction code. Add new argument.
8324 (vect_get_slp_defs): Add new argument, pass it to
8325 vect_get_constant_vectors.
8326 (vect_schedule_slp_instance): Remove SLP tree root statements.
8327
8328 2010-04-19 Jakub Jelinek <jakub@redhat.com>
8329
8330 * tree.h (ENUM_IS_SCOPED): Define.
8331 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
8332 for ENUM_IS_SCOPED enums.
8333
8334 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8335
8336 * fold-const.c (fold_comparison): Use ssizetype.
8337 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
8338 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
8339 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
8340 * tree-object-size.c (compute_object_sizes): Use size_type_node.
8341
8342 * tree.h (initialize_sizetypes): Remove parameter.
8343 (build_common_tree_nodes): Remove second parameter.
8344 * stor-layout.c (initialize_sizetypes): Remove parameter.
8345 Always create an unsigned type.
8346 (set_sizetype): Assert that the passed type is unsigned and simplify.
8347 * tree.c (build_common_tree_nodes): Remove second parameter.
8348 Adjust call to initialize_sizetypes.
8349 * c-decl.c (c_init_decl_processing): Remove second argument in call to
8350 build_common_tree_nodes.
8351
8352 2010-04-18 Matthias Klose <doko@ubuntu.com>
8353
8354 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
8355
8356 2010-04-18 Ira Rosen <irar@il.ibm.com>
8357
8358 PR tree-optimization/43771
8359 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
8360 load permutation doesn't have gaps.
8361
8362 2010-04-18 Jan Hubicka <jh@suse.cz>
8363
8364 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
8365 (sse_prologue_save_insn expander): Use new pattern.
8366 (sse_prologue_save_insn1): New pattern and splitter.
8367 (sse_prologue_save_insn): Update to deal also with 64bit aligned
8368 blocks.
8369 * i386.c (setup_incoming_varargs_64): Do not compute jump
8370 destination here.
8371 (ix86_gimplify_va_arg): Update alignment needed.
8372 (ix86_local_alignment): Do not align all local arrays to 128bit.
8373
8374 2010-04-17 Jan Hubicka <jh@suse.cz>
8375
8376 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
8377
8378 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
8379
8380 * arm.md (negdi2): Remove redundant code to force values into a
8381 register.
8382
8383 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
8384
8385 * arm/bpabi.S: Add EABI alignment attributes to objects.
8386 * arm/bpabi-v6m.S: Likewise.
8387 * arm/crti.asm: Likewise.
8388 * arm/crtn.asm: Likewise.
8389 * arm/lib1funcs.asm: Likewise.
8390 * arm/libunwind.S: Likewise.
8391
8392 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
8393
8394 * arm-protos.h (tune_params): New structure.
8395 * arm.c (current_tune): New variable.
8396 (arm_constant_limit): Delete.
8397 (struct processors): Add pointer to the tune parameters.
8398 (arm_slowmul_tune): New tuning option.
8399 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
8400 (all_cores): Adjust to pick up the tuning model.
8401 (arm_constant_limit): New function.
8402 (arm_override_options): Select the appropriate tuning model. Delete
8403 initialization of arm_const_limit.
8404 (arm_split_constant): Use the new constant-limit model.
8405 (arm_rtx_costs): Pick up the current tuning model.
8406 * arm.md (is_strongarm, is_xscale): Delete.
8407 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
8408 for Xscale variant architectures.
8409 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
8410
8411 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8412
8413 * config/arm/arm.c (arm_gen_constant): Remove unused variable
8414 can_shift.
8415 (arm_rtx_costs_1): Remove unused variable extra_cost.
8416 (arm_unwind_emit_set): Use variable offset.
8417 (thumb1_output_casesi): Remove unused variable flags.
8418
8419 2010-04-16 Jeff Law <law@redhat.com>
8420
8421 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
8422 needing assignment rather than doing a two-phase assignment. Remove
8423 unused variable 'm'.
8424
8425 2010-04-16 Jakub Jelinek <jakub@redhat.com>
8426
8427 PR bootstrap/43767
8428 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
8429
8430 2010-04-16 Doug Kwan <dougkwan@google.com>
8431
8432 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
8433 (next_operand_entry_id): New static variable.
8434 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
8435 (add_to_ops_vec): Assigned unique ID to operand entry.
8436 (struct oecount_s): New field ID.
8437 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
8438 (undistribute_ops_list): Assign unique IDs to oecounts.
8439 (init_reassoc): reset next_operand_entry_id.
8440
8441 2010-04-16 Doug Kwan <dougkwan@google.com>
8442
8443 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
8444 missing left parenthesis.
8445
8446 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
8447
8448 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
8449 *btdi_rex64 using SWI48 mode iterator.
8450 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
8451 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
8452 *jcc_btdi_mask_rex64.
8453
8454 2010-04-16 Anatoly Sokolov <aesok@post.ru>
8455
8456 * double-int.h (tree_to_double_int): Convert to macro.
8457 * double-int.c (tree_to_double_int): Remove.
8458
8459 2010-04-16 Jakub Jelinek <jakub@redhat.com>
8460
8461 PR debug/43762
8462 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
8463 with want_address 2 and in case a single element list might be
8464 possible, call it again with want_address 0.
8465
8466 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8467
8468 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
8469 case 'W' print operands for HI mode.
8470 * config/h8300/h8300.h (Y0, Y2) : New constraints.
8471 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
8472 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
8473 * config/h8300/predicate.md (bit_register_indirect_operand): New.
8474
8475 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
8476
8477 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
8478 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
8479 #xx:3 and #xx:4 mode.
8480
8481 * config/h8300/h8300.md (inverted load with HImode dest): Add
8482 support for H8300SX.
8483
8484 * config/h8300/predicate.md (bit_operand): Allow immediate values that
8485 satisfy 'U' constraint.
8486
8487 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8488
8489 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
8490 * configure: Regenerate.
8491 * config.in: Regenerate.
8492 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
8493 works.
8494
8495 2010-04-16 Richard Guenther <rguenther@suse.de>
8496
8497 * tree.h (struct tree_decl_minimal): Move pt_uid ...
8498 (struct tree_decl_common): ... here.
8499 (DECL_PT_UID): Adjust.
8500 (SET_DECL_PT_UID): Likewise.
8501 (DECL_PT_UID_SET_P): Likewise.
8502
8503 2010-04-16 Richard Guenther <rguenther@suse.de>
8504
8505 PR tree-optimization/43572
8506 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
8507 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
8508 * tree-flow.h (is_call_clobbered): Remove.
8509 * tree-flow-inline.h (is_call_clobbered): Likewise.
8510 * tree-dfa.c (dump_variable): Do not dump call clobber state.
8511 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
8512 (execute_return_slot_opt): Adjust.
8513 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
8514 check for call clobbered vars here.
8515 (find_tail_calls): Move tailcall verification to the
8516 proper place.
8517
8518 2010-04-16 Diego Novillo <dnovillo@google.com>
8519
8520 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
8521
8522 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
8523
8524 PR target/40603
8525 * config/arm/arm.md (cbranchqi4): New pattern.
8526 * config/arm/predicates.md (const0_operand,
8527 cbranchqi4_comparison_operator): New predicates.
8528
8529 2010-04-16 Richard Guenther <rguenther@suse.de>
8530
8531 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
8532 (dump_gimple_stmt): Likewise.
8533
8534 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
8535
8536 * recog.h (struct recog_data): New field is_operator.
8537 (struct insn_operand_data): New field is_operator.
8538 * recog.c (extract_insn): Set recog_data.is_operator.
8539 * genoutput.c (output_operand_data): Emit code to set the
8540 is_operator field.
8541 * reload.c (find_reloads): Use it rather than testing for an
8542 empty constraint string.
8543
8544 PR target/41514
8545 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
8546 If the previous insn is a cbranchsi4_insn with the same arguments,
8547 omit the compare instruction.
8548
8549 * config/arm/arm.md (addsi3_cbranch): If destination is a high
8550 register, inputs must be low registers and we need a low register
8551 scratch. Handle alternative 2 like alternative 3.
8552
8553 2010-04-16 Jakub Jelinek <jakub@redhat.com>
8554
8555 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
8556 don't call get_addr on both. If one expression is a VALUE and
8557 the other a REG, check VALUE's locs if the REG isn't among them.
8558
8559 2010-04-16 Christian Bruel <christian.bruel@st.com>
8560
8561 * config/sh/sh.h (sh_frame_pointer_required): New function.
8562 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
8563 (flag_omit_frame_pointer) Set.
8564 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
8565 (rounded_frame_size): Adjust size with outgoing_args_size.
8566 (sh_set_return_address): Must return from stack pointer.
8567 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
8568 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
8569 (ACCUMULATE_OUTGOING_ARGS): Define.
8570 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
8571 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
8572
8573 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
8574
8575 PR target/43471
8576 * config/sh/sh.c (sh_legitimize_reload_address): Use
8577 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
8578 Remove a unneeded check for offset_base.
8579
8580 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
8581
8582 * configure: Regenerated.
8583
8584 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8585
8586 * config/s390/s390.c (s390_call_save_register_used): Switch back
8587 to HARD_REGNO_NREGS.
8588
8589 2010-04-15 Richard Guenther <rguenther@suse.de>
8590
8591 * alias.c (alias_set_subset_of): Handle alias-set zero
8592 child properly.
8593
8594 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
8595 Julian Brown <julian@codesourcery.com>
8596
8597 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
8598 alternatives according to use of high and low regs.
8599 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8600 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
8601 optimizing for size on Thumb-2.
8602
8603 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
8604
8605 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
8606
8607 2010-04-15 Richard Guenther <rguenther@suse.de>
8608
8609 * tree-ssa-structalias.c (struct variable_info): Add
8610 is_fn_info flag.
8611 (new_var_info): Initialize it.
8612 (dump_constraints): Support printing last added constraints.
8613 (debug_constraints): Adjust.
8614 (dump_constraint_graph): Likewise.
8615 (make_heapvar_for): Check for NULL cfun.
8616 (get_function_part_constraint): New function.
8617 (get_fi_for_callee): Likewise.
8618 (find_func_aliases): Properly implement IPA PTA constraints.
8619 (process_ipa_clobber): New function.
8620 (find_func_clobbers): Likewise.
8621 (insert_into_field_list_sorted): Remove.
8622 (create_function_info_for): Properly allocate vars for IPA mode.
8623 Do not use insert_into_field_list_sorted.
8624 (create_variable_info_for): Properly generate constraints for
8625 global vars in IPA mode.
8626 (dump_solution_for_var): Always dump the solution.
8627 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
8628 (find_what_var_points_to): Adjust.
8629 (pt_solution_set): Change.
8630 (pt_solution_ior_into): New function.
8631 (pt_solution_empty_p): Export.
8632 (pt_solution_includes_global): Adjust.
8633 (pt_solution_includes_1): Likewise.
8634 (pt_solutions_intersect_1): Likewise.
8635 (dump_sa_points_to_info): Check some invariants.
8636 (solve_constraints): Move constraint dumping ...
8637 (compute_points_to_sets): ... here.
8638 (ipa_pta_execute): ... and here.
8639 (compute_may_aliases): Do not re-compute points-to info
8640 locally if IPA info is available.
8641 (ipa_escaped_pt): New global var.
8642 (ipa_pta_execute): Properly implement IPA PTA.
8643 * tree-into-ssa.c (dump_decl_set): Support dumping
8644 decls not in referenced-vars.
8645 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
8646 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
8647 (dump_points_to_solution): Likewise.
8648 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
8649 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
8650 (remap_gimple_stmt): Reset call clobber/use information if necessary.
8651 (copy_decl_to_var): Copy DECL_PT_UID.
8652 (copy_result_decl_to_var): Likewise.
8653 * tree.c (make_node_stat): Initialize DECL_PT_UID.
8654 (copy_node_stat): Copy it.
8655 * tree.h (DECL_PT_UID): New macro.
8656 (SET_DECL_PT_UID): Likewise.
8657 (DECL_PT_UID_SET_P): Likewise.
8658 (struct tree_decl_minimal): Add pt_uid member.
8659 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
8660 (pt_solution_empty_p): Declare.
8661 (pt_solution_set): Adjust.
8662 (ipa_escaped_pt): Declare.
8663 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
8664 * gimple-pretty-print.c (pp_points_to_solution): New function.
8665 (dump_gimple_call): Dump call clobber/use information.
8666 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
8667 * tree-pass.h (TDF_ALIAS): New dump option.
8668 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
8669 * doc/invoke.texi (-fipa-pta): Update documentation.
8670
8671 2010-04-15 Richard Guenther <rguenther@suse.de>
8672
8673 * Makefile.in (OBJS-common): Add gimple-fold.o.
8674 (gimple-fold.o): New rule.
8675 * tree.h (maybe_fold_offset_to_reference,
8676 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
8677 prototypes ...
8678 * gimple.h: ... here.
8679 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
8680 may_propagate_address_into_dereference): Move prototypes ...
8681 * gimple.h: ... here.
8682 * tree-ssa-ccp.c (get_symbol_constant_value,
8683 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
8684 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
8685 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
8686 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
8687 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
8688 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
8689 gimplify_and_update_call_from_tree): Move ...
8690 * gimple-fold.c: ... here. New file.
8691 (ccp_fold_builtin): Rename to ...
8692 (gimple_fold_builtin): ... this.
8693 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
8694
8695 2010-04-15 Richard Guenther <rguenther@suse.de>
8696
8697 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
8698 fit_double_type, force_fit_type_double, add_double_with_sign,
8699 neg_double, mul_double_with_sign, lshift_double, rshift_double,
8700 lrotate_double, rrotate_double, div_and_round_double): Move ...
8701 * double-int.c: ... here.
8702 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
8703 add_double, neg_double, mul_double_with_sign, mul_double,
8704 lshift_double, rshift_double, lrotate_double, rrotate_double,
8705 div_and_round_double): Move prototypes ...
8706 * double-int.h: ... here.
8707
8708 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
8709
8710 PR target/43742
8711 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
8712 matching constraints to ensure inputs match the output.
8713
8714 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
8715
8716 PR target/43742
8717 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
8718 in an input-only operand.
8719
8720 2010-04-15 Anatoly Sokolov <aesok@post.ru>
8721
8722 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
8723 (double_int_not, double_int_lshift, double_int_rshift): Declare.
8724 (double_int_negative_p): Convert to static inline function.
8725 * double-int.c (double_int_lshift, double_int_lshift): New functions.
8726 (double_int_negative_p): Remove.
8727 * tree.h (lshift_double, rshift_double):
8728 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
8729 * fold-const.c (fold_convert_const_int_from_real,
8730 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
8731 (lshift_double): Change type of arith argument to bool.
8732 (rshift_double): Change type of arith argument to bool. Correct
8733 comment.
8734 * expmed.c (mask_rtx, lshift_value): (Ditto.).
8735
8736 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
8737
8738 PR target/21803
8739 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
8740 at the start and end of the then/else blocks, and omit them from the
8741 conversion.
8742 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
8743 argument; all callers changed. Pass zero to old_insns_match_p instead.
8744 (flow_find_head_matching_sequence): New function.
8745 (old_insns_match_p): Check REG_EH_REGION notes for calls.
8746 * basic-block.h (flow_find_cross_jump,
8747 flow_find_head_matching_sequence): Declare functions.
8748
8749 2010-04-14 Jason Merrill <jason@redhat.com>
8750
8751 PR c++/36625
8752 * c-common.c (attribute_takes_identifier_p): New fn.
8753 * c-common.h: Declare it.
8754
8755 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8756
8757 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
8758 splitter condition.
8759 (*udivmod<mode>4): Ditto.
8760
8761 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8762
8763 * config/i386/i386.md (maxmin_int): Rename code attribute from
8764 maxminiprefix and update all users.
8765 (maxmin_float): Ditto from maxminfprefix.
8766 (logic): Ditto from logicprefix.
8767 (absneg_mnemonic): Ditto from absnegprefix.
8768 * config/i386/mmx.md: Update all users of maxminiprefix,
8769 maxminfprefix and logicprefix for rename.
8770 * config/i386/sse.md: Ditto.
8771 * config/i386/sync.md (sync_<code><mode>): Update for
8772 logicprefix rename.
8773
8774 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8775
8776 PR 42966
8777 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
8778 warnings converted to errors.
8779
8780 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8781
8782 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
8783 used insn_type variable.
8784 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
8785 to avoid set-but-not-used warning.
8786
8787 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8788
8789 * df-core.c (df_ref_debug): Change format string placeholder
8790 from 0x%x to %#x.
8791 * dwarf2asm.c (dw2_asm_output_data_raw,
8792 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
8793 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
8794 * dwarf2out.c (output_cfi, output_cfi_directive,
8795 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
8796 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
8797 Ditto.
8798 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
8799 * print-rtl.c (print_rtx): Ditto.
8800
8801 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8802
8803 PR middle-end/42694
8804 * builtins.c (expand_builtin_pow_root): New function to expand pow
8805 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
8806 series of sqrt and cbrt calls under -ffast-math.
8807 (expand_builtin_pow): Call it.
8808
8809 2010-04-14 Michael Matz <matz@suse.de>
8810
8811 PR tree-optimization/42963
8812 * tree-cfg.c (touched_switch_bbs): New static variable.
8813 (group_case_labels_stmt): New function broken out from ...
8814 (group_case_labels): ... here, use the above.
8815 (start_recording_case_labels): Allocate touched_switch_bbs.
8816 (end_recording_case_labels): Deallocate it, call
8817 group_case_labels_stmt.
8818 (gimple_redirect_edge_and_branch): Remember index of affected BB.
8819
8820 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8821
8822 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
8823 from insn template.
8824
8825 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8826
8827 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
8828
8829 2010-04-13 Jan Hubicka <jh@suse.cz>
8830
8831 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
8832 of optimized out static functions.
8833 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
8834 cost computation. Also sanity check for overflows.
8835 (update_caller_keys): Update cgraph_edge_badness call; properly
8836 update fibheap and sanity check that it is up to date.
8837 (add_new_edges_to_heap): Update cgraph_edge_badness.
8838 (cgraph_decide_inlining_of_small_function): Likewise;
8839 add sanity checking that badness in heap is up to date;
8840 improve dumping of reason; Update badness of calls to the
8841 offline copy of function currently inlined; dump badness
8842 of functions not inlined because of unit growth limits.
8843
8844 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8845
8846 PR middle-end/32628
8847 * c-common.c (pointer_int_sum): Disregard overflow that occured only
8848 because of sign-extension change when converting to sizetype here...
8849 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
8850
8851 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
8852 the folding to constants. Remove redundant final conversion.
8853 (fold_binary) <associate>: Do not associate if the re-association of
8854 constants alone overflows.
8855 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
8856 to the end of the list.
8857 (multiple_of_p) <COND_EXPR>: New case.
8858
8859 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8860
8861 * opt-functions.awk (opt_sanitized_name): New.
8862 (opt_enum): New.
8863 * optc-gen.awk: Use it
8864 * opth-gen.awk: Use it.
8865
8866 2010-04-13 Martin Jambor <mjambor@suse.cz>
8867
8868 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
8869 (sra_modify_assign): Delete stmts loading dead data even if racc has no
8870 children. Call replace_uses_with_default_def_ssa_name to handle
8871 SSA_NAES on lhs.
8872
8873 2010-04-13 Michael Matz <matz@suse.de>
8874
8875 PR middle-end/43730
8876 * builtins.c (expand_builtin_interclass_mathfn): Also create
8877 a register if the predicate doesn't match.
8878
8879 2010-04-13 Diego Novillo <dnovillo@google.com>
8880
8881 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
8882 * c-pch.c: Include timevar.h.
8883 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
8884 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
8885 * ggc-common.c: Include timevar.h.
8886 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
8887 * timevar.def (TV_PCH_SAVE): Define.
8888 (TV_PCH_CPP_SAVE): Define.
8889 (TV_PCH_PTR_REALLOC): Define.
8890 (TV_PCH_PTR_SORT): Define.
8891 (TV_PCH_RESTORE): Define.
8892 (TV_PCH_CPP_RESTORE): Define.
8893
8894 2010-04-13 Michael Matz <matz@suse.de>
8895
8896 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
8897 into MINUS_EXPRs.
8898 (can_reassociate_p): New function.
8899 (break_up_subtract_bb, reassociate_bb): Use it.
8900
8901 2010-04-13 Richard Guenther <rguenther@suse.de>
8902
8903 PR bootstrap/43737
8904 * builtins.c (c_readstr): Fix assert.
8905
8906 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
8907
8908 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
8909 when generating cltd insn.
8910
8911 (*ashl<mode>3_1): Remove special handling for register operand 2.
8912 (*ashlsi3_1_zext): Ditto.
8913 (*ashlhi3_1): Ditto.
8914 (*ashlhi3_1_lea): Ditto.
8915 (*ashlqi3_1): Ditto.
8916 (*ashlqi3_1_lea): Ditto.
8917 (*<shiftrt_insn><mode>3_1): Ditto.
8918 (*<shiftrt_insn>si3_1_zext): Ditto.
8919 (*<shiftrt_insn>qi3_1_slp): Ditto.
8920 (*<rotate_insn><mode>3_1): Ditto.
8921 (*<rotate_insn>si3_1_zext): Ditto.
8922 (*<rotate_insn>qi3_1_slp): Ditto.
8923
8924 2010-04-13 Richard Guenther <rguenther@suse.de>
8925
8926 * tree-ssa-structalias.c (callused_id): Remove.
8927 (call_stmt_vars): New.
8928 (get_call_vi): Likewise.
8929 (lookup_call_use_vi): Likewise.
8930 (lookup_call_clobber_vi): Likewise.
8931 (get_call_use_vi): Likewise.
8932 (get_call_clobber_vi): Likewise.
8933 (make_transitive_closure_constraints): Likewise.
8934 (handle_const_call): Adjust to do per-call call-used handling.
8935 (handle_pure_call): Likewise.
8936 (find_what_var_points_to): Remove general callused handling.
8937 (init_base_vars): Likewise.
8938 (init_alias_vars): Initialize call_stmt_vars.
8939 (compute_points_to_sets): Process call-used and call-clobbered
8940 vars for call statements.
8941 (delete_points_to_sets): Free call_stmt_vars.
8942
8943 2010-04-13 Richard Guenther <rguenther@suse.de>
8944
8945 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8946 Only add RW dependence for dependence distance zero.
8947 Adjust maximal vectorization factor according to dependences.
8948 Move alignment handling ...
8949 (vect_find_same_alignment_drs): ... here. New function.
8950 (vect_analyze_data_ref_dependences): Adjust.
8951 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
8952 (vect_analyze_data_refs): Adjust minimal vectorization factor
8953 according to data references.
8954 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
8955 dependences before determining the vectorization factor.
8956 Analyze alignment after determining the vectorization factor.
8957 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
8958 dependences before alignment.
8959 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
8960 Adjust prototype.
8961 (vect_analyze_data_refs): Likewise.
8962 (MAX_VECTORIZATION_FACTOR): New define.
8963
8964 2010-04-13 Duncan Sands <baldrick@free.fr>
8965
8966 * except.h (lang_eh_type_covers): Remove.
8967 * except.c (lang_eh_type_covers): Likewise.
8968
8969 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8970 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8971
8972 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
8973 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
8974 UNITS_PER_LONG where it is ABI relevant.
8975 (s390_return_addr_rtx): Likewise.
8976 (s390_back_chain_rtx): Likewise.
8977 (s390_frame_area): Likewise.
8978 (s390_frame_info): Likewise.
8979 (s390_initial_elimination_offset): Likewise.
8980 (save_gprs): Likewise.
8981 (s390_emit_prologue): Likewise.
8982 (s390_emit_epilogue): Likewise.
8983 (s390_function_arg_advance): Likewise.
8984 (s390_function_arg): Likewise.
8985 (s390_va_start): Likewise.
8986 (s390_gimplify_va_arg): Likewise.
8987 (s390_function_profiler): Likewise.
8988 (s390_optimize_prologue): Likewise.
8989 (s390_rtx_costs): Likewise.
8990 (s390_secondary_reload): Likewise.
8991 (s390_promote_function_mode): Likewise.
8992 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
8993 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
8994 registers available.
8995 (s390_unwind_word_mode): New function.
8996 (s390_function_value): Split 64 bit values into register pair if
8997 used as return value.
8998 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
8999 function call parameters. Handle parallels.
9000 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
9001 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
9002 (DWARF_CIE_DATA_ALIGNMENT): New macro.
9003 (s390_expand_setmem): Remove unused variable src_addr.
9004 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
9005 deal with 64 bit registers.
9006 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
9007 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
9008 (UNITS_PER_LONG): New macro.
9009 * libjava/include/s390-signal.h: Define extended ucontext
9010 structure containing the upper halfs of the 64 bit registers.
9011
9012 2010-04-13 Simon Baldwin <simonb@google.com>
9013
9014 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
9015
9016 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9017
9018 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
9019 rvalue on the RHS if the LHS is of a non-renamable type.
9020 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
9021
9022 2010-04-13 Matthias Klose <doko@ubuntu.com>
9023
9024 * gcc.c (cc1_options): Handle -iplugindir before processing
9025 the cc1 spec. Only add -iplugindir once.
9026 (cpp_unique_options): Add -iplugindir option if -fplugin* options
9027 found.
9028 * common.opt (iplugindir): Remove `Separate' property, initialize.
9029 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
9030 option.
9031 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
9032 (distclean): Remove plugin dir.
9033 * doc/invoke.texi: Document -iplugindir.
9034
9035 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
9036
9037 * doc/plugins.texi (Loading Plugins): Document short
9038 -fplugin=foo option.
9039 (Plugin API): Mention default_plugin_dir_name function.
9040
9041 * gcc.c (find_file_spec_function): Add new declaration.
9042 (static_spec_func): Use it for "find-file".
9043 (find_file_spec_function): Add new function.
9044 (cc1_options): Add -iplugindir option if -fplugin* options found.
9045
9046 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
9047
9048 * plugin.c (add_new_plugin): Updated comment, and handle short
9049 plugin name.
9050 (default_plugin_dir_name): Added new function.
9051
9052 * common.opt (iplugindir): New option to set the plugin directory.
9053
9054 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
9055
9056 * config/i386/i386.md (any_rotate): New code iterator.
9057 (rotate_insn): New code attribute.
9058 (rotate): Ditto.
9059 (SWIM124): New mode iterator.
9060 (<rotate_insn>ti3): New expander.
9061 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
9062 any_rotate code iterator.
9063 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
9064 using any_rotate code iterator and SWIM124 mode iterator.
9065 (ix86_rotlti3): New insn_and_split pattern.
9066 (ix86_rotrti3): Ditto.
9067 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
9068 ix86_rotl{di,ti}3 patterns.
9069 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
9070 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
9071 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
9072 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
9073 code iterator and SWI mode iterator.
9074 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
9075 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
9076 code iterator.
9077 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
9078 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
9079 (bswap rotatert splitter): Add splitter.
9080 (bswap splitter): Macroize splitter using any_rotate code iterator.
9081 Add insn predicate to split only for TARGET_USE_XCHGB or when
9082 optimizing function for size.
9083
9084 2010-04-12 Steve Ellcey <sje@cup.hp.com>
9085
9086 * config/pa/pa.c (emit_move_sequence): Remove use of
9087 deleted variable flag_argument_noalias.
9088
9089 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9090
9091 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
9092 configurations.
9093 Add to unsupported targets list.
9094 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
9095 sparc*-sun-solaris2.[567]* from target lists.
9096 * configure: Regenerate.
9097 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
9098 removal.
9099 Remove Solaris 7 patch references.
9100 (Specific, sparc-sun-solaris2.7): Removed.
9101 (sparc-sun-solaris2*): Update Solaris 7 example.
9102 (sparc64-*-solaris2*): Likewise.
9103
9104 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9105
9106 * config.build (alpha*-dec-osf4*): Remove.
9107 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
9108 of obsolete configurations.
9109 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
9110 support.
9111 * config/alpha/t-osf4: Renamed to ...
9112 * config/alpha/t-osf5: ... this.
9113 * config/alpha/osf.h: Renamed to ...
9114 * config/alpha/osf5.h: ... this.
9115 Merged old osf5.h contents.
9116 Update comments.
9117 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
9118 (EXTRA_SPECS): Removed.
9119 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
9120 reflect removal of Tru64 UNIX V4.0/V5.0 support.
9121 Document that.
9122
9123 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9124
9125 * doc/contrib.texi (Contributors, Rainer Orth): Update.
9126
9127 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
9128
9129 PR/43702
9130 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
9131 __thiscall convention.
9132
9133 2010-04-12 Steve Ellcey <sje@cup.hp.com>
9134
9135 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
9136 orig_base.
9137 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
9138
9139 2010-04-12 Steve Ellcey <sje@cup.hp.com>
9140
9141 * function.c (assign_parms_initialize_all): Add unused attribute
9142 to fntype.
9143
9144 2010-04-12 Richard Guenther <rguenther@suse.de>
9145
9146 * gsstruct.def (GSS_CALL): New.
9147 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
9148 * gimple.h: Include tree-ssa-alias.h.
9149 (struct gimple_statement_call): New.
9150 (union gimple_statement_struct_d): Add gimple_call member.
9151 (gimple_call_reset_alias_info): Declare.
9152 (gimple_call_use_set): New function.
9153 (gimple_call_clobber_set): Likewise.
9154 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
9155 * gimple.c (gimple_call_reset_alias_info): New function.
9156 (gimple_build_call_1): Call it.
9157 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9158 * tree-inline.c (remap_gimple_stmt): Likewise.
9159 (expand_call_inline): Remove callused handling.
9160 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
9161 * tree-dfa.c (dump_variable): Likewise.
9162 * tree-parloops.c (parallelize_loops): Likewise.
9163 * tree-ssa.c (init_tree_ssa): Likewise.
9164 (delete_tree_ssa): Likewise.
9165 * tree-flow-inline.h (is_call_used): Remove.
9166 * tree-flow.h (struct gimple_df): Remove callused member.
9167 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
9168 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
9169 (ref_maybe_used_by_call_p_1): Simplify.
9170 (call_may_clobber_ref_p_1): Likewise.
9171 * tree-ssa-structalias.c (compute_points_to_sets): Set
9172 the call stmt used and clobbered sets.
9173 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
9174 (find_tail_calls): Verify the tail call.
9175
9176 2010-04-12 Richard Guenther <rguenther@suse.de>
9177
9178 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
9179 single-iteration always-inline inlining.
9180 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
9181 (cgraph_decide_inlining): Do not handle always-inline specially.
9182 (try_inline): Remove always-inline cycle detection special case.
9183 Do not recurse on always-inlines.
9184 (cgraph_early_inlining): Do not iterate if not optimizing.
9185 (cgraph_gate_early_inlining): remove.
9186 (pass_early_inline): Run unconditionally.
9187 (gate_cgraph_decide_inlining): New function.
9188 (pass_ipa_inline): Use it. Do not run the IPA inliner if
9189 not inlining or optimizing.
9190 (cgraph_decide_inlining_of_small_functions): Also consider
9191 always-inline functions.
9192 (cgraph_default_inline_p): Return true for nodes which should
9193 disregard inline limits.
9194 (estimate_function_body_sizes): Assume zero size and time for
9195 nodes which are marked as disregarding inline limits.
9196 (cgraph_decide_recursive_inlining): Do not perform recursive
9197 inlining on always-inline nodes.
9198
9199 2010-04-12 Jakub Jelinek <jakub@redhat.com>
9200
9201 PR bootstrap/43699
9202 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
9203 for exprs satisfying handled_component_p.
9204
9205 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9206
9207 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
9208 non-constant aggregate elements.
9209
9210 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
9211 is a real initialization.
9212
9213 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
9214
9215 PR c/36774
9216 * c-decl.c (start_function): Move forward check for nested function.
9217
9218 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9219
9220 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
9221 * config/sh/sh.c: Include reload.h.
9222 (sh_legitimize_reload_address): New.
9223 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
9224 sh_legitimize_reload_address.
9225
9226 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9227
9228 * config/sh/sh.md (*movqi_pop): New insn pattern.
9229 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
9230
9231 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
9232
9233 * config/i386/i386.md (any_shiftrt): New code iterator.
9234 (shiftrt_insn): New code attribute.
9235 (shiftrt): Ditto.
9236 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
9237 using any_shiftrt code iterator.
9238 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
9239 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
9240 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
9241 pattern from corresponding peephole2 patterns.
9242 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
9243 using any_shiftrt code iterator.
9244 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
9245 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
9246 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
9247 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
9248 *{ashr,lshr}<mode>3_cmp_zext.
9249 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
9250
9251 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
9252
9253 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
9254 scratch register.
9255 (*lshr<mode>3_cconly): Ditto.
9256
9257 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
9258
9259 * config/i386/i386.md (lshr<mode>3): Macroize expander from
9260 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
9261 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
9262 pattern from *lshr{di,ti}3_1 and corresponding splitters using
9263 DWI mode iterator.
9264 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
9265 from corresponding peephole2 patterns.
9266 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
9267 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
9268 and *lshrdi3_1_rex64 using SWI mode iterator.
9269 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
9270 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
9271 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
9272 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
9273 and *lshrdi3_cmp_rex64 using SWI mode iterator.
9274 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
9275 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
9276 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
9277 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
9278 SWI mode iterator.
9279
9280 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
9281
9282 * config/i386/i386.md (ashr<mode>3): Macroize expander from
9283 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
9284 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
9285 pattern from *ashr{di,ti}3_1 and corresponding splitters using
9286 DWI mode iterator.
9287 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
9288 from corresponding peephole2 patterns.
9289 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
9290 (ashrsi3_cvt): Rename from ashrsi3_31.
9291 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
9292 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
9293 and x86_64_shift_adj_3 using SWI48 mode iterator.
9294 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
9295 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
9296 and *ashrdi3_1_rex64 using SWI mode iterator.
9297 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
9298 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
9299 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
9300 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
9301 and *ashrdi3_cmp_rex64 using SWI mode iterator.
9302 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
9303 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
9304 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
9305 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
9306 SWI mode iterator.
9307 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
9308 * config/i386/i386.c (ix86_split_ashr): Update for renamed
9309 x86_shift<mode>_adj_3 expanders.
9310
9311 2010-04-10 Wei Guozhi <carrot@google.com>
9312
9313 PR target/42601
9314 * config/arm/arm.c (arm_pic_static_addr): New function.
9315 (legitimize_pic_address): Call arm_pic_static_addr when it detects
9316 a static symbol.
9317 (arm_output_addr_const_extra): Output expression for new pattern.
9318 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
9319
9320 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
9321
9322 * ira-costs.c (record_reg_classes): Ignore alternatives that are
9323 not enabled.
9324
9325 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
9326 * web.c: Include "insn-config.h" and "recog.h".
9327 (union_match_dups): New function.
9328 (web_main): Call it.
9329 (union_defs): Don't try to recognize match_dups.
9330
9331 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
9332 if doing so would replace the entire pattern.
9333
9334 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
9335
9336 PR target/43707
9337 PR target/43709
9338 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
9339 and splitter pattern. Change splitter operand 1 predicate to
9340 nonmemory_operand.
9341
9342 2010-04-09 Martin Jambor <mjambor@suse.cz>
9343
9344 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
9345 lattices are addresses of CONST_DECLs with the same initial value.
9346 (ipcp_print_all_lattices): Print values of CONST_DECLs.
9347 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
9348
9349 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9350 Bernd Schmidt <bernds@codesourcery.com>
9351
9352 * loop-invariant.c (replace_uses): New static function.
9353 (move_invariant_reg): Use it to ensure we can replace the uses.
9354
9355 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
9356
9357 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
9358 function template.
9359 (picochip_override_options): Enable section anchors only above -O1.
9360 (picochip_reorg): Fixed a couple of build warnings.
9361
9362 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9363
9364 * configure.ac (plugin -rdynamic test): Log result.
9365 * configure: Regenerate.
9366 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
9367 (RDYNAMIC_SPEC): Define.
9368 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
9369
9370 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9371
9372 * configure.ac: Determine Sun ld version numbers.
9373 (comdat_group): Restrict GNU ld version checks to gld.
9374 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
9375 (enable_comdat): Support --enable-comdat.
9376 * configure: Regenerate.
9377 * doc/install.texi (Configuration): Document --enable-comdat.
9378
9379 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9380
9381 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
9382 * config/sol2-gld.h: ... here.
9383 * config.gcc (sparc*-*-solaris2*): Reflect this.
9384 (i[34567]86-*-solaris2*): Use it.
9385
9386 2010-04-09 Steve Ellcey <sje@cup.hp.com>
9387
9388 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
9389 setup_clocks_p.
9390 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
9391
9392 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9393
9394 PR 42965
9395 * diagnostic.c (diagnostic_initialize): Initialize
9396 some_warnings_are_errors.
9397 (diagnostic_finish): New.
9398 (diagnostic_action_after_output): Call it before exiting.
9399 (diagnostic_report_diagnostic): Do not print message here. Set
9400 some_warnings_are_errors.
9401 * diagnostic.h (diagnostic_context): Delete
9402 issue_warnings_are_errors_message. Add some_warnings_are_errors.
9403 (diagnostic_finish): Declare.
9404 * toplev.c (toplev_main): Call it before exit.
9405
9406 2010-04-09 Jason Merrill <jason@redhat.com>
9407
9408 PR c++/42623
9409 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
9410 for incomplete type.
9411
9412 PR c++/41788
9413 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
9414 based on a warning flag.
9415
9416 2010-04-09 Richard Guenther <rguenther@suse.de>
9417
9418 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
9419
9420 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
9421
9422 PR bootstrap/43684
9423 * varasm.c (default_assemble_visibility): Wrap vars that are
9424 set, but unused, by targets without GAS.
9425 * config/rs6000/rs6000.c (paired_emit_vector_compare):
9426 Remove set, but unused, vars.
9427 (rs6000_legitimize_tls_address): Likewise.
9428 (altivec_expand_dst_builtin): Likewise.
9429 * config/darwin.c (machopic_classify_symbol): Likewise.
9430 (machopic_indirection_name): Likewise.
9431
9432 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
9433
9434 * config/i386/i386.md (DWI): New mode iterator.
9435 (S): New mode attribute.
9436 (shift_operand): Ditto.
9437 (shift_immediate_operand): Ditto.
9438 (ashl_input_operand): Ditto.
9439 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
9440 using SDWIM mode iterator.
9441 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
9442 pattern from *ashl{di,ti}3_1 and corresponding splitters using
9443 DWI mode iterator.
9444 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
9445 from corresponding peephole2 patterns.
9446 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
9447 and x86_64_shift_adj_1 using SWI48 mode iterator.
9448 (x86_shift<mode>_adj_2): Ditto.
9449 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
9450 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
9451 using SWI48 mode iterator.
9452 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
9453 *ashldi3_cmp_rex64 using SWI mode iterator.
9454 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
9455 *ashldi3_cconly_rex64 using SWI mode iterator.
9456 * config/i386/i386.c (ix86_split_ashl): Update for renamed
9457 x86_shift<mode>_adj_{1,2}.
9458 (ix86_split_ashr): Ditto.
9459 (ix86_split_lshr): Ditto.
9460
9461 2010-04-09 Richard Guenther <rguenther@suse.de>
9462
9463 * target.h (builtin_conversion): Pass in input and output types.
9464 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
9465 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
9466 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
9467 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
9468
9469 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
9470 Handle AVX modes.
9471 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
9472
9473 2010-04-09 Richard Guenther <rguenther@suse.de>
9474
9475 PR target/43152
9476 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
9477
9478 2010-04-09 Richard Guenther <rguenther@suse.de>
9479
9480 * tree-vectorizer.h (struct _stmt_vec_info): Document
9481 that vectype is the type of the LHS.
9482 (supportable_widening_operation, supportable_narrowing_operation):
9483 Get both input and output vector types as arguments.
9484 (vect_is_simple_use_1): Declare.
9485 (get_same_sized_vectype): Likewise.
9486 * tree-vect-loop.c (vect_determine_vectorization_factor):
9487 Set STMT_VINFO_VECTYPE to the vector type of the def.
9488 (vectorizable_reduction): Adjust.
9489 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
9490 Adjust. Specify the output vector type.
9491 (vect_pattern_recog_1): Adjust.
9492 * tree-vect-stmts.c (get_same_sized_vectype): New function.
9493 (vectorizable_call): Adjust.
9494 (vectorizable_conversion): Likewise.
9495 (vectorizable_operation): Likewise.
9496 (vectorizable_type_demotion): Likewise.
9497 (vectorizable_type_promotion): Likewise.
9498 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
9499 the def.
9500 (vect_is_simple_use_1): New function.
9501 (supportable_widening_operation): Get both input and output
9502 vector types.
9503 (supportable_narrowing_operation): Likewise.
9504 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
9505
9506 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
9507
9508 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
9509 __thiscall and _thiscall as predefined macros.
9510 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
9511 thiscall attribute handling.
9512 (ix86_comp_type_attributes): Likewise.
9513 (ix86_function_regparm): Likewise.
9514 (ix86_return_pops_args): Likewise.
9515 (init_cumulative_args): Likewise.
9516 (find_drap_reg): Likewise.
9517 (ix86_static_chain): Likewise.
9518 (x86_this_parameter): Likewise.
9519 (x86_output_mi_thunk): Likewise.
9520 (ix86_attribute_table): Add description for thiscall attribute.
9521 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
9522 * doc/extend.texi: Add documentation for thiscall.
9523
9524 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9525
9526 PR c++/28584
9527 * c.opt (Wint-to-pointer-cast): Available in C++.
9528 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
9529
9530 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9531
9532 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
9533 * calls.c (expand_call): Pass the function type to aggregate_value_p.
9534 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
9535 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
9536 function type instead. Reorder and simplify checks.
9537
9538 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
9539
9540 2010-04-08 Jing Yu <jingyu@google.com>
9541 Zdenek Dvorak <ook@ucw.cz>
9542
9543 PR tree-optimization/42720
9544 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
9545 loop unswitch conditions here from ...
9546 (tree_unswitch_single_loop): ... here.
9547
9548 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
9549
9550 * tree-if-conv.c: Fix comments and simplify logic.
9551
9552 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
9553
9554 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
9555 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
9556 (main_tree_if_conversion): Update call to tree_if_conversion.
9557
9558 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9559
9560 PR 42485
9561 * doc/invoke.texi (-b,-V): Delete.
9562 * doc/tm.texi: Do not mention -b.
9563 * gcc.c (display_help): Delete -b and -V.
9564 (process_command): Delete -b and -V.
9565 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
9566
9567 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
9568 Wolfgang Gellerich <gellerich@de.ibm.com>
9569
9570 Implement target hook for loop unrolling
9571 * target.h (loop_unroll_adjust): Add a new target hook function.
9572 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
9573 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
9574 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
9575 (s390_loop_unroll_adjust): Implement the new target hook for s390.
9576 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
9577 target hook.
9578 (decide_unroll_stupid): Likewise.
9579
9580 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9581
9582 PR target/43643
9583 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
9584
9585 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9586
9587 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
9588 (Specific, *-*-solaris2*): Likewise.
9589 Don't prefer Sun as over GNU as.
9590
9591 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
9592
9593 * config/s390/s390.c (override_options): Adjust the z10 defaults
9594 for max-unroll-times, max-completely-peeled-insns
9595 and max-completely-peel-times.
9596
9597 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9598
9599 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
9600 instructions for z10.
9601 (s390_expand_setmem): Likewise.
9602 (s390_expand_cmpmem): Likewise.
9603
9604 2010-04-08 Richard Guenther <rguenther@suse.de>
9605
9606 PR tree-optimization/43679
9607 * tree-ssa-pre.c (eliminate): Only propagate copies.
9608
9609 2010-04-08 Jakub Jelinek <jakub@redhat.com>
9610
9611 PR bootstrap/43681
9612 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
9613 set but not used variable warning.
9614
9615 2010-04-08 Wei Guozhi <carrot@google.com>
9616
9617 PR target/41653
9618 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
9619 (arm_size_rtx_costs): Call the new function when optimized for size.
9620
9621 2010-04-08 Jakub Jelinek <jakub@redhat.com>
9622
9623 PR debug/43670
9624 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
9625 op0 is not a MEM, just return NULL instead of assertion
9626 failure.
9627 (discover_nonconstant_array_refs): Don't walk debug stmts.
9628
9629 2010-04-08 Doug Kwan <dougkwan@google.com>
9630
9631 * configure.ac: Recognize gold and do not use its version number
9632 to test ld features.
9633 * configure: Regenerate.
9634
9635 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
9636
9637 PR middle-end/40815
9638 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
9639 (negate_value): Move code to push elements to broken_up_substracts ...
9640 (eliminate_plus_minus_pair): ... here. Push operands that have no
9641 negative pair to plus_negates.
9642 (repropagate_negates, init_reassoc, fini_reassoc): Update.
9643
9644 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9645
9646 * doc/install.texi (Configuration): Move description of
9647 --enable-lto, --with-libelf*, --enable-gold from Java section to
9648 general section.
9649
9650 * doc/generic.texi (Working with declarations)
9651 (Function Properties, C and C++ Trees): Fix typos.
9652 * doc/sourcebuild.texi (Top Level): Likewise.
9653
9654 2010-04-07 Jakub Jelinek <jakub@redhat.com>
9655
9656 PR c/18624
9657 * tree.h (DECL_READ_P): Define.
9658 (struct tree_decl_common): Add decl_read_flag.
9659 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
9660 a set but not used warning.
9661 (merge_decls): Merge DECL_READ_P flag.
9662 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
9663 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
9664 * c-common.c (handle_used_attribute, handle_unused_attribute):
9665 Likewise.
9666 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
9667 New prototypes.
9668 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
9669 New functions.
9670 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
9671 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
9672 c_parser_binary_expression, c_parser_cast_expression,
9673 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
9674 Call default_function_array_read_conversion instead of
9675 default_function_array_conversion where needed.
9676 (c_parser_unary_expression, c_parser_conditional_expression,
9677 c_parser_postfix_expression_after_primary, c_parser_initelt):
9678 Likewise. Call mark_exp_read where needed.
9679 (c_parser_statement_after_labels, c_parser_asm_operands,
9680 c_parser_typeof_specifier, c_parser_sizeof_expression,
9681 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
9682 where needed.
9683 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
9684 New.
9685 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
9686 (warn_unused_but_set_parameter): Default to warn_unused
9687 && extra_warnings.
9688 * doc/invoke.texi: Document -Wunused-but-set-variable and
9689 -Wunused-but-set-parameter.
9690
9691 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
9692 used count variable.
9693 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
9694 when operandN variables aren't used in the body of the expander
9695 or splitter.
9696 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
9697 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
9698 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
9699 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
9700 FOR_EACH_IMM_USE_ON_STMT): Likewise.
9701 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
9702 * tree.c (PROCESS_ARG): Likewise.
9703
9704 2010-04-07 Simon Baldwin <simonb@google.com>
9705
9706 * diagnostic.h (diagnostic_override_option_index): New macro to
9707 set a diagnostic's option_index.
9708 * c-tree.h (c_cpp_error): Add warning reason argument.
9709 * opts.c (_warning_as_error_callback): New.
9710 (register_warning_as_error_callback): Store callback for
9711 warnings enabled via enable_warning_as_error.
9712 (enable_warning_as_error): Call callback, minor code tidy.
9713 * opts.h (register_warning_as_error_callback): Declare.
9714 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
9715 response to -Werror=.
9716 (c_common_init_options): Register warning_as_error_callback in opts.c.
9717 * common.opt: Add -Wno-cpp option.
9718 * c-common.c (struct reason_option_codes_t): Map cpp warning
9719 reason codes to gcc option indexes.
9720 * (c_option_controlling_cpp_error): New function, lookup the gcc
9721 option index for a cpp warning reason code.
9722 * (c_cpp_error): Add warning reason argument, call
9723 c_option_controlling_cpp_error for diagnostic_override_option_index.
9724 * doc/invoke.texi: Document -Wno-cpp.
9725
9726 2010-04-07 Richard Guenther <rguenther@suse.de>
9727
9728 * ipa-reference.c (mark_load): Use get_base_address.
9729 (mark_store): Likewise.
9730
9731 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
9732 inserting GIMPLE_NOPs into the IL.
9733 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9734 Explicitly strip handled components and indirect references.
9735
9736 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
9737 folding address expressions.
9738 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
9739 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
9740 operand_equal_p to compare decls.
9741 (ptr_deref_may_alias_decl_p): Likewise.
9742 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
9743 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
9744 Handle reversed comparison ops.
9745 * tree-sra.c (asm_visit_addr): Use get_base_address.
9746 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
9747 * ipa-reference.c (mark_address): Use get_base_address.
9748
9749 2010-04-07 Richard Guenther <rguenther@suse.de>
9750
9751 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
9752 Propagate constants everywhere.
9753
9754 2010-04-07 Jakub Jelinek <jakub@redhat.com>
9755
9756 PR debug/43516
9757 * tree.c (MAX_INT_CACHED_PREC): Define.
9758 (nonstandard_integer_type_cache): New array.
9759 (build_nonstandard_integer_type): Cache results for precision
9760 <= MAX_INT_CACHED_PREC.
9761
9762 2010-04-07 Richard Guenther <rguenther@suse.de>
9763
9764 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
9765 -fargument-noalias-global, -fargument-noalias-anything): Remove.
9766 * common.opt: Likewise.
9767 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
9768 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
9769 (nonoverlapping_memrefs_p): Likewise.
9770 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9771 * opts.c (common_handle_option): Handle OPT_fargument_alias,
9772 OPT_fargument_noalias, OPT_fargument_noalias_anything and
9773 OPT_fargument_noalias_global for backward compatibility.
9774
9775 2010-04-07 Richard Guenther <rguenther@suse.de>
9776
9777 PR tree-optimization/43270
9778 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
9779 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
9780 * tree-ssa-pre.c (phi_translate_1): Adjust.
9781 (fully_constant_expression): Split out vn_reference handling to ...
9782 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
9783 Fold reads from constant strings.
9784 (vn_reference_lookup): Handle fully constant references.
9785 (vn_reference_lookup_pieces): Likewise.
9786 * Makefile.in (expmed.o-warn): Add -Wno-error.
9787
9788 2010-04-07 Martin Jambor <mjambor@suse.cz>
9789
9790 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
9791
9792 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
9793
9794 PR driver/41594
9795 * gcc.c: Add -static-libstdc++ to list of recognized options.
9796
9797 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9798
9799 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
9800
9801 2010-04-07 Richard Guenther <rguenther@suse.de>
9802
9803 PR middle-end/42617
9804 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
9805 bases build simple mem attributes to retain points-to information.
9806
9807 2010-04-07 Richard Guenther <rguenther@suse.de>
9808
9809 PR middle-end/42617
9810 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
9811 preserve points-to related information.
9812
9813 2010-04-07 Richard Guenther <rguenther@suse.de>
9814
9815 PR middle-end/42617
9816 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
9817 discard plain indirect references.
9818 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
9819 * tree.c (tree_nop_conversion): Likewise.
9820
9821 2010-04-07 Dodji Seketeli <dodji@redhat.com>
9822
9823 PR debug/43628
9824 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
9825
9826 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
9827
9828 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
9829 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
9830
9831 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9832
9833 * tree-if-conv.c: Fix indentation and comments.
9834
9835 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9836
9837 * tree-if-conv.c: Sort static functions in topological order.
9838
9839 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9840
9841 * tree-if-conv.c: Fix indentation and comments.
9842
9843 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9844
9845 PR middle-end/43519
9846 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
9847 lang_hooks.types.type_for_size instead of
9848 build_nonstandard_integer_type.
9849 When converting an unsigned type to signed, double its precision.
9850 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
9851 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
9852 (graphite_create_new_loop_guard): When ub + 1 wraps around,
9853 use lb <= ub.
9854
9855 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9856
9857 PR middle-end/43519
9858 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9859 POINTER_PLUS_EXPR for pointer types.
9860
9861 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9862
9863 PR middle-end/43519
9864 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
9865 * graphite-clast-to-gimple.c: Include langhooks.h.
9866 (max_signed_precision_type): New.
9867 (max_precision_type): Takes two types as arguments.
9868 (precision_for_value): New.
9869 (precision_for_interval): New.
9870 (gcc_type_for_interval): New.
9871 (gcc_type_for_value): New.
9872 (gcc_type_for_clast_term): New.
9873 (gcc_type_for_clast_red): New.
9874 (gcc_type_for_clast_bin): New.
9875 (gcc_type_for_clast_expr): Split up into several functions.
9876 (gcc_type_for_clast_eq): Rewritten.
9877 (compute_bounds_for_level): New.
9878 (compute_type_for_level_1): New.
9879 (compute_type_for_level): New.
9880 (gcc_type_for_cloog_iv): Removed.
9881 (gcc_type_for_iv_of_clast_loop): Rewritten.
9882 (graphite_create_new_loop): Compute the lower and upper bound types
9883 with gcc_type_for_clast_expr.
9884 (graphite_create_new_loop_guard): Same.
9885 (find_cloog_iv_in_expr): Removed.
9886 (compute_cloog_iv_types_1): Removed.
9887 (compute_cloog_iv_types): Removed.
9888 (gloog): Do not call compute_cloog_iv_types.
9889 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
9890 GBB_CLOOG_IV_TYPES.
9891 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
9892 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
9893 (GBB_CLOOG_IV_TYPES): Removed.
9894
9895 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9896
9897 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
9898 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
9899 (detect_commutative_reduction): Same.
9900
9901 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9902
9903 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
9904 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
9905 argument.
9906 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
9907 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
9908 (rewrite_commutative_reductions_out_of_ssa): Same.
9909 * passes.c (execute_function_todo): Call verify_ssa for every pass
9910 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
9911 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
9912 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
9913 with an extra argument.
9914 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
9915 verify_ssa only when the extra argument is true.
9916 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
9917 with an extra argument.
9918 (tree_transform_and_unroll_loop): Same.
9919
9920 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9921
9922 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
9923 for all the passes of the LNO having LOOP_CLOSED_SSA.
9924 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
9925 * tree-loop-distribution.c (pass_loop_distribution): Same.
9926 * tree-pass.h (TODO_verify_loops): Removed.
9927 * tree-ssa-loop.c (pass_tree_loop_init): Same.
9928 (pass_lim): Same.
9929 (pass_tree_unswitch): Same.
9930 (pass_predcom): Same.
9931 (pass_vectorize): Same.
9932 (pass_linear_transform): Same.
9933 (pass_graphite_transforms): Same.
9934 (pass_iv_canon): Same.
9935 (pass_complete_unroll): Same.
9936 (pass_complete_unrolli): Same.
9937 (pass_parallelize_loops): Same.
9938 (pass_loop_prefetch): Same.
9939 (pass_iv_optimize): Same.
9940
9941 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
9942
9943 PR middle-end/32824
9944 * passes.c (init_optimization_passes): Move pass_lim before
9945 pass_copy_prop and pass_dce_loop.
9946
9947 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9948
9949 PR target/43667
9950 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
9951 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
9952 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
9953 MULTI_* defines for 4 argument vpermil2p* builtins.
9954
9955 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9956
9957 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
9958 * config/i386/i386.c (x86_maybe_negate_const_int): New.
9959 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
9960 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
9961 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
9962 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
9963 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
9964 Use x86_maybe_negate_const_int to output insn mnemonic.
9965 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
9966 check from instruction predicate. Update comments.
9967 * config/i386/sync.md (sync_add<mode>): Use
9968 x86_maybe_negate_const_int to output insn mnemonic.
9969
9970 2010-04-06 Jan Hubicka <jh@suse.cz>
9971
9972 PR tree-optimization/42906
9973 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
9974 IGNORE_SELF argument. Set visited_control_parents for fully
9975 processed BBs.
9976 (find_obviously_necessary_stmts): Update call of
9977 mark_control_dependent_edges_necessary.
9978 (propagate_necessity): Likewise. Handle PHI edges more curefully.
9979
9980 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9981
9982 * config/i386/i386.md: Remove comment about 'e' and 'E'
9983 operand modifier.
9984
9985 2010-04-06 Richard Guenther <rguenther@suse.de>
9986
9987 PR tree-optimization/43627
9988 * tree-vrp.c (extract_range_from_unary_expr): Widenings
9989 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
9990 not varying.
9991
9992 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9993
9994 * BASE-VER: Change to 4.6.0.
9995
9996 PR target/43638
9997 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
9998 handling.
9999
10000 2010-04-06 Richard Guenther <rguenther@suse.de>
10001
10002 PR middle-end/43661
10003 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
10004
10005 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10006
10007 * doc/invoke.texi (Optimize Options): Document that LTO
10008 won't remove object access purely due to incompatible
10009 declarations.
10010
10011 2010-04-04 Matthias Klose <doko@ubuntu.com>
10012
10013 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
10014 Initialize variable.
10015
10016 2010-04-03 Richard Guenther <rguenther@suse.de>
10017
10018 PR middle-end/42509
10019 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
10020 require a non-NULL MEM_OFFSET.
10021
10022 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
10023
10024 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
10025 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
10026 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
10027 config/alpha/predicates.md, config/arm/arm.md,
10028 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
10029 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
10030 config/darwin9.h, config/darwin.c, config/darwin.h,
10031 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
10032 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
10033 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
10034 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
10035 config/mips/mips.md, config/mn10300/mn10300.c,
10036 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
10037 config/rs6000/aix.h, config/rs6000/dfp.md,
10038 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
10039 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
10040 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
10041 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
10042 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
10043 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
10044 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
10045 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
10046 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
10047 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
10048 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
10049 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
10050 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
10051 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
10052 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
10053 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
10054 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
10055 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
10056 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
10057 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
10058 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
10059 opt-functions.awk, opth-gen.awk, params.def, passes.c,
10060 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
10061 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
10062 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
10063 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
10064 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
10065 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10066 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
10067 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
10068 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
10069 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
10070 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
10071 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
10072 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
10073 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
10074
10075 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10076
10077 PR other/43620
10078 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
10079 * aclocal.m4: Regenerate.
10080
10081 2010-04-02 Richard Guenther <rguenther@suse.de>
10082
10083 PR tree-optimization/43629
10084 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
10085 if we have seen a constant value.
10086
10087 2010-04-02 Joseph Myers <joseph@codesourcery.com>
10088
10089 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
10090
10091 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
10092
10093 PR target/43469
10094 * arm.c (legitimize_tls_address): Adjust call to
10095 gen_tls_load_dot_plus_four.
10096 (arm_note_pic_base): New function.
10097 (arm_cannot_copy_insn_p): Use it.
10098 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
10099 constraint.
10100
10101 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10102
10103 PR bootstrap/43531
10104
10105 Revert:
10106 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10107
10108 * Makefile.in ($(out_object_file)): Depend on
10109 gt-$(basename $(notdir $(out_file))).h.
10110
10111 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
10112
10113 * config.gcc (lm32-*-rtems*): Add t-lm32.
10114
10115 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
10116
10117 * config.gcc: Add lm32-*-rtems*.
10118 * config/lm32/rtems.h: New file.
10119
10120 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
10121
10122 PR target/42609
10123 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
10124
10125 2010-04-01 Jakub Jelinek <jakub@redhat.com>
10126
10127 * dwarf2out.c (output_compilation_unit_header): For
10128 -gdwarf-4 use version 4 instead of version 3.
10129 (output_line_info): For version 4 and above emit additional
10130 maximum ops per insn header field.
10131 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
10132
10133 * dwarf2out.c (is_c_family, is_java): Remove.
10134 (lower_bound_default): New function.
10135 (add_bound_info, gen_descr_array_type_die): Use it.
10136
10137 2010-04-01 Dodji Seketeli <dodji@redhat.com>
10138
10139 PR debug/43325
10140 * dwarf2out.c (gen_variable_die): Allow debug info for variable
10141 re-declaration when it happens in a function.
10142
10143 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
10144
10145 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
10146 (cgraph_remove_function_insertion_hook): Same.
10147 (cgraph_call_function_insertion_hooks): Same.
10148
10149 2010-04-01 Richard Guenther <rguenther@suse.de>
10150
10151 PR middle-end/43614
10152 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
10153 and TREE_THIS_VOLATILE.
10154 (copy_ref_info): Likewise.
10155 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
10156 * tree.c (build6_stat): Ignore side-effects of all but arg5
10157 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
10158 TARGET_MEM_REF.
10159
10160 2010-04-01 Richard Guenther <rguenther@suse.de>
10161
10162 PR tree-optimization/43607
10163 * ipa-type-escape.c (check_call): Do not access non-existing
10164 arguments.
10165
10166 2010-04-01 Richard Guenther <rguenther@suse.de>
10167
10168 PR middle-end/43602
10169 Revert
10170 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
10171 Jack Howarth <howarth@bromo.med.uc.edu>
10172
10173 * tree-profile.c (tree_init_ic_make_global_vars): Make static
10174 variables TLS.
10175
10176 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10177
10178 * doc/install.texi (Prerequisites): Document libelf usability on
10179 IRIX 5/6 and Solaris 2.
10180 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
10181 Update GNU as, GNU ld requirements.
10182 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
10183 Document Sun Studio compiler download.
10184 Update and simplify as, ld recommendations.
10185 (Specific, *-*-solaris2.7): Note obsoletion, removal.
10186
10187 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10188
10189 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
10190 with_tune_32 to pentium4.
10191
10192 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
10193
10194 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
10195
10196 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10197
10198 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
10199 obsoletion, removal.
10200 Update IDO URL.
10201 Document GNU as requirement.
10202 Update configure requirements.
10203 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
10204 Recomment IRIX 6.5.18+.
10205 Document IDF/IDL requirement.
10206 Document GNU as requirement.
10207 Document GNU ld bootstrap failure.
10208 Remove freeware.sgi.com reference.
10209
10210 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10211
10212 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
10213 UNIX V4.0, V5.0 obsoletion, removal.
10214 Remove --with-gc=simple reference.
10215 Update VM requirements during bootstrap.
10216 Remove -oldas bootstrap description.
10217 Update binutils reference.
10218 Remove comparison failure note.
10219
10220 2010-03-31 Richard Guenther <rguenther@suse.de>
10221 Zdenek Dvorak <ook@ucw.cz>
10222 Sebastian Pop <sebastian.pop@amd.com>
10223
10224 PR middle-end/43464
10225 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
10226 with multiple arguments.
10227 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
10228
10229 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
10230
10231 * graphite-dependences.c (print_pddr): Call print_pdr with an
10232 extra argument.
10233 * graphite-poly.c (debug_pdr): Add an extra argument for the
10234 verbosity level.
10235 (print_pdr): Same.
10236 (print_pbb_domain): Same.
10237 (print_pbb): Same.
10238 (print_scop_context): Same.
10239 (print_scop): Same.
10240 (print_cloog): Same.
10241 (debug_pbb_domain): Same.
10242 (debug_pbb): Same.
10243 (print_pdrs): Same.
10244 (debug_pdrs): Same.
10245 (debug_scop_context): Same.
10246 (debug_scop): Same.
10247 (debug_cloog): Same.
10248 (print_scop_params): Same.
10249 (debug_scop_params): Same.
10250 (print_iteration_domain): Same.
10251 (print_iteration_domains): Same.
10252 (debug_iteration_domain): Same.
10253 (debug_iteration_domains): Same.
10254 (print_scattering_function): Same.
10255 (print_scattering_functions): Same.
10256 (debug_scattering_function): Same.
10257 (debug_scattering_functions): Same.
10258 * graphite-poly.h (debug_pdr): Update declaration.
10259 (print_pdr): Same.
10260 (print_pbb_domain): Same.
10261 (print_pbb): Same.
10262 (print_scop_context): Same.
10263 (print_scop): Same.
10264 (print_cloog): Same.
10265 (debug_pbb_domain): Same.
10266 (debug_pbb): Same.
10267 (print_pdrs): Same.
10268 (debug_pdrs): Same.
10269 (debug_scop_context): Same.
10270 (debug_scop): Same.
10271 (debug_cloog): Same.
10272 (print_scop_params): Same.
10273 (debug_scop_params): Same.
10274 (print_iteration_domain): Same.
10275 (print_iteration_domains): Same.
10276 (debug_iteration_domain): Same.
10277 (debug_iteration_domains): Same.
10278 (print_scattering_function): Same.
10279 (print_scattering_functions): Same.
10280 (debug_scattering_function): Same.
10281 (debug_scattering_functions): Same.
10282
10283 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
10284
10285 * graphite-poly.c (print_scattering_function_1): New.
10286 (print_scattering_function): Call it.
10287 (print_scop_params): Remove spaces at the end of lines.
10288 (print_cloog): New.
10289 (debug_cloog): New.
10290 * graphite-poly.h (print_cloog): Declared.
10291 (debug_cloog): Declared.
10292
10293 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
10294
10295 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
10296 in loop->header.
10297 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
10298 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
10299 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
10300 to switch between adding the IV bump in loop->latch or in loop->header.
10301
10302 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
10303
10304 * graphite-poly.c (print_scattering_function): Pretty print following
10305 the scoplib format.
10306 (print_pdr): Same.
10307 (print_pbb_domain): Same.
10308 (dump_gbb_cases): Same.
10309 (dump_gbb_conditions): Same.
10310 (print_pdrs): Same.
10311 (print_pbb): Same.
10312 (print_scop_params): Same.
10313 (print_scop_context): Same.
10314 (print_scop): Same.
10315 (print_pbb_body): New.
10316 (lst_indent_to): New.
10317 (print_lst): Start new lines with a #.
10318 * graphite-poly.h (pbb_bb): New.
10319 (pbb_index): Use pbb_bb.
10320 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
10321 disjuncts.
10322 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
10323
10324 2010-03-31 Jakub Jelinek <jakub@redhat.com>
10325
10326 * dwarf2out.c (size_of_die): For -gdwarf-4 use
10327 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
10328 and 0 instead of 1 for dw_val_class_flag.
10329 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
10330 dw_val_class_range_list, dw_val_class_loc_list,
10331 dw_val_class_lineptr and dw_val_class_macptr, use
10332 DW_FORM_flag_present for dw_val_class_flag and
10333 DW_FORM_exprloc for dw_val_class_loc.
10334 (output_die): For -gdwarf-4 print dw_val_class_loc
10335 size as uleb128 instead of 1 or 2 bytes and don't print
10336 anything for dw_val_class_flag.
10337
10338 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
10339 instead of cselib_lookup following by tweaking locs->setting_insn.
10340
10341 PR bootstrap/43596
10342 * cselib.c (cselib_process_insn): Clear cselib_current_insn
10343 even before returning from label, setjmp call or volatile asm
10344 handling.
10345
10346 2010-03-31 Richard Guenther <rguenther@suse.de>
10347
10348 PR middle-end/43600
10349 * cgraphunit.c (cgraph_output_in_order): Do not allocate
10350 temporary data on stack.
10351
10352 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10353
10354 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
10355 (PUSHSECTION_ASM_OP): Remove.
10356 (POPSECTION_ASM_OP): Remove.
10357 (PUSHSECTION_FORMAT): Remove.
10358 * config/sol2.h (PUSHSECTION_FORMAT): Define.
10359 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
10360 * config/sol2.c (solaris_output_init_fini): Use it.
10361
10362 2010-03-31 Jie Zhang <jie@codesourcery.com>
10363
10364 PR 43574
10365 * opt-functions.awk (var_type_struct): Use signed char type
10366 for simple variables.
10367
10368 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10369
10370 * config/sol2.c: Include output.h.
10371 (solaris_assemble_visibility): New function.
10372 * config/t-sol2 (sol2.o): Add output.h dependency.
10373 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
10374 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
10375 Redefine.
10376
10377 2010-03-31 Jakub Jelinek <jakub@redhat.com>
10378
10379 PR target/43580
10380 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
10381 V2SImode or XFmode on PRE_DEC.
10382
10383 PR debug/43557
10384 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
10385 BLKmode.
10386
10387 2010-03-31 Jie Zhang <jie@codesourcery.com>
10388
10389 PR 43562
10390 * reload.h (caller_save_initialized_p): Declare.
10391 * toplev.c (backend_init_target): Don't call
10392 init_caller_save but set caller_save_initialized_p to false.
10393 * caller-save.c (caller_save_initialized_p): Define.
10394 (init_caller_save): Check caller_save_initialized_p.
10395 * ira.c (ira): Call init_caller_save if flag_caller_saves.
10396
10397 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10398
10399 PR target/39048
10400 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
10401 and soft-fp/t-softfp to tmake_file.
10402 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
10403 (LIBGCC2_TF_CEXT): Define.
10404 (TF_SIZE): Define.
10405
10406 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
10407
10408 PR debug/42977
10409 * cselib.c (n_useless_values): Document handling of debug locs.
10410 (n_useless_debug_values, n_debug_values): New variables.
10411 (new_elt_loc_list): Don't add to debug values, keep count.
10412 (promote_debug_loc): New.
10413 (cselib_reset_table): Zero new variables.
10414 (entry_and_rtx_equal_p): Promote debug locs.
10415 (discard_useless_locs): Increment n_useless_debug_values for
10416 debug values.
10417 (remove_useless_values): Adjust n_useless_values and n_debug_values
10418 with n_useless_debug_values.
10419 (add_mem_for_addr): Promote debug locs.
10420 (cselib_lookup_mem): Likewise.
10421 (cselib_lookup_addr): Renamed to...
10422 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
10423 (cselib_log_lookup): ... this. Turn into...
10424 (cselib_lookup_addr): ... new wrapper.
10425 (cselib_lookup_from_insn): New.
10426 (cselib_invalidate_regno): Increment n_useless_debug_values for
10427 debug values.
10428 (cselib_invalidate_mem): Likewise.
10429 (cselib_process_insn): Take n_deleted and n_debug_values into
10430 account to guard remove_useless_value call.
10431 (cselib_finish): Zero n_useless_debug_values.
10432 * cselib.h (cselib_lookup_from_insn): Declare.
10433 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
10434 (sched_analyze_2): Likewise.
10435
10436 2010-03-30 Jakub Jelinek <jakub@redhat.com>
10437
10438 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
10439 functions.
10440 (adjust_mems): Replace narrowing SUBREG of expression containing
10441 just PLUS, MINUS, MULT and ASHIFT of registers and constants
10442 with operations in the narrower mode.
10443
10444 PR debug/43593
10445 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
10446 regs_invalidated_by_call instead all call_used_reg_set registers.
10447
10448 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
10449
10450 PR middle-end/43430
10451 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
10452 pointer comparisons with types_compatible_p.
10453 * tree-vect-stmts.c (vectorizable_call): Same.
10454 (vectorizable_condition): Same.
10455
10456 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10457
10458 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
10459 stack check if the mask would be zero.
10460
10461 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
10462 Jack Howarth <howarth@bromo.med.uc.edu>
10463
10464 * tree-profile.c (tree_init_ic_make_global_vars): Make static
10465 variables TLS.
10466
10467 2010-03-30 Joseph Myers <joseph@codesourcery.com>
10468
10469 PR other/25232
10470 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
10471 and __unordtf2.
10472 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
10473 Include ___unordxf2 and ___unordtf2.
10474 * config/i386/libgcc-glibc.ver: Do not define inheritance from
10475 GCC_4.4.0 here.
10476
10477 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
10478
10479 * config/lm32/t-lm32: New file.
10480 * config.gcc: Use the above file when targetting lm32.
10481
10482 2010-03-28 Duncan Sands <baldrick@free.fr>
10483
10484 * Makefile.in (PLUGIN_HEADERS): Add except.h.
10485
10486 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
10487
10488 PR middle-end/43431
10489 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
10490 Improve vectorization cost model diagnostic.
10491
10492 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
10493
10494 PR middle-end/43436
10495 * tree-vect-data-refs.c (vect_analyze_data_refs): When
10496 compute_data_dependences_for_loop returns false, early exit
10497 and output an extra diagnostic for the failed data reference
10498 analysis.
10499
10500 2010-03-29 Richard Guenther <rguenther@suse.de>
10501
10502 PR tree-optimization/43560
10503 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
10504 (can_sm_ref_p): Treat stores to readonly locations as trapping.
10505
10506 2010-03-29 Jie Zhang <jie@codesourcery.com>
10507
10508 PR 43564
10509 * toplev.c (process_options): Set optimization_default_node
10510 and optimization_current_node.
10511 * opts.c (decode_options): Don't set optimization_default_node
10512 and optimization_current_node.
10513
10514 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
10515
10516 * config/rtems.h: Abandon -qrtems_debug.
10517
10518 2010-03-28 Jan Hubicka <jh@suse.cz>
10519
10520 PR tree-optimization/43505
10521 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
10522 map should not be copied.
10523
10524 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10525
10526 PR middle-end/41674
10527 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
10528 cdtors, set DECL_PRESERVE_P.
10529 * ipa.c (cgraph_externally_visible_p): Return true if declaration
10530 should be preseved.
10531
10532 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
10533
10534 PR tree-optimization/43528
10535 * stor-layout.c (place_field): Check that constant fits into
10536 unsigned HWI when skipping calculation of MS bitfield layout.
10537
10538 2010-03-27 Jan Hubicka <jh@suse.cz>
10539
10540 PR middle-end/43391
10541 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
10542 notice_global_symbol work.
10543
10544 2010-03-27 Jakub Jelinek <jakub@redhat.com>
10545
10546 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
10547 instead of dwarf2out_decl.
10548 (struct var_loc_node): Remove section_label field.
10549 (dwarf2out_function_decl): New function.
10550 (dwarf2out_var_location): Don't set section_label field.
10551 (dwarf2out_begin_function): Don't empty decl_loc_table here.
10552
10553 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10554
10555 PR tree-optimization/43544
10556 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10557 First argument for builtin vectorized function hook is now a
10558 tree to be able to distinguish between machine specific and
10559 standard builtins.
10560 * targhooks.c (default_builtin_vectorized_function): Ditto.
10561 * targhooks.h (default_builtin_vectorized_function): Ditto.
10562 * target.h (struct gcc_target): Ditto.
10563 * tree-vect-stmts.c (vectorizable_function): Ditto.
10564 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
10565 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10566 Ditto.
10567
10568 2010-03-26 Joseph Myers <joseph@codesourcery.com>
10569
10570 PR c/43381
10571 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
10572 nested binding iff it is a FUNCTION_DECL.
10573 (store_parm_decls_newstyle): Pass nested=true to bind for
10574 FUNCTION_DECLs amongst parameters.
10575
10576 2010-03-26 Jakub Jelinek <jakub@redhat.com>
10577
10578 * var-tracking.c (vt_expand_loc_callback): Don't run
10579 cselib_expand_value_rtx_cb in dummy mode if
10580 cselib_dummy_expand_value_rtx_cb returned false.
10581
10582 * var-tracking.c (emit_note_insn_var_location): For one part
10583 notes with offset 0, don't add EXPR_LIST around the location.
10584 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
10585 add_location_or_const_value_attribute): Adjust for that change.
10586
10587 PR debug/43540
10588 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
10589 into first operand and location into second.
10590 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
10591 dw_cfi_oprnd_loc for DW_CFA_expression.
10592 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
10593 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
10594 assume first argument is regnum and second argument is location.
10595
10596 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
10597
10598 PR target/42113
10599 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
10600 of scratch register to DImode. Split to DImode comparison operator.
10601 Use SImode subreg of scratch register in the multiplication.
10602 (*cmp_sadd_sidi): Ditto.
10603 (*cmp_ssub_si): Ditto.
10604 (*cmp_ssub_sidi): Ditto.
10605
10606 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
10607
10608 PR target/43524
10609 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
10610 Remove invalid assert and wrong comment.
10611
10612 2010-03-26 Jakub Jelinek <jakub@redhat.com>
10613
10614 PR debug/43516
10615 * flags.h (final_insns_dump_p): New extern.
10616 * final.c (final_insns_dump_p): New variable.
10617 (rest_of_clean_state): Set it before -fdump-final-insns=
10618 dumping, clear afterwards.
10619 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
10620 MEM_ALIAS_SET on MEMs.
10621
10622 2010-03-26 David S. Miller <davem@davemloft.net>
10623
10624 * configure.ac: Fix sparc GOTDATA_OP bug check.
10625 * configure: Rebuild.
10626
10627 2010-03-26 Alan Modra <amodra@gmail.com>
10628
10629 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
10630
10631 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10632
10633 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
10634 TLS_SECTION_ASM_FLAG.
10635
10636 2010-03-25 Jakub Jelinek <jakub@redhat.com>
10637
10638 PR bootstrap/43511
10639 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
10640 Clear first_function_block_is_cold.
10641
10642 PR c/43385
10643 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
10644 argument if the argument is truth_value_p.
10645
10646 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10647
10648 * config/rs6000/constraints.md: Update copyright year for my changes.
10649
10650 PR target/43484
10651 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
10652 used in reg+reg addressing, swap registers.
10653
10654 2010-03-24 Jakub Jelinek <jakub@redhat.com>
10655
10656 PR debug/43293
10657 * target.h (struct gcc_target): Add code_end hook.
10658 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
10659 if not yet defined.
10660 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
10661 * toplev.c (compile_file): Call targetm.asm_out.code_end
10662 hook before unwind info/debug info output.
10663 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
10664 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
10665 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
10666 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
10667 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
10668 * config/i386/i386.c (ix86_file_end): Renamed to...
10669 (ix86_code_end): ... this. Make static. Don't call
10670 file_end_indicate_exec_stack. Emit unwind info using
10671 final_start_function/final_end_function.
10672 (darwin_x86_file_end): Remove.
10673 (TARGET_ASM_CODE_END): Define.
10674 * config/i386/i386.h (TARGET_ASM_FILE_END,
10675 NEED_INDICATE_EXEC_STACK): Don't define.
10676 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
10677 (TARGET_ASM_FILE_END): Define to darwin_file_end.
10678 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
10679 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
10680
10681 PR target/43498
10682 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
10683 at the beginning and final_end_function at the end.
10684 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10685
10686 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10687
10688 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
10689 and Sun as TLS syntax.
10690 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
10691 * configure: Regenerate.
10692 * config.in: Regenerate.
10693 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
10694 (default_elf_asm_named_section): Use it.
10695 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
10696 (i386_output_dwarf_dtprel): Likewise.
10697 (output_addr_const_extra): Likewise.
10698 (output_pic_addr_const): Lowercase @GOTTPOFF.
10699 (output_addr_const_extra): Likewise.
10700 (output_pic_addr_const): Lowercase @GOTNTPOFF.
10701 (output_addr_const_extra): Likewise.
10702 (output_pic_addr_const): Lowercase @INDNTPOFF.
10703 (output_addr_const_extra): Likewise.
10704 (output_pic_addr_const): Lowercase @NTPOFF.
10705 (output_addr_const_extra): Likewise.
10706 (output_pic_addr_const): Lowercase @TPOFF.
10707 (output_addr_const_extra): Likewise.
10708 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
10709 (*tls_global_dynamic_64): Likewise.
10710 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
10711 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
10712
10713 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
10714 (ASM_OUTPUT_TLS_COMMON): Use it.
10715 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
10716
10717 PR target/38118
10718 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
10719 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
10720 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
10721 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
10722 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
10723 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
10724
10725 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10726
10727 * config/i386/i386.c (override_options): Don't accept
10728 -mtls-dialect=sun any longer.
10729 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
10730 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
10731 (*tls_local_dynamic_base_32_sun): Likewise.
10732 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
10733
10734 2010-03-24 Jakub Jelinek <jakub@redhat.com>
10735
10736 PR debug/43508
10737 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10738 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
10739
10740 PR debug/43479
10741 * ira.c (adjust_cleared_regs): New function.
10742 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
10743
10744 PR debug/19192
10745 PR debug/43479
10746 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
10747 from gimple_block.
10748 * expr.c (expand_expr_real): Restore previous
10749 curr_insn_source_location and curr_insn_block after
10750 expand_expr_real_1 call.
10751 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
10752 instead of expand_expr_real_1.
10753
10754 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
10755
10756 PR rtl-optimization/43413
10757 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
10758 hard regs too.
10759
10760 2010-03-22 James E. Wilson <wilson@codesourcery.com>
10761
10762 PR target/43348
10763 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
10764 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
10765
10766 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
10767
10768 * config/i386/i386.c (ix86_target_string): Add -mfma.
10769 Fix a typo in comment.
10770
10771 2010-03-22 Mike Stump <mikestump@comcast.net>
10772
10773 PR target/23071
10774 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
10775 Don't overly align based upon packed packed fields.
10776
10777 2010-03-22 Jason Merrill <jason@redhat.com>
10778
10779 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
10780 Use () rather than [], and move before the element type.
10781
10782 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10783
10784 * doc/configfiles.texi (Configuration Files): Removed
10785 fixinc/Makefile*, intl/Makefile.*.
10786 * doc/makefile.texi: Fixed markup. Abstract from version
10787 control system used.
10788 (Makefile): Removed obsolete gcc/java/parse.y example.
10789 * doc/sourcebuild.texi: Likewise.
10790 (Top Level): Added config, gnattools, libdecnumber, libgcc,
10791 libgomp, libssp. Removed fastjar.
10792 (Miscellaneous Docs): Clarify location.
10793 Added COPYING3, COPYING3.LIB.
10794 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
10795
10796 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10797
10798 PR target/38085
10799 * config/i386/i386.c (x86_function_profiler)
10800 [!NO_PROFILE_COUNTERS]: Fix typo.
10801 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
10802 instead of callq.
10803
10804 2010-03-22 Janis Johnson <janis187@us.ibm.com>
10805 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10806
10807 * doc/sourcebuild.texi (Test Directives): Split into six
10808 subsections, with most of the current text in new subsections
10809 Directives, Selectors, and Final Actions.
10810 (Directives): Split list of test directives into multiple
10811 subsubsections.
10812 (Selectors): Describe use and syntax of selectors.
10813 (Effective-Target Keywords): Describe all existing keywords.
10814 (Add Options): Describe features for dg-add-options.
10815 (Require Support): Describe variants of dg-require-support.
10816 (Final Actions): Describe commands to use in dg-final.
10817
10818 2010-03-22 Michael Matz <matz@suse.de>
10819
10820 PR middle-end/43475
10821 * recog.c (validate_replace_rtx_group): Replace also in
10822 REG_EQUAL and REG_EQUIV notes.
10823
10824 2010-03-22 Richard Guenther <rguenther@suse.de>
10825
10826 PR tree-optimization/43390
10827 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
10828 sure vector extracts are type correct.
10829
10830 2010-03-22 Richard Guenther <rguenther@suse.de>
10831
10832 PR middle-end/40106
10833 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
10834 x * sqrt (x) even when optimizing for size if the target
10835 has native support for sqrt.
10836
10837 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10838
10839 * varasm.c (make_decl_rtl_for_debug): Also clear
10840 flag_mudflap for the duration of make_decl_rtl call.
10841
10842 PR debug/43443
10843 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
10844 locs from preserved VALUEs.
10845
10846 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10847
10848 PR middle-end/42718
10849 * pa.md (movmemsi): Set align to one if zero.
10850 (movmemdi): Likewise.
10851
10852 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
10853
10854 PR target/42321
10855 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
10856 with their corresponding prologue pushes.
10857
10858 2010-03-20 Andrew Pinski <pinskia@gmail.com>
10859
10860 PR target/43156
10861 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
10862 at the begining or end.
10863 (spu_expand_epilogue): Likewise.
10864
10865 2010-03-20 Richard Guenther <rguenther@suse.de>
10866
10867 PR rtl-optimization/43438
10868 * combine.c (make_extraction): Properly zero-/sign-extend an
10869 extraction of the low part of a CONST_INT. Also handle
10870 CONST_DOUBLE.
10871
10872 2010-03-19 Mike Stump <mikestump@comcast.net>
10873
10874 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
10875 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
10876 (override_options): Use SUBTARGET32_DEFAULT_CPU.
10877
10878 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
10879
10880 PR c/43211
10881 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
10882 an error.
10883
10884 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
10885
10886 PR rtl-optimization/42258
10887 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
10888 use that may match DEF.
10889
10890 PR target/40697
10891 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
10892 the cost of loading the constant rather than assuming
10893 COSTS_N_INSNS (1).
10894 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
10895 outer code is AND, do the same tests as the andsi3 expander and
10896 return COSTS_N_INSNS (1) if and is cheap.
10897
10898 * optabs.c (avoid_expensive_constant): Fix formatting.
10899
10900 2010-03-19 Michael Matz <matz@suse.de>
10901
10902 PR c++/43116
10903 * attribs.c (decl_attributes): When rebuilding a function pointer
10904 type use the same qualifiers as the original pointer type.
10905
10906 2010-03-19 Martin Jambor <mjambor@suse.cz>
10907
10908 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
10909 and is_gimple_ip_invariant_address.
10910
10911 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10912
10913 Revert
10914 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10915
10916 * config/arm/arm.c (arm_override_options): Turn off
10917 flag_dwarf2_cfi_asm for AAPCS variants.
10918
10919 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10920
10921 PR target/43399
10922 * config/arm/arm.c (emit_multi_reg_push): Update comments.
10923 Use PRE_MODIFY instead of PRE_DEC.
10924 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
10925 (vfp_emit_fstmd): Likewise.
10926
10927 2010-03-19 Michael Matz <matz@suse.de>
10928
10929 PR target/43305
10930 * builtins.c (expand_builtin_interclass_mathfn,
10931 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
10932 if that fails.
10933
10934 2010-03-19 Richard Guenther <rguenther@suse.de>
10935
10936 PR tree-optimization/43415
10937 * tree-ssa-pre.c (phi_translate): Split out worker to ...
10938 (phi_translate_1): ... this.
10939 (phi_translate): Move all caching here. Cache all NARY
10940 and REFERENCE translations.
10941
10942 2010-03-19 David S. Miller <davem@davemloft.net>
10943
10944 With help from Eric Botcazou.
10945 * config/sparc/sparc.c: Include dwarf2out.h.
10946 (emit_pic_helper): Delete.
10947 (pic_helper_symbol_name): Delete.
10948 (pic_helper_emitted_p): Delete.
10949 (pic_helper_needed): New.
10950 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
10951 (get_pc_thunk_name): New.
10952 (load_pic_register): Remove 'delay_pic_helper' arg. Use
10953 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
10954 Set pic_helper_needed to true. Don't call emit_pic_helper.
10955 (sparc_expand_prologue): Update load_pic_register call.
10956 (sparc_output_mi_thunk): Likewise.
10957 (sparc_file_end): Emit a hidden comdat symbol for the PIC
10958 thunk if possible. Output CFI information as needed.
10959
10960 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10961 Jack Howarth <howarth@bromo.med.uc.edu>
10962
10963 PR target/36399
10964 * config/i386/i386.h: Fix ABI on darwin x86-32.
10965
10966 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
10967
10968 * tree.h: Declare make_decl_rtl_for_debug.
10969 * varasm.c (make_decl_rtl_for_debug): New.
10970 * dwarf2out.c (rtl_for_decl_location): Call it.
10971 * cfgexpand.c (expand_debug_expr): Call it.
10972
10973 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10974
10975 PR bootstrap/43399
10976 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
10977 mem_mode.
10978
10979 PR bootstrap/43403
10980 * var-tracking.c (vt_init_cfa_base): Do nothing if
10981 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
10982
10983 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
10984
10985 PR debug/42873
10986 * var-tracking.c (canonicalize_vars_star): New.
10987 (dataflow_post_merge_adjust): Use it.
10988
10989 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10990
10991 PR debug/43058
10992 * var-tracking.c (non_suitable_const): New function.
10993 (add_uses): For DEBUG_INSNs with constants, don't record any
10994 value, instead just the constant value itself.
10995 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
10996 is not VAR_LOC_UNKNOWN_P, set var to the constant.
10997 (emit_notes_in_bb): Likewise.
10998 (emit_note_insn_var_location): For onepart variables if
10999 cur_loc is a VOIDmode constant, use DECL_MODE.
11000
11001 2010-03-18 Martin Jambor <mjambor@suse.cz>
11002
11003 PR middle-end/42450
11004 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
11005 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
11006 all non-clones. Moved call redirection...
11007 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
11008 (cgraph_materialize_all_clones): Dispose of all
11009 combined_args_to_skip bitmaps.
11010 (verify_cgraph_node): Do not check for edges pointing to wrong
11011 nodes in inline clones.
11012 * tree-inline.c (copy_bb): Call
11013 cgraph_redirect_edge_call_stmt_to_callee.
11014 * ipa.c (cgraph_remove_unreachable_nodes): Call
11015 cgraph_node_remove_callees even when there are used clones.
11016
11017 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
11018
11019 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
11020
11021 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
11022
11023 PR target/43383
11024 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
11025 for 32bit.
11026
11027 2010-03-18 Michael Matz <matz@suse.de>
11028
11029 PR middle-end/43419
11030 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
11031 into sqrt(x) if we need to preserve signed zeros.
11032
11033 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
11034 Eric Botcazou <ebotcazou@adacore.com>
11035
11036 PR rtl-optimization/43360
11037 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
11038 note if we don't know its invariant status.
11039
11040 2010-03-18 Michael Matz <matz@suse.de>
11041
11042 PR tree-optimization/43402
11043 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
11044 PHI chains of ssa names registered for update.
11045
11046 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
11047
11048 PR target/42427
11049 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
11050 non-offsettable and pre_modify update addressing.
11051 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
11052 and "2" alternatives "#".
11053 (*movdd_softfloat32): Make all alternatives "#";
11054 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
11055 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
11056 (*movdf_softfloat32): Make all alternatives "#";
11057 (movdi): Use the new DIFD mode iterator to create a common splitter
11058 for movdi, movdf and movdd patterns.
11059
11060 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
11061
11062 * common.opt (dumpdir): Remove redundant tab.
11063
11064 2010-03-17 Martin Jambor <mjambor@suse.cz>
11065
11066 PR tree-optimization/43347
11067 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
11068 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
11069
11070 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
11071
11072 PR rtl-optimization/42216
11073 * regrename.c (create_new_chain): New function, broken out from...
11074 (scan_rtx_reg): ... here. Call it. Handle the case where we are
11075 appending a use to an empty chain.
11076 (build_def_use): Remove previous changes that convert OP_INOUT to
11077 OP_OUT operands; instead detect the case where an OP_INOUT operand
11078 uses a previously untracked register and create an empty chain for it.
11079
11080 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11081
11082 * doc/extend.texi (Function Attributes): Rewrite unfinished
11083 sentence in ms_abi documentation.
11084
11085 2010-03-17 Alan Modra <amodra@gmail.com>
11086
11087 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
11088 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
11089 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
11090 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
11091
11092 2010-03-16 Richard Henderson <rth@redhat.com>
11093
11094 PR middle-end/43365
11095 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
11096 (lower_try_finally): Save and restore eh_seq around the expansion
11097 of the try-finally.
11098
11099 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
11100
11101 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
11102 statements before splitting block.
11103
11104 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11105
11106 * doc/sourcebuild.texi (Testsuites): Fix markup.
11107 Use pathnames relative to gcc/testsuite.
11108 (Test Directives): Move description of how timeout is determined.
11109 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
11110 (C Tests): Correct gcc.misc-tests directory.
11111 Framework tests now live in gcc.test-framework.
11112
11113 2010-03-16 Richard Guenther <rguenther@suse.de>
11114
11115 PR middle-end/43379
11116 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
11117 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
11118
11119 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
11120 Alexandre Oliva <aoliva@redhat.com>
11121
11122 PR tree-optimization/42917
11123 * lambda-code.c (remove_iv): Skip debug statements.
11124 (lambda_loopnest_to_gcc_loopnest): Likewise.
11125 (not_interesting_stmt): Debug statements are not interesting.
11126
11127 2010-03-16 Jakub Jelinek <jakub@redhat.com>
11128
11129 PR debug/43051
11130 PR debug/43092
11131 * cselib.c (cselib_preserve_constants,
11132 cfa_base_preserved_val): New static variables.
11133 (preserve_only_constants): New function.
11134 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
11135 clear its REG_VALUES. If cselib_preserve_constants, don't
11136 empty the whole hash table, but preserve there VALUEs with constants,
11137 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
11138 (cselib_preserve_cfa_base_value): New function.
11139 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
11140 (cselib_init): Change argument to int bitfield. Set
11141 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
11142 is in it.
11143 (cselib_finish): Clear cselib_preserve_constants and
11144 cfa_base_preserved_val.
11145 * cselib.h (enum cselib_record_what): New enum.
11146 (cselib_init): Change argument to int.
11147 (cselib_preserve_cfa_base_value): New prototype.
11148 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
11149 * dse.c (dse_step1): Likewise.
11150 * cfgcleanup.c (thread_jump): Likewise.
11151 * sched-deps.c (sched_analyze): Likewise.
11152 * gcse.c (local_cprop_pass): Likewise.
11153 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
11154 If FN is non-NULL, call the callback always and whenever it returns
11155 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
11156 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
11157 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
11158 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
11159 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
11160 * var-tracking.c: Include recog.h.
11161 (bb_stack_adjust_offset): Remove.
11162 (vt_stack_adjustments): Don't call it, instead just gather the
11163 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
11164 (adjust_stack_reference): Remove.
11165 (compute_cfa_pointer): New function.
11166 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
11167 (struct adjust_mem_data): New type.
11168 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
11169 functions.
11170 (get_address_mode): New function.
11171 (replace_expr_with_values): Use it.
11172 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
11173 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
11174 (adjust_sets): Remove.
11175 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
11176 Use get_address_mode.
11177 (get_adjusted_src): Remove.
11178 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
11179 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
11180 (add_with_sets): Don't call adjust_sets.
11181 (fp_setter, vt_init_cfa_base): New functions.
11182 (vt_initialize): Change return type to bool. Move most of pool etc.
11183 initialization to the beginning of the function from end. Pass
11184 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
11185 If !frame_pointer_needed, call vt_stack_adjustment before mos
11186 vector is filled, call vt_init_cfa_base if argp/framep has been
11187 eliminated to sp. If frame_pointer_needed and argp/framep has
11188 been eliminated to hard frame pointer, set
11189 hard_frame_pointer_adjustment and call vt_init_cfa_base after
11190 encountering fp setter in the prologue. For MO_ADJUST, call
11191 log_op_type before pusing the op into mos vector, not afterwards.
11192 Call adjust_insn before cselib_process_insn/add_with_sets,
11193 call cancel_changes (0) afterwards.
11194 (variable_tracking_main_1): Adjust for vt_initialize calling
11195 vt_stack_adjustments and returning whether it succeeded or not.
11196
11197 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
11198
11199 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
11200 debug statements.
11201
11202 2010-03-15 Jakub Jelinek <jakub@redhat.com>
11203
11204 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
11205 has been set.
11206 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
11207 drap_reg has not been set.
11208
11209 2010-03-15 Michael Matz <matz@suse.de>
11210
11211 PR middle-end/43300
11212 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
11213 use it to expand block copies.
11214 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
11215 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
11216 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
11217
11218 2010-03-15 Richard Guenther <rguenther@suse.de>
11219
11220 PR tree-optimization/43367
11221 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
11222 elimination check.
11223
11224 2010-03-15 Richard Guenther <rguenther@suse.de>
11225
11226 PR tree-optimization/43317
11227 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
11228
11229 2010-03-15 Martin Jambor <mjambor@suse.cz>
11230
11231 PR tree-optimization/43141
11232 * tree-sra.c (create_abstract_origin): New function.
11233 (modify_function): Call create_abstract_origin.
11234
11235 2010-03-15 Chris Demetriou <cgd@google.com>
11236
11237 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
11238 wasn't copied.
11239
11240 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11241
11242 PR middle-end/43354
11243 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
11244 call insert_out_of_ssa_copy for default definitions.
11245
11246 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11247
11248 * graphite-clast-to-gimple.c (my_long_long): Defined.
11249 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
11250 * graphite-sese-to-poly.c (my_long_long): Defined.
11251 (scop_ivs_can_be_represented): Use it.
11252
11253 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11254
11255 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
11256 graphite-max-bbs-per-function, and loop-block-tile-size.
11257 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
11258 with "maximum".
11259 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
11260
11261 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11262
11263 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
11264 forward declaration.
11265 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
11266 (add_upper_bounds_from_estimated_nit): New.
11267 (build_loop_iteration_domains): Use it.
11268
11269 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11270
11271 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
11272
11273 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11274
11275 PR middle-end/43306
11276 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
11277 should be an INTEGER_CST. Also handle CASE_CONVERT.
11278
11279 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11280
11281 * graphite.c (graphite_initialize): To bound the number of bbs per
11282 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11283 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
11284 * doc/invoke.texi: Document it.
11285
11286 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11287
11288 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
11289 * graphite-sese-to-poly.h (build_poly_scop): Same.
11290
11291 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
11292
11293 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
11294 the number of parameters in the scop. Use as an upper bound
11295 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
11296 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
11297 * doc/invoke.texi: Document it.
11298
11299 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
11300
11301 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
11302 * doc/c-tree.texi: Remove.
11303 * doc/generic.texi: Merge c-tree.texi here.
11304 * doc/gccint.texi (Trees): Remove menu entry.
11305 (c-tree.texi): Remove @include.
11306 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
11307 * doc/languages.texi (Reading RTL): Ditto.
11308
11309 2010-03-12 Steve Ellcey <sje@cup.hp.com>
11310
11311 PR target/42869
11312 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
11313
11314 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11315
11316 PR middle-end/42431
11317 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
11318 code added to work around reload clobbering CONST insns.
11319
11320 2010-03-12 Jakub Jelinek <jakub@redhat.com>
11321
11322 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
11323 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
11324 (cselib_preserve_only_values): Remove retain argument, don't
11325 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
11326 * cselib.h (cselib_preserve_only_values): Remove retain argument.
11327 * var-tracking.c (micro_operation): Move insn field before union.
11328 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
11329 (struct variable_tracking_info_def): Remove n_mos field, change
11330 mos into a vector of micro_operations.
11331 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
11332 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
11333 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
11334 changing into a vector.
11335 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
11336 come before all other uops generated by add_stores.
11337 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
11338 argument removal.
11339 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
11340 a vector. Run just one pass over the bbs instead of separate counting
11341 and computation phase.
11342 (vt_finalize): Free VTI (bb)->mos vector instead of array.
11343
11344 PR debug/43329
11345 * tree-inline.c (remap_decls): Put old_var rather than origin_var
11346 into *nonlocalized_list vector.
11347 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
11348 even if origin is non-NULL.
11349 (gen_variable_die): Likewise.
11350 (process_scope_var): Don't change origin.
11351 (gen_decl_die): Likewise.
11352 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
11353 before adding new edges instead of after it, fix moving over
11354 debug stmts.
11355
11356 2010-03-11 David S. Miller <davem@davemloft.net>
11357
11358 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
11359 of four.
11360 * configure: Rebuild.
11361
11362 2010-03-11 Martin Jambor <mjambor@suse.cz>
11363
11364 PR tree-optimization/43257
11365 * tree.c (assign_assembler_name_if_neeeded): New function.
11366 (free_lang_data_in_cgraph): Assembler name assignment moved to the
11367 above new function.
11368 * tree.h (assign_assembler_name_if_neeeded): Declare.
11369 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
11370 the function if needed.
11371
11372 2010-03-11 Chris Demetriou <cgd@google.com>
11373
11374 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
11375 include/stdint-gcc.h, and include/stdint.h world-readable.
11376
11377 2010-03-11 Richard Guenther <rguenther@suse.de>
11378
11379 PR tree-optimization/43255
11380 * tree-vrp.c (process_assert_insertions_for): Do not insert
11381 asserts for trivial conditions.
11382
11383 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11384
11385 PR tree-optimization/43280
11386 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
11387 generation. Move calculation of size out of the if branch.
11388 (find_bswap): Modify compare number generation.
11389
11390 2010-03-11 Richard Guenther <rguenther@suse.de>
11391
11392 PR lto/43200
11393 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
11394 (input_gimple_stmt): Fixup handled component types during
11395 operand read. Also fix up decls in ADDR_EXPRs.
11396
11397 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
11398
11399 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
11400 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
11401
11402 2010-03-10 Jan Hubicka <jh@suse.cz>
11403
11404 PR c/43288
11405 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
11406 * varasm.c (get_variable_section): Don't do that here...
11407 (make_decl_rtl): ... and here.
11408 (do_assemble_alias): Produce decl RTL.
11409 (assemble_alias): Likewise.
11410
11411 2010-03-10 Jakub Jelinek <jakub@redhat.com>
11412
11413 PR debug/43290
11414 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
11415 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
11416 of fde->vdrap_reg.
11417 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
11418 (based_loc_descr): Only express drap or vdrap regno based expressions
11419 using DW_OP_fbreg when not optimizing.
11420 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
11421 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
11422 REG_CFA_SET_VDRAP note.
11423
11424 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
11425
11426 PR tree-optimization/43236
11427 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
11428 error in calculation of base address in reverse iteration case.
11429 (generate_builtin): Take number of latch executions if the statement
11430 is in the latch.
11431
11432 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
11433
11434 PR middle-end/42859
11435 * tree-eh.c: Include pointer-set.h.
11436 (lower_eh_dispatch): Filter out duplicate case labels and
11437 remove the unneeded edge when the label is unused. Return
11438 true when some edges are removed.
11439 (execute_lower_eh_dispatch): When any lowering resulted in
11440 removing an edge, also delete unreachable blocks.
11441
11442 2010-03-10 Jakub Jelinek <jakub@redhat.com>
11443
11444 PR bootstrap/43287
11445 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11446 UNSPEC_MACHOPIC_OFFSET.
11447
11448 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
11449
11450 PR target/43294
11451 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11452 (m68k_delegitimize_address): New function.
11453
11454 2010-03-09 Jakub Jelinek <jakub@redhat.com>
11455
11456 PR debug/43299
11457 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
11458
11459 PR debug/43299
11460 * var-tracking.c (adjust_sets): New function.
11461 (count_with_sets, add_with_sets): Use it.
11462 (get_adjusted_src): New inline function.
11463 (add_stores): Use it.
11464
11465 PR debug/43304
11466 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
11467 call cselib_dummy_expand_value_rtx_cb instead of
11468 cselib_expand_value_rtx_cb.
11469
11470 PR debug/43293
11471 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
11472 * config/i386/i386.c: Include debug.h and dwarf2out.h.
11473 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
11474 and .cfi_endproc around the pic thunks.
11475 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
11476 all queued unwind info register saves are saved before the call.
11477 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
11478 considered as sp-=4 for unwind info and the pop as sp+=4 which
11479 also clobbers dest, but doesn't actually restore it.
11480
11481 PR debug/43290
11482 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
11483 RTX_FRAME_RELATED_P.
11484
11485 2010-03-09 Jie Zhang <jie@codesourcery.com>
11486
11487 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
11488 whitespaces in output template.
11489
11490 2010-03-09 Jie Zhang <jie@codesourcery.com>
11491
11492 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
11493 out array boundary.
11494
11495 2010-03-08 Jakub Jelinek <jakub@redhat.com>
11496
11497 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
11498 builtins.exp in a separate job.
11499
11500 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11501
11502 * graphite-sese-to-poly.c (add_param_constraints): Use
11503 lower_bound_in_type and upper_bound_in_type.
11504
11505 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11506
11507 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
11508 instead of unsigned_type_node.
11509
11510 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11511 Reza Yazdani <reza.yazdani@amd.com>
11512
11513 PR middle-end/43065
11514 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
11515 on pointer type parameters.
11516
11517 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11518
11519 PR middle-end/42644
11520 PR middle-end/42130
11521 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
11522 handle conversions from pointer to integers.
11523 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
11524 induction variable, to be able to work with code generated by CLooG.
11525 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
11526 (build_poly_scop): Bail out if we cannot codegen a loop.
11527
11528 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
11529
11530 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
11531 code generation with gloog_error.
11532
11533 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11534
11535 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
11536 Call fold_convert on all the returned values.
11537 (expand_scalar_variables_expr): Pass to
11538 expand_scalar_variables_ssa_name the type of the resulting expression.
11539
11540 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11541
11542 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
11543 ppl_min_for_le_pointset.
11544 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
11545 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
11546
11547 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11548
11549 * graphite-dependences.c (map_into_dep_poly): Removed.
11550 (dependence_polyhedron_1): Use combine_context_id_scat.
11551
11552 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11553
11554 * graphite-poly.h (struct poly_scattering): Add layout documentation.
11555 (struct poly_bb): Same.
11556 (combine_context_id_scat): New.
11557
11558 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11559
11560 PR middle-end/42326
11561 * sese.c (name_defined_in_loop_p): Return false for default
11562 definitions.
11563
11564 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11565
11566 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
11567 and clean up the logic.
11568
11569 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
11570
11571 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
11572 early return.
11573
11574 2010-03-08 Jakub Jelinek <jakub@redhat.com>
11575
11576 * var-tracking.c (remove_cselib_value_chains): Define only for
11577 ENABLE_CHECKING.
11578 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
11579 delete_slot_part, emit_notes_for_differences_1): Don't call
11580 remove_cselib_value_chains here.
11581 (set_slot_part, emit_notes_for_differences_2): Don't call
11582 add_cselib_value_chains here.
11583 (preserved_values): New vector.
11584 (preserve_value): New function.
11585 (add_uses, add_stores, vt_add_function_parameters): Use it
11586 instead of cselib_preserve_value.
11587 (changed_values_stack): New vector.
11588 (check_changed_vars_0): New function.
11589 (check_changed_vars_1, check_changed_vars_2): Use it.
11590 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
11591 changed_values_stack VALUEs.
11592 (vt_emit_notes): For all preserved_values call
11593 add_cselib_value_chains. If ENABLE_CHECKING call
11594 remove_cselib_value_chains before verifying value_chains is empty.
11595 Initialize and free changed_values_stack.
11596 (vt_initialize): Initialize preserved_values.
11597 (vt_finalize): Free preserved_values.
11598
11599 2010-03-08 Richard Guenther <rguenther@suse.de>
11600
11601 PR tree-optimization/43269
11602 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
11603 region detection.
11604
11605 2010-03-08 Martin Jambor <mjambor@suse.cz>
11606
11607 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
11608 (ipa_is_param_called): Removed.
11609 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
11610 (ipa_print_node_params): Do not print the called flag.
11611 (ipa_write_node_info): Do not stream the called flag.
11612 (ipa_read_node_info): Likewise.
11613
11614 2010-03-07 Jakub Jelinek <jakub@redhat.com>
11615
11616 PR debug/43176
11617 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
11618 * cselib.c (struct expand_value_data): Add dummy field.
11619 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
11620 dummy to false.
11621 (cselib_dummy_expand_value_rtx_cb): New function.
11622 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
11623 any rtl.
11624 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
11625 * var-tracking.c: Include pointer-set.h.
11626 (variable): Change n_var_parts to char from int. Add
11627 cur_loc_changed and in_changed_variables fields.
11628 (variable_canonicalize): Remove.
11629 (shared_var_p): New inline function.
11630 (unshare_variable): Maintain cur_loc_changed and
11631 in_changed_variables fields. If var was in changed_variables,
11632 replace it there with new_var. Just copy cur_loc instead of
11633 resetting it to something else.
11634 (variable_union): Don't recompute cur_loc. Use shared_var_p.
11635 (dataflow_set_union): Don't call variable_canonicalize.
11636 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
11637 of their DEBUG_EXPR_TREE_DECLs.
11638 (canonicalize_loc_order_check): Verify that cur_loc is NULL
11639 and in_changed_variables and cur_loc_changed is false.
11640 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
11641 and cur_loc_changed. Don't update cur_loc here.
11642 (variable_merge_over_src): Don't call variable_canonicalize.
11643 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
11644 removing loc that is equal to cur_loc, clear cur_loc,
11645 set cur_loc_changed and ensure variable_was_changed is called.
11646 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
11647 compare pointers in cur_loc check, if it is equal to loc,
11648 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
11649 (variable_different_p): Remove compare_current_location argument,
11650 don't compare cur_loc.
11651 (dataflow_set_different_1): Adjust variable_different_p caller.
11652 (variable_was_changed): If dv had some var in changed_variables
11653 already, reset in_changed_variables flag for it and propagate
11654 cur_loc_changed over to the new variable. On empty var
11655 always set cur_loc_changed. Set in_changed_variables on whatever
11656 var is added to changed_variables.
11657 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
11658 Use shared_var_p. When removing loc that is equal to cur_loc,
11659 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
11660 end, don't set it to something else, just call variable_was_changed.
11661 (delete_slot_part): Use shared_var_p. When cur_loc equals to
11662 loc being removed, clear cur_loc and set cur_loc_changed.
11663 Set cur_loc_changed if all locations have been removed.
11664 (struct expand_loc_callback_data): New type.
11665 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
11666 allocated. Always create SUBREGs if simplify_subreg failed.
11667 Prefer to use cur_loc, when that fails and still in
11668 changed_variables (and seen first time) recompute it. Set
11669 cur_loc_changed of variables which had to change cur_loc and
11670 compute elcd->cur_loc_changed if any of the subexpressions used
11671 had to change cur_loc.
11672 (vt_expand_loc): Adjust to pass arguments in
11673 expand_loc_callback_data structure.
11674 (vt_expand_loc_dummy): New function.
11675 (emitted_notes): New variable.
11676 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
11677 that weren't used for any other decl in current
11678 emit_notes_for_changes call call vt_expand_loc_dummy to update
11679 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
11680 first loc_chain location if NULL before. Always use just
11681 cur_loc instead of first loc_chain location. When cur_loc_changed
11682 is false, when not --enable-checking=rtl just don't emit any note.
11683 When rtl checking, compute the note and assert it is the same
11684 as previous note. Clear cur_loc_changed and in_changed_variables
11685 at the end before removing from changed_variables.
11686 (check_changed_vars_3): New function.
11687 (emit_notes_for_changes): Traverse changed_vars to call
11688 check_changed_vars_3 on each changed var.
11689 (emit_notes_for_differences_1): Clear cur_loc_changed and
11690 in_changed_variables. Recompute cur_loc of new_var.
11691 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
11692 (vt_emit_notes): Initialize and destroy emitted_notes.
11693
11694 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
11695
11696 PR rtl-optimization/42220
11697 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
11698 Use verify_reg_tracked to determine if we should use OP_OUT rather
11699 than OP_INOUT.
11700 (build_def_use): If we see an in-out operand for a register that we
11701 know nothing about, treat is an output if possible, fail the block if
11702 not.
11703
11704 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
11705
11706 PR debug/42897
11707 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
11708 permanently.
11709
11710 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
11711
11712 PR debug/42897
11713 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
11714 uses of relevant DEFs that are dead outside the loop too.
11715
11716 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
11717
11718 * var-tracking.c (dataflow_set_merge): Swap src and src2.
11719 Reverted:
11720 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11721 PR debug/41371
11722 * var-tracking.c (values_to_unmark): New variable.
11723 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11724 values_to_unmark vector. Moved body to...
11725 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11726 instead queue it into values_to_unmark vector.
11727 (vt_find_locations): Free values_to_unmark vector.
11728
11729 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
11730
11731 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
11732 (site.exp): Export them when plugins are enabled.
11733
11734 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
11735
11736 PR middle-end/42326
11737 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
11738 that contain scevs.
11739 (chrec_fold_multiply): Same.
11740
11741 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
11742
11743 PR c/43248
11744 * c-decl.c (build_compound_literal): Return early if init is
11745 an error_mark_node.
11746
11747 2010-03-04 Martin Jambor <mjambor@suse.cz>
11748
11749 PR tree-optimization/43164
11750 PR tree-optimization/43191
11751 * tree-sra.c (type_consists_of_records_p): Reject records with
11752 zero-size bit-fields at the end.
11753
11754 2010-03-04 Mike Stump <mikestump@comcast.net>
11755
11756 * Makefile.in (TAGS): Remove *.y.
11757
11758 2010-03-04 Richard Guenther <rguenther@suse.de>
11759
11760 PR tree-optimization/40761
11761 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
11762 in reverse order.
11763 (my_rev_post_order_compute): New function.
11764 (init_pre): Call it.
11765
11766 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
11767
11768 PR middle-end/43209
11769 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
11770 decrease the cost of an IV candidate when the cost is infinite.
11771
11772 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11773
11774 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
11775 Use '3DNow!' for the extension of that name, ensure normal space
11776 after the string.
11777 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
11778
11779 2010-03-03 Jeff Law <law@redhat.com>
11780
11781 * PR middle-end/32693
11782 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
11783 than gen_rtx_SUBREG.
11784 (extract_bit_field_1): Likewise.
11785
11786 2010-03-03 Janis Johnson <janis187@us.ibm.com>
11787
11788 * doc/sourcebuild.texi (Test directives): Document that arguments
11789 include-opts and exclude-opts are now optional for dg-skip-if,
11790 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
11791
11792 2010-03-03 Jason Merrill <jason@redhat.com>
11793
11794 PR c++/12909
11795 * cgraph.h (varpool_node): Add extra_name field.
11796 * varpool.c (varpool_extra_name_alias): New.
11797 (varpool_assemble_decl): Emit extra name aliases.
11798 (varpool_mark_needed_node): Look past an extra name alias.
11799 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
11800 * lto-streamer-in.c (lto_input_tree): Read it.
11801 * lto-streamer-out.c (output_unreferenced_globals): Write it.
11802
11803 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
11804
11805 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
11806 (sparc*-*-solaris2*): ...this.
11807
11808 2010-03-03 Jakub Jelinek <jakub@redhat.com>
11809
11810 PR debug/43229
11811 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
11812 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
11813 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
11814 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
11815
11816 PR debug/43237
11817 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
11818 fallthrough to default handling, just with want_address 0 instead of 2.
11819 For single element lists, add_AT_loc directly, otherwise create an
11820 artificial variable DIE and stick location list to it.
11821
11822 PR debug/43177
11823 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
11824 (VAL_EXPR_HAS_REVERSE): Define.
11825 (reverse_op): New function.
11826 (add_stores): For reversible operations add an extra MO_VAL_USE.
11827
11828 2010-03-02 Jason Merrill <jason@redhat.com>
11829
11830 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
11831
11832 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
11833
11834 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
11835 (sparc64-*-linux*): Likewise.
11836 (sparc64-*-solaris2*): Include assembler files before linker ones.
11837 (sparc-*-solaris2*): Simplify and reorder to match previous case.
11838 * config/sparc/gas.h: Delete.
11839 * config/sparc/sol2-64.h: Add copyright notice.
11840 * config/sparc/sol2-gas-bi.h: Likewise.
11841 * config/sparc/sol2-gld.h: Likewise.
11842 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
11843 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
11844 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
11845 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
11846 (sparc_elf_asm_named_section): Rename into...
11847 (sparc_solaris_elf_asm_named_section): ...this. Always define.
11848
11849 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
11850
11851 * config/alpha/alpha.c (override_options): Fix -mtune error message.
11852
11853 2010-03-02 Jeff Law <law@redhat.com>
11854
11855 PR middle-end/42431
11856 * reload1.c (rtx_p, substitute_stack): Declare.
11857 (substitute): Record addresses of changed rtxs.
11858 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
11859 Restore the original rtx when complete.
11860 (reload): Free subsitute_stack when complete.
11861
11862 2010-03-02 Janis Johnson <janis187@us.ibm.com>
11863
11864 * doc/gccint.texi (menu): Add Testsuites as a chapter.
11865 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
11866 new chapter.
11867 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
11868 LTO Testing, gcov Testing, profopt Testing, compat Testing,
11869 Torture Tests): Change from subsection to section.
11870
11871 2010-03-02 Jakub Jelinek <jakub@redhat.com>
11872 Steven Bosscher <steven@gcc.gnu.org>
11873
11874 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
11875 instead of bb.
11876
11877 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
11878
11879 PR middle-end/42640
11880 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
11881 the assignment from the new induction variable to the assignment
11882 of the value from the original loop PHI function.
11883
11884 2010-03-01 Janis Johnson <janis187@us.ibm.com>
11885 Daniel Jacobowitz <dan@codesourcery.com>
11886
11887 * doc/sourcebuild.texi (Test directives): Clarify options to
11888 dg-skip-if.
11889
11890 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11891
11892 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
11893 Disable cfi directives unless GCC and gas agree on using read-only
11894 .eh_frame sections for 64-bit.
11895 * configure: Regenerate.
11896
11897 2010-03-01 Richard Guenther <rguenther@suse.de>
11898
11899 PR tree-optimization/43220
11900 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
11901 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
11902
11903 2010-03-01 Richard Guenther <rguenther@suse.de>
11904 Martin Jambor <mjambor@suse.cz>
11905
11906 PR middle-end/41250
11907 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
11908 gimplified parameters.
11909
11910 2010-03-01 Christian Bruel <christian.bruel@st.com>
11911
11912 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
11913
11914 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
11915
11916 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
11917
11918 2010-03-01 Richard Guenther <rguenther@suse.de>
11919
11920 PR middle-end/43213
11921 * expr.c (expand_assignment): Use the alias-oracle to tell
11922 if the rhs aliases the result decl.
11923
11924 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11925
11926 PR pch/14940
11927 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
11928 to sol_gt_pch_get_address.
11929 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
11930 64-bit, SPARC and x86.
11931 (sol_gt_pch_get_address): New function.
11932
11933 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
11934
11935 * toplev.h (inform_n, error_n): Declare.
11936 * diagnostic.c (inform_n, error_n): New function.
11937
11938 2010-03-01 Jakub Jelinek <jakub@redhat.com>
11939
11940 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
11941 has no rtl yet when processing local_decls, queue it and recheck
11942 if deferred stack allocation hasn't assigned it rtl.
11943
11944 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
11945
11946 * config/sh/sh.c (unspec_bbr_uid): New.
11947 (gen_block_redirect): Use it instead of INSN_UID.
11948 (gen_far_branch): Likewise.
11949
11950 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
11951
11952 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
11953 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
11954
11955 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11956
11957 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
11958 (Warning Options): -Wno-conversion-null is valid for
11959 Objective-C++ as well.
11960 * doc/tm.texi (Named Address Spaces): Likewise.
11961 * doc/plugins.texi (Plugins): Replace TABs with spaces.
11962 * doc/tree-ssa.texi (Tree SSA): Likewise.
11963
11964 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11965
11966 PR bootstrap/43202
11967 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
11968 by default. Don't set the default arch for
11969 i[34567]86-*-darwin*|x86_64-*-darwin*.
11970
11971 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11972
11973 PR bootstrap/43202
11974 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
11975 default. Set the default 32bit/64bit archs with $with_arch
11976 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
11977
11978 2010-02-27 Richard Guenther <rguenther@suse.de>
11979
11980 PR tree-optimization/43186
11981 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
11982 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
11983 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
11984 unroller iterations.
11985
11986 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11987
11988 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
11989 required and i[34567]86-*-* targets don't support 64bit ISA.
11990
11991 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
11992
11993 PR ada/43096
11994 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11995 the same alias set.
11996
11997 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
11998
11999 * config.gcc: Set the default arch at least to Prescott for
12000 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
12001 if SSE math is enabled.
12002
12003 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12004
12005 * diagnostic.c (diagnostic_initialize): Update.
12006 (diagnostic_report_diagnostic): Test inhibit_notes_p for
12007 informative notes.
12008 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
12009 (diagnostic_inhibit_notes): New.
12010 * toplev.c (process_options): inhibit notes with -fcompare-debug.
12011
12012 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12013
12014 PR c/20631
12015 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
12016 * doc/standards.texi: Likewise.
12017 * doc/extend.texi: Likewise.
12018 * doc/trouble.texi: Likewise.
12019 * doc/cppopts.texi: Likewise.
12020 * doc/install.texi: Likewise.
12021 * c.opt (std=c90,std=gnu90): New options.
12022 * c-opts.c (c_common_handle_option): Handle them.
12023
12024 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12025
12026 PR c/24577
12027 * c-decl.c (undeclared_variable): Use an informative note.
12028
12029 2010-02-26 Richard Guenther <rguenther@suse.de>
12030
12031 PR tree-optimization/43186
12032 * gimple.h (gimple_fold): Remove.
12033 * gimple.c (gimple_fold): Remove. Inline into single user ...
12034 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
12035 Try harder for conditions.
12036
12037 2010-02-26 Jakub Jelinek <jakub@redhat.com>
12038
12039 PR debug/43190
12040 * function.c (used_types_insert): Don't skip through named pointer
12041 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
12042 and it is different from the main variant's type.
12043
12044 2010-02-26 Nick Clifton <nickc@redhat.com>
12045
12046 * config/rx/rx.md (sminsi3): Remove bogus alternative.
12047
12048 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
12049
12050 * config.gcc: Support --with-fpmath=sse for x86.
12051
12052 * config/i386/ssemath.h: New.
12053
12054 * doc/install.texi (--with-fpmath=sse): Documented.
12055
12056 2010-02-26 Richard Guenther <rguenther@suse.de>
12057
12058 PR tree-optimization/43188
12059 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
12060 vector types of over-aligned element type.
12061
12062 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
12063
12064 PR target/43175
12065 * config/i386/i386.c (expand_vec_perm_blend): Use correct
12066 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
12067
12068 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12069
12070 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
12071
12072 2010-02-26 Jakub Jelinek <jakub@redhat.com>
12073
12074 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
12075 * var-tracking.c: Include diagnostic.h.
12076 (debug_dv): New function.
12077 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
12078
12079 PR debug/43160
12080 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
12081 (add_value_chain, add_value_chains, remove_value_chain,
12082 remove_value_chains): Handle DEBUG_EXPRs.
12083 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
12084
12085 PR debug/43161
12086 * regcprop.c (struct queued_debug_insn_change): New type.
12087 (struct value_data_entry): Add debug_insn_changes field.
12088 (struct value_data): Add n_debug_insn_changes field.
12089 (debug_insn_changes_pool): New variable.
12090 (free_debug_insn_changes, apply_debug_insn_changes,
12091 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
12092 (kill_value_one_regno): Call free_debug_insn_changes if needed.
12093 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
12094 fields.
12095 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
12096 changes for them.
12097 (copyprop_hardreg_forward_1): Don't call apply_change_group for
12098 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
12099 changes, call cprop_find_used_regs via note_stores.
12100 (copyprop_hardreg_forward): When copying vd from predecessor
12101 which has any queued DEBUG_INSN changes, make sure the pointers are
12102 cleared. At the end call df_analyze and then if there are any
12103 DEBUG_INSN changes queued at the end of some basic block for still
12104 live registers, apply them.
12105 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
12106
12107 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
12108
12109 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
12110 (arm*-*-*): Ditto.
12111
12112 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
12113
12114 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
12115 targets. Set the default with_cpu/with_arch from arch/cpu.
12116 Allow x86-64 and native for with_cpu/with_arch.
12117
12118 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
12119
12120 * ebitmap.c: Change calls to verify_popcount with calls to
12121 sbitmap_verify_popcount.
12122 (ebitmap_clear_bit): Fixed map->cacheindex test and
12123 map>cache update when bit clearing results in an empty
12124 element.
12125
12126 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12127
12128 PR target/43154
12129 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
12130 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
12131 and support both V2DF and V2DI modes.
12132 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
12133 support both V2DF and V2DI modes.
12134 (general): Delete trailing whitespace from a few patterns.
12135
12136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12137 V2DF/V2DI interleave high/low builtins.
12138
12139 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
12140 new VSX builtins.
12141
12142 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
12143 interleave high/low functions.
12144
12145 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12146
12147 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
12148 #pragma extern_prefix.
12149
12150 2010-02-25 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR debug/43166
12153 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
12154 BLKmode, assert op0 is a MEM and just adjust its mode.
12155
12156 PR debug/43165
12157 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
12158 if bitpos isn't multiple of mode's bitsize.
12159
12160 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12161
12162 * c.opt (-ftemplate-depth=): New.
12163 (-ftemplate-depth-): Deprecate.
12164 * optc-gen.awk: Handle -ftemplate-depth=.
12165 * opth-gen.awk: Likewise.
12166 * c-opts.c (c_common_handle_option): Likewise.
12167 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
12168
12169 2010-02-24 Jason Merrill <jason@redhat.com>
12170
12171 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
12172
12173 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12174
12175 * cfg.c (alloc_aux_for_block): Remove inline.
12176 (alloc_aux_for_edge): Likewise.
12177
12178 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12179
12180 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
12181
12182 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12183
12184 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
12185 * config/i386/sol2-gas.h: New file.
12186 * config.gcc (i[34567]86-*-solaris2*): Use it.
12187
12188 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12189
12190 PR c/43128
12191 * c-typeck.c (ep_convert_and_check): New.
12192 (build_conditional_expr): Use it.
12193 (build_binary_op): Likewise.
12194
12195 2010-02-24 Jakub Jelinek <jakub@redhat.com>
12196
12197 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
12198
12199 PR debug/43150
12200 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
12201 bounds even for -O+.
12202 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
12203 expr needs to have DECL_NAME set.
12204
12205 2010-02-24 Nick Clifton <nickc@redhat.com>
12206
12207 * config/mep/mep.c: Include gimple.h.
12208 (mep_function_uses_sp): Delete unused function.
12209 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
12210 parameters. Use unsigned integers to count args. Return a
12211 NULL_RTX instead of an error_mark_node. Toidy up formatting.
12212
12213 2010-02-23 Jakub Jelinek <jakub@redhat.com>
12214
12215 PR target/43107
12216 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
12217 greater or equal to nelt instead of 2 * nelt.
12218 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
12219 with nelt - 1.
12220
12221 2010-02-23 Jason Merrill <jason@redhat.com>
12222
12223 PR debug/42800
12224 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
12225 in cfun->local_decls even if they have register types.
12226
12227 PR c++/42837
12228 * stor-layout.c (place_field): Don't warn about unnecessary
12229 DECL_PACKED if the type is packed.
12230
12231 2010-02-23 Jakub Jelinek <jakub@redhat.com>
12232
12233 PR target/43139
12234 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
12235 GOTOFF relocs, even when the base reg isn't pic pointer.
12236
12237 2010-02-23 Michael Matz <matz@suse.de>
12238
12239 PR debug/43077
12240 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
12241 (expand_gimple_basic_block): Generate and use debug temps if there
12242 are debug uses left after the last real use of TERed ssa names.
12243 Unlink debug immediate uses when they are expanded.
12244
12245 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12246
12247 PR 43123
12248 * config/i386/i386.c (override_options): Reorganise to provide
12249 better error messages.
12250
12251 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
12252
12253 PR middle-end/43083
12254 * graphite-scop-detection.c (create_single_exit_edge): Move
12255 the call to find_single_exit_edge to....
12256 (create_sese_edges): ...here. Don't handle multiple edges
12257 exiting the function.
12258 (build_graphite_scops): Don't handle multiple edges
12259 exiting the function.
12260
12261 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
12262
12263 PR middle-end/43097
12264 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
12265 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
12266
12267 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
12268
12269 PR middle-end/43026
12270 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
12271
12272 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12273
12274 PR c++/43126
12275 * c-typeck.c (convert_arguments): Print declaration location.
12276 * c-common.c (validate_nargs): Rename as
12277 builtin_function_validate_nargs.
12278 (check_builtin_function_arguments): Update.
12279
12280 2010-02-22 Richard Guenther <rguenther@suse.de>
12281
12282 PR lto/43045
12283 * tree-inline.c (declare_return_variable): Use the type of
12284 the call stmt lhs if available.
12285
12286 2010-02-22 Duncan Sands <baldrick@free.fr>
12287
12288 * passes.c (register_pass): Always consider all pass lists when
12289 ref_pass_instance_number is zero.
12290
12291 2010-02-22 Richard Guenther <rguenther@suse.de>
12292
12293 PR tree-optimization/42749
12294 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
12295 parameter. Do arithmetic in the original type.
12296 (update_accumulator_with_ops): Likewise.
12297 (adjust_accumulator_values): Adjust.
12298
12299 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12300
12301 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
12302 (QI to BLKmode splitter): New splitter.
12303
12304 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
12305
12306 * config/i386/i386.c (initial_ix86_tune_features): Turn on
12307 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
12308
12309 2010-02-22 Richard Guenther <rguenther@suse.de>
12310
12311 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
12312
12313 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
12314
12315 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
12316 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
12317 ($(T)crti.o, $(T)crtn.o): Remove rules.
12318
12319 2010-02-21 Tobias Burnus <burnus@net-b.de>
12320
12321 PR fortran/35259
12322 * doc/invoke.texi (-fassociative-math): Document that this
12323 option is automatically enabled for Fortran.
12324
12325 2010-02-20 David S. Miller <davem@davemloft.net>
12326
12327 * configure.ac: Test if linker and assembler properly support
12328 GOTDATA_OP relocations.
12329 * configure: Rebuild.
12330 * config.in: Likewise.
12331 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
12332 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
12333 (movsi_high_pic): Likewise.
12334 (movdi_lo_sum_pic): Likewise.
12335 (movdi_high_pic): Likewise.
12336 (movsi_pic_gotdata_op): New pattern.
12337 (movdi_pic_gotdata_op): Likewise.
12338 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
12339 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
12340
12341 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
12342
12343 PR target/43067
12344 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
12345 attribute to ssemul.
12346 (xop_mulv2div2di3_high): Ditto.
12347
12348 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12349
12350 PR c++/35669
12351 * c.opt (Wconversion-null): New option.
12352 * doc/invoke.texi (Wconversion-null): Document.
12353
12354 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12355
12356 * common.opt (Wlarger-than-): Add Undocumented.
12357
12358 2010-02-19 Mike Stump <mikestump@comcast.net>
12359
12360 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
12361
12362 2010-02-19 Jason Merrill <jason@redhat.com>
12363
12364 PR target/40332
12365 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
12366 * configure: Likewise.
12367
12368 2010-02-20 Alan Modra <amodra@gmail.com>
12369
12370 PR middle-end/42344
12371 * cgraph.h (cgraph_make_decl_local): Declare.
12372 * cgraph.c (cgraph_make_decl_local): New function.
12373 (cgraph_make_node_local): Use it.
12374 * cgraphunit.c (cgraph_function_versioning): Likewise.
12375 * ipa.c (function_and_variable_visibility): Likewise.
12376
12377 2010-02-19 Jakub Jelinek <jakub@redhat.com>
12378
12379 PR bootstrap/43121
12380 * except.c (sjlj_emit_function_enter): Don't call
12381 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
12382 directly.
12383 * rtl.h (add_reg_br_prob_note): Remove prototype.
12384
12385 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
12386
12387 PR 41779
12388 * c-common.c (conversion_warning): Remove widening conversions
12389 before checking the conversion of integers to reals.
12390
12391 2010-02-19 Mike Stump <mikestump@comcast.net>
12392
12393 PR middle-end/43125
12394 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
12395
12396 PR objc/43061
12397 * cgraphunit.c (process_function_and_variable_attributes): Check
12398 DECL_PRESERVE_P instead of looking up attribute "used".
12399 * ipa-pure-const.c (check_decl): Likewise.
12400 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
12401 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
12402 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
12403 instead of attribute "used".
12404 * config/sol2-c.c (solaris_pragma_init): Likewise.
12405 (solaris_pragma_fini): Likewise.
12406
12407 2010-02-19 Jakub Jelinek <jakub@redhat.com>
12408
12409 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
12410 Use XCNEW instead of xcalloc.
12411 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
12412 XNEW instead of xmalloc.
12413 (get_fields): Use XNEWVEC instead of xmalloc.
12414
12415 PR debug/43084
12416 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
12417 populate vars array.
12418 (create_new_general_access): For debug stmts just reset value.
12419 (get_stmt_accesses): For accesses within debug stmts just record them
12420 using add_access_to_acc_sites instead of preventing the peeling or
12421 counting them as accesses.
12422
12423 PR middle-end/42233
12424 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
12425
12426 2010-02-19 Richard Guenther <rguenther@suse.de>
12427
12428 PR tree-optimization/42916
12429 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
12430 instructions.
12431
12432 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
12433
12434 * configure.ac: Replace all uses of changequote in macro arguments
12435 with proper quoting.
12436
12437 2010-02-19 Jakub Jelinek <jakub@redhat.com>
12438
12439 PR middle-end/42233
12440 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
12441
12442 2010-02-19 Richard Guenther <rguenther@suse.de>
12443
12444 PR tree-optimization/42944
12445 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
12446 test for aliasing with errno.
12447
12448 2010-02-19 Jakub Jelinek <jakub@redhat.com>
12449
12450 PR middle-end/42233
12451 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
12452 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
12453 * dojump.c: Include output.h.
12454 (inv): New inline function.
12455 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
12456 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
12457 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
12458 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
12459 argument, pass it down to other calls.
12460 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
12461 add REG_BR_PROB note to the conditional jump.
12462 * cfgexpand.c (add_reg_br_prob_note): Removed.
12463 (expand_gimple_cond): Don't call it, add the probability
12464 as last argument to jumpif_1/jumpifnot_1.
12465 * Makefile.in (dojump.o): Depend on output.h.
12466 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
12467 callers.
12468 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
12469 * stmt.c (do_jump_if_equal): Likewise.
12470 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
12471 * loop-unswitch.c (compare_and_jump_seq): Likewise.
12472 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
12473 Likewise.
12474 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
12475 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
12476 jumpifnot_1 callers.
12477 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
12478 callers.
12479 (store_expr): Adjust jumpifnot caller.
12480 (store_constructor): Adjust jumpif caller.
12481
12482 PR middle-end/42233
12483 * gimplify.c (gimple_boolify): For __builtin_expect call
12484 gimple_boolify also on its first argument.
12485
12486 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
12487
12488 * configure.ac (gnu-unique-object): Wrap regexps using [] in
12489 changequote block.
12490 (__stack_chk_fail): Ditto. Remove quadrigraphs.
12491 * configure: Regenerated.
12492
12493 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12494
12495 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
12496 lang_hooks.types_compatible_p instead of comptypes.
12497
12498 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
12499
12500 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
12501 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
12502 if __prefer_thumb__ is defined.
12503
12504 2010-02-18 Martin Jambor <mjambor@suse.cz>
12505
12506 PR tree-optimization/43066
12507 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
12508 array with zero-sized element type.
12509
12510 2010-02-18 Jakub Jelinek <jakub@redhat.com>
12511
12512 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
12513 rtx, allocate struct var_loc_node here and return it to the
12514 caller, and only if it is actually needed.
12515 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
12516 move it earlier and return immediately if it returns NULL.
12517
12518 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
12519
12520 * config/sparc/gas.h: New file. Restore
12521 TARGET_ASM_NAMED_SECTION to its ELF default.
12522 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
12523 check !HAVE_GNU_AS.
12524 * config/sparc/sparc.c (sparc_elf_asm_named_section):
12525 Likewise. Add ATTRIBUTE_UNUSED to prototype.
12526 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
12527 after sparc/sysv4.h.
12528
12529 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
12530
12531 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
12532
12533 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
12534
12535 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
12536 patterns from predicated pattern.
12537
12538 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
12539
12540 PR target/43103
12541 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
12542 for insn mnemonic suffix.
12543
12544 2010-02-17 Richard Guenther <rguenther@suse.de>
12545
12546 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
12547 to loop PHI nodes.
12548
12549 2010-02-17 Jakub Jelinek <jakub@redhat.com>
12550
12551 PR debug/42918
12552 * caller-save.c (save_call_clobbered_regs): If BB ends with
12553 a DEBUG_INSN, move any notes in between last real insn and the last
12554 DEBUG_INSN after the last DEBUG_INSN.
12555
12556 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
12557
12558 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
12559 Fix return type. Fix argument type. Explain meaning of return value.
12560
12561 2010-02-16 Richard Guenther <rguenther@suse.de>
12562
12563 PR tree-optimization/41043
12564 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
12565 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
12566 statements ...
12567 (vrp_visit_phi_node): ... but only for loop PHI nodes.
12568
12569 2010-02-16 Ira Rosen <irar@il.ibm.com>
12570
12571 PR tree-optimization/43074
12572 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
12573 * tree-vect-loop.c (vect_analyze_loop_operations): Add
12574 vectorizable cycles in hybrid SLP check.
12575 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
12576
12577 2010-02-16 Richard Guenther <rguenther@suse.de>
12578
12579 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
12580 (true_dependence): If memrefs_conflict_p computes must-alias
12581 trust it. Move TBAA check after offset-based disambiguation.
12582 (canon_true_dependence): Likewise.
12583
12584 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
12585
12586 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
12587 * doc/invoke.texi: Document it.
12588 * var-tracking.c: Include toplev.h and params.h.
12589 (vt_find_locations): Return bool indicating success. Compute
12590 hash sizes unconditionally. Check new parameter, report.
12591 (variable_tracking_main_1): Check vt_find_locations results and
12592 retry. Renamed from...
12593 (variable_tracking_main): ... this. New wrapper to preserve
12594 flag_var_tracking_assignments.
12595 * Makefile.in (var-tracking.o): Adjust dependencies.
12596
12597 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
12598 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR target/42854
12601 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
12602 if weak_import attribute is present.
12603 * config/darwin.c (machopic_select_section): Likewise.
12604
12605 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
12606
12607 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
12608 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
12609 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
12610 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
12611
12612 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
12613 types.
12614
12615 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12616 Fix argument types.
12617
12618 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
12619 Rewrite text to refer to the names.
12620
12621 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
12622
12623 * config/i386/i386-builtin-types.def
12624 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
12625 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
12626 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
12627 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
12628 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
12629 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
12630 IX86_BUILTIN_VPERMIL2PS256.
12631 (MULTI_ARG_4_DF2_DI_I): Defined.
12632 (MULTI_ARG_4_DF2_DI_I1): Defined.
12633 (MULTI_ARG_4_SF2_SI_I): Defined.
12634 (MULTI_ARG_4_SF2_SI_I1): Defined.
12635 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
12636 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
12637 __builtin_ia32_vpermil2ps256.
12638 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
12639 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
12640 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
12641 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
12642 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
12643 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
12644 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
12645 CODE_FOR_xop_vpermil2v8sf3.
12646 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
12647 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
12648 * config/i386/xopintrin.h (_mm_permute2_pd): New.
12649 (_mm256_permute2_pd): New.
12650 (_mm_permute2_ps): New.
12651 (_mm256_permute2_ps): New.
12652
12653 2010-02-15 Nick Clifton <nickc@redhat.com>
12654
12655 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
12656 boolean parameters. Use emit_jump_insn when emitting a pop
12657 instruction containing a return insn.
12658 (push): Use 'true' rather than '1' as second parameter to F.
12659 (h8300_expand_prologue): Likewise.
12660 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
12661 (h8300_expand_epilogue): Likewise.
12662
12663 2010-02-15 Richard Guenther <rguenther@suse.de>
12664
12665 PR middle-end/43068
12666 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
12667 if that is zero.
12668
12669 2010-02-15 Nick Clifton <nickc@redhat.com>
12670
12671 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
12672 delta.
12673
12674 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
12675
12676 * intl.c (fake_ngettext): New function.
12677 * intl.h (fake_ngettext): Declare.
12678 (ngettext): Define macro.
12679 * collect2.c (notice_translated): New function.
12680 (main): Use notice_translated and ngettext.
12681 * collect2.h (notice_translated): Declare.
12682
12683 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
12684
12685 * reorg.c (delete_computation): Comment fixes.
12686 * caller-save.c (setup_save_areas): Idem.
12687 * sel-sched-dump.c (dump_lv_set): Idem.
12688 * rtl.def: Idem.
12689
12690 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12691
12692 * config/s390/s390.c (s390_sched_init): New function.
12693 (TARGET_SCHED_INIT): Target hook defined.
12694
12695 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
12696 Jack Howarth <howarth@bromo.med.uc.edu>
12697 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
12698
12699 PR target/42982
12700 Partial revert of unintended change in fix for PR41605.
12701 * config/darwin.h: Fix typo.
12702 * config/darwin9.h: Same.
12703
12704 2010-02-11 Jakub Jelinek <jakub@redhat.com>
12705
12706 * c-pch.c (pch_init): Clear v.
12707
12708 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
12709
12710 PR middle-end/42930
12711 * graphite-scop-detection.c (graphite_can_represent_scev): Call
12712 graphite_can_represent_init for MULT_EXPR.
12713
12714 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
12715
12716 PR middle-end/42914
12717 PR middle-end/42530
12718 * graphite-sese-to-poly.c (remove_phi): New.
12719 (translate_scalar_reduction_to_array): Call remove_phi.
12720
12721 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
12722
12723 PR middle-end/42771
12724 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
12725 * graphite-clast-to-gimple.h (gloog): Update declaration.
12726 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
12727 * graphite-poly.h (struct poly_bb): Add missing comments.
12728 (struct scop): Add poly_scop_p field.
12729 (POLY_SCOP_P): New.
12730 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
12731 * graphite.c (graphite_transform_loops): Build the polyhedral
12732 representation for each scop before code generation.
12733 * sese.c (rename_variables_in_operand): Removed.
12734 (rename_variables_in_expr): Return the renamed expression.
12735 (rename_sese_parameters): New.
12736 * sese.h (rename_sese_parameters): Declared.
12737
12738 2010-02-11 Richard Guenther <rguenther@suse.de>
12739
12740 PR tree-optimization/42998
12741 * tree-ssa-pre.c (create_expression_by_pieces): Treat
12742 POINTER_PLUS_EXPR properly.
12743
12744 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
12745 Changpeng Fang <changpeng.fang@amd.com>
12746
12747 PR middle-end/40886
12748 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
12749 the cost of an IV candidate when the IV is used in a test against zero.
12750
12751 * gcc.dg/tree-ssa/ivopts-3.c: New.
12752
12753 2010-02-11 Richard Guenther <rguenther@suse.de>
12754
12755 PR lto/41664
12756 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
12757 pointer-vs-decl case by swapping refs. Handle some cases
12758 of pointer-vs-decl disambiguations more conservatively.
12759 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
12760 to false after expanding.
12761
12762 2010-02-11 Richard Guenther <rguenther@suse.de>
12763
12764 PR driver/43021
12765 * gcc.c (process_command): Handle LTO file@offset case more
12766 appropriately.
12767
12768 2010-02-11 Jakub Jelinek <jakub@redhat.com>
12769
12770 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
12771 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
12772 of DEBUG_INSNs.
12773 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
12774
12775 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
12776 if MEM's mode size isn't DWARF2_ADDR_SIZE.
12777 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
12778 Optimize eq/ne comparisons when both arguments are known to be
12779 zero-extended.
12780 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
12781 Don't mask operands unnecessarily if they are known to be already
12782 zero-extended.
12783
12784 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
12785
12786 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
12787 instead of loop.
12788
12789 2010-02-10 Richard Guenther <rguenther@suse.de>
12790
12791 PR tree-optimization/43017
12792 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
12793 for wrapping signed arithmetic.
12794
12795 2010-02-10 Jakub Jelinek <jakub@redhat.com>
12796
12797 PR debug/43010
12798 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
12799 if no debug info should be emitted for it.
12800
12801 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
12802
12803 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
12804 note when flag_exceptions is set.
12805
12806 2010-02-10 Duncan Sands <baldrick@free.fr>
12807
12808 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
12809
12810 2010-02-10 Richard Guenther <rguenther@suse.de>
12811
12812 PR c/43007
12813 * tree.c (get_unwidened): Handle constants.
12814 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
12815
12816 2010-02-10 Martin Jambor <mjambor@suse.cz>
12817
12818 PR lto/42985
12819 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
12820 check for variable argument counts independently.
12821
12822 2010-02-10 Christian Bruel <christian.bruel@st.com>
12823
12824 PR target/42841
12825 * config/sh/sh.c (find_barrier): Increase length for non delayed
12826 conditional branches.
12827
12828 2010-02-10 Christian Bruel <christian.bruel@st.com>
12829
12830 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
12831
12832 2010-02-10 Jakub Jelinek <jakub@redhat.com>
12833
12834 * builtins.c (set_builtin_user_assembler_name): Also handle
12835 ffs if int is smaller than word.
12836
12837 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
12838
12839 PR middle-end/42973
12840 * ira-conflicts.c (get_dup): Remove.
12841 (process_reg_shuffles): Add new parameter. Use it as an
12842 additional guard for copy generation.
12843 (add_insn_allocno_copies): Rewrite.
12844
12845 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
12846
12847 * common.opt (fsched2-use-traces): Preserved for backward
12848 compatibility.
12849 * doc/invoke.texi: Remove the documentation about option
12850 -fsched2-use-traces.
12851 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
12852 flag_sched2_use_traces.
12853 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
12854 the backward compatibility flag section.
12855
12856 2010-02-09 Richard Guenther <rguenther@suse.de>
12857
12858 PR tree-optimization/43008
12859 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
12860 make HEAP variables initialized from global memory if they
12861 are not known builtin functions.
12862 (find_func_aliases): Adjust.
12863
12864 2010-02-09 Richard Guenther <rguenther@suse.de>
12865
12866 PR tree-optimization/43000
12867 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
12868 arithmetic manually.
12869
12870 2010-02-08 Jakub Jelinek <jakub@redhat.com>
12871
12872 PR tree-optimization/42931
12873 * tree-loop-linear.c (try_interchange_loops): Don't call
12874 double_int_mul if estimated_loop_iterations failed.
12875
12876 2010-02-08 Martin Jambor <mjambor@suse.cz>
12877
12878 PR middle-end/42898
12879 * tree-sra.c (build_accesses_from_assign): Do not mark in
12880 should_scalarize_away_bitmap if stmt has volatile ops.
12881 (sra_modify_assign): Do not process assigns piecemeal if if stmt
12882 has volatile ops.
12883
12884 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
12885
12886 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
12887
12888 2010-02-07 Adam Nemet <adambnmet@gmail.com>
12889
12890 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
12891 before the pattern.
12892
12893 2010-02-07 Andrew Pinski <pinskia@gmail.com>
12894
12895 PR middle-end/42946
12896 * df-core.c (df_finish_pass): Change type of saved_flags to int.
12897
12898 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12899
12900 PR middle-end/42988
12901 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
12902 to unknown_dependence.
12903 (graphite_legal_transform_dr): Handle the unknown_dependence.
12904 (graphite_carried_dependence_level_k): Same.
12905
12906 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12907
12908 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
12909
12910 2010-02-07 Richard Guenther <rguenther@suse.de>
12911
12912 PR middle-end/42991
12913 * expr.c (get_inner_reference): Always initialize *pbitsize.
12914
12915 2010-02-07 Richard Guenther <rguenther@suse.de>
12916
12917 PR middle-end/42956
12918 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
12919 new ARRAY_REFs on variable size element or minimal index arrays.
12920 Complete.
12921 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
12922 gimple_fold_indirect_ref.
12923
12924 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
12925
12926 PR target/42957
12927 * arm.c (arm_override_options): Just return if the user has specified
12928 an invalid fpu name.
12929
12930 2010-02-03 Jason Merrill <jason@redhat.com>
12931
12932 PR c++/42870
12933 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
12934 i386_pe_maybe_record_exported_symbol.
12935
12936 2010-02-05 Steve Ellcey <sje@cup.hp.com>
12937
12938 PR target/42924
12939 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12940 (pa_delegitimize_address): New function.
12941
12942 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
12943
12944 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
12945 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
12946
12947 2010-02-05 Richard Guenther <rguenther@suse.de>
12948
12949 PR lto/42762
12950 * lto-streamer-in.c (get_resolution): Deal with references
12951 to undefined functions.
12952
12953 2010-02-05 Richard Guenther <rguenther@suse.de>
12954
12955 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
12956 (fold_const_aggregate_ref): Likewise.
12957 (ccp_fold_stmt): Substitute loads.
12958 (maybe_fold_reference): Verify types before substituting.
12959 Unshare properly.
12960 (fold_gimple_assign): Unshare properly.
12961 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
12962
12963 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
12964
12965 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
12966 for rs6000_gen_cell_microcode.
12967
12968 2010-02-04 Richard Guenther <rguenther@suse.de>
12969
12970 PR rtl-optimization/42952
12971 * dse.c (const_or_frame_p): Remove MEM handling.
12972
12973 2010-02-04 Nick Clifton <nickc@redhat.com>
12974
12975 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12976 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
12977 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
12978 (mn10300_asm_output_mi_thunk): New function.
12979 (mn10300_can_output_mu_thunk): New function.
12980 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
12981 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
12982 (FUNCTION_ARG): Delete incorrect comment.
12983
12984 2010-02-03 Jason Merrill <jason@redhat.com>
12985
12986 PR c++/40138
12987 * fold-const.c (operand_equal_p): Handle erroneous types.
12988
12989 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12990
12991 * config/h8300/h8300.md (can_delay): Fix attibute condition.
12992
12993 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
12994
12995 PR rtl-optimization/42941
12996 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
12997 of xmalloc.
12998
12999 2010-02-03 Jason Merrill <jason@redhat.com>
13000
13001 PR c++/35652
13002 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
13003
13004 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
13005
13006 PR debug/42896
13007 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
13008 (cselib_reset_table): Renamed from...
13009 (cselib_reset_table_with_next_value): ... this.
13010 (cselib_get_next_uid): Renamed from...
13011 (cselib_get_next_unknown_value): ... this.
13012 * cselib.c (next_uid): Renamed from...
13013 (next_unknown_value): ... this.
13014 (cselib_clear_table): Adjust.
13015 (cselib_reset_table): Adjust. Renamed from...
13016 (cselib_reset_table_with_next_value): ... this.
13017 (cselib_get_next_uid): Adjust. Renamed from...
13018 (cselib_get_next_unknown_value): ... this.
13019 (get_value_hash): Use hash.
13020 (cselib_hash_rtx): Likewise.
13021 (new_cselib_val): Adjust. Set and dump uid.
13022 (cselib_lookup_mem): Pass next_uid as hash.
13023 (cselib_subst_to_values): Likewise.
13024 (cselib_log_lookup): Dump uid.
13025 (cselib_lookup): Pass next_uid as hash. Adjust.
13026 (cselib_process_insn): Adjust.
13027 (cselib_init): Initialize next_uid.
13028 (cselib_finish): Adjust.
13029 (dump_cselib_table): Likewise.
13030 * dse.c (canon_address): Dump value uid.
13031 * print-rtl.c (print_rtx): Print value uid.
13032 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
13033 (dvuid): New type.
13034 (dv_uid): New function, sort of renamed from...
13035 (dv_htab_hash): ... this, reimplemented in terms of it and...
13036 (dv_uid2hash): ... this. New.
13037 (variable_htab_eq): Drop excess assertions.
13038 (tie_break_pointers): Removed.
13039 (canon_value_cmp): Compare uids.
13040 (variable_post_merge_New_vals): Print uids.
13041 (vt_add_function_parameters): Adjust.
13042 (vt_initialize): Reset table. Adjust.
13043
13044 2010-02-03 Richard Guenther <rguenther@suse.de>
13045
13046 PR tree-optimization/42944
13047 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
13048 (call_may_clobber_ref_p_1): Likewise. Properly handle
13049 malloc and calloc clobbering errno.
13050
13051 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
13052
13053 * doc/invoke.texi: Fix name of sched1 dump.
13054
13055 * opts.c (decode_options): Set flag_tree_switch_conversion
13056 only conditionally on optimize >= 2.
13057
13058 * gcse.c: Assorted comment fixes in pass description.
13059
13060 2010-02-03 Anthony Green <green@moxielogic.com>
13061
13062 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
13063 nop padding in order to maintain alignment of storage location of
13064 target function address.
13065 (moxie_trampoline_init): Store target function address at newly
13066 aligned location.
13067 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
13068 to 32.
13069 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
13070
13071 2010-02-03 Richard Guenther <rguenther@suse.de>
13072
13073 PR middle-end/42927
13074 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
13075
13076 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13077
13078 * config.gcc: Reenable check for obsolete targets.
13079 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
13080 mips-sgi-irix6.[0-4]*.
13081
13082 2010-02-02 Nick Clifton <nickc@redhat.com>
13083
13084 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
13085 constant size of 4 as being the same as 0.
13086 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
13087 can take values in the range 0..4.
13088
13089 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
13090
13091 PR java/41991
13092 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
13093 as _darwin10_Unwind_FindEnclosingFunction().
13094 * libgcc-libsystem.ver: New.
13095
13096 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
13097
13098 PR target/41399
13099 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
13100 implicitly set registers.
13101
13102 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
13103
13104 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
13105 (arm_override_options): Allow automatic selection of the thread
13106 pointer register if thumb2.
13107 (legitimize_pic_address): Improve code sequences for Thumb2.
13108 (arm_call_tls_get_addr): Likewise.
13109 (legitimize_tls_address): Likewise.
13110 * arm.md (pic_load_addr_arm): Delete. Replace with ...
13111 (pic_load_addr_32bit): ... this. New named pattern.
13112 * thumb2.md (pic_load_addr_thumb2): Delete.
13113 (pic_load_dot_plus_four): Delete.
13114 (tls_load_dot_plus_four): New named pattern.
13115
13116 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13117
13118 PR libgomp/29986
13119 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
13120 Document fix for TLS bug.
13121
13122 2010-01-31 Richard Guenther <rguenther@suse.de>
13123
13124 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
13125 conservatively correct.
13126
13127 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13128
13129 PR target/42850
13130 Revert:
13131 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13132
13133 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
13134
13135 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13136
13137 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
13138
13139 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
13140
13141 * config.gcc: Adjust order of makefile fragments for mingw targets.
13142
13143 2010-01-31 Richard Guenther <rguenther@suse.de>
13144
13145 PR middle-end/42898
13146 * gimplify.c (gimplify_init_constructor): For volatile LHS
13147 initialize a temporary.
13148
13149 2010-01-31 Matthias Klose <doko@ubuntu.com>
13150
13151 * configure.ac: Fix __stack_chk_fail check for cross builds configured
13152 --with-headers
13153 * configure: Regenerate.
13154
13155 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
13156
13157 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13158 the same alias set and their sizes different constantness.
13159 (aliasing_component_refs_p): Revert 2009-10-24 change.
13160
13161 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13162
13163 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
13164 unused.
13165
13166 2010-01-29 Richard Guenther <rguenther@suse.de>
13167
13168 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
13169 Assert we successfully updated the call.
13170
13171 2010-01-29 Jakub Jelinek <jakub@redhat.com>
13172
13173 PR rtl-optimization/42889
13174 * df.h (df_set_bb_dirty_nonlr): New prototype.
13175 * df-core.c (df_set_bb_dirty_nonlr): New function.
13176 * df-scan.c (df_insn_rescan): Call it instead of
13177 df_set_bb_dirty for DEBUG_INSNs.
13178
13179 2010-01-29 Richard Guenther <rguenther@suse.de>
13180
13181 PR middle-end/37448
13182 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
13183 quadratic behavior in most cases.
13184
13185 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
13186
13187 PR target/42891
13188 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
13189 in the call to gen_x86_movsicc_0_m1.
13190
13191 2010-01-28 Richard Guenther <rguenther@suse.de>
13192
13193 PR tree-optimization/42871
13194 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
13195
13196 2010-01-28 Richard Guenther <rguenther@suse.de>
13197
13198 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
13199 into call arguments.
13200
13201 2010-01-28 Richard Guenther <rguenther@suse.de>
13202
13203 PR middle-end/42883
13204 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
13205 the forwarder if the destination is an EH landing pad.
13206
13207 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
13208
13209 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
13210 block list passed to gimple_duplicate_sese_tail.
13211 (parallelize_loops): Avoid parallelization when the function
13212 has_nonlocal_label.
13213 Avoid parallelization when the preheader is IRREDUCIBLE.
13214 Try to optimize when estimated_loop_iterations_int is unresolved.
13215 Add the loop's location to the dump file.
13216 * tree-cfg.c (add_phi_args_after_redirect): Remove.
13217 (gimple_duplicate_sese_tail): Remove the check for the latch.
13218 Redirect nexits to the exit block.
13219 Remove handling of the incoming edges to the latch.
13220 Redirect the backedge from the copied latch to the exit bb.
13221
13222 2010-01-28 Michael Matz <matz@suse.de>
13223
13224 PR target/42881
13225 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
13226 Wrap force_reg into a sequence, emit it before user.
13227
13228 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
13229
13230 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
13231 (arm_rev): New.
13232 (arm_legacy_rev): Likewise.
13233 (thumb_legacy_rev): Likewise.
13234
13235 2010-01-27 Jakub Jelinek <jakub@redhat.com>
13236
13237 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
13238 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
13239 on MEM's address failed, try avoid_constant_pool_reference and
13240 recurse if it returned something different.
13241 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
13242 address, try avoid_constant_pool_reference and recurse if it
13243 returned something different.
13244 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
13245 address and avoid_constant_pool_reference returned something
13246 different, don't set have_address.
13247
13248 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
13249
13250 PR debug/42861
13251 * var-tracking.c (val_store): Add modified argument, obey it.
13252 Adjust callers.
13253 (count_uses): Move down logging of main.
13254 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
13255 don't need resolution.
13256 (emit_notes_in_bb): Likewise.
13257
13258 2010-01-27 Richard Guenther <rguenther@suse.de>
13259
13260 PR middle-end/42878
13261 * tree-inline.c (remap_decl): Delay remapping of SSA name
13262 default definitions until we need them.
13263
13264 2010-01-27 Jakub Jelinek <jakub@redhat.com>
13265
13266 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
13267 (rs6000_delegitimize_address): New function.
13268
13269 * config/s390/s390.c (s390_delegitimize_address): Call
13270 delegitimize_mem_from_attrs.
13271
13272 PR middle-end/42874
13273 * tree-inline.c (cannot_copy_type_1): Removed.
13274 (copy_forbidden): Don't forbid copying of functions containing
13275 records/unions with variable length fields.
13276
13277 2010-01-27 Christian Bruel <christian.bruel@st.com>
13278
13279 Revert:
13280 PR target/42841
13281 * config/sh/sh.c (find_barrier): Increase length for non delayed
13282 conditional branches.
13283
13284 2010-01-27 Matthias Klose <doko@ubuntu.com>
13285
13286 * configure.ac (gnu-unique-object): Fix ldd version check.
13287 * configure: Regenerate.
13288
13289 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13290
13291 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
13292 HAVE_GNU_AS value.
13293 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
13294 Test for HAVE_GNU_AS value.
13295
13296 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13297
13298 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
13299 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
13300 INT64_TYPE): Define.
13301 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
13302 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13303 INT_LEAST64_TYPE): Define.
13304 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
13305 UINT_LEAST64_TYPE): Define.
13306 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
13307 INT_FAST64_TYPE): Define.
13308 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13309 UINT_FAST64_TYPE): Define.
13310 (INTMAX_TYPE, UINTMAX_TYPE): Define.
13311 (INTPTR_TYPE, UINTPTR_TYPE): Define.
13312 (SIG_ATOMIC_TYPE): Define.
13313
13314 2010-01-26 Richard Guenther <rguenther@suse.de>
13315
13316 * df-scan.c (df_scan_set_bb_info): Remove assert.
13317 (df_insn_rescan_debug_internal): Merge asserts.
13318 (df_install_ref): Likewise.
13319 (df_mark_reg): Use bitmap_set_range.
13320 (df_hard_reg_used_p): Remove assert.
13321 (df_hard_reg_used_count): Likewise.
13322
13323 2010-01-26 Richard Guenther <rguenther@suse.de>
13324
13325 PR rtl-optimization/42685
13326 * web.c (web_main): Ignore DEBUG_INSNs.
13327
13328 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
13329
13330 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
13331
13332 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
13333 Fix types of fndecl and arglist parameters.
13334
13335 2010-01-26 Richard Guenther <rguenther@suse.de>
13336
13337 PR middle-end/42806
13338 * tree-eh.c (unsplit_eh): Skip debug insns.
13339
13340 2010-01-26 Richard Guenther <rguenther@suse.de>
13341
13342 PR tree-optimization/42250
13343 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
13344
13345 2010-01-26 Jakub Jelinek <jakub@redhat.com>
13346
13347 PR fortran/42866
13348 * omp-low.c (expand_omp_sections): Only use single_pred if
13349 l2_bb is single_pred_p.
13350
13351 2010-01-25 Christian Bruel <christian.bruel@st.com>
13352
13353 PR target/42841
13354 * config/sh/sh.c (find_barrier): Increase length for non delayed
13355 conditional branches.
13356 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
13357
13358 2010-01-24 David S. Miller <davem@davemloft.net>
13359
13360 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
13361 define if not using GAS.
13362 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13363 Likewise. Delete SECTION_MERGE code, which is only applicable
13364 when using GAS.
13365
13366 2010-01-24 Mark Mitchell <mark@codesourcery.com>
13367
13368 PR c++/42748
13369 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
13370 mangling of va_list in system headers.
13371
13372 2010-01-23 Toon Moene <toon@moene.org>
13373
13374 * tree-predcom.c (combine_chains): Return NULL, not false.
13375
13376 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
13377
13378 * tree-loop-distribution.c (distribute_loop): Fix declaration and
13379 initialization of variable res to agree with return type.
13380
13381 2010-01-22 Steve Ellcey <sje@cup.hp.com>
13382
13383 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
13384 * tree-sra.c: Add include of expr.h.
13385
13386 2010-01-22 Jakub Jelinek <jakub@redhat.com>
13387
13388 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
13389 insert the debug stmt on the single non-EH edge from the stmt.
13390
13391 2010-01-22 Richard Henderson <rth@redhat.com>
13392
13393 PR tree-opt/42833
13394 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
13395 the RHS until after generate_subtree_copies has insertted its
13396 code before the current statement.
13397
13398 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
13399
13400 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
13401
13402 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
13403
13404 2010-01-21 Martin Jambor <mjambor@suse.cz>
13405
13406 PR tree-optimization/42585
13407 * tree-sra.c (struct access): New field grp_total_scalarization.
13408 (dump_access): Dump the new field.
13409 (should_scalarize_away_bitmap): New variable.
13410 (cannot_scalarize_away_bitmap): Likewise.
13411 (sra_initialize): Allocate new bitmaps.
13412 (sra_deinitialize): Free new bitmaps.
13413 (create_access_1): New function.
13414 (create_access): Parts moved to create_access_1.
13415 (type_consists_of_records_p): New function.
13416 (completely_scalarize_record): Likewise.
13417 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
13418 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
13419 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
13420 access.
13421 (analyze_all_variable_accesses): Completely scalarize small eligible
13422 records.
13423
13424 2010-01-21 Martin Jambor <mjambor@suse.cz>
13425
13426 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
13427
13428 2010-01-21 Andrew Haley <aph@redhat.com>
13429
13430 * gcc.c (process_command): Move lang_specific_driver before
13431 setting cc_libexec_prefix.
13432
13433 2010-01-21 Richard Guenther <rguenther@suse.de>
13434
13435 PR middle-end/19988
13436 * fold-const.c (negate_expr_p): Pretend only negative
13437 real constants are easily negatable.
13438
13439 2010-01-20 Janis Johnson <janis187@us.ibm.com>
13440 Jason Merrill <jason@redhat.com>
13441
13442 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
13443 (TYPE_TRANSPARENT_AGGR): this, for union and record.
13444 * calls.c (initialize argument_information): Handle it.
13445 * c-common.c (handle_transparent_union_attribute): Use new name.
13446 * c-decl.c (finish_struct): Ditto.
13447 * c-typeck.c (type_lists_compatible_p): Ditto.
13448 (convert_for_assignment): Use new name and also handle record.
13449 * function.c (aggregate_value_p): Handle it.
13450 (pass_by_reference): Ditto.
13451 (assign_parm_data_types): Ditto.
13452 * print-tree.c (print_node): Ditto.
13453 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
13454 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
13455 * tree.c (first_field): New fn.
13456
13457 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
13458
13459 PR target/42818
13460 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
13461 even when linking statically, for now.
13462
13463 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
13464
13465 PR debug/42715
13466 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
13467 without a cselib val.
13468 (count_uses): Accept MO_VAL_SET with no val on stores.
13469 (add_stores): Likewise.
13470
13471 2010-01-20 Jakub Jelinek <jakub@redhat.com>
13472
13473 * var-tracking.c (check_value_val): Add a compile time assertion.
13474 (dv_is_decl_p): Simplify.
13475 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
13476 gcc_assert if ENABLE_CHECKING.
13477
13478 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
13479
13480 PR debug/42782
13481 * var-tracking.c: Include tree-flow.h.
13482 (mem_dies_at_call): New.
13483 (dataflow_set_preserve_mem_locs): Use it.
13484 (dataflow_set_remove_mem_locs): Likewise.
13485 (dump_var): Renamed from dump_variable. Adjust all callers.
13486 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
13487 * Makefile.in (var-tracking.o): Adjust deps.
13488
13489 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
13490
13491 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
13492
13493 2010-01-20 Richard Guenther <rguenther@suse.de>
13494
13495 PR tree-optimization/42717
13496 * tree-ssa-dce.c (get_live_post_dom): Remove.
13497 (forward_edge_to_pdom): Take an arbitrary edge to copy
13498 degenerate PHI args from.
13499 (remove_dead_stmt): Use the first post-dominator even if it
13500 does not contain live statements as redirection destination.
13501
13502 2010-01-20 Richard Guenther <rguenther@suse.de>
13503
13504 * tree-inline.c (estimate_num_insns): Handle EH builtins.
13505
13506 2010-01-20 Jakub Jelinek <jakub@redhat.com>
13507
13508 * sel-sched.c (create_speculation_check): Remove set but not used
13509 variable twin.
13510 (try_transformation_cache): Remove set but not used variable ds.
13511 (calculate_privileged_insns): Remove set but not used variables
13512 cur_insn and min_spec_insn.
13513 (find_best_expr): Remove set but not used variable avail_n.
13514 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
13515 variable e.
13516 * cgraphunit.c (assemble_thunk): Remove set but not used variable
13517 false_label.
13518 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
13519 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
13520 new_scop_exit_edge.
13521
13522 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
13523
13524 PR bootstrap/42786
13525 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
13526 cpu types. Add support for *-sse3 cpu types.
13527 (x86_64-*-*): Ditto.
13528
13529 2010-01-20 Jakub Jelinek <jakub@redhat.com>
13530
13531 PR middle-end/42803
13532 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
13533 argument, call initializer_constant_valid_p_1 instead of
13534 initializer_constant_valid_p, pass CACHE to it, return NULL
13535 immediately if first call returns NULL.
13536 (initializer_constant_valid_p_1): New function.
13537 (initializer_constant_valid_p): Use it.
13538
13539 2010-01-20 Thomas Quinot <quinot@adacore.com>
13540
13541 * tree.def (PLACEHOLDER_EXPR): Fix comment.
13542
13543 2010-01-20 Jakub Jelinek <jakub@redhat.com>
13544
13545 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
13546 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
13547 (loc_list_from_tree): Don't handle unsigned division. Handle
13548 signed modulo using DW_OP_{over,over,div,mul,minus}.
13549 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
13550 modulo instead of signed.
13551
13552 2010-01-20 DJ Delorie <dj@redhat.com>
13553
13554 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
13555 (Fpa): Pass it
13556 (h8300_emit_stack_adjustment): Propogate it.
13557 (push): Pass it.
13558 (h8300_expand_prologue): Likewise.
13559 (h8300_expand_epilogue): Likewise.
13560
13561 2010-01-19 Michael Matz <matz@suse.de>
13562
13563 PR tree-optimization/41783
13564 * tree-data-ref.c (toplevel): Include flags.h.
13565 (dump_data_dependence_relation): Also dump the inputs if the
13566 result will be unknown.
13567 (split_constant_offset_1): Look through some conversions.
13568 * tree-predcom.c (determine_roots_comp): Restart a new chain if
13569 the offset from last element is too large.
13570 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
13571 (reassociate_to_the_same_stmt): Handle vector registers.
13572 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
13573 (e.g. conversions).
13574 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
13575 wide_prolog_niters argument, emit widening instructions.
13576 (vect_do_peeling_for_alignment): Adjust caller, use widened
13577 variant of the iteration cound.
13578 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
13579
13580 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13581
13582 PR target/38697
13583 * config/arm/neon-testgen.m (emit_automatics): New parameter
13584 features. Adjust for Fixed_return_reg feature.
13585 (test_intrinsic): Call emit_automatics with new feature.
13586 * config/arm/neon.ml: Update copyright years.
13587 (features): New Fixed_return_reg feature.
13588 (ops): Update feature for Vget_low.
13589
13590 2010-01-19 Jakub Jelinek <jakub@redhat.com>
13591
13592 PR tree-optimization/42719
13593 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
13594 stmt uses.
13595
13596 PR debug/42728
13597 * fwprop.c (all_uses_available_at): Return false if def_set dest
13598 is a REG that is used in def_insn.
13599
13600 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
13601
13602 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
13603
13604 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
13605 Add argument names.
13606
13607 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
13608
13609 * target.h (struct gcc_target) <secondary_reload>: Change type
13610 of last argument to secondary_reload_info *.
13611
13612 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
13613
13614 PR target/42774
13615 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
13616 memory references with unaligned offsets. Remove CQImode handling.
13617 (unaligned_memory_operand): Return 1 for memory references with
13618 unaligned offsets. Remove CQImode handling.
13619
13620 2010-01-18 Richard Guenther <rguenther@suse.de>
13621
13622 PR middle-end/39954
13623 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
13624 builtin calls.
13625
13626 2010-01-18 Richard Guenther <rguenther@suse.de>
13627
13628 PR tree-optimization/42781
13629 * tree-ssa-structalias.c (find_what_var_points_to): Skip
13630 restrict processing only if the original variable was artificial.
13631
13632 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
13633
13634 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
13635 find number of popped argument bytes.
13636
13637 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
13638 Fix the text that describes the return value for invalid insns.
13639
13640 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
13641
13642 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
13643 Clarify what 'cost of the -dependence' is. Fix quoting.
13644
13645 * toplev.c (default_get_pch_validity): Rename argument to "sz".
13646 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
13647
13648 2010-01-17 Jakub Jelinek <jakub@redhat.com>
13649
13650 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
13651 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
13652
13653 2010-01-17 Richard Guenther <rguenther@suse.de>
13654
13655 PR middle-end/42248
13656 * function.c (split_complex_args): Take a VEC to modify.
13657 (assign_parms_augmented_arg_list): Build a VEC instead of
13658 a chain of PARM_DECLs.
13659 (assign_parms_unsplit_complex): Take a VEC of arguments.
13660 Do not fixup unmodified parms.
13661 (assign_parms): Deal with the VEC.
13662 (gimplify_parameters): Likewise.
13663
13664 2010-01-17 Richard Guenther <rguenther@suse.de>
13665
13666 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
13667 node existence check.
13668 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
13669 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
13670 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
13671 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
13672 (gimple_execute_on_growing_pred): Likewise.
13673
13674 2010-01-17 Richard Guenther <rguenther@suse.de>
13675
13676 PR tree-optimization/42773
13677 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
13678 (compute_antic_aux): Likewise.
13679 (compute_partial_antic_aux): Likewise.
13680
13681 2010-01-17 Jie Zhang <jie.zhang@analog.com>
13682
13683 PR debug/42767
13684 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
13685 and US_TRUNCATE.
13686
13687 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
13688
13689 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
13690 appearance.
13691
13692 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
13693 Fix markup for strict argument.
13694
13695 (TARGET_SCHED_REORDER2): Fix argument types.
13696
13697 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
13698 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
13699
13700 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
13701 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
13702
13703 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
13704 Add argument name.
13705
13706 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
13707 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
13708 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
13709 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
13710 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
13711
13712 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
13713
13714 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
13715
13716 (TARGET_ASM_RELOC_RW_MASK): Add return type.
13717 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
13718
13719 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
13720
13721 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
13722 Use prototype.
13723
13724 (TARGET_ASM_NAMED_SECTION): Fix argument list.
13725
13726 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
13727 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
13728
13729 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
13730
13731 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
13732
13733 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
13734 referring to it. Fix language.
13735
13736 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
13737
13738 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
13739
13740 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
13741
13742 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
13743
13744 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
13745 '@var{stream}. Remove stray 'and'.
13746
13747 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
13748
13749 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
13750
13751 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
13752
13753 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
13754 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
13755
13756 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
13757 Fix description of return value.
13758 Rename argument "sz" to "len."
13759
13760 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
13761 Clarify meaning of 'true' return value.
13762
13763 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
13764
13765 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
13766 rep_mode versus mode_rep.
13767
13768 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
13769
13770 (TARGET_BUILTIN_DECL): Fix name.
13771
13772 (TARGET_COMMUTATIVE_P): Fix type of first argument.
13773
13774 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
13775
13776 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
13777
13778 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
13779
13780 (TARGET_RELAXED_ORDERING): Use @deftypevr.
13781
13782 (TARGET_GET_DRAP_RTX): Note that this is a hook.
13783 Clarify language.
13784
13785 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
13786 Rename argument tm_fn to md_fn.
13787
13788 (TARGET_OPTION_PRINT): Fix argument list.
13789
13790 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
13791
13792 PR target/42664
13793 * config/i386/i386.c (ix86_fixup_binary_operands):
13794 Revert FMA4 fixup of operands.
13795
13796 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13797
13798 PR gcc/42525
13799 * Makefile.in (write_entries_to_file, install-plugin):
13800 Use \012 instead of \n with tr.
13801
13802 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
13803
13804 * configure.ac (HAVE_AS_REF): New C macro.
13805 * configure: Regenerate.
13806 * config.in: Likewise.
13807 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
13808 if HAVE_AS_REF.
13809 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
13810 if HAVE_AS_REF.
13811
13812 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
13813
13814 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
13815
13816 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
13817
13818 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
13819
13820 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
13821
13822 (TARGET_IN_SMALL_DATA_P): Fix argument type.
13823
13824 (TARGET_BINDS_LOCAL_P): Fix argument type.
13825
13826 (TARGET_ASM_FILE_END): Use prototype.
13827
13828 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
13829
13830 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
13831
13832 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
13833
13834 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
13835
13836 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
13837 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
13838
13839 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
13840 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
13841
13842 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
13843 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
13844 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
13845 (TARGET_ADDR_SPACE_CONVERT): Likewise.
13846
13847 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
13848
13849 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
13850
13851 (TARGET_INIT_BUILTINS): Use prototype.
13852
13853 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
13854 Put 'const char *' in braces. Fix parameter types.
13855 (TARGET_INVALID_CONVERSION): Fix parameter types.
13856 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
13857 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
13858
13859 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
13860 Fix argument type.
13861
13862 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
13863
13864 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
13865
13866 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
13867
13868 * doc/tm.texi (TARGET_HELP): Fix return type.
13869
13870 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
13871 in braces. Fix argument types.
13872
13873 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
13874
13875 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
13876
13877 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
13878
13879 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
13880 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
13881
13882 (TARGET_MANGLE_TYPE): Fix argument types.
13883
13884 (TARGET_IRA_COVER_CLASSES): Use prototype.
13885
13886 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
13887
13888 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
13889
13890 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
13891
13892 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
13893
13894 (TARGET_CALLEE_COPIES): Fix argument types.
13895
13896 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
13897
13898 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
13899
13900 (TARGET_FUNCTION_VALUE): Fix argument types.
13901
13902 (TARGET_RETURN_IN_MSB): Fix argument type.
13903
13904 (TARGET_RETURN_IN_MEMORY): Fix argument types.
13905
13906 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
13907
13908 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
13909
13910 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
13911 agree with return type.
13912
13913 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
13914
13915 2010-01-15 Jing Yu <jingyu@google.com>
13916
13917 PR rtl-optimization/42691
13918 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
13919 a pseudo to a constant and are merged, and adjust comments.
13920
13921 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
13922
13923 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
13924
13925 2010-01-15 Richard Guenther <rguenther@suse.de>
13926
13927 PR middle-end/42739
13928 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
13929 labels of computed or non-local gotos to the destination.
13930 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
13931 landing pad label is the first label.
13932
13933 2010-01-15 Richard Guenther <rguenther@suse.de>
13934
13935 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
13936
13937 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13938
13939 PR target/42747
13940 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
13941 to allow generation of the xssqrtdp instruction on power7.
13942 (sqrtdf2_fpr): Ditto.
13943
13944 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13945
13946 PR middle-end/42674
13947 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
13948 functions with noreturn attribute.
13949
13950 PR c++/42608
13951 * varasm.c (declare_weak): Add weak attribute to decl if it
13952 doesn't have one already.
13953 (assemble_external): Only add decls to weak_decls if they also
13954 have weak attribute.
13955
13956 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
13957
13958 * var-tracking.c (var_reg_delete): Don't delete the association
13959 between REGs and values or one-part variables if the register
13960 isn't clobbered.
13961
13962 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13963
13964 PR debug/42657
13965 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
13966 because its first operand is a non-localized variable.
13967
13968 2010-01-14 Martin Jambor <mjambor@suse.cz>
13969
13970 PR tree-optimization/42706
13971 * tree-sra.c (encountered_recursive_call): New variable.
13972 (encountered_unchangable_recursive_call): Likewise.
13973 (sra_initialize): Initialize both new variables.
13974 (callsite_has_enough_arguments_p): New function.
13975 (scan_function): Call decl and flags check only for IPA-SRA, check
13976 whether there is a recursive call and whether it has enough arguments.
13977 (all_callers_have_enough_arguments_p): New function.
13978 (convert_callers): Look for recursive calls only when
13979 encountered_recursive_call is set.
13980 (ipa_early_sra): Bail out either if
13981 !all_callers_have_enough_arguments_p or
13982 encountered_unchangable_recursive_call.
13983
13984 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13985
13986 * sel-sched.c: Add 2010 to copyright years.
13987 * sel-sched-ir.c: Likewise.
13988 * sel-sched-ir.h: Likewise.
13989
13990 2010-01-14 Martin Jambor <mjambor@suse.cz>
13991
13992 PR tree-optimization/42714
13993 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
13994 constructors specially.
13995
13996 2010-01-14 Andi Kleen <ak@linux.intel.com>
13997
13998 * config/i386/drivers-i386.c (detect_caches_intel):
13999 Add l2sizekb parameter and fill in.
14000 (host_detect_local_cpu): Add l2sizekb, fill in.
14001 Add Atom small cache heuristic.
14002
14003 2010-01-14 Andi Kleen <ak@linux.intel.com>
14004
14005 * config/i386/drivers-i386.c (detect_caches_cpuid4):
14006 Add level3 parameter and fill in.
14007 (detect_caches_intel): Handle level3 cache.
14008
14009 2010-01-14 Andi Kleen <ak@linux.intel.com>
14010
14011 * config/i386/drivers-i386.c (host_detect_local_cpu):
14012 Fix core duo detection.
14013
14014 2010-01-14 Andi Kleen <ak@linux.intel.com>
14015
14016 * config/i386/drivers-i386.c (host_detect_local_cpu):
14017 Fix Atom detection.
14018
14019 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14020
14021 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
14022 (rs6000_variable_issue_1): this. Use...
14023 (rs6000_variable_issue): here. Reimplement. Print debug info.
14024
14025 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14026
14027 * sel-sched-ir.c (sel_restore_other_notes): Rename to
14028 sel_restore_notes. Update all callers. Call reemit_notes
14029 for all insns.
14030
14031 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14032
14033 PR rtl-optimization/42246
14034 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
14035 loops.
14036
14037 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14038
14039 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
14040 all successors is the same as number of successors in current region.
14041
14042 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14043
14044 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
14045 to rename is not separable. Otherwise check that its LHS is not NULL.
14046
14047 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14048
14049 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
14050
14051 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14052
14053 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
14054 available registers when failed to discover LHS register class.
14055 Fix indentation. Update comment.
14056
14057 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14058 Alexander Monakov <amonakov@ispras.ru>
14059
14060 PR rtl-optimization/42389
14061 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
14062 to can_issue_more.
14063 (advance_state_on_fence): Likewise.
14064 (sel_target_adjust_priority): Print debug output only when
14065 sched_verbose >= 4, not 2.
14066 (get_expr_cost): Do not issue all unique insns on the next cycle.
14067 (fill_insns): Initialize can_issue_more from the value saved
14068 with the fence.
14069 * sel-sched-ir.c (flist_add): New parameter issue_more.
14070 Init FENCE_ISSUE_MORE with it.
14071 (merge_fences): Likewise.
14072 (init_fences): Update call to flist_add.
14073 (add_to_fences, add_clean_fence_to_fences)
14074 (add_dirty_fence_to_fences): Likewise.
14075 (move_fence_to_fences): Update call to merge_fences.
14076 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
14077 sched groups.
14078 * sel-sched-ir.h (struct _fence): New field issue_more.
14079 (FENCE_ISSUE_MORE): New accessor macro.
14080
14081 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14082
14083 PR rtl-optimization/42388
14084 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
14085 that have no predecessors nor successors. Do not call move_bb_info
14086 for empty blocks outside of current region.
14087
14088 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14089
14090 PR rtl-optimization/42294
14091 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
14092 * sel-sched.c (move_exprs_to_boundary): Transitively add all
14093 originators' originators.
14094
14095 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14096
14097 PR rtl-optimization/39453
14098 PR rtl-optimization/42246
14099 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
14100 for pipelining_p.
14101 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
14102
14103 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14104 Alexander Monakov <amonakov@ispras.ru>
14105
14106 PR middle-end/42245
14107 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
14108 (maybe_tidy_empty_bb): ... here. Make static. Add new
14109 argument. Update all callers.
14110 (tidy_control_flow): ... and here. Recompute topological order
14111 of basic blocks in region if necessary.
14112 (sel_redirect_edge_and_branch): Change return type. Return true
14113 if topological order might have been invalidated.
14114 (purge_empty_blocks): Export and move from...
14115 * sel-sched.c (purge_empty_blocks): ... here.
14116 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
14117 (maybe_tidy_empty_bb): Delete prototype.
14118 (purge_empty_blocks): Declare.
14119
14120 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14121
14122 PR rtl-optimization/42249
14123 * sel-sched.c (try_replace_dest_reg): When chosen register
14124 and original register is the same, do not bail out early, but
14125 still check all original insns for validity of replacing destination
14126 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
14127 in this case.
14128
14129 2010-01-14 Jakub Jelinek <jakub@redhat.com>
14130
14131 PR c/42721
14132 Port from no-undefined-overflow branch:
14133 2009-03-09 Richard Guenther <rguenther@suse.de>
14134
14135 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
14136
14137 2010-01-14 Richard Guenther <rguenther@suse.de>
14138
14139 PR lto/42665
14140 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
14141
14142 2010-01-14 Ira Rosen <irar@il.ibm.com>
14143
14144 PR tree-optimization/42709
14145 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
14146 as scalar type in creation of constant vector operand.
14147
14148 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14149
14150 PR testsuite/42414
14151 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
14152 (check-parallel-%): Match `testsuite' directory component only
14153 at the end.
14154
14155 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
14156
14157 PR translation/39521
14158 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
14159 strings with _().
14160
14161 2010-01-13 Richard Guenther <rguenther@suse.de>
14162
14163 PR tree-optimization/42730
14164 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
14165 offset zero.
14166
14167 2010-01-13 Steve Ellcey <sje@cup.hp.com>
14168
14169 PR target/pr42542
14170 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
14171 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
14172 them signed.
14173
14174 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
14175
14176 * config/bfin/libgcc-bfin.ver: Regenerate based on current
14177 libgcc-std.ver. Add entries for ___smulsi3_highpart and
14178 ___umulsi3_highpart.
14179
14180 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
14181 rather than schedule_insns if the pass is enabled.
14182
14183 2010-01-13 Martin Jambor <mjambor@suse.cz>
14184
14185 PR tree-optimization/42704
14186 * tree-sra.c (sra_modify_assign): Do not delete assignments to
14187 SSA_NAMEs.
14188
14189 2010-01-13 Martin Jambor <mjambor@suse.cz>
14190
14191 PR tree-optimization/42703
14192 * tree-sra.c (analyze_access_subtree): Check that we can build a
14193 reference to the original data within the aggregate.
14194
14195 2010-01-13 Richard Guenther <rguenther@suse.de>
14196
14197 PR tree-optimization/42705
14198 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
14199
14200 2010-01-13 Richard Guenther <rguenther@suse.de>
14201
14202 PR middle-end/42716
14203 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
14204
14205 2010-01-13 Jakub Jelinek <jakub@redhat.com>
14206
14207 PR debug/41371
14208 * var-tracking.c (values_to_unmark): New variable.
14209 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
14210 values_to_unmark vector. Moved body to...
14211 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
14212 instead queue it into values_to_unmark vector.
14213 (vt_find_locations): Free values_to_unmark vector.
14214
14215 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
14216
14217 * config/s390/s390.c (override_options): Set
14218 default of max-pending-list-length to 256
14219
14220 2010-01-13 Richard Guenther <rguenther@suse.de>
14221
14222 PR lto/42678
14223 * tree-pass.h (PROP_gimple_lcx): New.
14224 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
14225 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
14226 before the final cleanup_eh.
14227 (dump_properties): Dump PROP_gimple_lcx.
14228 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
14229 (tree_lower_complex_O0): Remove.
14230 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
14231 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
14232 tree_lower_complex, schedule TODO_update_ssa.
14233 * lto-streamer-out.c (output_function): Stream the functions
14234 properties.
14235 * lto-streamer-in.c (input_function): Likewise.
14236 (lto_read_body): Do not override them here.
14237
14238 2010-01-12 Joseph Myers <joseph@codesourcery.com>
14239
14240 PR c/42708
14241 * c-typeck.c (build_c_cast): Fold value cast to union type before
14242 wrapping it in a CONSTRUCTOR.
14243
14244 2010-01-12 Jakub Jelinek <jakub@redhat.com>
14245
14246 PR rtl-optimization/42699
14247 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
14248 involved.
14249
14250 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14251
14252 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
14253 SUBTARGET_WARN_UNUSED_SPEC): Move ...
14254 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
14255 SUBTARGET_WARN_UNUSED_SPEC): ... here
14256 * config/mips/iris5.h (LIBGCC_SPEC): Define.
14257
14258 2010-01-12 Julian Brown <julian@codesourcery.com>
14259
14260 * config/arm/neon-schedgen.ml (Utils): Don't try to
14261 open missing module.
14262 (find_with_result): New.
14263
14264 2010-01-12 Jakub Jelinek <jakub@redhat.com>
14265
14266 PR debug/42662
14267 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
14268 sharing when canonicalizing ({lt,ge}u (plus a b) b).
14269
14270 PR tree-optimization/42645
14271 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
14272 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
14273 decl_map, set processing_debug_stmt to -1 and return name without
14274 any remapping.
14275
14276 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
14277
14278 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
14279 binutils version, and reword target configuration description.
14280
14281 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
14282
14283 * config/avr/avr.h (LINKER_NAME): Remove.
14284
14285 2010-01-11 Janis Johnson <janis187@us.ibm.com>
14286
14287 PR target/42416
14288 * config/rs6000/rs6000.c (rs6000_override_options): On targets
14289 that support VSX, warn for -mno-altivec if vsx is not disabled,
14290 and disable vsx.
14291
14292 2010-01-11 Joseph Myers <joseph@codesourcery.com>
14293 Shujing Zhao <pearly.zhao@oracle.com>
14294
14295 PR translation/42469
14296 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
14297 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
14298 character between option name and help text.
14299 * c.opt (imultilib): Likewise.
14300
14301 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
14302
14303 * lto-streamer-out.c (output_unreferenced_globals): Output static
14304 variables.
14305
14306 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
14307
14308 PR rtl-optimization/42621
14309 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
14310 optimizing for size.
14311 (duplicate_computed_gotos): Remove now-redundant check.
14312
14313 2010-01-10 Steve Ellcey <sje@cup.hp.com>
14314
14315 PR target/37454
14316 * configure.ac: Save and restore LDFLAGS and LIBS
14317 * configure: Regenerate.
14318
14319 2010-01-10 Richard Guenther <rguenther@suse.de>
14320
14321 PR middle-end/42667
14322 * builtins.c (fold_builtin_strlen): Add type argument and
14323 convert the resulting length to it.
14324 (fold_builtin_1): Adjust.
14325
14326 2010-01-09 Jakub Jelinek <jakub@redhat.com>
14327
14328 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
14329 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
14330 1 insn.
14331 (num_insns_constant_wide): Adjust for that change.
14332
14333 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14334
14335 PR debug/42631
14336 * web.c (union_defs): Add used argument, to combine uses of
14337 uninitialized regs.
14338 (entry_register): Adjust type and tests of used argument.
14339 (web_main): Widen used for new use. Pass it to union_defs.
14340 * df.h (union_defs): Adjust prototype.
14341
14342 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14343
14344 PR debug/42630
14345 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
14346 uses in new incoming argument. Free body.
14347 (reset_debug_uses_in_loop): New.
14348 (analyze_insn_to_expand_var): Call the latter if the former found
14349 anything. Fix whitespace. Reject invalid dest overlaps before
14350 going through all insns in the loop.
14351
14352 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14353
14354 PR debug/42629
14355 * haifa-sched.c (dying_use_p): Debug insns don't count.
14356
14357 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14358
14359 PR middle-end/42363
14360 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
14361 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
14362 (verify_gimple_call): Reject LHS in noreturn calls.
14363
14364 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14365
14366 PR debug/42604
14367 PR debug/42395
14368 * tree-vect-loop-manip.c (adjust_info): New type.
14369 (adjust_vec): New pointer to vector.
14370 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
14371 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
14372 (slpeel_update_phis_for_duplicate_loop): Use them.
14373 (slpeel_update_phi_nodes_for_guard1): Likewise.
14374 (slpeel_update_phi_nodes_for_guard2): Likewise.
14375 (slpeel_tree_peel_loop_to_edge): Likewise.
14376 (vect_update_ivs_after_vectorizer): Likewise.
14377
14378 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14379
14380 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
14381 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14382
14383 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
14384
14385 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
14386 bogus uninitialized warning.
14387
14388 2010-01-09 Richard Guenther <rguenther@suse.de>
14389
14390 PR middle-end/42512
14391 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
14392 the evolution is compatible with the initial condition.
14393
14394 2010-01-09 Jakub Jelinek <jakub@redhat.com>
14395
14396 * gcc.c (process_command): Update copyright notice dates.
14397 * gcov.c (print_version): Likewise.
14398 * gcov-dump.c (print_version): Likewise.
14399 * mips-tfile.c (main): Likewise.
14400 * mips-tdump.c (main): Likewise.
14401
14402 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
14403
14404 PR target/41885
14405 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
14406 (rotlhi3): Delete.
14407 (rotlhi3_8): Delete.
14408 (rotlsi3): Delete.
14409 (rotlsi3_8): Delete.
14410 (rotlsi3_16): Delete.
14411 (rotlsi3_24): Delete.
14412 (rotl<mode>3): New.
14413 (*rotw<mode>3): New.
14414 (*rotb<mode>3): New.
14415 * config/avr/avr.c (avr_rotate_bytes): New function.
14416 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
14417
14418 2010-01-08 Steve Ellcey <sje@cup.hp.com>
14419
14420 PR target/37454
14421 * configure.ac: Modify -rdynamic check.
14422 * configure: Regenerate.
14423
14424 2010-01-08 DJ Delorie <dj@redhat.com>
14425
14426 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
14427 register popping order.
14428
14429 2010-01-08 Richard Guenther <rguenther@suse.de>
14430
14431 PR lto/42528
14432 * c.opt (fsigned-char): Also let LTO handle this option.
14433 (funsigned-char): Likewise.
14434
14435 2010-01-07 Richard Guenther <rguenther@suse.de>
14436
14437 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
14438 (gimple_op): Likewise.
14439 (gimple_op_ptr): Likewise.
14440 (gimple_assign_set_lhs): Remove gcc_assert.
14441 (gimple_assign_set_rhs1): Likewise.
14442 (gimple_assign_set_rhs2): Likewise.
14443 (gimple_call_set_lhs): Likewise.
14444 (gimple_call_set_fn): Likewise.
14445 (gimple_call_set_fndecl): Likewise.
14446 (gimple_call_fndecl): Likewise.
14447 (gimple_call_return_type): Likewise.
14448 (gimple_call_set_chain): Likewise.
14449 (gimple_call_num_args): Likewise.
14450 (gimple_call_set_arg): Likewise.
14451 (gimple_cond_set_code): Likewise.
14452 (gimple_cond_set_lhs): Likewise.
14453 (gimple_cond_set_rhs): Likewise.
14454 (gimple_cond_set_true_label): Likewise.
14455 (gimple_cond_set_false_label): Likewise.
14456 (gimple_label_set_label): Likewise.
14457 (gimple_goto_set_dest): Likewise.
14458 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
14459 (gimple_debug_bind_get_value): Likewise.
14460 (gimple_debug_bind_get_value_ptr): Likewise.
14461 (gimple_debug_bind_set_var): Likewise.
14462 (gimple_debug_bind_set_value): Likewise.
14463 (gimple_debug_bind_reset_value): Likewise.
14464 (gimple_debug_bind_has_value_p): Likewise.
14465 (gimple_return_retval_ptr): Remove gcc_assert.
14466 (gimple_return_retval): Likewise.
14467 (gimple_return_set_retval): Likewise.
14468 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
14469 (safe_referenced_var_iterator): Remove.
14470 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
14471 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
14472 (fill_referenced_var_vec): Remove.
14473 (first_readonly_imm_use): Remove redundant gcc_assert.
14474 (phi_arg_index_from_use): Combine gcc_asserts.
14475 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
14476 (first_imm_use_stmt): Remove redundant gcc_assert.
14477 * tree-cfg.c (verify_gimple_call): Verify function and chain
14478 operands. Verify arguments.
14479 (verify_types_in_gimple_stmt): Verify condition code and labels.
14480
14481 2010-01-07 Richard Guenther <rguenther@suse.de>
14482
14483 PR tree-optimization/42641
14484 * sese.c (rename_map_elt_info): Use the SSA name version, do
14485 not hash pointers.
14486
14487 2010-01-07 Jakub Jelinek <jakub@redhat.com>
14488
14489 PR tree-optimization/42625
14490 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
14491 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
14492
14493 2010-01-07 Duncan Sands <baldrick@free.fr>
14494
14495 * Makefile.in (PLUGIN_HEADERS): Add version.h.
14496
14497 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
14498
14499 PR target/42511
14500 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
14501 note itself is not function_invariant_p.
14502
14503 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
14504
14505 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
14506 Do not add the DF_NOTE problem.
14507 * store-motion.c (execute_rtl_store_motion): Likewise.
14508
14509 2010-01-07 Martin Jambor <mjambor@suse.cz>
14510
14511 PR tree-optimization/42157
14512 * tree-sra.c (compare_access_positions): Stabilize sort if both
14513 accesses have integer types, return zero immediately if they are the
14514 same.
14515
14516 2010-01-06 Richard Henderson <rth@redhat.com>
14517
14518 PR middle-end/41883
14519 * haifa-sched.c (add_to_note_list): Merge into ...
14520 (concat_note_lists): ... here, and ...
14521 (unlink_other_notes, rm_other_notes): Merge into...
14522 (remove_notes): ... here. Create REG_SAVE_NOTEs for
14523 NOTE_INSN_EPILOGUE_BEG.
14524
14525 2010-01-06 Richard Guenther <rguenther@suse.de>
14526
14527 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
14528 not inline regular functions into always-inline functions.
14529
14530 2010-01-06 Nick Clifton <nickc@redhat.com>
14531
14532 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
14533 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
14534 used together.
14535 (OVERRIDE_OPTIONS): Delete.
14536 (OPTIMIZATION_OPTIONS): Define.
14537 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
14538 * config/rx/rx.c (rx_handle_option): Issue an error message if
14539 -mcpu=rx200 and -fpu are used together.
14540 (rx_set_optimization_options): New function. Issue an error
14541 message if an optimization attribute attempts to reset the FPU/
14542 math optimization pairing.
14543 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
14544 * config/rx/rx.opt: Set the default to 32-bit doubles.
14545 * config/rx/t-rx: Add multilibs for -nofpu option.
14546 * doc/invoke.texi: Update documentation of RX options.
14547
14548 2010-01-06 Richard Guenther <rguenther@suse.de>
14549
14550 * tree-ssa-pre.c (name_to_id): New global.
14551 (alloc_expression_id): Simplify SSA name handling.
14552 (lookup_expression_id): Likewise.
14553 (init_pre): Zero name_to_id.
14554 (fini_pre): Free it.
14555
14556 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
14559
14560 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
14561
14562 PR target/42542
14563 * config/i386/sse.md (smaxv2di3): New.
14564 (umaxv2di3): Likewise.
14565 (sminv2di3): Likewise.
14566 (uminv2di3): Likewise.
14567
14568 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
14569
14570 PR target/42564
14571 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
14572 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
14573 (legitimize_tls_address): Likewise.
14574 (sparc_tls_referenced_p): Likewise.
14575 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
14576 and adjust calls to legitimize_pic_address.
14577 (legitimate_constant_p) Use sparc_tls_referenced_p.
14578 (legitimate_pic_operand_p): Likewise.
14579 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
14580 (sparc_tls_symbol_ref_1): Delete.
14581 (sparc_tls_referenced_p): Make static, recognize specific patterns.
14582 (legitimize_tls_address): Make static, handle CONST patterns.
14583 (legitimize_pic_address): Make static, remove unused parameter and
14584 adjust recursive calls.
14585 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
14586 and adjust call to legitimize_pic_address.
14587 (sparc_output_mi_thunk): Likewise.
14588
14589 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
14590 H.J. Lu <hongjiu.lu@intel.com>
14591
14592 PR target/42542
14593 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
14594 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
14595 operands to make them signed.
14596
14597 Revert:
14598 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
14599
14600 PR target/42542
14601 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
14602 GTU to GT for V4SI and V2DI.
14603
14604 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
14605 (umin<mode>3): Removed.
14606 (uminv8hi3): New.
14607 (uminv4si3): Likewise.
14608
14609 2010-01-05 Martin Jambor <mjambor@suse.cz>
14610
14611 PR tree-optimization/42462
14612 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
14613 current_function_decl to helper functions and macros.
14614
14615 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14616
14617 PR bootstrap/41771
14618 * flags.h: Don't include real.h.
14619 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
14620 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
14621 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
14622 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
14623 * dominance.c: Update copyright.
14624 * gimple.c (walk_gimple_op): Remove inline.
14625 * tree-ssa-reassoc.c: Include real.h.
14626 * Makefile.in (FLAGS_H): Remove $(REAL_H).
14627 (tree-ssa-reassoc.o): Depend on $(REAL_H).
14628
14629 2010-01-05 Nick Clifton <nickc@redhat.com>
14630
14631 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
14632 register to push into the stack frame when the accumulator has to
14633 be saved during interrupts.
14634
14635 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
14636
14637 * doc/invoke.texi: Remove the documentation about option
14638 -Wunreachable-code.
14639 * common.opt (Wunreachable-code): Preserved for backward
14640 compatibility.
14641 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
14642 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
14643 the backward compatibility flag section.
14644
14645 2010-01-05 Richard Guenther <rguenther@suse.de>
14646
14647 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
14648
14649 2010-01-05 Jakub Jelinek <jakub@redhat.com>
14650
14651 PR other/42611
14652 * cfgexpand.c (expand_one_var): Diagnose too large variables.
14653
14654 PR tree-optimization/42508
14655 * tree-sra.c (convert_callers): Check for recursive call
14656 by comparing cgraph nodes instead of decls.
14657 (modify_function): Call ipa_modify_formal_parameters also
14658 on all same_body aliases.
14659
14660 * cgraphunit.c (cgraph_materialize_all_clones): Compare
14661 cgraph nodes when checking for same_body aliases.
14662
14663 2010-01-05 Richard Guenther <rguenther@suse.de>
14664
14665 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
14666 allocation and lookup.
14667 (get_or_alloc_expr_for_constant): Likewise.
14668 (phi_translate): Sink allocation.
14669
14670 2010-01-04 Richard Guenther <rguenther@suse.de>
14671
14672 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
14673 a new entry only if needed.
14674 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
14675 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
14676 hashtable lookup.
14677 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
14678 the result array.
14679 (phi_translate): Handle CONSTANTs early.
14680
14681 2010-01-04 Martin Jambor <mjambor@suse.cz>
14682
14683 PR tree-optimization/42398
14684 * tree-sra.c (struct access): Removed flag grp_different_types.
14685 (dump_access): Do not dump the removed flag.
14686 (sort_and_splice_var_accesses): Do not set the removed flag.
14687 (sra_modify_expr): Check for type compatibility directly.
14688
14689 2010-01-04 Martin Jambor <mjambor@suse.cz>
14690
14691 PR tree-optimization/42366
14692 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
14693 edges with variable number of parameters.
14694 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
14695 flag instead of asserting it.
14696 (ipa_read_node_info): Read uses_analysis_done flag.
14697
14698 2010-01-04 Richard Guenther <rguenther@suse.de>
14699
14700 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
14701 iterative_hash_* as intended.
14702 (vn_reference_compute_hash): Likewise. Simplify hashing
14703 SSA names.
14704 (vn_reference_lookup_2): Likewise.
14705 (vn_nary_op_compute_hash): Likewise.
14706 (vn_phi_compute_hash): Likewise.
14707 (expressions_equal_p): Remove strange code.
14708 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
14709 (pre_expr_hash): Likewise. Simplify hashing SSA names.
14710 (bitmap_insert_into_set_1): Take value-id as parameter.
14711 (add_to_value): Pass it.
14712 (bitmap_insert_into_set): Likewise.
14713 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
14714
14715 2010-01-04 Jakub Jelinek <jakub@redhat.com>
14716
14717 PR driver/42442
14718 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
14719 (do_self_spec): For switches with SWITCH_IGNORE set set also
14720 SWITCH_IGNORE_PERMANENTLY.
14721 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
14722 of SWITCH_IGNORE.
14723
14724 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
14725
14726 * lto-streamer-out.c (output_unreferenced_globals): Output the full
14727 tree of an unreferenced global var.
14728
14729 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
14730
14731 PR target/42542
14732 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
14733 GTU to GT for V4SI and V2DI.
14734
14735 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
14736 (umin<mode>3): Removed.
14737 (uminv8hi3): New.
14738 (uminv4si3): Likewise.
14739
14740 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
14741
14742 PR lto/42581
14743 * collect2.c (main): Turn on trace in collect2 if -v is passed
14744 to gcc with LTO.
14745
14746 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
14747
14748 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
14749 description of expression operand.
14750
14751 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
14752
14753 * configure.ac: Add install-html to target_list for Make-hooks.
14754 * configure: Regenerate.
14755 * fortran/Make-lang.in (F95_HTMLFILES): New.
14756 (fortran.html): Use it.
14757 (fortran.install-html): New.
14758 * Makefile.in (install-html): Add lang.install-html.
14759 * java/Make-lang.in (JAVA_HTMLFILES): New.
14760 (java.html): Use it.
14761 (java.install-html): New.
14762 * objc/Make-lang.in (objc.install-html): New.
14763 * objcp/Make-lang.in (obj-c++.install-html): New.
14764 * cp/Make-lang.in (c++.install-html): New.
14765 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
14766 * lto/Make-lang.in (lto.install-html): New.
14767
14768 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
14769
14770 PR lto/42520
14771 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
14772
14773 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
14774
14775 PR rtl-optimization/41862
14776 * store-motion.c (store_killed_in_insn, compute_store_table,
14777 remove_reachable_equiv_notes, replace_store_insn,
14778 build_store_vectors): Ignore all DEBUG_INSNs.
14779
14780 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
14781
14782 PR lto/41564
14783 * common.opt: Add dumpdir.
14784
14785 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
14786 isn't specified.
14787 (option_map): Add --dumpdir.
14788
14789 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
14790
14791 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
14792
14793 * opts.c (decode_options): Try dump_dir_name first if
14794 dump_base_name isn't an absolute path.
14795 (common_handle_option): Handle OPT_dumpdir.
14796
14797 * toplev.c (dump_dir_name): New.
14798 (print_switch_values): Also ignore -dumpdir.
14799
14800 * toplev.h (dump_dir_name): New.
14801
14802 2010-01-03 Richard Guenther <rguenther@suse.de>
14803
14804 PR tree-optimization/42589
14805 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
14806 double-word expansion of bswap32.
14807
14808 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
14809
14810 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
14811 with BLOCK_FOR_INSN.
14812 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
14813 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
14814 noce_process_if_block): Likewise.
14815 * gcse.c (compute_local_properties, insert_expr_in_table,
14816 insert_set_in_table, canon_list_insert, find_avail_set,
14817 pre_insert_copy_insn): Likewise.
14818
14819 * basic-block.h (BLOCK_NUM): Move from here...
14820 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
14821
14822 2010-01-03 Richard Guenther <rguenther@suse.de>
14823
14824 PR tree-optimization/42438
14825 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
14826 contains_may_not_return_call flag.
14827 (BB_MAY_NOTRETURN): New.
14828 (valid_in_sets): Trapping nary operations are not valid
14829 in blocks that may not return.
14830 (insert_into_preds_of_block): Remove check for trapping expressions.
14831 (compute_avail): Compute also BB_MAY_NOTRETURN.
14832
14833 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
14834
14835 * doc/invoke.texi: Add 2010 to copyright years.
14836
14837 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
14838
14839 * config/sparc/sparc.c: Fix formatting nits.
14840
14841 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14842 Alexander Monakov <amonakov@ispras.ru>
14843
14844 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
14845
14846 2010-01-02 Richard Guenther <rguenther@suse.de>
14847
14848 PR middle-end/42577
14849 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
14850 (simplify_switch_using_ranges): Mark to be removed edges
14851 as non-executable.
14852
14853 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14854
14855 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14856
14857 * collect2.c (scan_libraries): Add missing argument in call to
14858 scan_prog_file.
14859
14860 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
14861
14862 PR target/42448
14863 * config/alpha/predicates.md (aligned_memory_operand): Return false
14864 for CQImode.
14865 (unaligned_memory_operand): Return true for CQImode.
14866 * config/alpha/alpha.c (get_aligned_mem): Assert that location
14867 doesn not cross aligned SImode word boundary.
14868
14869 2010-01-02 Anatoly Sokolov <aesok@post.ru>
14870
14871 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
14872 Remove.
14873 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
14874 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
14875
14876 2010-01-02 Richard Guenther <rguenther@suse.de>
14877
14878 PR lto/41597
14879 * toplev.c (compile_file): Emit LTO marker properly. Change
14880 it to __gnu_lto_v1.
14881 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
14882
14883 2010-01-01 Richard Guenther <rguenther@suse.de>
14884
14885 PR debug/42455
14886 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
14887
14888 2010-01-01 Richard Guenther <rguenther@suse.de>
14889
14890 PR c/42570
14891 * c-decl.c (grokdeclarator): For zero-size arrays force
14892 structural equality checks as layout_type does.
14893
14894 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14895
14896 * builtins.c: Update copyright to 2010.
14897
14898 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14899
14900 PR lto/42531
14901 * lto-streamer-out.c (produce_asm): Revert the last change.
14902 (copy_function): Likewise.
14903
14904 * lto-streamer.c (lto_get_section_name): Skip any leading
14905 asterisk in name.
14906
14907 2010-01-01 Richard Guenther <rguenther@suse.de>
14908
14909 PR middle-end/42559
14910 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
14911 for LABEL_DECLs.
14912
14913 \f
14914 Copyright (C) 2010 Free Software Foundation, Inc.
14915
14916 Copying and distribution of this file, with or without modification,
14917 are permitted in any medium without royalty provided the copyright
14918 notice and this notice are preserved.