]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
5a58ad5b505920db8f2483950389c76a153ddd7c
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4
5 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6
7 PR target/40483
8 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
9 COMDAT group syntax, both SPARC and x86 variants.
10 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11 * configure: Regenerate.
12 * config/sol2.h (TARGET_SOLARIS): Define.
13 (PUSHSECTION_FORMAT): Remove.
14 (SECTION_NAME_FORMAT): Define.
15 * config/sol2.c: Include hashtab.h.
16 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17 expansion, using SECTION_NAME_FORMAT.
18 (solaris_comdat_htab): New variable.
19 (struct comdat_entry): Define.
20 (comdat_hash): New function.
21 (comdat_eq): New function.
22 (solaris_elf_asm_comdat_section): New function.
23 (solaris_define_comdat_signature): New function.
24 (solaris_code_end): New function.
25 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
26 (solaris_code_end): Declare.
27 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
28 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
29 solaris_code_end.
30 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
31 Remove ATTRIBUTE_UNUSED.
32 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
33 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
34 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
35 Likewise.
36 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
37 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
38 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
39 (PUSHSECTION_FORMAT): Remove.
40 (SECTION_NAME_FORMAT): Redefine.
41
42 2011-05-19 Kai Tietz <ktietz@redhat.com>
43
44 * tree-cfg.c (verify_gimple_assign_binary): Barf on
45 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
46 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
47
48 2011-05-19 Anatoly Sokolov <aesok@post.ru>
49 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50
51 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
52
53 2011-05-19 Richard Guenther <rguenther@suse.de>
54
55 PR middle-end/48985
56 * tree-object-size.c (addr_object_size): If the pointed-to
57 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
58
59 2011-05-19 Richard Guenther <rguenther@suse.de>
60
61 * gimple.c (gimple_types_compatible_p_1): Compare names of
62 the types themselves.
63 (iterative_hash_gimple_type): And hash them that way.
64 (gimple_register_type_1): If we register a main variant properly
65 initialize the leader to ourselves.
66
67 2011-05-19 Tom de Vries <tom@codesourcery.com>
68
69 PR target/45098
70 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
71 get_loop_invariant_expr_id.
72 (get_loop_invariant_expr_id): Use get_expr_id.
73 (parm_decl_cost): New function.
74 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
75 Improve bound cost estimation. Use different inv_expr_id for elim and
76 express cases.
77
78 2011-05-19 Tom de Vries <tom@codesourcery.com>
79
80 PR target/45098
81 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
82 cost_base.cost == 0.
83
84 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
85
86 PR target/49002
87 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
88 Properly handle load cast.
89
90 2011-05-18 Jakub Jelinek <jakub@redhat.com>
91
92 PR tree-optimization/49039
93 * tree-vrp.c (extract_range_from_binary_expr): For
94 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
95 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
96
97 2011-05-18 Tom de Vries <tom@codesourcery.com>
98
99 PR target/45098
100 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
101
102 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
103
104 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
105 (*tls_global_dynamic_64): Ditto.
106 (*tls_local_dynamic_base_32_gnu): Ditto.
107 (*tls_local_dynamic_base_64): Ditto.
108 (tls_initial_exec_64_sun): Ditto.
109
110 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
111
112 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
113 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
114 bf592-none.
115 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
116 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
117 * config/bfin/bfin.c (bfin_cpus): Add bf592.
118 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
119 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
120 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
121 * config/bfin/elf.h (LIB_SPEC): Add bf592.
122
123 2011-05-18 Joseph Myers <joseph@codesourcery.com>
124
125 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
126 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
127 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
128 target_thread_pointer, arm_structure_size_boundary, struct
129 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
130 struct abi_name, arm_all_abis): Remove.
131 (arm_option_override) Don't process most enumerated option values here.
132 Don't process target_fpe_name here. Work with integer not string for
133 structure size boundary; use separate diagnostics for each case.
134 * config/arm/arm.h (enum float_abi_type, enum
135 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
136 to arm-opts.h.
137 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
138 arm_structure_size_boundary): Remove.
139 * config/arm/arm.opt (mabi=): Use Enum and Init.
140 (arm_abi_type): New Enum and EnumValue entries.
141 (mfloat-abi=): Use Enum and Init.
142 (float_abi_type): New Enum and EnumValue entries.
143 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
144 (mfp16-format=): Use Enum and Init.
145 (arm_fp16_format_type): New Enum and EnumValue entries.
146 (mstructure-size-boundary=): Use UInteger and Init.
147 (mtp=): Use Enum and Init.
148 (arm_tp_type): New Enum and EnumValue entries.
149
150 2011-05-18 Richard Guenther <rguenther@suse.de>
151
152 PR tree-optimization/49018
153 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
154 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
155 gimple_has_side_effects.
156
157 2011-05-18 Richard Guenther <rguenther@suse.de>
158
159 * gimple.c (gimple_register_type_1): New function, split out from ...
160 (gimple_register_type): ... here. Avoid infinite recursion.
161
162 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
163
164 PR tree-optimization/41881
165 * tree-vectorizer.h (struct _loop_vec_info): Add new field
166 reduction_chains along with a macro for its access.
167 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
168 (destroy_loop_vec_info): Free reduction chains.
169 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
170 (vect_is_slp_reduction): New function.
171 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
172 (vect_create_epilog_for_reduction): Support SLP reduction chains.
173 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
174 definition types for reduction chains.
175 (vect_supported_load_permutation_p): Don't allow permutations for
176 reduction chains.
177 (vect_analyze_slp_instance): Support reduction chains.
178 (vect_analyze_slp): Try to build SLP instance from reduction chains.
179 (vect_get_constant_vectors): Handle reduction chains.
180 (vect_schedule_slp_instance): Mark the first statement of the
181 reduction chain as reduction.
182
183 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
184
185 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
186 names for group elements access.
187 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
188 reduction chains as well. Remove data reference and interleaving
189 related words from the fields names.
190 * tree-vect-loop.c (vect_transform_loop): Use new names for group
191 elements access.
192 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
193 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
194 vect_update_interleaving_chain, vect_same_range_drs,
195 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
196 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
197 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
198 vect_analyze_group_access, vect_analyze_data_ref_access,
199 vect_create_data_ref_ptr, vect_transform_strided_load,
200 vect_record_strided_load_vectors): Likewise.
201 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
202 vect_model_load_cost, vectorizable_store, vectorizable_load,
203 vect_remove_stores, new_stmt_vec_info): Likewise.
204 * tree-vect-slp.c (vect_build_slp_tree,
205 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
206
207 2011-05-18 Richard Guenther <rguenther@suse.de>
208
209 PR middle-end/48989
210 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
211 operand verification.
212 (verify_gimple_assign_binary): Likewise.
213 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
214 to non-1-precision BOOLEAN_TYPEs.
215
216 2011-05-18 Tom de Vries <tom@codesourcery.com>
217
218 PR target/45098
219 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
220
221 2011-05-18 Jakub Jelinek <jakub@redhat.com>
222
223 PR tree-optimization/49000
224 * tree-ssa.c (execute_update_addresses_taken): Call
225 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
226 be rewritten and decl has been marked for renaming, reset
227 the debug stmt.
228
229 2011-05-17 Joseph Myers <joseph@codesourcery.com>
230
231 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
232 enum_opts_set when testing if attributes have set -mfpmath=.
233
234 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
235
236 * config/mips/mips.c (mips_handle_option): Remove unused variable.
237
238 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
239
240 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
241 info->entry with 0
242 * tree-inline.c (maybe_inline_call_in_expr): Initialize
243 id.transform_lang_insert_block with NULL.
244
245 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
246
247 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
248 (output_fp_compare): Change args 3 and 4 to bool.
249 (ix86_expand_call): Change arg 6 to bool.
250 (ix86_attr_length_immediate_default): Change arg 2 to bool.
251 (ix86_attr_length_vex_default): Change arg 3 to bool.
252 * config/i386/i386.md: Update all uses.
253 * config/i386/i386.c: Ditto.
254 (ix86_flags_dependent): Change return type to bool.
255
256 2011-05-17 Richard Guenther <rguenther@suse.de>
257
258 * gimple.c (type_hash_pair_compare): Fix comparison.
259
260 2011-05-17 Richard Guenther <rguenther@suse.de>
261
262 * gimple.c (iterative_hash_gimple_type): Simplify singleton
263 case some more, fix final hash value of the non-singleton case.
264
265 2011-05-17 Richard Guenther <rguenther@suse.de>
266
267 PR bootstrap/49013
268 Revert
269 2011-05-16 Richard Guenther <rguenther@suse.de>
270
271 * gimple.c (gimple_types_compatible_p_1): Use names of the
272 type itself, not its main variant.
273 (iterative_hash_gimple_type): Likewise.
274
275 2011-05-17 Richard Guenther <rguenther@suse.de>
276
277 * gimple.c (gimple_register_canonical_type): Use the main-variant
278 leader for computing the canonical type.
279
280 2011-05-17 Nick Clifton <nickc@redhat.com>
281
282 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
283 moves.
284
285 * config/rx/rx.md: Add peephole to remove redundant extensions
286 after loads.
287 (bitset_in_memory): Use rx_restricted_mem_operand.
288 (bitinvert_in_memory): Likewise.
289 (bitclr_in_memory): Likewise.
290
291 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
292 Nick Clifton <nickc@redhat.com>
293
294 * config/rx/rx.md: Add peepholes to match a register move followed
295 by a comparison of the moved register. Replace these with an
296 addition of zero that does both actions in one instruction.
297
298 2011-05-17 Jakub Jelinek <jakub@redhat.com>
299
300 PR target/48986
301 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
302 predicate to allow CONST_INT.
303 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
304
305 2011-05-16 Joseph Myers <joseph@codesourcery.com>
306
307 * opts-common.c (opt_enum_arg_to_value): New.
308 * opts.h (opt_enum_arg_to_value): Declare.
309 * config/i386/i386.opt (fpmath): Remove.
310 (mfpmath=): Use Enum, Init and Save.
311 (fpmath_unit): New Enum and EnumValue entries.
312 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
313 name for function fpmath state.
314 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
315 * config/i386/i386.c: Include diagnostic.h.
316 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
317 (ix86_target_string): Take enum fpmath_unit value instead of string.
318 (ix86_debug_options): Update call to ix86_target_string.
319 (ix86_option_override_internal): Don't process fpmath strings here.
320 (x86_function_specific_save, ix86_function_specific_restore):
321 Don't handle fpmath state specially.
322 (ix86_function_specific_print): Pass fpmath state to
323 ix86_target_string instead of printing in this function.
324 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
325 Handle enum attributes.
326 (IX86_ATTR_ENUM, ix86_opt_enum): New.
327 (ix86_valid_target_attribute_tree): Update option_strings
328 handling. Handle fpmath as enum option.
329 (ix86_can_inline_p): Update field names for function fpmath state.
330 (ix86_expand_builtin): Update call to ix86_target_string.
331 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
332 (ix86_fpmath): Remove.
333 * config/i386/t-i386 (i386.o): Update dependencies.
334
335 2011-05-16 Joseph Myers <joseph@codesourcery.com>
336
337 PR preprocessor/48677
338 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
339 from decoded_options[0], not from itself.
340
341 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
342
343 * config/i386/constraints.md (z): New constraint.
344 * config/i386/i386.c (c): New mode attribute.
345 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
346 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
347 constraint for operand 0.
348 (*call_vzeroupper): Ditto.
349 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
350 (*call_rex64_ms_sysv_vzeroupper): Ditto.
351 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
352 Use "lzm" constraint for operand 0.
353 (*call_pop_vzeroupper): Ditto.
354 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
355 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
356 constraint for operand 0.
357 (*sibcall_vzeroupper): Ditto.
358 (*sibcall_rex64_ms_sysv): Ditto.
359 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
360 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
361 *sibcall_pop_1. Use "Uz" constraint for operand 0.
362 (*sibcall_pop_vzeroupper): Ditto.
363 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
364 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
365 mode iterator. Use "<c>zm" constraint for operand 1.
366 (*call_value_vzeroupper): Ditto.
367 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
368 for operand 1.
369 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
370 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
371 *call_value_pop_1. Use "lzm" constraint for operand 1.
372 (*call_value_pop_vzeroupper): Ditto.
373 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
374 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
375 mode iterator. Use "Uz" constraint for operand 1.
376 (*sibcall_value_vzeroupper): Ditto.
377 (*sibcall_value_rex64_ms_sysv): Ditto.
378 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
379 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
380 constraint for operand 1.
381 (*sibcall_value_pop_vzeroupper): Ditto.
382 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
383 and "z" constraint for operand 2.
384 (*tls_global_dynamic_32_gnu): Ditto.
385 (*tls_local_dynamic_base_32_gnu): Ditto.
386 (*tls_local_dynamic_base_64): Ditto.
387 (*tls_local_dynamic_32_once): Ditto.
388 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
389 Update all callers.
390 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
391
392 2011-05-16 Richard Guenther <rguenther@suse.de>
393
394 * gimple.c (gimple_types_compatible_p_1): Use names of the
395 type itself, not its main variant.
396 (iterative_hash_gimple_type): Likewise.
397
398 2011-05-16 Richard Guenther <rguenther@suse.de>
399
400 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
401 always visit pointer target and function result and argument types.
402
403 2011-05-16 Jason Merrill <jason@redhat.com>
404
405 PR c++/48999
406 * tree-inline.c (copy_statement_list): Put back recursion.
407
408 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
409
410 PR target/27663
411 PR target/41076
412 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
413 * config/avr/avr.md ("*ior<mode>qi.byte0",
414 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
415
416 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
417
418 PR target/45099
419 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
420 register is needed for a function argument.
421
422 2011-05-16 Richard Guenther <rguenther@suse.de>
423
424 * gimple.c (struct type_hash_pair): New type.
425 (type_hash_pair_compare): New function.
426 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
427
428 2011-05-16 Revital Eres <revital.eres@linaro.org>
429
430 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
431
432 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
433
434 * config/i386/i386.md (floating point move splitters): Fix
435 usage of standard_80387_constant_p.
436 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
437
438 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
439
440 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
441
442 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
443
444 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
445 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
446 (tree_ssa_lim_finalize): Likewise.
447
448 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
449
450 * config/i386/constraint.md (Yd, Yx): New register constraints.
451 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
452 Yd conditional register constraint.
453 (*movtf_internal): Use standard_sse_constant_opcode.
454 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
455 Yx conditional register constraint.
456 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
457 Yd conditional register constraint. Use standard_sse_constant_p to
458 check for valid SSE constants and call standard_sse_constant_opcode to
459 output SSE insn.
460 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
461 constants and call standard_sse_constant_opcode to output SSE insn.
462 * config/i386/i386.c (ix86_option_ovverride_internal): Set
463 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
464 optimize_size is set.
465 (standard_sse_constant_opcode): Output conditional AVX insn templates.
466
467 2011-05-14 Tobias Burnus <burnus@net-b.de>
468
469 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
470
471 2011-05-13 Martin Jambor <mjambor@suse.cz>
472
473 * ipa-prop.c (ipa_cst_from_jfunc): New function.
474 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
475 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
476 (evaluate_conditions_for_ipcp_clone): Removed.
477 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
478 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
479 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
480
481 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
482
483 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
484 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
485 lieu of MAY_HAVE_DEBUG_STMTS.
486 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
487 debug statements if !MAY_HAVE_DEBUG_STMTS.
488
489 2011-05-13 Martin Thuresson <martint@google.com>
490
491 PR gcov-profile/47793
492 * libgcov.c (gcov_exit): Support relative profile paths.
493 * doc/invoke.texi (-fprofile-dir): Update for above change.
494
495 2011-05-13 Richard Guenther <rguenther@suse.de>
496
497 * gimple.c (gimple_canonical_types_compatible_p): Do not use
498 type-pair caching, do not compare hashes.
499
500 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
501
502 PR middle-end/48965
503 * tree-cfg.c (edge_to_cases_cleanup): Return true.
504 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
505
506 2011-05-13 Kai Tietz <ktietz@redhat.com>
507
508 * gimplify.c (gimplify_expr): Make sure operand is boolified.
509 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
510 compatible type for TRUTH_NOT_EXPR.
511
512 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
513
514 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
515 (ix86_hard_regno_mode_ok): Change return value to bool. Use
516 can_create_pseudo_p ().
517
518 2011-05-13 Richard Guenther <rguenther@suse.de>
519
520 PR lto/48978
521 * gimple.c (iterative_hash_gimple_type): Revert change in
522 pointer target and function result and argument hashing.
523
524 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
525
526 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
527 (*movxf_internal_nointeger): Ditto.
528 (*movdf_internal_rex64): Ditto.
529 (*movdf_internal): Ditto.
530 (*movdf_internal_nointeger): Ditto.
531 (*movsf_internal): Ditto.
532 (sincos splitters): Use can_create_pseudo ().
533
534 2011-05-13 Joseph Myers <joseph@codesourcery.com>
535
536 * config/i386/i386-opts.h: New.
537 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
538 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
539 ix86_section_threshold): Remove.
540 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
541 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
542 OPT_mbranch_cost_.
543 (ix86_option_override_internal): Don't decode strings for options
544 other than -march=, -mtune= and -mfpmath=. Don't allow for
545 __attribute__ uses in remaining diagnostics for options with
546 string arguments. Don't check for integer arguments being negative.
547 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
548 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
549 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
550 ix86_branch_cost, ix86_section_threshold): Remove.
551 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
552 HeaderInclude.
553 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
554 but not Var.
555 (masm=): Use Enum and Init.
556 (asm_dialect): New Enum and EnumValue entries.
557 (mbranch-cost=): Use UInteger.
558 (mlarge-data-threshold=): Use UInteger and Init.
559 (mcmodel=): Use Enum and Init.
560 (cmodel): New Enum and EnumValue entries.
561 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
562 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
563 mregparm=): Use UInteger.
564 (mstringop-strategy=): Use Enum and Init.
565 (stringop_alg): New Enum and EnumValue entries.
566 (mtls-dialect=): Use Enum and Init.
567 (tls_dialect): New Enum and EnumValue entries.
568 (mabi=): Use Enum and Init.
569 (calling_abi): New Enum and EnumValue entries.
570 (mveclibabi=): Use Enum and Init.
571 (ix86_veclibabi): New Enum and EnumValue entries.
572
573 2011-05-13 Nick Clifton <nickc@redhat.com>
574
575 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
576 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
577
578 2011-05-13 Kai Tietz <ktietz@redhat.com>
579
580 PR middle-end/48984
581 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
582 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
583 (gimple_boolify): Check for cast for boolean_type_node instead for
584 BOOLEAN_TYPE.
585
586 2011-05-13 Richard Guenther <rguenther@suse.de>
587
588 PR tree-optimization/48172
589 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
590 multiplying by number of iterations for equal step.
591 (vect_create_cond_for_alias_checks): Likewise.
592
593 2011-05-13 Andreas Schwab <schwab@redhat.com>
594
595 * configure.ac: Use AS_HELP_STRING throughout.
596 * configure: Regenerate.
597
598 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
599
600 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
601 (ix86_emit_restore_regs_using_mov): Likewise.
602 (ix86_emit_restore_sse_regs_using_mov): Likewise.
603
604 2011-05-12 Anatoly Sokolov <aesok@post.ru>
605
606 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
607 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
608 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
609 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
610 RTX_OK_FOR_OLO10_P): ...here.
611 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
612 SYMBOLIC_CONST.
613
614 2011-05-12 Kai Tietz <ktietz@redhat.com>
615
616 * gimplify.c (gimple_boolify): Re-boolify expression
617 arguments even if expression type is of kind BOOLEAN_TYPE.
618 (gimplify_boolean_expr): Removed.
619 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
620 and XOR. Additional take care that we keep expression's type.
621 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
622 of TRUTH_AND|OR|XOR_EXPR.
623
624 2011-05-12 Jakub Jelinek <jakub@redhat.com>
625
626 PR tree-optimization/48975
627 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
628 on all bbs here and free and clear ifc_bbs at the end.
629
630 2011-05-12 Richard Guenther <rguenther@suse.de>
631
632 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
633 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
634 until after simple checks.
635 (gimple_types_compatible_p): Likewise.
636 (iterative_hash_gimple_type): Always hash pointer targets
637 and function return and argument types.
638 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
639 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
640 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
641 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
642 completely in the simple compare section.
643 (gimple_register_canonical_type): Query the cache again after
644 registering.
645
646 2011-05-12 Richard Guenther <rguenther@suse.de>
647
648 PR tree-optimization/48172
649 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
650 the number of iterations from the segment size calculation.
651 (vect_create_cond_for_alias_checks): Adjust.
652
653 2011-05-12 Jakub Jelinek <jakub@redhat.com>
654
655 PR debug/48967
656 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
657 if validate_subreg fails.
658
659 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
660
661 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
662 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
663 early.
664
665 2011-05-12 DJ Delorie <dj@redhat.com>
666
667 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
668 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
669 created builtin into rx_builtins array.
670 (rx_builtin_decl): New function.
671 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
672
673 2011-05-12 DJ Delorie <dj@redhat.com>
674 Nick Clifton <nickc@redhat.com>
675
676 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
677 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
678 (rx_is_legitimate_address): Add pre-decrement and post-increment
679 addressing in HImode and QImode. Fix test for out of range
680 REG+INT addressing.
681 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
682 (rx_align_for_label): Test label before extracting its usage count.
683 (rx_adjust_insn_lengths): Fix selection of insn codes.
684 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
685
686 2011-05-11 Jason Merrill <jason@redhat.com>
687
688 * tree.c (type_hash_canon): Use struct tree_type_non_common.
689
690 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
691
692 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
693 reindent the subsequent block.
694
695 2011-05-11 Satoru Takabayashi <satorux@google.com>
696 Paul Pluzhnikov <ppluzhnikov@google.com>
697
698 * doc/install.texi (Configuration): Document --with-linker-hash-style.
699 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
700 * config.in: Add LINKER_HASH_STYLE.
701 * configure.ac: Add --with-linker-hash-style.
702 * configure: Regenerate.
703
704 2011-05-11 Richard Guenther <rguenther@suse.de>
705
706 PR middle-end/48964
707 * gimple.c (iterative_hash_canonical_type): Fix typo.
708
709 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
710
711 * config/i386/i386.c (legitimize_tls_address)
712 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
713 expanders directly for TARGET_GNU2_TLS. Determine pic and
714 __tls_get_addr symbol reference here. Update call to
715 gen_tls_global_dynamic_{32,64} for added arguments.
716 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
717 expanders directly for TARGET_GNU2_TLS. Determine
718 __tls_get_addr symbol reference here. Update call to
719 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
720 unique UNSPEC REG_EQUIV to libcall block.
721 (ix86_tls_get_addr): Declare static.
722 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
723 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
724 Do not determine pic and __tls_get_addr symbol reference here. Do not
725 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
726 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
727 (tls_global_dynamic_64): Add operand 2. Do not determine
728 __tls_get_addr symbol reference here. Do not call
729 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
730 (tls_local_dynamic_base64): Ditto for operand 1.
731
732 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
733
734 * function.c (expand_function_start): Initialize stack_check_probe_note
735 only if the generic stack checking mechanism is used.
736
737 2011-05-11 Richard Guenther <rguenther@suse.de>
738
739 PR tree-optimization/15256
740 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
741 (A & B) | C, combine (A op CST1) op CST2.
742 (tree_ssa_forward_propagate_single_use_vars): Only bother to
743 visit assigns that have uses.
744
745 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
746
747 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
748 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
749 (unpack_ts_type_common_value_fields): ...this. Update comment.
750 (unpack_value_fields): Adjust for renaming.
751 (lto_input_ts_type_tree_pointers): Split into...
752 (lto_input_ts_type_common_tree_pointer): ...this and...
753 (lto_input_ts_type_non_common_tree_pointers): ...this.
754 (lto_input_tree_pointers): Adjust for above split.
755 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
756 (pack_ts_type_common_value_fields): ...this. Update comment.
757 (lto_output_ts_type_tree_pointers): Split into...
758 (lto_output_ts_type_common_tree_pointers): ...this and...
759 (lto_output_ts_type_non_common_tree_pointers): ...this.
760 (lto_output_tree_pointers): Adjust for above split.
761 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
762 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
763 * stor-layout.c (vector_type_mode): Adjust location of mode field.
764 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
765 Define.
766 (struct tree_type): Split into...
767 (struct tree_type_common: ...this and...
768 (struct tree_type_with_lang_specific): ...this and...
769 (struct tree_type_non_common): ...this. Adjust accessor macros
770 accordingly.
771 (TYPE_VALUES_RAW): Define.
772 (union tree_node): Update for above changes.
773 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
774 TS_TYPE_NON_COMMON.
775 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
776 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
777 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
778 * treestructu.def (TS_TYPE): Remove.
779 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
780 Define.
781
782 2011-05-11 Jakub Jelinek <jakub@redhat.com>
783
784 PR debug/48159
785 * tree-ssa.c (reset_debug_uses): New function.
786 * tree-flow.h (reset_debug_uses): New prototype.
787 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
788 * tree-loop-distribution.c (generate_loops_for_partition): Call
789 reset_debug_uses on the stmts that will be removed. Keep around
790 all debug stmts, don't count them as bits in partition bitmap.
791 (generate_builtin): Don't count debug stmts or labels as bits in
792 partition bitmap.
793
794 2011-05-11 Richard Guenther <rguenther@suse.de>
795
796 * gimple.c (gimple_type_hash_1): Merge with ...
797 (gimple_type_hash): ... this.
798 (gtc_visit): Remove mode parameter and simplify accordingly.
799 (gimple_types_compatible_p_1): Likewise.
800 (gimple_types_compatible_p): Likewise.
801 (iterative_hash_gimple_type): Likewise.
802 (visit): Likewise.
803 (gimple_type_eq): Adjust.
804
805 2011-05-11 Revital Eres <revital.eres@linaro.org>
806
807 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
808 enters the branch create an anti edge in the opposite direction
809 to prevent the creation of reg-moves.
810 * modulo-sched.c: Adjust comment to reflect the fact we are
811 scheduling closing branch.
812 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
813 (stage_count): New field in struct partial_schedule.
814 (calculate_stage_count): New function.
815 (normalize_sched_times): Rename to reset_sched_times and handle
816 incrementing the sched time of the nodes by a constant value
817 passed as parameter.
818 (duplicate_insns_of_cycles): Skip closing branch.
819 (sms_schedule_by_order): Schedule closing branch.
820 (ps_insn_find_column): Handle closing branch.
821 (sms_schedule): Call reset_sched_times and adjust the code to
822 support scheduling of the closing branch.
823 (ps_insert_empty_row): Update calls to normalize_sched_times
824 and rotate_partial_schedule functions.
825
826 2011-05-11 Richard Guenther <rguenther@suse.de>
827
828 PR middle-end/48953
829 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
830
831 2011-05-11 Joseph Myers <joseph@codesourcery.com>
832
833 * opts.c (finish_options): Move warning settings from process_options.
834 * toplev.c (process_options): Move warning settings to finish_options.
835
836 2011-05-11 Richard Guenther <rguenther@suse.de>
837
838 PR tree-optimization/18041
839 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
840 (simplify_bitwise_binary): ... this. Handle operand conversions
841 by applying them to the result instead.
842 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
843
844 2011-05-11 Richard Guenther <rguenther@suse.de>
845
846 * gimple.c (gimple_canonical_types_compatible_p): Split out
847 from gimple_types_compatible_p and friends. Do not recurse
848 to pointed-to types.
849 (gimple_canonical_type_eq): Use it.
850 (iterative_hash_canonical_type): Split out from
851 iterative_hash_gimple_type and friends. Do not recurse
852 to pointed-to types.
853 (gimple_canonical_type_hash): Use it, allocate the hash here.
854
855 2011-05-11 Revital Eres <revital.eres@linaro.org>
856
857 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
858 recognizing doloop.
859
860 2011-05-11 Revital Eres <revital.eres@linaro.org>
861
862 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
863 instead of PREV_INSN.
864
865 2011-05-11 Revital Eres <revital.eres@linaro.org>
866
867 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
868 * loop-doloop.c (doloop_condition_get): Likewise.
869 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
870 (doloop_end): New.
871 * config/arm/arm.md (*addsi3_compare0): Remove "*".
872
873 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
874
875 * tree.def (CASE_LABEL_EXPR): Add an operand.
876 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
877
878 2011-05-10 Joseph Myers <joseph@codesourcery.com>
879
880 * c-decl.c (c_override_global_bindings_to_false): Remove.
881 (global_bindings_p): Don't check
882 c_override_global_bindings_to_false.
883 * c-tree.h (c_override_global_bindings_to_false): Remove.
884 * c-typeck.c (composite_type): Don't set
885 c_override_global_bindings_to_false.
886
887 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
888
889 PR target/48857, 48495
890 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
891 (VSX_MODE): Ditto.
892 (VSX_MOVE_MODE): Ditto.
893 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
894 VSX vector types. Add V2DImode.
895 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
896 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
897 (MODES_TIEABLE_P): Ditto.
898
899 * config/rs6000/rs6000.c (rs6000_emit_move): Use
900 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
901 VSX_VECTOR_MODE.
902 (init_cumulative_args): Ditto.
903 (rs6000_function_arg_boundary): Ditto.
904 (rs6000_function_arg_advance_1): Ditto.
905 (rs6000_function_arg): Ditto.
906 (rs6000_function_ok_for_sibcall): Ditto.
907 (emit_frame_save): Ditto.
908 (rs6000_function_value): Ditto.
909 (rs6000_libcall_value): Ditto.
910
911 2011-05-10 Joseph Myers <joseph@codesourcery.com>
912
913 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
914 i386/darwin-lib.h to $libgcc_tm_file.
915 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
916
917 2011-05-10 Joseph Myers <joseph@codesourcery.com>
918
919 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
920
921 2011-05-10 Joseph Myers <joseph@codesourcery.com>
922
923 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
924 * config/rs6000/rs6000-tables.opt: New file (generated).
925 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
926 rs6000/rs6000-tables.opt to extra_options.
927 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
928 * config/rs6000/rs6000.c (rs6000_select): Remove.
929 (processor_target_table): Move contents to rs6000-cpus.def.
930 (darwin_rs6000_override_options): Check
931 global_options_set.x_rs6000_cpu_index instead of
932 rs6000_select[1].string.
933 (rs6000_option_override_internal): Likewise.
934 (rs6000_handle_option): Don't assert that global structures are in
935 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
936 (rs6000_default_cpu): New variable.
937 (rs6000_file_start): Set it instead of local default_cpu. Check
938 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
939 global_options_set.x_rs6000_tune_index instead of rs6000_select.
940 (rs6000_darwin_file_start): Check rs6000_default_cpu and
941 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
942 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
943 rs6000_select): Remove.
944 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
945 Remove.
946 (mcpu=, mtune=): Use Var, Init, Enum and Save.
947 * config/rs6000/t-rs6000
948 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
949 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
950 global_options_set.x_rs6000_cpu_index instead of
951 rs6000_select[1].string.
952 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
953 global_options_set.x_rs6000_cpu_index instead of
954 rs6000_select[1].string.
955
956 2011-05-10 Joseph Myers <joseph@codesourcery.com>
957
958 * config.gcc (libgcc_tm_file): Define instead of including files
959 from ../../libgcc/config/ in tm_file.
960 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
961 * configure: Regenerate.
962 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
963 libgcc_tm.h, cs-libgcc_tm.h): New.
964 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
965 (clean): Remove libgcc_tm.h.
966 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
967 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
968 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
969
970 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
971
972 PR target/48896
973 * config/avr/avr.c (avr_ret_register): Return unsigned int
974 instead of int.
975 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
976 it to avr_libcall_value.
977 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
978 expand_expr.
979 (avr_expand_binop_builtin): Ditto.
980 (avr_expand_unop_builtin): Ditto.
981
982 2011-05-10 DJ Delorie <dj@redhat.com>
983
984 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
985 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
986 * config/rx/rx.c (rx_align_for_label): Add label and
987 uses_threshold parameters. Do not align when the label is not
988 used enough.
989 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
990
991 2011-05-10 Richard Guenther <rguenther@suse.de>
992
993 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
994 a series of conversions and apply foldings similar to what
995 fold-const does.
996 (tree_ssa_forward_propagate_single_use_vars): Call it.
997
998 2011-05-10 Jakub Jelinek <jakub@redhat.com>
999
1000 PR tree-optimization/48611
1001 PR tree-optimization/48794
1002 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1003 referenced from RESX or EH_DISPATCH arguments.
1004
1005 PR debug/48928
1006 * dfp.c (decimal_to_decnumber): Handle conversion from
1007 dconst{1,2,m1,half}.
1008
1009 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1010
1011 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1012 for !flag_prefer_avx128.
1013 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1014
1015 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1016
1017 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1018 (fold_ternary_loc): Use expr_location_or.
1019
1020 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1021
1022 PR debug/48853
1023 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1024 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1025 Pmode and mem_mode is not VOIDmode.
1026
1027 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1028
1029 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1030 TYPE_QUAL_RESTRICT): Convert to enum.
1031
1032 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1033
1034 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1035 (const_pow2_1_to_8_operand): Ditto.
1036 (const_pow2_1_to_128_operand): Ditto.
1037 (const_pow2_1_to_32768_operand): Ditto.
1038 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1039 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1040 in insn constraint to check integer value of operand 3.
1041 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1042
1043 (PINSR_MODE): New mode iterator.
1044 (sse2p4_1): New mode attribute.
1045 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1046 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1047 iterator. Use const_int_operand instead of
1048 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1049 exact_log2 in insn constraint to check integer value of operand 3.
1050
1051 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1052
1053 * config/i386/sse.md (blendbits): Remove mode attribute.
1054 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1055 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1056 Check integer value of operand 3 in insn constraint.
1057
1058 2011-05-09 Richard Guenther <rguenther@suse.de>
1059
1060 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1061 for diagnostics.
1062 (lto_symtab_merge): Likewise. Do not register types here.
1063 (lto_symtab_merge_decls_2): Likewise.
1064 (lto_symtab_merge_decls_1): Likewise.
1065 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1066 * gimple.c (enum gtc_mode): Declare.
1067 (gimple_types_compatible_p): Make static.
1068
1069 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1070
1071 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1072 temporary register to match Pmode.
1073
1074 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1075
1076 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1077 and *vec_concatv4si_1_avx.
1078
1079 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1080
1081 PR rtl-optimization/48927
1082 * ira-conflicts.c (commutative_constraint_p): Use
1083 recog_data.alternative_enabled_p to disable alternatives where
1084 "enabled" attribute is false.
1085 (get_dup_num): Ditto.
1086 * ira-lives.c (single_reg_class): Ditto.
1087 (ira_implicitly_set_insn_hard_regs): Ditto.
1088
1089 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1090
1091 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1092 (dataflow_set_preserve_mem_locs): Likewise.
1093
1094 2011-05-09 Philipp Thomas <pth@suse.de>
1095
1096 * config/mep/mep.c (mep_validate_vliw): Syntax description
1097 should not be translated.
1098
1099 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1100
1101 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1102 * config/mips/mips-tables.opt: New file (generated).
1103 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1104 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1105 MIPS_ARCH_OPTION_NATIVE): Define.
1106 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1107 mips-cpus.def.
1108 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1109 mips_parse_cpu): Remove.
1110 (mips_cpu_info_from_opt, mips_default_arch): New.
1111 (mips_handle_option): Don't assert that global structures are in
1112 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1113 (mips_option_override): Use new variables and functions to set
1114 state of these options. Use strcmp to check for individual CPU names.
1115 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1116 definition.
1117 * config/mips/mips.opt (march=): Use ToLower and Enum.
1118 (mips): Use ToLower, Enum and Var.
1119 (mtune=): Use ToLower and Enum.
1120 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1121
1122 2011-05-08 Jan Hubicka <jh@suse.cz>
1123
1124 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1125 Arrange type pairs to be UID ordered.
1126 (gimple_lookup_type_leader): Make inline.
1127
1128 2011-05-09 Nick Clifton <nickc@redhat.com>
1129
1130 PR target/48899
1131 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1132 PROCESSOR_DEFAULT.
1133
1134 PR target/48897
1135 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1136 variable 's'.
1137
1138 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1139
1140 * combine.c (simplify_comparison): Abstract out parts into...
1141 (simplify_compare_const): ... new function.
1142 (try_combine): Generalize parallel arithmetic/compare combining
1143 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1144
1145 2011-05-08 Jan Hubicka <jh@suse.cz>
1146
1147 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1148 (cgraph_create_virtual_clone): Call hooks once virtual clone
1149 is finished.
1150 * cgraph.h (cgraph_clone_node): Update prototype.
1151 * ipa-cp.c (ipcp_estimate_growth): Use
1152 estimate_ipcp_clone_size_and_time.
1153 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1154 * lto-cgraph.c (input_node): Update.
1155 * ipa-inline.c (recursive_inlining): Update.
1156 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1157 (evaluate_conditions_for_known_args): Break out from ...
1158 (evaluate_conditions_for_edge): ... here.
1159 (evaluate_conditions_for_ipcp_clone): New function.
1160 (inline_node_duplication_hook): Update clone summary based
1161 on parameter map.
1162 (estimate_callee_size_and_time): Rename to ...
1163 (estimate_node_size_and_time): take NODE instead of EDGE;
1164 take POSSIBLE_TRUTHS as argument.
1165 (estimate_callee_size_and_time): Update.
1166 (estimate_ipcp_clone_size_and_time): New function.
1167 (do_estimate_edge_time): Update.
1168
1169 2011-05-08 Richard Guenther <rguenther@suse.de>
1170
1171 PR middle-end/48908
1172 PR middle-end/48905
1173 * expmed.c (expand_shift_1): Compute adjusted constant shift
1174 amount manually.
1175
1176 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1177
1178 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1179
1180 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1181
1182 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1183
1184 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1185
1186 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1187
1188 2011-05-07 Jan Hubicka <jh@suse.cz>
1189
1190 * ipa-inline-transform.c (inline_call): Account when program size
1191 decreases.
1192 * ipa-inline.c (relative_time_benefit): New function.
1193 (edge_badness): Reorganize to be power 2 based; fix thinko when
1194 computing badness for negative growth; update comments to match
1195 reality; better dumps.
1196
1197 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1198
1199 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1200 type to bool and adjust comment.
1201 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1202 (fold_mathfn_compare): Remove calls to global_bindings_p.
1203 (fold_inf_compare): Likewise.
1204 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1205 * c-tree.h (global_bindings_p): Adjust prototype.
1206 * c-decl.c (global_bindings_p): Return bool and simplify.
1207
1208 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1209
1210 PR tree-optimization/48837
1211 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1212 when accumulator transformation is performed.
1213
1214 2011-05-06 Jan Hubicka <jh@suse.cz>
1215
1216 * i386.h (ix86_tune_indices): Add
1217 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1218 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1219 * i386.c (initial_ix86_tune_features): Add
1220 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1221 (software_prefetching_beneficial_p): Remove predicate.
1222 (ix86_option_override_internal): Use new macro.
1223
1224 2011-05-06 Jan Hubicka <jh@suse.cz>
1225
1226 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1227
1228 2011-05-06 Jan Hubicka <jh@suse.cz>
1229
1230 * cgraph.c (cgraph_add_thunk): Create real function node instead
1231 of alias node; finalize it and mark needed/reachale; arrange visibility
1232 to be right and add it into the corresponding same comdat group list.
1233 (dump_cgraph_node): Dump thunks.
1234 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1235 cgraph_function_with_gimple_body_p,
1236 cgraph_first_function_with_gimple_body,
1237 cgraph_next_function_with_gimple_body): New functions.
1238 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1239 New macros.
1240 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1241 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1242 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1243 devirtualization when optimizing.
1244 (verify_cgraph_node): Verify thunks.
1245 (cgraph_analyze_function): Analyze thunks.
1246 (cgraph_mark_functions_to_output): Output thunks only in combination
1247 with function they are assigned to.
1248 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1249 alias into normal node.
1250 (assemble_thunks): New functoin.
1251 (cgraph_expand_function): Use it.
1252 * lto-cgraph.c (lto_output_node): Stream thunks.
1253 (input_overwrite_node): Stream in thunks.
1254 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1255 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1256 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1257 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1258 (inline_analyze_function): Do not care about thunk jump functions.
1259 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1260 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1261 cgraph_function_with_gimple_body_p.
1262 * passes.c (do_per_function_toporder): Use
1263 cgraph_function_with_gimple_body_p.
1264 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1265 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1266 (function_called_by_processed_nodes_p): Likewise.
1267
1268 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1269
1270 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1271 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1272 entries.
1273 (mabi=): Replace with separate entries for mabi=altivec,
1274 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1275 mabi=ieeelongdouble and mabi=ibmlongdouble.
1276 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1277 check for -mabi=spe without SPE ABI support here.
1278 (rs6000_handle_option): Replace OPT_mabi_ handling with
1279 OPT_mabi_altivec and OPT_mabi_spe handling.
1280
1281 2011-05-06 Cary Coutant <ccoutant@google.com>
1282
1283 * dwarf2out.c (contains_subprogram_definition): New function.
1284 (should_move_die_to_comdat): Call it.
1285
1286 2011-05-06 Jeff Law <law@redhat.com>
1287
1288 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1289 remove_ctrl_stmt_and_useless_edges.
1290 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1291 (fixup_template_block, thread_single_edge): Likewise.
1292 (mark_threaded_blocks): Use THREAD_TARGET.
1293
1294 2011-05-06 Alan Modra <amodra@gmail.com>
1295
1296 PR target/48900
1297 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1298 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1299
1300 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1301
1302 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1303 constraint modifier to "r".
1304
1305 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1306
1307 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1308 fall through for OPT_mcmodel_.
1309
1310 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1311
1312 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1313 instruction sizes.
1314 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1315
1316 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1317
1318 PR target/47930
1319 * config/arm/arm.opt (marm): Document it.
1320 (mthumb): Reject negative variant.
1321
1322 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1323
1324 PR target/48898
1325 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1326 Fix typo in "ccvt" variable name.
1327
1328 2011-05-06 Tristan Gingold <gingold@adacore.com>
1329
1330 PR target/48895
1331 * config/vms/vms-ar.c (main): Remove cwd variable.
1332
1333 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR debug/48902
1336 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1337
1338 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1339
1340 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1341 * gimplify.c (gimplify_switch_expr): Likewise.
1342 * omp-low.c (expand_omp_sections): Likewise.
1343 * tree-eh.c (lower_try_finally_switch): Likewise.
1344 (lower_eh_dispatch): Likewise.
1345 * tree.h (build_case_label): Declare.
1346 * tree.c (build_case_label): Define.
1347
1348 2011-05-05 Jason Merrill <jason@redhat.com>
1349
1350 PR c++/40975
1351 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1352 (copy_statement_list): Don't recurse.
1353 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1354 STATEMENT_LIST.
1355
1356 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1357
1358 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1359 through from -mfpu= handling.
1360 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1361
1362 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1363
1364 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1365 POST_MODIFY.
1366
1367 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1368
1369 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1370 for 11.31.
1371 (hppa[12]*-*-hpux11*): Ditto.
1372 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1373 * config/ia64/hpux-unix2003.h: New.
1374 * config/pa/pa-hpux1131.opt: New.
1375 * config/pa/pa-hpux1131.h: New.
1376 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1377 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1378 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1379
1380 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR debug/48853
1383 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1384 instead of mode as 3rd argument to recursive call.
1385 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1386 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1387 VOIDmode.
1388 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1389 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1390 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1391 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1392
1393 2011-05-05 Julian Brown <julian@codesourcery.com>
1394
1395 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1396 parenthesis in D-register case.
1397
1398 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1399
1400 * opt-functions.awk (var_type_struct): Handle Enum options.
1401 * optc-gen.awk: Don't check range of variables of character type.
1402 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1403 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1404 rs6000_sdata_name, rs6000_explicit_options): Remove.
1405 (rs6000_option_override_internal): Check for -malign-power here.
1406 Use global_options_set instead of rs6000_explicit_options.
1407 (rs6000_parse_fpu_option): Remove.
1408 (rs6000_handle_option): Access variables via opts and opts_set
1409 pointers. Use error_at and warning_at. Add fall-through
1410 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1411 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1412 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1413 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1414 here. Don't use rs6000_parse_fpu_option.
1415 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1416 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1417 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1418 (mrecip=): Use Var.
1419 (mspe): Use Var and Save.
1420 (mtraceback=): Use Enum and Var.
1421 (rs6000_traceback_type): New Enum and EnumValue entries.
1422 (mfloat-gprs=): Use Enum, Var and Save.
1423 (rs6000_float_gprs): New Enum and EnumValue entries.
1424 (mlong-double-): use Var and Save.
1425 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1426 (malign-): Use Enum and Var.
1427 (rs6000_alignment_flags): New Enum and EnumValue entries.
1428 (mfpu=): Use Enum.
1429 (fpu_type_t): New Enum and EnumValue entries.
1430 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1431 global_options_set instead of rs6000_explicit_options.
1432 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1433 global_options_set instead of rs6000_explicit_options.
1434 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1435 global_options_set instead of rs6000_explicit_options.
1436 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1437 global_options_set instead of rs6000_explicit_options.
1438 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1439 global_options_set instead of rs6000_explicit_options.
1440 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1441 global_options_set instead of rs6000_explicit_options.
1442 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1443 definition.
1444 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1445 global_options_set instead of rs6000_explicit_options.
1446 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1447 (rs6000_cmodel): New Enum and EnumValue entries.
1448 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1449 global_options_set instead of rs6000_explicit_options.
1450 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1451 (mtls-size=): Use Enum and Var.
1452 (rs6000_tls_size): New Enum and EnumValue entries.
1453
1454 2011-05-05 Michael Matz <matz@suse.de>
1455
1456 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1457 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1458 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1459 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1460 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1461 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1462 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1463 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1464 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1465 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1466 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1467 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1468 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1469 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1470 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1471 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1472
1473 2011-05-05 Richard Guenther <rguenther@suse.de>
1474
1475 * expmed.c (expand_variable_shift): Rename to ...
1476 (expand_shift_1): ... this. Take an expanded shift amount.
1477 For rotates recurse directly not building trees for the shift amount.
1478 (expand_variable_shift): Wrap around expand_shift_1.
1479 (expand_shift): Adjust.
1480
1481 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1482
1483 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1484
1485 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1486
1487 * tree.h (get_pending_sizes): Remove prototype.
1488 (put_pending_size): Likewise.
1489 (put_pending_sizes): Likewise.
1490 * stor-layout.c (pending_sizes): Delete.
1491 (get_pending_sizes): Likewise.
1492 (put_pending_size): Likewise.
1493 (put_pending_sizes): Likewise.
1494 (variable_size): Do not call put_pending_size and tidy up.
1495 * function.h (struct function): Remove dont_save_pending_sizes_p.
1496 * lto-streamer-in.c (input_function): Do not stream it.
1497 * lto-streamer-out.c (output_function): Likewise.
1498 * tree-inline.c (initialize_cfun): Do not copy it.
1499 * c-decl.c (store_parm_decls): Do not set it.
1500 * omp-low.c (create_task_copyfn): Likewise.
1501 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1502
1503 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1504
1505 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1506 conditions.
1507 (*movdf_internal): Ditto.
1508 (*movdf_internal_nointeger): Ditto.
1509 (*movsf_internal): Ditto.
1510
1511 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1512
1513 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1514 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1515 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1516 (c_variable_size): Remove.
1517 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1518 call put_pending_sizes.
1519 (get_parm_info): Add parameter expr. Use it to set
1520 arg_info->pending_sizes.
1521 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1522 get_pending_sizes.
1523 * c-parser.c (c_parser_parms_declarator): Update call to
1524 c_parser_parms_list_declarator.
1525 (c_parser_parms_list_declarator): Take parameter expr. Update
1526 call to push_parm_decl. Update recursive call. Don't call
1527 get_pending_sizes. Update calls to get_parm_info.
1528 (c_parser_objc_method_definition): Update calls to
1529 c_parser_objc_method_decl and objc_start_method_definition.
1530 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1531 (c_parser_objc_method_decl): Add parameter expr. Update call to
1532 grokparm.
1533 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1534 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1535 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1536
1537 2011-05-05 Michael Hope <michael.hope@linaro.org>
1538
1539 PR pch/45979
1540 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1541 __ARM_EABI__ hosts.
1542
1543 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1544
1545 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1546 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1547 (spu_output_mi_thunk): New function.
1548
1549 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1550
1551 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1552 targetm.asm_out.print_operand.
1553 * config/sol2.c: Include target.h.
1554
1555 2011-05-04 Jan Hubicka <jh@suse.cz>
1556
1557 * ipa-inline.c (reset_edge_caches): New function.
1558 (update_caller_keys): Add check_inlinablity_for; do not
1559 reset edge caches; remove now unnecesary loop.
1560 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1561 (update_all_callee_keys): Likewise.
1562 (inline_small_functions): Sanity check cache; update code
1563 recomputing it.
1564
1565 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1566
1567 PR rtl-optimization/47612
1568 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1569 as the last insn of the sequence to be moved.
1570
1571 2011-05-04 Tobias Burnus <burnus@net-b.de>
1572
1573 PR fortran/48864
1574 * doc/invoke.texi (Ofast): Document that it
1575 enables Fortran's -fno-protect-parens.
1576
1577 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1578
1579 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1580
1581 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1582
1583 * stor-layout.c (variable_size): Do not issue errors.
1584
1585 2011-05-04 Richard Guenther <rguenther@suse.de>
1586
1587 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1588 for array-ref indices.
1589 (tree_coverage_counter_addr): Likewise.
1590 (build_fn_info_type): Use size_int for index types.
1591 (build_gcov_info): Likewise.
1592
1593 2011-05-04 Richard Guenther <rguenther@suse.de>
1594
1595 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1596 to build_int_cst.
1597 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1598 for constructor indices.
1599 (push_init_level): Likewise.
1600
1601 2011-05-04 Richard Guenther <rguenther@suse.de>
1602
1603 * explow.c (promote_mode): Move variable declarations before code.
1604
1605 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1606
1607 * tree.h (build_function_type_array): Declare.
1608 (build_varargs_function_type_array): Declare.
1609 (build_function_type_vec, build_varargs_function_type_vec): Define.
1610 * tree.c (build_function_type_array_1): New function.
1611 (build_function_type_array): New function.
1612 (build_varargs_function_type_array): New function.
1613
1614 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1615
1616 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1617 before setting STMT_VINFO_TYPE.
1618
1619 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1620
1621 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1622 instead of spu_pass_by_reference.
1623
1624 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1625
1626 * calls.c (emit_library_call_value_1): Invoke
1627 promote_function_mode hook on libcall arguments.
1628 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1629 argument being NULL.
1630 * targhooks.c (default_promote_function_mode): Lisewise.
1631 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1632 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1633
1634 * doc/tm.texi: Document that TYPE argument might be NULL.
1635
1636 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1637
1638 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1639
1640 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1641
1642 From Bernd Schmidt
1643 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1644
1645 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1646
1647 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1648 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1649 Move ...
1650 * mips-tfile.c: ... here.
1651 Don't include coretypes.h, tm.h, filenames.h.
1652 (saber_stop): Remove definition and all calls.
1653 [__SABER__]: Remove.
1654 (__LINE__): Remove default.
1655 (Size_t, Ptrdiff_t): Remove definitions.
1656 Replace by size_t, ptrdiff_t.
1657 [!MIPS_DEBUGGING_INFO]: Remove.
1658 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1659 (progname): Add const.
1660 (STATIC): Remove.
1661 Replace all uses by static.
1662 (ALIGN_SYMTABLE_OFFSET): Remove default.
1663 * mips-tdump.c: Don't include coretypes.h, tm.h.
1664 Remove !MIPS_IS_STAB guard.
1665 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1666 $(TM_H), filenames.h dependencies.
1667 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1668
1669 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1670
1671 From Jie Zhang
1672 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1673 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1674
1675 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1676
1677 From Bernd Schmidt
1678 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1679 account and save/restore RETS.
1680 (PROFILE_BEFORE_PROLOGUE): Define.
1681 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1682 the push insn to use predecrement.
1683
1684 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1685
1686 From Jie Zhang
1687 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1688
1689 2011-05-04 Nick Clifton <nickc@redhat.com>
1690
1691 * config/mn10300/mn10300.c: Include cfgloop.h.
1692 (DUMP): New macro.
1693 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1694 Lcc or a FLcc insn into the instruction stream.
1695 (mn10300_block_contains_call): New function. Returns true if the
1696 given basic block contains a CALL insn.
1697 (mn10300_loop_contains_call_insn): New function. Returns true if
1698 the given loop contains a CALL insn.
1699 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1700 to use the SETLB and Lcc or FLcc insns.
1701 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1702 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1703 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1704 disable the SETLB optimization.
1705 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1706 __SETLB__ or __NO_SETLB__.
1707 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1708 (movsf_internal): Handle MDR register.
1709 (cmpsi): Make visible.
1710 (setlb): New pattern.
1711 (Lcc): New pattern.
1712 (FLcc): New pattern.
1713
1714 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1715
1716 PR target/48860
1717 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1718 for reg<->xmm moves.
1719 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1720 (vec_concatv2di_rex64_sse): Ditto.
1721 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1722 (*vec_extractv2di_1_rex64): Ditto.
1723
1724 Revert:
1725 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1726
1727 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1728 reg<->xmm moves.
1729 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1730
1731 2011-05-04 Richard Guenther <rguenther@suse.de>
1732
1733 * tree.h (int_const_binop): Remove notrunc argument.
1734 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1735 create integer constants that are properly truncated.
1736 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1737 (const_binop): Remove zero notrunc argument to int_const_binop.
1738 (size_binop_loc): Likewise.
1739 (fold_div_compare): Likewise.
1740 (maybe_canonicalize_comparison_1): Likewise.
1741 (fold_comparison): Likewise.
1742 (fold_binary_loc): Likewise.
1743 (multiple_of_p): Likewise.
1744 * expr.c (store_constructor): Likewise.
1745 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1746 (maybe_fold_stmt_addition): Likewise.
1747 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1748 * stor-layout.c (layout_type): Likewise.
1749 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1750 * tree-sra.c (build_ref_for_offset): Likewise.
1751 (build_user_friendly_ref_for_offset): Likewise.
1752 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1753 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1754 * tree-ssa-loop-niter.c (inverse): Likewise.
1755 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1756 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1757 * tree-switch-conversion.c (check_range): Likewise.
1758 (build_constructors): Likewise.
1759 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1760 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1761 (extract_range_from_assert): Likewise.
1762 (vrp_int_const_binop): Likewise.
1763 (extract_range_from_binary_expr): Likewise.
1764 (extract_range_from_unary_expr): Likewise.
1765 (check_array_ref): Likewise.
1766 (find_case_label_range): Likewise.
1767 (simplify_div_or_mod_using_ranges): Likewise.
1768 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1769 comparing case labels for merging.
1770
1771 2011-05-03 Mark Wielaard <mjw@redhat.com>
1772
1773 * dwarf2out.c (debug_str_hash_forced): Removed.
1774 (gen_label_for_indirect_string): Removed.
1775 (get_debug_string_label): Removed.
1776 (AT_string_form): Generate label directly.
1777 (output_indirect_string): Test indirect_string_node for
1778 DW_FORM_strp instead of checking label and refcount.
1779 (prune_indirect_string): Removed.
1780 (prune_unused_types): Don't check debug_str_hash_forced or
1781 call prune_indirect_string.
1782
1783 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1784
1785 PR other/48093
1786 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1787
1788 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1789
1790 PR debug/47994
1791 PR debug/47919
1792 * combine.c (try_combine): Skip debug insns at m_split tests.
1793
1794 2011-04-26 Mark Wielaard <mjw@redhat.com>
1795
1796 PR42288
1797 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1798 when info_section_emitted.
1799
1800 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1801
1802 * config/mips/mips-opts.h: New.
1803 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1804 to mips-opts.h.
1805 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1806 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1807 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1808 via opts pointer.
1809 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1810 mips-opts.h.
1811 (mips_abi, mips_code_readable): Don't declare.
1812 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1813 (mabi=): Use Enum and Var.
1814 (mips_abi): New Enum and EnumValue entries.
1815 (mcode-readable=): Use Enum and Var.
1816 (mips_code_readable_setting): New Enum and EnumValue entries.
1817 (mr10k-cache-barrier=): Use Enum and Var.
1818 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1819
1820 2011-05-03 Jan Hubicka <jh@suse.cz>
1821
1822 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1823 replace hash by pointer map.
1824 (cgraph_node_set_element_def, cgraph_node_set_element,
1825 const_cgraph_node_set_element, varpool_node_set_element_def,
1826 varpool_node_set_element, const_varpool_node_set_element): Remove.
1827 (free_cgraph_node_set, free_varpool_node_set): New function.
1828 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1829 * tree-emutls.c: Free varpool node set.
1830 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1831 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1832 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1833 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1834 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1835 Move here from ipa.c; implement using pointer_map
1836 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1837 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1838 debug_cgraph_node_set, varpool_node_set_new,
1839 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1840 dump_varpool_node_set, debug_varpool_node_set):
1841 Move to ipa-uitls.c.
1842 * passes.c (ipa_write_summaries): Update.
1843
1844 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1845
1846 From Mike Frysinger:
1847 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1848 bf542/bf544/bf547/bf548/bf549.
1849
1850 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1851
1852 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1853
1854 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1855
1856 From Bernd Schmidt:
1857 * config/bfin/bfin.md (MOVCC): New mode_macro.
1858 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1859 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1860 comments from generated assembly.
1861
1862 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1863
1864 From Bernd Schmidt
1865 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1866 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1867 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1868 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1869 * config/bfin/lib1funcs.asm (___muldi3): New function.
1870
1871 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1872
1873 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1874 build_function_type_list instead of build_function_type.
1875 Rearrange initialization of `args' to do so.
1876
1877 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1878
1879 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1880 instead of build_function_type.
1881
1882 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1883
1884 * config/rs6000/rs6000.c (spe_init_builtins): Call
1885 build_function_type_list instead of build_function_type.
1886 (paired_init_builtins, altivec_init_builtins): Likewise.
1887 (builtin_function_type): Likewise.
1888
1889 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1890
1891 * config/sh/sh.c (sh_media_init_builtins): Call
1892 build_function_type_list instead of build_function_type.
1893
1894 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1895
1896 * config/sparc/sparc.c (sparc_file_end): Call
1897 build_function_type_list instead of build_function_type.
1898
1899 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1900
1901 * config/alpha/alpha.c (alpha_init_builtins): Call
1902 build_function_type_list instead of build_function_type.
1903
1904 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1905
1906 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1907 build_function_type_list instead of build_function_type.
1908
1909 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1910
1911 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1912 build_function_type_list instead of build_function_type.
1913 Delete `endlink' variable.
1914
1915 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1916
1917 * config/avr/avr.c (avr_init_builtins): Call
1918 build_function_type_list instead of build_function_type.
1919
1920 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1921
1922 * config/picochip/picochip.c (picochip_init_builtins): Call
1923 build_function_type_list instead of build_function_type.
1924 Delete `endlink' variable.
1925
1926 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1927
1928 * config/bfin/bfin.c (bfin_init_builtins): Call
1929 build_function_type_list instead of build_function_type.
1930
1931 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1932
1933 From Bernd Schmidt
1934 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1935 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1936
1937 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1938
1939 From Jie Zhang:
1940 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1941 libbffastfp overrides libgcc when -mfast-fp.
1942
1943 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1944
1945 Originally from Bernd Schmidt
1946 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1947 * config/bfin/bfin.c (override_options): Test it and error if
1948 TARGET_FDPIC.
1949
1950 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1951
1952 Originally From Bernd Schmidt
1953 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1954 FD-PIC.
1955
1956 2011-05-03 Jeff Law <law@redhat.com>
1957
1958 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1959 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1960 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1961 than accessing AUX field directly. Free the AUX field before
1962 clearing it.
1963 (thread_block, thread_through_loop_header): Likewise.
1964 (thread_single_edge, mark_threaded_blocks): Likewise.
1965 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1966 (register_jump_thread): Do not attempt to thread to a NULL edge.
1967
1968 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1969
1970 * function.c (init_function_start): Call decide_function_section.
1971 * varasm.c (decide_function_section): New function.
1972 (assemble_start_function): When not using
1973 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1974 or first_function_block_is_cold.
1975 * rtl.h (decide_function_section): Declare.
1976
1977 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1978 Jakub Jelinek <jakub@redhat.com>
1979
1980 PR target/48774
1981 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1982 only succeed if req_mode is the same as set_mode.
1983
1984 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1985
1986 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1987 * genemit.c (gen_exp): Handle RETURN.
1988 * emit-rtl.c (verify_rtx_sharing): Likewise.
1989 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1990 * rtl.c (copy_rtx): RETURN is shared.
1991 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1992 (ret_rtx): New.
1993 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1994 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1995 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1996 * config/cris/cris.c (cris_expand_return): Likewise.
1997 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1998 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1999 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2000 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2001 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2002 Likewise.
2003 * config/v850/v850.c (expand_epilogue): Likewise.
2004 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2005 * config/arm/arm.md (epilogue): Likewise.
2006 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2007 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2008 variable to ret_reg.
2009
2010 2011-05-03 Richard Guenther <rguenther@suse.de>
2011
2012 PR lto/48846
2013 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2014 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2015 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2016
2017 2011-05-03 Richard Guenther <rguenther@suse.de>
2018
2019 * c-decl.c (grokdeclarator): Instead of looking at
2020 TREE_OVERFLOW check if the constant fits in the index type.
2021
2022 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2023
2024 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2025 (vec_store_lanes<mode><mode>): Likewise.
2026
2027 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2028
2029 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2030 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2031 convert_optab_index values.
2032 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2033 * genopinit.c (optabs): Initialize the new optabs.
2034 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2035 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2036 (expand_STORE_LANES): New functions.
2037 * tree.h (build_array_type_nelts): Declare.
2038 * tree.c (build_array_type_nelts): New function.
2039 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2040 (vect_model_load_cost): Likewise.
2041 (vect_store_lanes_supported, vect_load_lanes_supported)
2042 (vect_record_strided_load_vectors): Declare.
2043 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2044 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2045 (vect_transform_strided_load): Split out statement recording into...
2046 (vect_record_strided_load_vectors): ...this new function.
2047 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2048 (write_vector_array, create_array_ref): New functions.
2049 (vect_model_store_cost): Add store_lanes_p argument.
2050 (vect_model_load_cost): Add load_lanes_p argument.
2051 (vectorizable_store): Try to use store-lanes functions for
2052 interleaved stores.
2053 (vectorizable_load): Likewise load-lanes and loads.
2054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2055 to vect_model_store_cost.
2056 (vect_build_slp_tree): Likewise vect_model_load_cost.
2057
2058 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2059
2060 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2061 * hooks.c (hook_bool_mode_uhwi_false): New function.
2062 * target.def (array_mode_supported_p): New hook.
2063 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2064 * doc/tm.texi: Regenerate.
2065 * stor-layout.c (mode_for_array): New function.
2066 (layout_type): Use it.
2067 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2068 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2069
2070 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2071
2072 PR target/48723
2073 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2074 for -fstack-check if the size to allocate is negative.
2075
2076 2011-05-02 Lawrence Crowl <crowl@google.com>
2077
2078 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2079 (timevar_cond_start): New for starting a timer only when it is not
2080 already running.
2081 (timevar_cond_stop): New for stopping a timer when it was not already
2082 running.
2083
2084 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2085 (timevar_cond_start): New as above.
2086 (timevar_cond_stop): New as above.
2087
2088 * timevar.def: Add start/stop timers for compiler phases,
2089 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2090 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2091 and TV_PHASE_FINALIZE.
2092 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2093 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2094 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2095 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2096 Make unused TV_OVERLOAD into a start/stop timer.
2097
2098 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2099 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2100 to indicate that they are start/stop timers.
2101
2102 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2103 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2104 Move initialization to do_compile.
2105 (do_compile): Add initialization from above.
2106 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2107
2108 * c-decl.c (c_write_global_declarations): Add start/stop of
2109 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2110
2111 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2112 or TV_PARSE_INLINE, as appropriate.
2113 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2114 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2115
2116 2011-05-02 Jason Merrill <jason@redhat.com>
2117
2118 PR c++/40975
2119 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2120
2121 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2122
2123 PR c/35445
2124 * c-decl.c (finish_decl): Only create a composite if the types are
2125 compatible.
2126
2127 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2128
2129 * config/fr30/fr30-protos.h (Mmode): Don't define.
2130 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2131 definition where used.
2132 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2133 define. Expand definitions where used.
2134 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2135 Expand definitions where used.
2136 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2137 rx_function_arg, rx_function_arg_advance,
2138 rx_function_arg_boundary): Expand definitions of those macros.
2139 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2140 definition where used.
2141
2142 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2143
2144 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2145 reg<->xmm moves.
2146 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2147 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2148 with *movv2sf_internal_rex64_avx.
2149 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2150 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2151 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2152 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2153 "vex" in "prefix" attribute calculation.
2154 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2155
2156 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2157
2158 PR target/47951
2159 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2160 inputs match the output.
2161
2162 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2163
2164 PR target/47955
2165 * config/m68k/m68k.c (m68k_expand_prologue): Set
2166 current_function_static_stack_size.
2167
2168 2011-05-02 Jan Hubicka <jh@suse.cz>
2169
2170 * lto-streamer.c (lto_streamer_cache_insert_1,
2171 lto_streamer_cache_lookup, lto_streamer_cache_create,
2172 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2173 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2174
2175 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2176
2177 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2178 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2179 config/m68k/t-opts: New files.
2180 * config/m68k/m68k-tables.opt: New file (generated).
2181 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2182 extra_options and m68k/t-opts to tmake_file.
2183 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2184 (all_isas): Initialize using m68k-isas.def.
2185 (all_microarchs): Initialize using m68k-microarchs.def.
2186 (m68k_find_selection): Remove.
2187 (m68k_handle_option): Don't assert that global structures are in
2188 use. Use error_at. Access variables via opts pointer. Don't
2189 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2190 directly for -m68020-40 and -m68020-60.
2191 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2192 m68k_tune_entry here.
2193 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2194 to m68k-opts.h.
2195 (m68k_library_id_string): Remove declaration.
2196 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2197 (m68k_library_id_string): New Variable.
2198 (march=, mcpu=, mtune=): Use Enum and Var.
2199
2200 2011-05-02 Richard Guenther <rguenther@suse.de>
2201
2202 * varasm.c (output_constructor_regular_field): Compute zero-based
2203 index with double-ints. Make sure to ICE instead of producing
2204 wrong code.
2205 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2206 in asserts. Properly use a signed type.
2207
2208 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2209
2210 * config/i386/sse.md (V): New mode iterator.
2211 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2212 TARGET_SSE2.
2213 (V_256): Rename from AVX256MODE.
2214 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2215 condition to all users.
2216 (VF1): Ditto.
2217 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2218 condition to all users.
2219 (VF_128): Make V4SF mode unconditional.
2220 (VF_256): Rename from AVX256MODEF2P.
2221 (VI4F_128): Rename from SSEMODE4S.
2222 (VI8F_128): Rename from SSEMODE2D.
2223 (VI4F_256): Rename from AVX256MODE8P.
2224 (VI8F_256): Rename from AVX256MODE4P.
2225 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2226 (ssescalarmodesuffix): Remove SF and DF modes.
2227 (SSEMODE124): Remove.
2228 (SSEMODE1248): Ditto.
2229 (SSEMODEF2P): Ditto.
2230 (AVXMODEF2P): Ditto.
2231 (AVXMODEFDP): Ditto.
2232 (AVXMODEFSP): Ditto.
2233 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2234 unconditional.
2235 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2236 unconditional.
2237 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2238 xop_pcmov_<mode>256. Use V mode iterator.
2239
2240 Adjust RTX patterns globally for renamed mode attributes.
2241
2242 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2243
2244 * haifa-sched.c (sched_emit_insn): Emit insn before first
2245 non-scheduled insn. Inform back-end about new insn. Add
2246 new insn to scheduled_insns list.
2247
2248 2011-05-02 Richard Guenther <rguenther@suse.de>
2249
2250 PR tree-optimization/48822
2251 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2252 (process_scc): Indicate which iteration we start.
2253
2254 2011-05-02 Jan Hubicka <jh@suse.cz>
2255
2256 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2257 (lto_section_overrun): New.
2258 * lto-section-out.c (append_block): Rename to ...
2259 (lto_append_block): ... this one; export.
2260 (lto_output_1_stream): Move lto lto-streamer.h
2261 (lto_output_data_stream): Update.
2262 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2263 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2264 functions.
2265
2266 2011-05-02 Richard Guenther <rguenther@suse.de>
2267
2268 * tree.c (tree_code_counts): New global array.
2269 (record_node_allocation_statistics): Count individual tree codes.
2270 (dump_tree_statistics): Dump individual code stats.
2271
2272 2011-05-01 Jan Hubicka <jh@suse.cz>
2273
2274 * ipa-inline.c (caller_growth_limits): Fix thinko when
2275 looking for largest stack frame.
2276 * ipa-inline.h (dump_inline_summary): Declare.
2277 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2278 on stack usage.
2279 (dump_inline_summary): Export.
2280 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2281
2282 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2283
2284 * reginfo.c (memory_move_cost): Change rclass argument type form
2285 'enum reg_class' to reg_class_t.
2286 * reload.h (memory_move_cost): Update prototype.
2287 * postreload.c reload_cse_simplify_set): Change type dclass var to
2288 reg_class_t.
2289 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2290 Update prototype.
2291 (ira_allocate_and_set_costs): Change aclass argument type form
2292 'enum reg_class' to reg_class_t.
2293 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2294 Change aclass argument type to reg_class_t.
2295 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2296 to reg_class_t.
2297 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2298 memory_move_cost call.
2299
2300 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2301 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2302 Change type tmp var to reg_class_t.
2303
2304 2011-04-30 Jan Hubicka <jh@suse.cz>
2305
2306 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2307 inlining into function with flatten attribute.
2308 (want_inline_small_function_p): Be more realistic about inlining
2309 cold calls where callee size grows.
2310
2311 2011-04-30 Jan Hubicka <jh@suse.cz>
2312
2313 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2314 flags.
2315
2316 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2317
2318 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2319 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2320 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2321 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2322 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2323 (print_operand): Rename to...
2324 (sparc_print_operand): ...this. Make static. Adjust
2325 sparc_print_operand function call.
2326 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2327 functions.
2328
2329 2011-04-30 Jan Hubicka <jh@suse.cz>
2330
2331 PR middle-end/48752
2332 * ipa-inline.c (early_inliner): Disable when doing late
2333 addition of function.
2334
2335 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2336
2337 * dwarf2out.c (get_address_mode): New inline.
2338 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2339 if not dwarf_strict emit
2340 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2341 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2342 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2343 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2344 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2345 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2346 mem_loc_descriptor callers.
2347 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2348 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2349 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2350 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2351 (base_types): New variable.
2352 (get_base_type_offset, calc_base_type_die_sizes,
2353 base_type_for_mode, mark_base_types, base_type_cmp,
2354 move_marked_base_types): New functions.
2355 (calc_die_sizes): Assert that die_offset is 0 or equal to
2356 next_die_offset.
2357 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2358 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2359 callers. If not dwarf_strict, call mem_loc_descriptor even for
2360 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2361 (gen_subprogram_die): Don't give up on call site parameters
2362 with non-integral or large integral modes. Adjust
2363 mem_loc_descriptor callers.
2364 (prune_unused_types): Call prune_unused_types_mark on base_types
2365 vector entries.
2366 (resolve_addr): Call mark_base_types.
2367 (dwarf2out_finish): Call move_marked_base_types.
2368
2369 PR tree-optimization/48809
2370 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2371 type.
2372 (gen_inbound_check): Don't compute index_expr - range_min in utype
2373 again, instead reuse SSA_NAME initialized in build_arrays.
2374 Remove two useless gsi_for_stmt calls.
2375
2376 2011-04-29 Jeff Law <law@redhat.com>
2377
2378 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2379
2380 2011-04-29 Martin Jambor <mjambor@suse.cz>
2381
2382 * cgraph.h (cgraph_postorder): Remove declaration.
2383 * ipa-utils.h (ipa_free_postorder_info): Declare.
2384 (ipa_reverse_postorder): Likewise.
2385 * cgraphunit.c: Include ipa-utils.h.
2386 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2387 * ipa-inline.c: Include ipa-utils.h.
2388 (ipa_inline): Update call to ipa_reverse_postorder.
2389 * ipa-pure-const.c (propagate_pure_const): Update call to
2390 ipa_reduced_postorder and ipa_print_order. Call
2391 ipa_free_postorder_info to clean up.
2392 (propagate_nothrow): Likewise.
2393 * ipa-reference.c (propagate): Removed a useless call to
2394 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2395 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2396 * ipa.c: Include ipa-utils.h.
2397 (ipa_profile): Update call to ipa_reverse_postorder.
2398 (cgraph_postorder): Moved to...
2399 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2400 (ipa_utils_print_order): Renamed to ipa_print_order.
2401 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2402 comments.
2403 (ipa_free_postorder_info): New function.
2404 * passes.c: Include ipa-utils.h.
2405 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2406 (ipa_write_summaries): Likewise.
2407 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2408 (cgraphunit.o): Likewise.
2409 (ipa.o): Likewise.
2410 (ipa-inline.o): Likewise.
2411
2412 2011-04-29 Jan Hubicka <jh@suse.cz>
2413
2414 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2415 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2416 * ipa-inline.h (clause_t): Turn into unsigned int.
2417 * ipa-inline-analysis.c (add_clause): Do more simplification.
2418 (and_predicates): Shortcut more cases.
2419 (predicates_equal_p): Move forward; check that clauses are properly
2420 ordered.
2421 (or_predicates): Shortcut more cases.
2422 (edge_execution_predicate): Rewrite as...
2423 (set_cond_stmt_execution_predicate): ... this function; handle
2424 __builtin_constant_p.
2425 (set_switch_stmt_execution_predicate): New .
2426 (compute_bb_predicates): New.
2427 (will_be_nonconstant_predicate): Update TODO.
2428 (estimate_function_body_sizes): Use compute_bb_predicates
2429 and free them later, always try to estimate if stmt is constant.
2430 (estimate_time_after_inlining, estimate_size_after_inlining):
2431 Gracefully handle optimized out edges.
2432 (read_predicate): Fix off by one error.
2433
2434 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2435
2436 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2437
2438 2011-04-27 Xinliang David Li <davidxl@google.com>
2439
2440 * tree-profile.c (init_ic_make_global_vars): Set
2441 tls attribute on ic vars.
2442 * coverage.c (coverage_end_function): Initialize
2443 function_list with zero.
2444
2445 2011-04-29 Richard Guenther <rguenther@suse.de>
2446
2447 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2448 for the type of the result.
2449 (fold_builtin_isascii): Likewise.
2450 (fold_builtin_toascii): Use integer_type_node where appropriate.
2451 (fold_builtin_logb): Likewise.
2452 (fold_builtin_frexp): Likewise.
2453 (fold_builtin_strstr): Likewise.
2454 (fold_builtin_strpbrk): Likewise.
2455 (fold_builtin_fputs): Likewise.
2456 (fold_builtin_sprintf): Likewise.
2457 (fold_builtin_snprintf): Likewise.
2458 (fold_builtin_printf): Likewise.
2459 (do_mpfr_remquo): Use a proper type for the assigned constant.
2460 (do_mpfr_lgamma_r): Likewise.
2461 * dwarf2out.c (resolve_one_addr): Use size_int.
2462 * except.c (init_eh): Likewise.
2463 (assign_filter_values): Use integer_type_node for filter values.
2464 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2465 indices.
2466 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2467 for EH region numbers.
2468 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2469 for the shift amount.
2470
2471 2011-04-29 Richard Guenther <rguenther@suse.de>
2472
2473 * expr.h (expand_shift): Rename to ...
2474 (expand_variable_shift): ... this.
2475 (expand_shift): Take a constant shift amount.
2476 * expmed.c (expand_shift): Rename to ...
2477 (expand_variable_shift): ... this.
2478 (expand_shift): New wrapper around expand_variable_shift.
2479 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2480 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2481 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2482 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2483 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2484 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2485 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2486 emit_store_flag_1, emit_store_flag): Likewise.
2487 * builtins.c (expand_builtin_signbit): Likewise.
2488 * calls.c (load_register_parameters): Likewise.
2489 * function.c (assign_parm_setup_block): Likewise.
2490 * lower-subreg.c (resolve_shift_zext): Likewise.
2491 * optabs.c (widen_bswap, expand_abs_nojump,
2492 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2493 * spu/spu.c (spu_expand_extv): Likewise.
2494 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2495
2496 2011-04-29 Richard Guenther <rguenther@suse.de>
2497
2498 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2499 for the remapped region number.
2500 * predict.c (build_predict_expr): Use integer_type_node for the
2501 predict kind.
2502 * fold-const.c (fold_binary_loc): Use integer_type_node for
2503 the shift amount. Use a proper type for the PLUS_EXPR operand.
2504
2505 2011-04-29 Michael Matz <matz@suse.de>
2506
2507 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2508 other trees that just builtins.
2509 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2510
2511 2011-04-29 Richard Guenther <rguenther@suse.de>
2512
2513 * tree-nested.c (get_trampoline_type): Use size_int.
2514 (get_nl_goto_field): Likewise.
2515 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2516 for all indexes.
2517 (lower_eh_constructs_2): Likewise.
2518 (lower_resx): Likewise.
2519 (lower_eh_dispatch): Likewise.
2520 * tree-mudflap.c (mf_build_string): Use size_int.
2521 (mudflap_register_call): Use integer_type_node for the flag.
2522 (mudflap_enqueue_constant): Use size_int.
2523 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2524 instead of rebuilding it.
2525
2526 2011-04-29 Richard Guenther <rguenther@suse.de>
2527
2528 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2529 Handle OBJ_TYPE_REF.
2530 (find_func_aliases_for_call): Use it more consistently.
2531
2532 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2533
2534 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2535 (rank_for_schedule): Use it.
2536 (schedule_block): Set it.
2537
2538 2011-04-28 David Li <davidxl@google.com>
2539
2540 * tree.c (crc32_string): Use crc32_byte.
2541 (crc32_byte): New function.
2542 * tree.h (crc32_byte): New function.
2543 * gcov.c (read_graph_file): Handle new cfg_cksum.
2544 (read_count_file): Ditto.
2545 * profile.c (instrument_values): Ditto.
2546 (get_exec_counts): Ditto.
2547 (read_profile_edge_counts): Ditto.
2548 (compute_branch_probabilities): Ditto.
2549 (compute_value_histograms): Ditto.
2550 (branch_prob): Ditto.
2551 (end_branch_prob): Ditto.
2552 * coverage.c (read_counts_file): Ditto.
2553 (get_coverage_counts): Ditto.
2554 (tree_coverage_counter_addr): Ditto.
2555 (coverage_checksum_string): Ditto.
2556 (coverage_begin_output): Ditto.
2557 (coverage_end_function): Ditto.
2558 (build_fn_info_type): Ditto.
2559 (build_fn_info_value): Ditto.
2560 * libgcov.c (gcov_exit): Ditto.
2561 * gcov-dump.c (tag_function): Ditto.
2562 (compute_checksum): Remove.
2563
2564 2011-04-29 Alan Modra <amodra@gmail.com>
2565
2566 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2567 unspec plus offset. Tidy macho code.
2568
2569 2011-04-29 Martin Jambor <mjambor@suse.cz>
2570
2571 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2572 node instead of a decl. Update all callers.
2573 * cgraph.h: Update declaration.
2574
2575 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2576
2577 PR tree-optimization/48765
2578 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2579 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2580 to indicate if loop aware SLP is being used. Scan the statements
2581 and update the vectorization factor according to the type of
2582 vectorization before statement analysis.
2583 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2584 pass it to vect_analyze_loop_operations.
2585 (vectorizable_reduction): Set number of copies to 1 in case of pure
2586 SLP statement.
2587 * tree-vect-stmts.c (vectorizable_conversion,
2588 vectorizable_assignment, vectorizable_shift,
2589 vectorizable_operation, vectorizable_type_demotion,
2590 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2591 Likewise.
2592 (vectorizable_condition): Move the check that it is not SLP
2593 vectorization before the number of copies check.
2594 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2595 to vectorize the loop using SLP.
2596
2597 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2598
2599 PR middle-end/48597
2600 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2601 inline asm.
2602
2603 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2604
2605 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2606 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2607 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2608 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2609 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2610 linux*.h headers.
2611 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2612 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2613 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2614 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2615 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2616 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2617 REG_NAME.
2618 * config/i386/linux.h (REG_NAME): Don't define.
2619 * config/i386/linux64.h (REG_NAME): Don't define.
2620 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2621 Undefine before defining.
2622
2623 2011-04-28 Jan Hubicka <jh@suse.cz>
2624
2625 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2626 nonconstant_names array.
2627 (estimate_function_body_sizes): Build nonconstant_names array; handle
2628 BUILT_IN_CONSTANT_P.
2629
2630 2011-04-28 Richard Guenther <rguenther@suse.de>
2631
2632 PR bootstrap/48804
2633 Revert
2634 2011-04-28 Richard Guenther <rguenther@suse.de>
2635
2636 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2637 as late as possible.
2638
2639 2011-04-28 Richard Guenther <rguenther@suse.de>
2640
2641 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2642 (debug_constraint): Do it here.
2643 (dump_constraints): And here.
2644 (rewrite_constraints): And here.
2645 (dump_constraint_edge): Remove.
2646 (dump_constraint_graph): Rewrite to produce DOT output.
2647 (solve_constraints): Build succ graph as late as possible.
2648 Dump constraint graphs before and after solving.
2649
2650 2011-04-28 Richard Guenther <rguenther@suse.de>
2651
2652 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2653 New function split out from ...
2654 (find_func_aliases): ... here. Call it.
2655 (find_func_aliases_for_call): Likewise.
2656
2657 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2658
2659 * internal-fn.h (internal_fn_name_array): Declare.
2660 (internal_fn_flags_array): Likewise.
2661
2662 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2663
2664 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2665 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2666 Move from sse.md.
2667 (ssemodefsuffix): Remove.
2668 (ssevecmodesuffix): New mode attribute.
2669 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2670 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2671 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2672 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2673 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2674 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2675 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2676 ssemodesuffix mode attribute.
2677 (float splitters): Use ssevecmodesuffix mode attribute.
2678 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2679 (sseinsmode): Rename from avxvecmode.
2680 (avxsizesuffix): Rename from avxmodesuffix.
2681 (sseintvecmode): Rename from avxpermvecmode.
2682 (ssedoublevecmode): Rename from ssedoublesizemode.
2683 (ssehalfvecmode): Rename from avxhalfvecmode.
2684 (ssescalarmode): Rename from avxscalarmode.
2685 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2686 templates for ssemodesuffix mode attribute.
2687 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2688 mode attribute.
2689
2690 Adjust RTX patterns globally for renamed mode attributes.
2691
2692 2011-04-27 Jan Hubcika <jh@suse.cz>
2693
2694 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2695 * ipa-inline-analysis.c: Include alloc-pool.h.
2696 (edge_predicate_pool): New.
2697 (trye_predicate_p): New function
2698 (false_predicate_p): New function.
2699 (add_clause): Sanity check that false clauses are "optimized";
2700 never add clauses to predicate that is already known to be false.
2701 (and_predicate): Use flase_predicate_p.
2702 (evaulate_predicate): Rename to ...
2703 (evaluate_predicate): ... this one; update all callers; assert
2704 that false is not listed among possible truths.
2705 (dump_predicate): Use true_predicate_p.
2706 (account_size_time): Use false_predicate_p.
2707 (evaulate_conditions_for_edge): Rename to ...
2708 (evaluate_conditions_for_edge) ... this one.
2709 (edge_set_predicate): New function.
2710 (inline_edge_duplication_hook): Duplicate edge predicates.
2711 (inline_edge_removal_hook): Free edge predicates.
2712 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2713 (dump_inline_summary): Update.
2714 (estimate_function_body_sizes): Set edge predicates.
2715 (estimate_calls_size_and_time): Handle predicates.
2716 (estimate_callee_size_and_time): Update.
2717 (remap_predicate): Add toplev_predicate; update comment.
2718 (remap_edge_predicates): New function.
2719 (inline_merge_summary): Compute toplev predicate; update.
2720 (read_predicate): New function.
2721 (read_inline_edge_summary): Use it.
2722 (inline_read_section): Likewise.
2723 (write_predicate): New function.
2724 (write_inline_edge_summary): Use it.
2725 (inline_write_summary): Likewise.
2726 (inline_free_summary): Free alloc pool and edge summary vec.
2727
2728 2011-04-27 Richard Guenther <rguenther@suse.de>
2729
2730 * tree-ssa-structalias.c (changed_count): Remove.
2731 (changed): Use a bitmap.
2732 (unify_nodes): Adjust.
2733 (do_sd_constraint): Likewise.
2734 (do_ds_constraint): Likewise.
2735 (do_complex_constraint): Likewise.
2736 (solve_graph): Likewise.
2737
2738 2011-04-27 Jan Hubicka <jh@suse.cz>
2739
2740 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2741
2742 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2743
2744 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2745 (avx_vperm2f128_*_operand): Ditto.
2746 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2747 Use avx_vpermilp_parallel in insn condition.
2748 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2749 Use avx_vperm2f128_parallel in insn condition.
2750
2751 2011-04-27 Richard Guenther <rguenther@suse.de>
2752
2753 * Makefile.in (tree-ssa-structalias.o): Remove
2754 gt-tree-ssa-structalias.h dependency.
2755 (GTFILES): Remove tree-ssa-structalias.c.
2756 * tree.c (allocate_decl_uid): New function.
2757 (make_node_stat): Use it.
2758 (copy_node_stat): Likewise.
2759 * tree.h (allocate_decl_uid): Declare.
2760 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2761 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2762 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2763 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2764 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2765 (struct heapvar_map): Likewise.
2766 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2767 heapvar_insert): Likewise.
2768 (make_heapvar_for): Rename to ...
2769 (make_heapvar): ... this. Simplify.
2770 (fake_var_decl_obstack): New global var.
2771 (build_fake_var_decl): New function.
2772 (make_constraint_from_heapvar): Adjust.
2773 (handle_lhs_call): Likewise.
2774 (create_function_info_for): Likewise.
2775 (intra_create_variable_infos): Likewise.
2776 (init_alias_vars): Allocate fake_var_decl_obstack.
2777 (init_alias_heapvars, delete_alias_heapvars): Remove.
2778 (compute_points_to_sets): Do not call init_alias_heapvars.
2779 (ipa_pta_execute): Likewise.
2780 (delete_points_to_sets): Free fake_var_decl_obstack.
2781
2782 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2783
2784 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2785 (si_from_UTItype, si_to_UTItype): New functions.
2786 (__udivmodti4): Use them to implement type-punning.
2787 * config/spu/multi3.c (union qword_TItype): New data type.
2788 (si_from_TItype, si_to_TItype): New functions.
2789 (__multi3): Use them to implement type-punning.
2790
2791 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2792
2793 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2794
2795 2011-04-27 Jan Hubicka <jh@suse.cz>
2796
2797 * ipa-prop.c (function_insertion_hook_holder): New holder.
2798 (ipa_add_new_function): New function.
2799 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2800 Register/deregister holder.
2801
2802 2011-04-27 Richard Guenther <rguenther@suse.de>
2803
2804 PR tree-optimization/48772
2805 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2806
2807 2011-04-27 Richard Guenther <rguenther@suse.de>
2808
2809 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2810 TARGET_MEM_REF handling.
2811
2812 2011-04-27 Nick Clifton <nickc@redhat.com>
2813
2814 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2815 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2816 (REG_CLASS_NAMES): Likewise.
2817 (REG_CLASS_CONTENTS): Likewise.
2818 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2819 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2820 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2821 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2822 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2823 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2824 duplicate register classes.
2825 (frv_class_likely_spilled_p): Likewise.
2826 (frv_register_move_cost): Likewise.
2827
2828 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2829 end of the regno_reg_class array.
2830
2831 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2832
2833 PR c/48742
2834 * c-typeck.c (build_binary_op): Don't wrap arguments if
2835 int_operands is true.
2836
2837 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2838
2839 PR target/48767
2840 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2841 targetm.calls.must_pass_in_stack for void type.
2842
2843 2011-04-26 Jan Hubicka <jh@suse.cz>
2844
2845 * cgraphbuild.c (build_cgraph_edges): Update call
2846 of cgraph_create_edge and cgraph_create_indirect_edge.
2847 * cgraph.c (cgraph_create_edge_including_clones,
2848 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2849 cgraph_update_edges_for_call_stmt_node): Do not take nest
2850 argument; do not initialize call_stmt_size/time.
2851 (dump_cgraph_node): Do not dump nest.
2852 (cgraph_clone_edge): Do not take loop_nest argument;
2853 do not propagate it; do not clone call_stmt_size/time.
2854 (cgraph_clone_node): Likewise.
2855 (cgraph_create_virtual_clone): Update.
2856 * cgraph.h (struct cgraph_edge): Remove
2857 call_stmt_size/call_stmt_time/loop_nest.
2858 (cgraph_create_edge, cgraph_create_indirect_edge,
2859 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2860 prototype.
2861 * tree-emutls.c (gen_emutls_addr): Update.
2862 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2863 loop_nest; handle indirect calls, too.
2864 (clone_inlined_nodes): Do not care about updating inline summaries.
2865 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2866 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2867 stream call_stmt_size/call_stmt_time/loop_nest.
2868 * ipa-inline.c (edge_badness): Update.
2869 (ipa_inline): dump summaries after inlining.
2870 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2871 New.
2872 (inline_edge_summary): New function.
2873 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2874 (inline_edge_removal_hook): Handle edge summaries.
2875 (inline_edge_duplication_hook): New hook.
2876 (inline_summary_alloc): Alloc hooks.
2877 (initialize_growth_caches): Do not register removal hooks.
2878 (free_growth_caches); Do not free removal hook.
2879 (dump_inline_edge_summary): New function.
2880 (dump_inline_summary): Use it.
2881 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2882 (inline_update_callee_summaries): New function.
2883 (inline_merge_summary): Use it.
2884 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2885 (read_inline_edge_summary): New function.
2886 (inline_read_section): Use it.
2887 (write_inline_edge_summary): New function.
2888 (inline_write_summary): Use it.
2889 (inline_free_summary): Free edge new holders.
2890 * tree-inline.c (copy_bb): Update.
2891
2892 2011-04-26 Jason Merrill <jason@redhat.com>
2893
2894 * tree-eh.c (lower_try_finally_switch): Create the label along with
2895 the CASE_LABEL_EXPR.
2896
2897 2011-04-26 David S. Miller <davem@davemloft.net>
2898 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2899
2900 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2901 * configure: Regenerate.
2902
2903 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2904
2905 PR target/48258
2906 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2907 reduction.
2908 (VEC_reduc): New code iterator and splitters for vector reduction.
2909 (VEC_reduc_name): Ditto.
2910 (VEC_reduc_rtx): Ditto.
2911 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2912 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2913
2914 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2915 support for extracting SF on VSX.
2916
2917 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2918 generating xscvspdp.
2919 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2920 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2921 double add, minimum, maximum vector reduction.
2922 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2923 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2924 optimize double vector reduction.
2925 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2926
2927 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2928
2929 * config/fr30/fr30.h (inhibit_libc): Don't define.
2930 * config/m32r/m32r-protos.h: Correct comment.
2931 * config/v850/v850.h (GHS_default_section_names,
2932 GHS_current_section_names): Use tree, not union tree_node *.
2933
2934 2011-04-26 Xinliang David Li <davidxl@google.com>
2935
2936 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2937 * c-family/c-opts.c (c_common_handle_option): Set
2938 warn_maybe_uninitialized.
2939 * opts.c (common_handle_option): Ditto.
2940 * common.opt: New option.
2941 * tree-ssa.c (warn_uninit): Add one more parameter.
2942 (warn_uninitialized_var): Pass warning code.
2943 * tree-flow.h: Interface change.
2944
2945
2946 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2947
2948 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2949 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2950 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2951
2952 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2953
2954 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2955 * config/mips/mips.opt (mmips-tfile): Remove.
2956
2957 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2958 mips-tdump reference to ...
2959 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2960 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2961 reference by Tru64 UNIX.
2962
2963 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2964
2965 PR debug/48768
2966 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2967 is error_mark_node, set value to NULL.
2968
2969 PR tree-optimization/48734
2970 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2971 if return value from maybe_fold_*_comparsions isn't something
2972 the code is prepared to handle.
2973
2974 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2975
2976 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2977 mode check.
2978 (ext_QIreg_nomode_operands): Remove.
2979 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2980 (*andsi_1): Ditto.
2981 (*andhi_1): Ditto.
2982
2983 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2984
2985 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2986
2987 2011-04-26 Richard Guenther <rguenther@suse.de>
2988
2989 * c-typeck.c (build_unary_op): Do not expand array-refs via
2990 pointer arithmetic. Only adjust qualifiers for function types.
2991
2992 2011-04-26 Richard Guenther <rguenther@suse.de>
2993
2994 PR middle-end/48694
2995 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2996 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2997 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2998 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2999
3000 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3001
3002 * doc/extend.texi: Document __underlying_type.
3003
3004 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3005
3006 * config/rs6000/titan.md (automata_option "progress"): Remove.
3007
3008 2011-04-25 Jeff Law <law@redhat.com>
3009
3010 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3011
3012 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 * system.h (ENUM_BITFIELD): Remove.
3015
3016 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3017 Eric Botcazou <ebotcazou@adacore.com>
3018
3019 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3020 for STORE_FLAG_VALUE==-1 case.
3021
3022 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3023
3024 PR target/43804
3025 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3026 LEGITIMATE_PIC_OPERAND_P.
3027
3028 2011-04-24 Jan Hubicka <jh@suse.cz>
3029
3030 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3031 WPA hack.
3032 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3033 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3034 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3035 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3036 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3037 Sanity check predicate length.
3038 (remap_predicate): Likewise; sanity check jump functions.
3039 (inline_read_section, inline_write_summary): Sanity check
3040 predicate length.
3041
3042 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3043
3044 PR other/48748
3045 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3046 __is_literal_type, and __is_trivial; update throughout about
3047 possibly cv-qualified void types.
3048
3049 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3050
3051 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3052 testsuite and make it version agnostic.
3053
3054 2011-04-22 Jan Hubicka <jh@suse.cz>
3055
3056 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3057
3058 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3059
3060 PR c/48685
3061 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3062 to VOID_TYPE even around MODIFY_EXPR.
3063
3064 2011-04-22 Mike Stump <mikestump@comcast.net>
3065
3066 * gensupport.c (read_md_rtx): Fix typo in comment.
3067 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3068 comment.
3069
3070 2011-04-22 Jan Hubicka <jh@suse.cz>
3071
3072 * gengtype.c (open_base_files): Add ipa-inline.h include.
3073 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3074 ipa-prop.c; update all uses.
3075 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3076 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3077 merge summary of inlined function into former caller.
3078 * ipa-inline.c (max_benefit): Remove.
3079 (edge_badness): Compensate for removal of benefits.
3080 (update_caller_keys): Use
3081 reset_node_growth_cache/reset_edge_growth_cache.
3082 (update_callee_keys): Likewise.
3083 (update_all_callee_keys): Likewise.
3084 (inline_small_functions): Do not collect max_benefit; do not reset
3085 estimated_growth; call free_growth_caches and initialize_growth_caches.
3086 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3087 struct size_time_entry): New structures.
3088 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3089 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3090 and estimated_growth.
3091 (edge_growth_cache_entry): New structure.
3092 (node_growth_cache, edge_growth_cache): New global vars.
3093 (estimate_growth): Turn into inline.
3094 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3095 initialize_growth_caches, free_growth_caches): Declare.
3096 (estimate_edge_growth): Rewrite.
3097 (estimate_edge_time): Implement as inline cache lookup.
3098 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3099 functions.
3100 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3101 (NUM_CONDITIONS): New constant.
3102 (predicate_conditions): New enum.
3103 (IS_NOT_CONSTANT): New constant.
3104 (edge_removal_hook_holder): New var.
3105 (node_growth_cache, edge_growth_cache): New global vars.
3106 (true_predicate, single_cond_predicate, false_predicate,
3107 not_inlined_predicate, add_condition, add_clause, and_predicates,
3108 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3109 dump_clause, dump_predicate, account_size_time,
3110 evaulate_conditions_for_edge): New functions.
3111 (inline_summary_alloc): Move to heap.
3112 (inline_node_removal_hook): Clear condition and entry vectors.
3113 (inline_edge_removal_hook): New function.
3114 (initialize_growth_caches, free_growth_caches): New function.
3115 (dump_inline_summary): Update.
3116 (edge_execution_predicate): New function.
3117 (will_be_nonconstant_predicate): New function.
3118 (estimate_function_body_sizes): Compute BB and constantness predicates.
3119 (compute_inline_parameters): Do not clear estimated_growth.
3120 (estimate_edge_size_and_time): New function.
3121 (estimate_calls_size_and_time): New function.
3122 (estimate_callee_size_and_time): New function.
3123 (remap_predicate): New function.
3124 (inline_merge_summary): New function.
3125 (do_estimate_edge_time): New function based on...
3126 (estimate_edge_time): ... this one.
3127 (do_estimate_edge_growth): New function.
3128 (do_estimate_growth): New function based on....
3129 (estimate_growth): ... this one.
3130 (inline_analyze_function): Analyze after deciding on jump functions.
3131 (inline_read_section): New function.
3132 (inline_read_summary): Use it.
3133 (inline_write_summary): Write all the new data.
3134 * ipa-prop.c (ipa_get_param_decl_index): Export.
3135 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3136 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3137 Declare.
3138 (ipa_get_lattice): Move here from ipa-cp.c
3139 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3140 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3141 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3142 cgraph_edge_inlinable_p): Remove.
3143 * cgraphunit.c: Include ipainline.h
3144 (cgraph_process_new_functions): Update call of
3145 compute_inline_parameters.
3146
3147 2011-04-22 Richard Guenther <rguenther@suse.de>
3148
3149 * tree.c (build_int_cst): Properly create canonicalized integer
3150 constants.
3151 (build_int_cst_type): Remove scary comments.
3152
3153 2011-04-22 Xinliang David Li <davidxl@google.com>
3154
3155 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3156 by default when -Wno-error is not specified.
3157 * opts-global.c (decode_options): Remove call to
3158 control_warning_options.
3159
3160 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3161
3162 PR tree-optimization/48717
3163 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3164 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3165
3166 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3167
3168 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3169 definition where used.
3170
3171 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3172
3173 PR c/48716
3174 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3175 TREE_STATIC variables declared inside of some OpenMP construct.
3176
3177 2011-04-22 Martin Jambor <mjambor@suse.cz>
3178
3179 PR middle-end/48585
3180 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3181
3182 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3183
3184 PR c/36750
3185 * c-typeck.c (pop_init_level): Do not warn about initializing
3186 with ` = {0}'.
3187
3188 2011-04-22 Alan Modra <amodra@gmail.com>
3189
3190 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3191 when returning call_cookie.
3192 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3193 pointers, to functions with no more vector args than the current
3194 function, and some non-local calls for ABI_V4.
3195 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3196 sibcall_nonlocal_aix64): Combine to ..
3197 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3198 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3199 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3200 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3201 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3202 operand.
3203 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3204 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3205 sibcall_value_symbolic_64): Delete.
3206
3207 2011-04-21 Xinliang David Li <davidxl@google.com>
3208
3209 * cgraph.h: Remove pid.
3210 * cgraph.c: Remove pid.
3211 * value-prof.c (init_node_map): New function.
3212 (del_node_map): New function.
3213 (find_func_by_funcdef_no): New function.
3214 (gimple_ic_transform): Call new function.
3215 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3216 * function.c (get_last_funcdef_no): New function.
3217 * function.h (get_last_funcdef_no): New function.
3218 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3219 to libgcov function.
3220 (tree-profiling): Call node map init and delete function.
3221
3222 2011-04-21 Ian Lance Taylor <iant@google.com>
3223
3224 * godump.c (go_format_type): Use exported Go name for anonymous
3225 field name.
3226
3227 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3228
3229 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3230 Call builtin_function_type_list instead of builtin_function_type.
3231 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3232
3233 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3234
3235 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3236 build_function_type_list instead of build_function_type.
3237 Delete variable `endlink'.
3238
3239 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3240
3241 * config/s390/s390.c (s390_init_builtins): Call
3242 build_function_type_list instead of build_function_type.
3243
3244 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3245
3246 * config/ia64/ia64.c (ia64_init_builtins): Call
3247 build_function_type_list instead of builtin_function_type.
3248
3249 2011-04-21 Easwaran Raman <eraman@google.com>
3250
3251 * cfgexpand.c (stack_var): Remove OFFSET...
3252 (add_stack_var): ...and its reference here...
3253 (expand_stack_vars): ...and here.
3254 (stack_var_cmp): Sort by descending order of size.
3255 (partition_stack_vars): Change heuristic.
3256 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3257 (dump_stack_var_partition): Add newline after each partition.
3258
3259 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3260 Jeff Law <law@redhat.com>
3261
3262 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3263 * gengtype.c (matching_file_name_substitute): Likewise.
3264
3265 2011-04-21 Richard Guenther <rguenther@suse.de>
3266
3267 PR lto/48703
3268 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3269
3270 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3271
3272 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3273
3274 2011-04-21 Richard Guenther <rguenther@suse.de>
3275
3276 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3277 file name.
3278
3279 2011-04-21 Richard Guenther <rguenther@suse.de>
3280
3281 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3282 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3283 Use DECL_P, not SSA_VAR_P.
3284 (ptr_derefs_may_alias_p): Likewise.
3285 (ptr_deref_may_alias_ref_p_1): Likewise.
3286 (decl_refs_may_alias_p): Likewise.
3287 (refs_may_alias_p_1): Likewise.
3288 (ref_maybe_used_by_call_p_1): Likewise.
3289 (call_may_clobber_ref_p_1): Likewise.
3290 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3291 are either MEM_REF or TARGET_MEM_REF.
3292 (indirect_refs_may_alias_p): Likewise.
3293 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3294 for MEM_EXPR of indirect calls.
3295
3296 2011-04-21 Tristan Gingold <gingold@adacore.com>
3297
3298 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3299 (dst_file_info_struct): Remove flen field.
3300 (lookup_filename): Remove code that set flen field.
3301
3302 2011-04-21 Tristan Gingold <gingold@adacore.com>
3303
3304 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3305
3306 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3307
3308 PR target/48708
3309 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3310 vec_extract and vec_concat for non-SSE4_1 targets.
3311
3312 2011-04-21 Richard Guenther <rguenther@suse.de>
3313
3314 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3315 return statements.
3316
3317 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3318
3319 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3320 undefine.
3321 (FILE): Don't undefine.
3322
3323 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3324
3325 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3326 struct rtx_def *.
3327 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3328 struct rtx_def *.
3329 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3330 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3331 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3332 rtx_def *.
3333 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3334 definitions where used.
3335 * config/microblaze/microblaze.h (struct microblaze_args): Use
3336 rtx, not struct rtx_def *.
3337 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3338 rtx_def *.
3339 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3340 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3341 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3342 not struct rtx_def *.
3343 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3344 struct rtx_def *.
3345 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3346 rtx_def *.
3347 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3348
3349 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3350
3351 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3352 operand_equal_p to compare DR_BASE_ADDRESSes.
3353 (vect_check_interleaving): Likewise.
3354
3355 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3356
3357 PR target/46329
3358 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3359 for all Neon struct constants.
3360
3361 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3362
3363 * target.def (legitimate_constant_p): New hook.
3364 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3365 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3366 * doc/tm.texi: Regenerate.
3367 * hooks.h (hook_bool_mode_rtx_true): Declare.
3368 * hooks.c (hook_bool_mode_rtx_true): Define.
3369 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3370 * calls.c (precompute_register_parameters): Replace uses of
3371 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3372 (emit_library_call_value_1): Likewise.
3373 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3374 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3375 * ira-costs.c (scan_one_insn): Likewise.
3376 * recog.c (general_operand, immediate_operand): Likewise.
3377 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3378 * reload1.c (init_eliminable_invariants): Likewise.
3379
3380 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3381 mode argument.
3382 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3383 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3384 argument.
3385 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3386 * config/alpha/predicates.md (input_operand): Update call to
3387 alpha_legitimate_constant_p.
3388
3389 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3390 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3391 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3392 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3393 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3394 (arm_legitimate_constant_p): New functions.
3395 (arm_cannot_force_const_mem): Make static.
3396
3397 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3398
3399 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3400 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3401 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3402 instead of bfin_legitimate_constant_p.
3403 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3404 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3405
3406 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3407
3408 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3409
3410 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3411 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3412 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3413 (frv_legitimate_constant_p): Make static. Add a mode argument.
3414
3415 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3416 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3417 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3418
3419 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3420 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3421 * config/i386/i386.c (legitimate_constant_p): Rename to...
3422 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3423 argument.
3424 (ix86_cannot_force_const_mem): Update accordingly.
3425 (ix86_legitimate_address_p): Likewise.
3426 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3427 * config/i386/i386.md: Update commentary.
3428
3429 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3430 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3431 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3432 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3433
3434 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3435
3436 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3437 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3438 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3439 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3440
3441 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3442 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3443 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3444
3445 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3446 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3447 (m32r_legitimate_constant_p): New function.
3448
3449 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3450 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3451 LEGITIMATE_CONSTANT_P.
3452 (LEGITIMATE_CONSTANT_P): Delete.
3453 * config/m68k/m68k.c (m68k_expand_prologue): Call
3454 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3455 (m68k_legitimate_constant_p): New function.
3456 * config/m68k/m68k.md: Update comments.
3457
3458 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3459 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3460 (mcore_legitimate_constant_p): New function.
3461
3462 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3463 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3464 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3465 Add a mode argument.
3466 (mep_legitimate_address): Update accordingly.
3467 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3468
3469 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3470 Delete.
3471 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3472 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3473 static. Check OP's mode for VOIDmode.
3474 (microblaze_legitimate_constant_p): New function.
3475 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3476
3477 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3478 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3479 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3480 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3481 * config/mips/predicates.md: Update comments.
3482
3483 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3484 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3485 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3486 (mmix_legitimate_constant_p): Make static, return a bool, and take
3487 a mode argument.
3488 (mmix_print_operand_address): Update accordingly.
3489
3490 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3491 Delete.
3492 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3493 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3494 static. Add a mode argument.
3495 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3496
3497 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3498
3499 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3500 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3501 (pa_legitimate_constant_p): New function.
3502
3503 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3504
3505 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3506 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3507 (pdp11_legitimate_constant_p): New function.
3508
3509 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3510 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3511 (rs6000_legitimate_constant_p): New function.
3512
3513 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3514 (rx_legitimate_constant_p): ...this.
3515 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3516 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3517 (rx_legitimate_constant_p): ...this.
3518 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3519 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3520
3521 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3522 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3523 * config/s390/s390.c (legitimate_constant_p): Rename to...
3524 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3525 and add a mode argument.
3526 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3527
3528 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3529
3530 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3531 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3532 (sh_legitimate_constant_p): New function.
3533
3534 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3535 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3536 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3537 (legitimate_constant_p): Rename to...
3538 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3539 argument.
3540 (constant_address_p): Update accordingly.
3541
3542 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3543 argument and return a bool.
3544 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3545 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3546 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3547 (spu_rtx_costs): Update accordingly.
3548 * config/spu/predicates.md (vec_imm_operand): Likewise.
3549
3550 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3551
3552 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3553 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3554 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3555
3556 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3557 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3558 * config/vax/vax.c (legitimate_constant_p): Likewise.
3559
3560 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3561 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3562 (xtensa_legitimate_constant_p): New function.
3563
3564 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3565
3566 * target.def (cannot_force_const_mem): Add a mode argument.
3567 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3568 * doc/tm.texi: Regenerate.
3569 * hooks.h (hook_bool_mode_rtx_false): Declare.
3570 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3571 (hook_bool_mode_const_rtx_true): Likewise.
3572 (hook_bool_mode_rtx_false): New function.
3573 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3574 to be non-VOID. Update call to cannot_force_const_mem.
3575 (find_reloads): Update accordingly.
3576 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3577 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3578 argument.
3579 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3580 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3581 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3582 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3583 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3584 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3585 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3586 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3587 (m68k_cannot_force_const_mem): ...this new function.
3588 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3589 argument.
3590 (mips_const_insns, mips_legitimize_const_move): Update calls.
3591 (mips_secondary_reload_class): Likewise.
3592 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3593 (pa_cannot_force_const_mem): ...this new function.
3594 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3595 (rs6000_cannot_force_const_mem): ...this new function.
3596 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3597 argument.
3598 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3599 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3600 to...
3601 (xtensa_cannot_force_const_mem): ...this new function.
3602
3603 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3604
3605 * config/mips/mips.c (mips16_build_function_stub): Call
3606 build_function_type_list instead of build_function_type.
3607 (mips16_build_call_stub): Likewise.
3608
3609 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3610
3611 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3612 instead of build_function_type.
3613
3614 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3615
3616 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3617 instead of build_function_type.
3618
3619 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3620
3621 PR target/48678
3622 * config/i386/i386.md (insv): Change operand 0 constraint to
3623 "register_operand". Change operand 1 and 2 constraint to
3624 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3625 * config/i386/sse.md (sse4_1_pinsrb): Export.
3626 (sse2_pinsrw): Ditto.
3627 (sse4_1_pinsrd): Ditto.
3628 (sse4_1_pinsrq): Ditto.
3629 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3630 * config/i386/i386.c (ix86_expand_pinsr): New.
3631
3632 2011-04-20 Easwaran Raman <eraman@google.com>
3633
3634 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3635 containing union type only with -fstrict-aliasing.
3636
3637 2011-04-20 Jim Meyering <meyering@redhat.com>
3638
3639 Remove useless if-before-free tests.
3640 * calls.c (expand_call, save_area): Likewise.
3641 * cfgcleanup.c (try_forward_edges): Likewise.
3642 * collect2.c (collect_execute): Likewise.
3643 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3644 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3645 * coverage.c (coverage_checksum_string): Likewise.
3646 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3647 * cselib.c (cselib_init): Likewise.
3648 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3649 (df_set_clean_cfg): Likewise.
3650 * function.c (free_after_compilation): Likewise.
3651 * gcc.c (do_spec_1, main): Likewise.
3652 * gcov.c (create_file_names): Likewise.
3653 * gensupport.c (identify_predicable_attribute): Likewise.
3654 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3655 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3656 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3657 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3658 * ipa-pure-const.c (local_pure_const): Likewise.
3659 * ipa-reference.c (propagate): Likewise.
3660 * ira-costs.c (free_ira_costs): Likewise.
3661 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3662 * matrix-reorg.c (mat_free): Likewise.
3663 * prefix.c (get_key_value): Likewise.
3664 * profile.c (compute_value_histograms): Likewise.
3665 * reload1.c (free_reg_equiv): Likewise.
3666 * sched-deps.c (free_deps): Likewise.
3667 * sel-sched-ir.c (fence_clear): Likewise.
3668 * sese.c (set_rename, if_region_set_false_region): Likewise.
3669 * tree-data-ref.c (free_rdg): Likewise.
3670 * tree-eh.c (lower_try_finally): Likewise.
3671 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3672 * tree-ssa-live.c (delete_var_map): Likewise.
3673 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3674 * tree-ssa-pre.c (phi_trans_add): Likewise.
3675
3676 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3677
3678 PR tree-optimization/48611
3679 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3680 beyond ERT_MUST_NOT_THROW region.
3681
3682 2011-04-20 Catherine Moore <clm@codesourcery.com>
3683
3684 * config/mips/mips.opt (mfix-24k): New.
3685 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3686 * config/mips/mips.md (length): Increase by 4 for stores if
3687 fixing 24K errata.
3688 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3689 all noreorder if fixing 24K errata.
3690 * doc/invoke.texi: Document mfix-24k.
3691
3692 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3693
3694 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3695 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3696
3697 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3698
3699 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3700 (const_ok_for_op): ... to here.
3701
3702 2011-04-20 Kai Tietz <ktietz@redhat.com>
3703
3704 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3705 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3706
3707 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3708
3709 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3710
3711 2011-04-20 Richard Guenther <rguenther@suse.de>
3712
3713 PR tree-optimization/47892
3714 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3715 are if-convertible.
3716
3717 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3718
3719 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3720
3721 2011-04-20 Tristan Gingold <gingold@adacore.com>
3722
3723 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3724
3725 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3726
3727 PR target/18145
3728
3729 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3730 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3731 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3732 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3733 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3734
3735 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3736 New prototype.
3737
3738 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3739 (avr_asm_named_section, avr_asm_output_aligned_common,
3740 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3741 New functions to update...
3742 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3743 (avr_asm_init_sections): Overwrite section callbacks for
3744 data_section, bss_section.
3745 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3746 from here to...
3747 (avr_file_end): ...here.
3748
3749 2011-04-20 Richard Guenther <rguenther@suse.de>
3750
3751 PR middle-end/48695
3752 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3753 objects and types here. Adjust for their offset before comparing.
3754
3755 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3756
3757 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3758 statement per copy.
3759
3760 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3761
3762 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3763 (GIMPLE_H): Include $(INTERNAL_FN_H).
3764 (OBJS-common): Add internal-fn.o.
3765 (internal-fn.o): New rule.
3766 * internal-fn.def: New file.
3767 * internal-fn.h: Likewise.
3768 * internal-fn.c: Likewise.
3769 * gimple.h: Include internal-fn.h.
3770 (GF_CALL_INTERNAL): New gf_mask.
3771 (gimple_statement_call): Put fntype into a union with a new
3772 internal_fn field.
3773 (gimple_build_call_internal): Declare.
3774 (gimple_build_call_internal_vec): Likewise.
3775 (gimple_call_same_target_p): Likewise.
3776 (gimple_call_internal_p): New function.
3777 (gimple_call_internal_fn): Likewise.
3778 (gimple_call_fntype): Return null for internal calls.
3779 (gimple_call_set_fntype): Assert that the function is not internal.
3780 (gimple_call_set_fn): Likewise.
3781 (gimple_call_set_fndecl): Likewise.
3782 (gimple_call_set_internal_fn): New function.
3783 (gimple_call_addr_fndecl): Handle null functions.
3784 (gimple_call_return_type): Likewise null types.
3785 * gimple.c (gimple_build_call_internal_1): New function.
3786 (gimple_build_call_internal): Likewise.
3787 (gimple_build_call_internal_vec): Likewise.
3788 (gimple_call_same_target_p): Likewise.
3789 (gimple_call_flags): Handle calls to internal functions.
3790 (gimple_call_fnspec): New function.
3791 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3792 (gimple_has_side_effects): Handle null functions.
3793 (gimple_rhs_has_side_effects): Likewise.
3794 (gimple_call_copy_skip_args): Handle calls to internal functions.
3795 * cfgexpand.c (expand_call_stmt): Likewise.
3796 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3797 * gimple-fold.c (gimple_fold_call): Handle null functions.
3798 (gimple_fold_stmt_to_constant_1): Don't fold
3799 calls to internal functions.
3800 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3801 functions.
3802 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3803 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3804 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3805 (do_warn_unused_result): Likewise.
3806 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3807 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3808 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3809 the target of a call.
3810 (initialize_hash_element): Update accordingly.
3811 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3812 (iterative_hash_hashable_expr): Handle calls to internal functions.
3813 (print_expr_hash_elt): Likewise.
3814 * tree-ssa-pre.c (can_value_number_call): Likewise.
3815 (eliminate): Handle null functions.
3816 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3817 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3818 (find_func_aliases): Likewise.
3819 * value-prof.c (gimple_ic_transform): Likewise.
3820 (gimple_indirect_call_to_profile): Likewise.
3821 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3822 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3823
3824 2011-04-19 Jan Hubicka <jh@suse.cz>
3825
3826 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3827 * ipa-inline.c (inline_small_functions): Compute summaries first,
3828 populate heap later.
3829
3830 2011-04-19 Jan Hubicka <jh@suse.cz>
3831
3832 * cgraph.h (save_inline_function_body): Remove.
3833 * ipa-inline-transform.c: New file, broke out of...
3834 * ipa-inline.c: ... this one; Update toplevel comment.
3835 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3836 make global.
3837 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3838 (cgraph_mark_inline_edge): Rename to inline_call; move to
3839 ipa-inline-transform.c.
3840 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3841 move to ipa-inline-transform.c
3842 (recursive_inlining, inline_small_functions, flatten_function,
3843 ipa_inline, inline_always_inline_functions,
3844 early_inline_small_functions): Update.
3845 (inline_transform): Move to ipa-inline-transform.c.
3846 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3847 Declare.
3848 * Makefile.in (ipa-inline-transform.o): New file.
3849 * cgraphunit.c (save_inline_function_body): Move to
3850 ipa-inline-transform.c
3851
3852 2011-04-19 DJ Delorie <dj@redhat.com>
3853
3854 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3855 registers if we already know there aren't any.
3856 (m32c_emit_epilogue): Don't emit a barrier here.
3857 (m32c_emit_eh_epilogue): Likewise.
3858 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3859 operands at expand time.
3860 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3861 int" wchar type.
3862 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3863 duplicates. Provide aliases instead.
3864 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3865 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3866 the compiler.
3867
3868 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3869
3870 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3871 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3872 (general_or_i64_p, sparc_register_move_cost): New function.
3873
3874 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3875
3876 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3877 Add lynx, mipssde. Sort table.
3878
3879 2011-04-19 Xinliang David Li <davidxl@google.com>
3880
3881 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3882 not negative.
3883
3884 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3885
3886 PR target/48678
3887 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3888 is a SUBREG with non-MODE_INT mode inside of it.
3889
3890 2011-04-19 Martin Jambor <mjambor@suse.cz>
3891
3892 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3893 also according to actual contants.
3894 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3895 (gimple_fold_call): Use it.
3896 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3897
3898 2011-04-19 Martin Jambor <mjambor@suse.cz>
3899
3900 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3901 non-pointer assignments.
3902
3903 2011-04-19 Martin Jambor <mjambor@suse.cz>
3904
3905 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3906 account anc_offset and otr_type from the indirect edge info.
3907 * ipa-prop.c (get_ancestor_addr_info): New function.
3908 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3909 get_ancestor_addr_info, call it.
3910 (ipa_note_param_call): Do not initialize information about polymorphic
3911 calls, return the indirect call graph edge. Remove the last
3912 parameter, adjust all callers.
3913 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3914 parameters. Initialize polymorphic information in the indirect edge.
3915
3916 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3917
3918 PR lto/48148
3919 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3920 the types if they have different enumeration identifiers.
3921
3922 2011-04-19 Jan Hubicka <jh@suse.cz>
3923
3924 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3925 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3926 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3927 (optimize_function_for_size_p) ... here.
3928
3929 2011-04-19 Richard Guenther <rguenther@suse.de>
3930
3931 PR lto/48207
3932 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3933 langhook.
3934
3935 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3936
3937 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3938 if DECL_NO_INLINE_WARNING_P is set on the function.
3939
3940 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3941
3942 PR fortran/47976
3943 * reload1.c (inc_for_reload): Return void. All callers changed.
3944 (emit_input_reload_insns): Don't try to delete previous output
3945 reloads to a register, or record spill_reg_store for autoincs.
3946
3947 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3948
3949 * gengtype.h: Updated copyright year.
3950 (struct input_file_st): Add inpisplugin field.
3951 (type_fileloc): New function.
3952 * gengtype.c
3953 (write_typed_struct_alloc_def): Add gcc_assert.
3954 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3955 (write_typed_alloc_defns): Don't output for plugin files.
3956 (input_file_by_name): Clear inpisplugin field.
3957 (main): Set inpisplugin field for plugin files.
3958
3959 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3960
3961 * gengtype-state.c (string_eq): New.
3962 (read_state): Use string_eq instead of strcmp when creating the
3963 state_ident_tab.
3964
3965 2011-04-19 Wei Guozhi <carrot@google.com>
3966
3967 PR target/47855
3968 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3969 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3970 linkage.
3971 * config/arm/constraints.md (Uu): New constraint.
3972 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3973
3974 2011-04-19 Tristan Gingold <gingold@adacore.com>
3975
3976 * config.gcc (-*-*-*vms): Added.
3977 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3978 definitions moved.
3979 * config/vms/vms-ld.c: New file.
3980 * config/vms/vms-ar.c: New file.
3981 * config/vms/t-vmsnative: New file.
3982
3983 2011-04-18 Xinliang David Li <davidxl@google.com>
3984
3985 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3986
3987 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3988
3989 PR middle-end/48661
3990 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3991 if TREE_TYPE (v) is non-NULL.
3992
3993 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3994 gimple_get_virt_mehtod_for_binfo.
3995 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3996 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3997 callers.
3998 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3999
4000 2011-04-18 Michael Matz <matz@suse.de>
4001 Steve Ellcey <sje@cup.hp.com>
4002
4003 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4004 use its mode as source mode if it isn't VOIDmode.
4005
4006 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4007
4008 * doc/passes.texi: Fill crossref nodes.
4009
4010 2011-04-18 Jim Meyering <meyering@redhat.com>
4011
4012 Fix doubled-word typos in comments and strings
4013 * config/alpha/vms-unwind.h: s/for for/for/
4014 * config/arm/unwind-arm.h: Likewise.
4015 * config/microblaze/microblaze.c: Likewise.
4016 * config/sh/constraints.md: s/in in/in/
4017 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4018
4019 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4020
4021 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4022 (AVX_FLOAT_MODE_P): Ditto.
4023 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4024 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4025 (AVX_VEC_FLOAT_MODE_P): Ditto.
4026 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4027 (UNSPEC_MASKSTORE): Ditto.
4028 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4029 Merge from <sse>_movmsk<ssemodesuffix> and
4030 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4031 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4032 iterator.
4033 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4034 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4035 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4036
4037 2011-04-18 Jan Hubicka <jh@suse.cz>
4038
4039 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4040
4041 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4042 (want_inline_function_called_once_p): Break out the logic from
4043 ipa_inline.
4044 (edge_badness): Ensure that profile is not misupdated.
4045 (lookup_recursive_calls): Prioritize by call frequencies.
4046 (inline_small_functions): Move program size estimates here;
4047 actually process whole queue even when unit growth has been
4048 met. (to properly compute inline_failed reasons and for the
4049 case unit size decrease.) Revisit comments on recursive inlining.
4050 (ipa_inline): Remove unit summary code; first inline hot calls
4051 of functions called once, cold calls next.
4052 (order, nnodes): Remove unused variables.
4053 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4054 (GTFILES): Remove ipa-inline.c
4055 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4056
4057 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4058
4059 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4060
4061 2011-04-18 Jie Zhang <jie@codesourcery.com>
4062 Richard Earnshaw <rearnsha@arm.com>
4063
4064 * arm.c (neon_builtin_type_bits): Remove.
4065 (typedef enum neon_builtin_mode): New.
4066 (T_MAX): Don't define.
4067 (typedef enum neon_builtin_datum): Remove bits, codes[],
4068 num_vars and base_fcode. Add mode, code and fcode.
4069 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4070 VAR10): Change accordingly.
4071 (neon_builtin_data[]): Change accordingly
4072 (arm_init_neon_builtins): Change accordingly.
4073 (neon_builtin_compare): Remove.
4074 (locate_neon_builtin_icode): Remove.
4075 (arm_expand_neon_builtin): Change accordingly.
4076
4077 * arm.h (enum arm_builtins): Move to ...
4078 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4079
4080 * arm.c (arm_builtin_decl): Declare.
4081 (TARGET_BUILTIN_DECL): Define.
4082 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4083 (arm_builtin_decls[]): New.
4084 (arm_init_neon_builtins): Store builtin declarations in
4085 arm_builtin_decls[].
4086 (arm_init_tls_builtins): Likewise.
4087 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4088 (arm_builtin_decl): New.
4089
4090 2011-04-18 Richard Guenther <rguenther@suse.de>
4091
4092 * tree.c (upper_bound_in_type): Build properly canonicalized
4093 INTEGER_CSTs.
4094 (lower_bound_in_type): Likewise.
4095
4096 2011-04-18 Richard Guenther <rguenther@suse.de>
4097
4098 * gimple.h (gimple_call_addr_fndecl): New function.
4099 (gimple_call_fndecl): Use it.
4100 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4101 for direct calls.
4102 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4103 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4104
4105 2011-04-18 Richard Guenther <rguenther@suse.de>
4106
4107 PR middle-end/48650
4108 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4109
4110 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4111
4112 PR lto/48492
4113 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4114 DECL_IN_CONSTANT_POOL without RTL.
4115
4116 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4117 Ira Rosen <ira.rosen@linaro.org>
4118
4119 PR target/48252
4120 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4121 to match neon_vzip/vuzp/vtrn_internal.
4122 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4123 outputs explicitly dependent on both inputs.
4124 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4125
4126 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4127
4128 PR tree-optimization/48616
4129 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4130 whether the shift is by scalar or vector based on whether all SLP
4131 scalar stmts have the same rhs.
4132
4133 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4134
4135 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4136 memory operands.
4137
4138 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4139
4140 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4141 registers.
4142
4143 2011-04-17 Jan Hubicka <jh@suse.cz>
4144
4145 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4146 * cgrpahunit.c (cgraph_finalize_function): Do not set
4147 finalized_by_frontend.
4148 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4149 finalized_by_frontend.
4150
4151 2011-04-17 Jan Hubicka <jh@suse.cz>
4152
4153 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4154 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4155 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4156 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4157 method.
4158 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4159 gimple-fold.c
4160 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4161
4162 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4163
4164 PR lto/48538
4165 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4166 is non-null before accessing it.
4167 (input_cgraph): Remove trailing spaces.
4168
4169 2011-04-17 Revital Eres <revital.eres@linaro.org>
4170
4171 * params.def (sms-min-sc): New param flag.
4172 * modulo-sched.c (sms_schedule): Use it.
4173 * doc/invoke.texi (sms-min-sc): Document it.
4174
4175 2011-04-17 Jan Hubicka <jh@suse.cz>
4176
4177 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4178 present, also set gimple_call_set_cannot_inline.
4179 * ipa-inline.c: Update toplevel comment.
4180 (MAX_TIME): Remove.
4181 (cgraph_clone_inlined_nodes): Fix linebreaks.
4182 (cgraph_check_inline_limits): Restructure to ...
4183 (caller_growth_limits): ... this one; be more tolerant
4184 on growth in nested inline chains; add explanatory comment;
4185 fix stack accounting thinko introduced by previous patch.
4186 (cgraph_default_inline_p): Remove.
4187 (report_inline_failed_reason): New function.
4188 (can_inline_edge_p): New function.
4189 (can_early_inline_edge_p): New function.
4190 (leaf_node_p): Move upwards in file.
4191 (want_early_inline_function_p): New function.
4192 (want_inline_small_function_p): New function.
4193 (want_inline_self_recursive_call_p): New function.
4194 (cgraph_edge_badness): Rename to ...
4195 (edge_badness) ... this one; fix linebreaks.
4196 (update_edge_key): Update call of edge_baddness; add
4197 detailed dump about queue updates.
4198 (update_caller_keys): Use can_inline_edge_p and
4199 want_inline_small_function_p.
4200 (cgraph_decide_recursive_inlining): Rename to...
4201 (recursive_inlining): Use can_inline_edge_p and
4202 want_inline_self_recursive_call_p; simplify and remove no longer
4203 valid FIXME.
4204 (cgraph_set_inline_failed): Remove.
4205 (add_new_edges_to_heap): Use can_inline_edge_p and
4206 want_inline_small_function_p.
4207 (cgraph_decide_inlining_of_small_functions): Rename to ...
4208 (inline_small_functions): ... this one; cleanup; use
4209 can/want predicates; cleanup debug ouput; work edges till fibheap
4210 is exhausted and do not stop once unit growth is reached; remove
4211 later loop processing remaining edges.
4212 (cgraph_flatten): Rename to ...
4213 (flatten_function): ... this one; use can_inline_edge_p
4214 and can_early_inline_edge_p predicates.
4215 (cgraph_decide_inlining): Rename to ...
4216 (ipa_inline): ... this one; remove unreachable nodes before
4217 inlining functions called once; simplify the pass.
4218 (cgraph_perform_always_inlining): Rename to ...
4219 (inline_always_inline_functions): ... this one; use
4220 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4221 (cgraph_decide_inlining_incrementally): Rename to ...
4222 (early_inline_small_functions): ... this one; simplify
4223 using new predicates; cleanup; make dumps prettier.
4224 (cgraph_early_inlining): Rename to ...
4225 (early_inliner): newer inline regular functions into always-inlines;
4226 fix updating of call stmt summaries.
4227 (pass_early_inline): Update for new names.
4228 (inline_transform): Fix formating.
4229 (gate_cgraph_decide_inlining): Rename to ...
4230 (pass_ipa_inline): ... this one.
4231 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4232 * ipa-inline-analysis.c (dump_inline_summary): Update.
4233 (compute_inline_parameters): Do not compute disregard_inline_limits;
4234 look for mismatching arguments.
4235 (estimate_growth): Fix handlig of non-trivial self recursion.
4236 (inline_read_summary): Do not read info->disregard_inline_limits.
4237 (inline_write_summary): Do not write info->disregard_inline_limits.
4238 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4239 and move all checks into can_inline_edge_p predicate; re-enable code
4240 comparing optimization levels.
4241 (expand_call_inline): Do not test inline_forbidden_into_p.
4242 * Makefile.in (ipa-inline.o): Update arguments.
4243
4244 2011-04-17 Revital Eres <revital.eres@linaro.org>
4245
4246 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4247
4248 2011-04-17 Revital Eres <revital.eres@linaro.org>
4249
4250 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4251
4252 2011-04-17 Michael Matz <matz@suse.de>
4253
4254 PR tree-optimization/48622
4255 PR lto/48645
4256 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4257 in same order as they're written.
4258
4259 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4260
4261 * config/pa/predicates.md: Reorganize and simplify predicates.
4262 Eliminate duplicate code checks.
4263 (arith_operand): Rename to arith14_operand
4264 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4265 * config/pa/pa.md: Use renamed operands.
4266 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4267 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4268 arith11_operand, adddi3_operand, indexed_memory_operand,
4269 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4270 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4271 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4272 move_dest_operand, move_src_operand, prefetch_cc_operand,
4273 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4274 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4275 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4276 div_operand, int5_operand, movb_comparison_operator,
4277 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4278 arith_double_operand, ireg_operand, lhs_lshift_operand,
4279 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4280 integer_store_memory_operand): Likewise.
4281 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4282 (integer_store_memory_operand, read_only_operand,
4283 function_label_operand, borx_reg_operand,
4284 non_hard_reg_operand): Likewise.
4285 (eq_neq_comparison_operator): Delete unused operator.
4286 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4287 function_label_operand.
4288 (emit_move_sequence): Likewise.
4289
4290 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4291
4292 * config/i386/sse.md (sseunpackmode): New mode attribute.
4293 (ssepackmode): Ditto.
4294 (vec_pack_trunc_<mode>): Macroize expander from
4295 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4296 (vec_unpacks_lo_<mode>): Macroize expander from
4297 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4298 (vec_unpacks_hi_<mode>): Macroize expander from
4299 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4300 (vec_unpacku_lo_<mode>): Macroize expander from
4301 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4302 (vec_unpacku_hi_<mode>): Macroize expander from
4303 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4304 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4305 ix86_expand_sse4_unpack.
4306 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4307
4308 2011-04-16 Jan Hubicka <jh@suse.cz>
4309
4310 * cgraphbuild.c: Include ipa-inline.h.
4311 (reset_inline_failed): Use initialize_inline_failed.
4312 * cgraph.c: Include ipa-inline.h.
4313 (cgraph_create_node_1): Do not initialize estimated_growth.
4314 (initialize_inline_failed): More to ipa-inline-analysis.c
4315 (dump_cgraph_node): Do not dump inline flags.
4316 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4317 and disregard_inline_limits flags.
4318 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4319 time, size, estimated_growth.
4320 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4321 Update.
4322 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4323 DECL_DISREGARD_INLINE_LIMITS.
4324 (cgraph_analyze_function): Do not initialize
4325 node->local.disregard_inline_limits.
4326 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4327 inlinable, versionable and disregard_inline_limits.
4328 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4329 cgraph_check_inline_limits, cgraph_default_inline_p,
4330 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4331 add_new_edges_to_heap): Update.
4332 (cgraph_decide_inlining_of_small_function): Update; set
4333 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4334 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4335 cgraph_decide_inlining_incrementally): Update.
4336 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4337 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4338 time, size and estimated_growth parameters.
4339 (estimate_edge_growth): Update.
4340 (initialize_inline_failed): Declare.
4341 * ipa-split.c: Include ipa-inline.h
4342 (execute_split_functions): Update.
4343 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4344 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4345 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4346 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4347 estimated_growth to INT_MIN.
4348 (inline_node_duplication_hook): Likewise.
4349 (dump_inline_summary): Dump new fields.
4350 (compute_inline_parameters): Update.
4351 (estimate_edge_time, estimate_time_after_inlining,
4352 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4353 inline_write_summary):
4354 (initialize_inline_failed): Move here from cgraph.c.
4355 * tree-sra.c: Include ipa-inline.h.
4356 (ipa_sra_preliminary_function_checks): Update.
4357 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4358 ipa-inline.h.
4359
4360 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4361
4362 * config/i386/sse.md (V16): New mode iterator.
4363 (VI1, VI8): Ditto.
4364 (AVXMODEQI, AVXMODEDI): Remove.
4365 (sse2, sse3): New mode attribute.
4366 (mov<mode>): Use V16 mode iterator.
4367 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4368 (push<mode>1): Use V16 mode iterator.
4369 (movmisalign<mode>): Ditto.
4370 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4371 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4372 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4373 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4374 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4375 avx_movdqu<avxmodesuffix>.
4376 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4377 *avx_movdqu<avxmodesuffix>.
4378 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4379 avx_lddqu<avxmodesuffix>.
4380 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4381 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4382 avx_movnt<AVXMODEDI:mode>.
4383 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4384 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4385
4386 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4387
4388 PR target/48629
4389 * haifa-sched.c (prune_ready_list, schedule_block): Use
4390 sched_pressure_p rather than flag_sched_pressure.
4391
4392 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4393
4394 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4395 cgraph_get_node instead of cgraph_get_create_node.
4396
4397 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4398
4399 * cfgexpand.c (expand_debug_expr): Use
4400 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4401
4402 2011-04-15 Michael Matz <matz@suse.de>
4403
4404 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4405 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4406 * function.c (gimplify_parameters): Ditto.
4407 * gimplify.c (gimplify_vla_decl): Ditto.
4408
4409 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4410 (gimple_call_set_alloca_for_var): New inline function.
4411 (gimple_call_alloca_for_var_p): Ditto.
4412 * gimple.c (gimple_build_call_from_tree): Remember
4413 CALL_ALLOCA_FOR_VAR_P state.
4414 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4415
4416 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4417 calls if they were for VLA objects.
4418
4419 2011-04-15 Martin Jambor <mjambor@suse.cz>
4420
4421 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4422 of ADR_EXPRs.
4423
4424 2011-04-15 Martin Jambor <mjambor@suse.cz>
4425
4426 PR middle-end/48601
4427 * tree-emutls.c (lower_emutls_function_body): Call
4428 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4429 result is non-NULL.
4430
4431 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4432
4433 * c-decl.c (detect_field_duplicates): Call
4434 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4435
4436 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4437
4438 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4439 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4440 * ipa-pure-const.c (check_stmt): Call it.
4441 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4442
4443 2011-04-15 Richard Guenther <rguenther@suse.de>
4444
4445 PR tree-optimization/48290
4446 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4447 Properly decide inhibiting propagation based on the valueized
4448 operand. Do loop-closed SSA form preserving here ...
4449 (init_copy_prop): ... not here.
4450
4451 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4452
4453 PR target/48612
4454 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4455 (*ieee_smax<mode>3): Likewise.
4456
4457 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4458
4459 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4460 Replace match_operand with match_dup for the third operand in
4461 these expanders.
4462
4463 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4464
4465 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4466 to track processing of conditionals. Update all callers.
4467 (try_combine, simplify_if_then_else): Update.
4468
4469 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4470
4471 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4472 -fsched-pressure.
4473
4474 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4475
4476 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4477 instead of match_operand for operand 3.
4478
4479 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4480
4481 * recog.h (insn_operand_data): Add an "allows_mem" field.
4482 * genoutput.c (output_operand_data): Initialize it.
4483 * optabs.c (maybe_legitimize_operand_same_code): New function.
4484 (maybe_legitimize_operand): Use it when matching the original
4485 op->value.
4486
4487 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4488
4489 * gimplify.c: Fix issues in comments throughout.
4490 (voidify_wrapper_expr): Fix long line.
4491 (build_stack_save_restore): Likewise.
4492 (gimplify_loop_expr): Likewise.
4493 (gimplify_compound_lval): Likewise.
4494 (gimplify_init_ctor_eval): Likewise.
4495 (gimplify_modify_expr_rhs): Likewise.
4496 (omp_notice_threadprivate_variable): Likewise.
4497
4498 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4499
4500 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4501 original one if this is not a builtin function.
4502
4503 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4504
4505 PR target/48605
4506 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4507 offset it as needed based on top 2 bits in operands[3], change
4508 MEM mode to SFmode and mask those 2 bits away from operands[3].
4509
4510 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4511
4512 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4513 change from objc_declare_protocols() to objc_declare_protocol().
4514
4515 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4516
4517 * config/i386/sse.md (sse4_1): New mode attribute.
4518 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4519 avx_blend<ssemodesuffix><avxmodesuffix> and
4520 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4521 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4522 avx_blendv<ssemodesuffix><avxmodesuffix> and
4523 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4524 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4525 avx_dp<ssemodesuffix><avxmodesuffix> and
4526 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4527 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4528 (sse4_1_packusdw): Merge with *avx_packusdw.
4529 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4530 (sse4_1_pblendw): Merge with *avx_pblendw.
4531 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4532 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4533 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4534 VF mode iterator.
4535 (sse4_1_round<ssescalarmodesuffix>): Merge with
4536 *avx_round<ssescalarmodesuffix>.
4537 (aesenc): Merge with *avx_aesenc.
4538 (aesenclast): Merge with *avx_aesenclast.
4539 (aesdec): Merge with *avx_aesdec.
4540 (aesdeclast): Merge with *avx_aesdeclast.
4541 (pclmulqdq): Merge with *pclmulqdq.
4542 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4543 New predicate.
4544 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4545
4546 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4547
4548 PR middle-end/48608
4549 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4550 (align_local_variable): This. Update DECL_ALIGN.
4551 (add_stack_var): Updated.
4552 (expand_one_stack_var): Likewise.
4553
4554 2011-04-14 Richard Guenther <rguenther@suse.de>
4555
4556 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4557 Remove.
4558 (dse_initialize_block_local_data, dse_leave_block,
4559 record_voperand_set, get_stmt_uid): Likewise.
4560 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4561 (dse_optimize_stmt): Remove voperand set handling code.
4562 Simplify and improve to handle any kind of killing stmt.
4563 (dse_record_phi): Remove.
4564 (dse_enter_block): Simplify.
4565 (tree_ssa_dse): Likewise.
4566 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4567
4568 2011-04-14 Jan Hubicka <jh@suse.cz>
4569
4570 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4571 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4572 (cgraph_local_info): Remove inline_summary.
4573 * ipa-cp.c: Include ipa-inline.h.
4574 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4575 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4576 accesor.
4577 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4578 (input_overwrite_node): Do not set inline summary.
4579 (input_node): Do not stream inline summary.
4580 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4581 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4582 growth; we do not have inline parameters computed for that anyway.
4583 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4584 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4585 (inline_summary_t): New type and VECtor.
4586 (debug_inline_summary, dump_inline_summaries): Declare.
4587 (inline_summary): Use VOCtor.
4588 (estimate_edge_growth): Kill hack computing call stmt size directly.
4589 * lto-section-in.c (lto_section_name): Add inline section.
4590 * ipa-inline-analysis.c: Include lto-streamer.h
4591 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4592 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4593 (inline_summary_vec): Define.
4594 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4595 dump_inline_summaries): New functions.
4596 (estimate_function_body_sizes): Properly compute size/time of outgoing
4597 calls.
4598 (compute_inline_parameters): Alloc inline_summary; do not compute
4599 size/time of incomming calls.
4600 (estimate_edge_time): Avoid missing time summary hack.
4601 (inline_read_summary): Read inline summary info.
4602 (inline_write_summary): Write inline summary info.
4603 (inline_free_summary): Free all hooks and inline summary vector.
4604 * lto-streamer.h: Add LTO_section_inline_summary section.
4605 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4606 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4607
4608 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4609
4610 * tree-vectorizer.h (vect_strided_store_supported): Add a
4611 HOST_WIDE_INT argument.
4612 (vect_strided_load_supported): Likewise.
4613 (vect_permute_store_chain): Return void.
4614 (vect_transform_strided_load): Likewise.
4615 (vect_permute_load_chain): Delete.
4616 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4617 count argument. Check that the count is a power of two.
4618 (vect_strided_load_supported): Likewise.
4619 (vect_permute_store_chain): Return void. Update after above changes.
4620 Assert that the access is supported.
4621 (vect_permute_load_chain): Likewise.
4622 (vect_transform_strided_load): Return void.
4623 * tree-vect-stmts.c (vectorizable_store): Update calls after
4624 above interface changes.
4625 (vectorizable_load): Likewise.
4626 (vect_analyze_stmt): Don't check for strided powers of two here.
4627
4628 2011-04-14 Richard Guenther <rguenther@suse.de>
4629
4630 PR tree-optimization/48590
4631 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4632 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4633 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4634 BUILT_IN_STACK_SAVE.
4635 * tree-ssa-dce.c (propagate_necessity): Handle
4636 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4637
4638 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4639
4640 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4641 objc_declare_class.
4642
4643 2011-04-14 Richard Guenther <rguenther@suse.de>
4644
4645 * tree.h (get_object_alignment_1): Declare.
4646 * builtins.c (get_object_alignment_1): Split out worker from ...
4647 (get_object_alignment): ... here.
4648 * fold-const.c (get_pointer_modulus_and_residue): Use
4649 get_object_alignment_1.
4650
4651 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4652
4653 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4654 type parameter.
4655 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4656 parameter. Generalise code to handle arrays as well as vectors.
4657 (vect_setup_realignment): Update accordingly.
4658 * tree-vect-stmts.c (vectorizable_store): Likewise.
4659 (vectorizable_load): Likewise.
4660
4661 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4662
4663 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4664 within the per-copy loop.
4665
4666 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4667
4668 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4669 in the dump file.
4670
4671 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4672
4673 * doc/options.texi (Negative): Explicitly mention that the
4674 Negative chain must be circular.
4675
4676 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4677
4678 * function.h (block_chainon): Declare.
4679 * function.c (block_chainon): Define.
4680
4681 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4682 Eric Weddington <eric.weddington@atmel.com>
4683 Georg-Johann Lay <avr@gjlay.de>
4684
4685 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4686 New Includes
4687 (avr_init_builtins, avr_expand_builtin,
4688 avr_expand_delay_cycles, avr_expand_unop_builtin,
4689 avr_expand_binop_builtin ): New functions.
4690 (avr_builtin_id): New enum
4691 (struct avr_builtin_description): New struct
4692 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4693 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4694
4695 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4696 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4697 UNSPECV_DELAY_CYCLES): new enumeration values
4698 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4699 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4700 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4701 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4702 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4703 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4704 "fmulsu"): New insns
4705
4706 * config/avr/avr-c.c: fix line endings
4707 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4708 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4709 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4710 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4711 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4712
4713 * doc/extend.texi (AVR Built-in Functions): New node
4714 (Target Builtins): Add documentation of AVR
4715 built-in functions.
4716
4717 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4718
4719 PR target/44643
4720 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4721 alone. Error if non-const data has attribute progmem.
4722
4723 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4724
4725 * tree.h (struct tree_constructor): Include tree_typed instead of
4726 tree_common.
4727 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4728 TS_TYPED instead of TS_COMMON.
4729
4730 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4731
4732 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4733 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4734 (sse2_psadbw): Merge with *avx_psadbw.
4735 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4736 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4737 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4738 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4739 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4740 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4741 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4742 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4743 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4744 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4745 (ssse3_palignrti): Merge with *avx_palignrti.
4746
4747 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4748
4749 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4750 * tree-ssanames.c (fini_ssanames): VEC_free it.
4751 (make_ssa_name_fn): Update for VECness of free_ssanames.
4752 (release_ssa_name, release_dead_ssa_names): Likewise.
4753 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4754 tree_common.
4755 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4756 TS_TYPED instead of TS_COMMON.
4757
4758 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4759
4760 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4761 statistics_counter_event.
4762 * tree-ssa-copyrename.c (stats): Define.
4763 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4764 statistics_counter_event.
4765 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4766 (bswap_stats, widen_mul_stats): Define.
4767 (insert_reciprocals): Increment rdivs_inserted.
4768 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4769 rfuncs_inserted. Add calls to statistics_counter_event.
4770 (execute_cse_sincos_1): Increment inserted.
4771 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4772 statistics_counter_event.
4773 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4774 of bswap_stats. Add calls to statistics_counter_event.
4775 (convert_mult_to_widen): Increment widen_mults_inserted.
4776 (convert_plusminus_to_widen): Increment maccs_inserted.
4777 (convert_mult_to_fma): Increment fmas_inserted.
4778 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4779 calls to statistics_counter_event.
4780
4781 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4782
4783 PR rtl-optimization/48455
4784 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4785 `temp_costs->mem_cost'.
4786
4787 2011-04-13 Jan Hubicka <jh@suse.cz>
4788
4789 * ipa-inline.h: New file.
4790 * ipa-inline-analysis.c: New file. Broken out of ...
4791 * ipa-inline.c: ... this file; update toplevel comment;
4792 include ipa-inline.h
4793 (inline_summary): Move to ipa-inline.h
4794 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4795 ipa-inline-analysis.c.
4796 (cgraph_estimate_time_after_inlining): Rename to
4797 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4798 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4799 to estimate_edge_growth.
4800 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4801 rename to estimate_size_after_inlining.
4802 (cgraph_mark_inline_edge): Update for new naming convention.
4803 (cgraph_check_inline_limits): Likewise.
4804 (cgraph_edge_badness): Likewise.
4805 (cgraph_decide_recursive_inlining): Likewise.
4806 (cgraph_decide_inlining_of_small_functions): Likewise.
4807 (cgraph_decide_inlining_incrementally): Likewise.
4808 (cgraph_estimate_growth): Rename to estimate_growth; move to
4809 ipa-inline-analysis.c.
4810 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4811 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4812 (compute_inline_parameters): Likewise.
4813 (compute_inline_parameters_for_current): Likewise.
4814 (pass_inline_parameters): Likewise.
4815 (inline_indirect_intraprocedural_analysis): Likewise.
4816 (analyze_function): Rename to inline_analyze_function; likewise.
4817 (add_new_function): Move to ipa-inline-analysis.c.
4818 (inline_generate_summary): Likewise.
4819 (inline_read_summary): Likewise.
4820 (inline_write_summary): Likewise.
4821 * Makefile.in (ipa-inline-analysis.c): New file.
4822
4823 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4824
4825 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4826 * configure: Regenerate.
4827
4828 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4829
4830 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4831 instead of tree_common.
4832 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4833 Likewise.
4834 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4835 TS_TYPED rather than TS_COMMON.
4836 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4837
4838 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4839
4840 PR target/45263
4841 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4842 r20 around calls of __tablejump_elpm__
4843
4844 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4845
4846 PR middle-end/48591
4847 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4848 NULL.
4849 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4850
4851 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4852
4853 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4854 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4855 (cfi_vec): New typedef.
4856 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4857 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4858 (cie_cfi_vec): New static variable.
4859 (cie_cfi_head): Delete.
4860 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4861 declaration changed. Use vector rather than list operations.
4862 (new_cfi): Don't initialize the dw_cfi_next field.
4863 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4864 rather than list operations.
4865 (lookup_cfa): Use vector rather than list operations.
4866 (output_cfis): New argument upto. Accept a cfi_vec rather than
4867 a dw_cfi_ref list head as argument. All callers changed.
4868 Iterate over the vector using upto as a maximum index.
4869 (output_all_cfis): New static function.
4870 (output_fde): Use vector rather than list operations. Use the
4871 new upto argument for output_cfis rather than manipulating a
4872 list.
4873 (dwarf2out_begin_prologue): Change initializations to match
4874 new struct members.
4875 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4876 from the vector length rather than searching for the end of a list.
4877 Use output_all_cfis.
4878 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4879
4880 2011-04-13 Nick Clifton <nickc@redhat.com>
4881
4882 * config/rx/rx.md (movmemsi): Do not use this pattern when
4883 volatile pointers are involved.
4884
4885 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4886
4887 * config/i386/sse.md (pinsrbits): Remove.
4888 (sse2_packsswb): Merge with *avx_packsswb.
4889 (sse2_packssdw): Merge with *avx_packssdw.
4890 (sse2_packuswb): Merge with *avx_packuswb.
4891 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4892 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4893 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4894 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4895 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4896 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4897 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4898 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4899 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4900 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4901 (sse2_loadld): Merge with *avx_loadld.
4902 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4903 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4904 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4905 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4906 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4907
4908 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4909
4910 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4911 calling TREE_CHAIN.
4912 * print-tree.c (print_node): Likewise.
4913 * tree-inline.c (copy_tree_r): Likewise.
4914 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4915 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4916 instead of TS_COMMON.
4917 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4918 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4919 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4920 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4921 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4922 ...and these...
4923 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4924 * tree.h: ...here.
4925 (TREE_CHAIN): Check for a TS_COMMON structure.
4926 (TREE_TYPE): Check for a TS_TYPED structure.
4927
4928 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4929
4930 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4931 cgraph_get_create_node instead of cgraph_node.
4932
4933 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4934
4935 * c-parser.c (c_parser_initelt): Updated call to
4936 objc_build_message_expr.
4937 (c_parser_postfix_expression): Likewise.
4938
4939 2011-04-12 Kai Tietz <ktietz@redhat.com>
4940
4941 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4942 MASK_MS_BITFIELD_LAYOUT bit.
4943
4944 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4945
4946 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4947 assert it is always true.
4948 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4949 moves.
4950
4951 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4952
4953 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4954 compiling Objective-C to be more efficient.
4955
4956 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4957
4958 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4959 argv_copied.
4960
4961 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4962
4963 * recog.h, genoutput.c, optabs.c: Revert last patch.
4964
4965 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4966
4967 PR target/48090
4968 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4969
4970 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4971
4972 * recog.h (insn_operand_data): Add an "allows_mem" field.
4973 * genoutput.c (output_operand_data): Initialize it.
4974 * optabs.c (maybe_legitimize_operand_same_code): New function.
4975 (maybe_legitimize_operand): Use it when matching the original
4976 op->value.
4977
4978 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4979
4980 * genpreds.c (process_define_predicate): Move most processing
4981 to gensupport.c. Continue to validate the expression.
4982 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4983 (process_define_predicate): Move processing to gensupport.c.
4984 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4985 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4986 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4987 argument.
4988 (valid_predicate_name_p): New function, split out from old
4989 genpreds.c:process_define_predicate.
4990 (process_define_predicate): New function, combining code from
4991 old genpreds.c and genrecog.c functions.
4992 (process_rtx): Call it for DEFINE_PREDICATE and
4993 DEFINE_SPECIAL_PREDICATE.
4994
4995 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4996
4997 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4998 size of a '%A' memory reference.
4999 (T_DREG, T_QREG): New neon_builtin_type_bits.
5000 (arm_init_neon_builtins): Assert that the load and store operands
5001 are neon_struct_operands.
5002 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5003 (NEON_ARG_MEMORY): New builtin_arg.
5004 (neon_dereference_pointer): New function.
5005 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5006 Handle NEON_ARG_MEMORY.
5007 (arm_expand_neon_builtin): Update after above interface changes.
5008 Use NEON_ARG_MEMORY for loads and stores.
5009 * config/arm/predicates.md (neon_struct_operand): New predicate.
5010 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5011 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5012 (V_four_elem): Tweak formatting.
5013 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5014 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5015 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5016 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5017 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5018 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5019 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5020 Use %A in the output template.
5021 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5022 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5023 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5024 the width of the memory access. Remove post-increment.
5025 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5026
5027 2011-04-12 Nick Clifton <nickc@redhat.com>
5028
5029 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5030 instruction for interrupt handlers if the target is the basic V850
5031 architecture.
5032 (expand_epilogue): Likewise.
5033
5034 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5035
5036 PR rtl-optimization/48549
5037 * combine.c (propagate_for_debug): Also stop after BB_END of
5038 this_basic_block. Process LAST and just stop processing after it.
5039 (combine_instructions): If last_combined_insn has been deleted,
5040 set last_combined_insn to its PREV_INSN.
5041
5042 2011-04-12 Richard Guenther <rguenther@suse.de>
5043
5044 PR tree-optimization/46076
5045 * gimple.h (struct gimple_statement_call): Add fntype field.
5046 (gimple_call_fntype): Adjust.
5047 (gimple_call_set_fntype): New function.
5048 * gimple.c (gimple_build_call_1): Set the call function type.
5049 * gimplify.c (gimplify_call_expr): Preserve the function
5050 type the frontend used for the call.
5051 (gimplify_modify_expr): Likewise.
5052 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5053 function type.
5054 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5055 function type.
5056 * tree-ssa.c (useless_type_conversion_p): Function pointer
5057 conversions are useless.
5058
5059 2011-04-12 Martin Jambor <mjambor@suse.cz>
5060
5061 * cgraph.h (cgraph_node): Remove function declaration.
5062 (cgraph_create_node): Declare.
5063 (cgraph_get_create_node): Likewise.
5064 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5065 Updated all callers.
5066 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5067 the decl does not already exist. Call cgraph_get_create_node instead
5068 of cgraph_node.
5069 (cgraph_get_create_node): New function.
5070 (cgraph_same_body_alias): Update comment.
5071 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5072 assert it does not return NULL.
5073 (cgraph_update_edges_for_call_stmt): Likewise.
5074 (cgraph_clone_edge): Likewise.
5075 (cgraph_create_virtual_clone): Likewise.
5076 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5077 instead of cgraph_node.
5078 (cgraph_add_new_function): Call cgraph_create_node or
5079 cgraph_get_create_node instead of cgraph_node.
5080 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5081 instead of cgraph_node.
5082 (record_eh_tables): Likewise.
5083 (mark_address): Likewise.
5084 (mark_load): Likewise.
5085 (build_cgraph_edges): Call cgraph_get_create_node instead
5086 of cgraph_node.
5087 (rebuild_cgraph_edges): Likewise.
5088 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5089 instead of cgraph_node.
5090 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5091 cgraph_node.
5092 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5093 cgraph_create_node instead of cgraph_node.
5094 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5095 of cgraph_node.
5096 * lto-cgraph.c (input_node): Likewise.
5097 * lto-streamer-in.c (input_function): Likewise.
5098 * varasm.c (mark_decl_referenced): Likewise.
5099 (assemble_alias): Likewise.
5100
5101 2011-04-12 Martin Jambor <mjambor@suse.cz>
5102
5103 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5104 instead of cgraph_node and assert it does not return NULL.
5105 * lto-streamer-in.c (lto_read_body): Likewise.
5106 * omp-low.c (new_omp_context): Likewise.
5107 (create_task_copyfn): Likewise.
5108 * tree-emutls.c (lower_emutls_function_body): Likewise.
5109 * matrix-reorg.c (transform_allocation_sites): Likewise.
5110
5111 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5112
5113 PR c/48552
5114 * c-typeck.c (build_asm_expr): Error out on attempts to use
5115 void type outputs or inputs for constraints that allow reg or
5116 don't allow memory.
5117
5118 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5119 Richard Earnshaw <rearnsha@arm.com>
5120
5121 PR target/48250
5122 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5123 to use sign-magnitude offsets. Reject unsupported unaligned
5124 cases. Add detailed description in comments.
5125 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5126 condition from TARGET_32BIT to TARGET_ARM.
5127
5128 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5129
5130 * tree.h (struct typed_tree): New.
5131 (struct tree_common): Include it instead of tree_base.
5132 (TREE_TYPE): Update for new location of type field.
5133 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5134 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5135 (union tree_node): Add typed field.
5136 * treestruct.def (TS_TYPED): New.
5137 * lto-streamer.c (check_handled_ts_structures): Handle it.
5138 * tree.c (MARK_TS_TYPED): New macro.
5139 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5140
5141 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5142
5143 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5144 (force_nonfallthru): Do not alter the loop nest if no basic block
5145 was created.
5146
5147 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5148
5149 * config/i386/sse.md (VI): New mode iterator.
5150 (SSEMODEI): Remove.
5151 (AVX256MODEI): Ditto.
5152 (AVXMODEF4P): Ditto.
5153 (avxvecpsmode): Ditto.
5154 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5155 (sse2_andnot<mode>3): New expander.
5156 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5157 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5158 (<any_logic:code><mode>3): Use VI mode iterator.
5159 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5160 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5161 (*andnottf3): Handle AVX three-operand constraints.
5162 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5163
5164 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5165 Robert Millan <rmh@gnu.org>
5166
5167 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5168 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5169 GNU_USER_DYNAMIC_LINKER64): Define.
5170 (REG_NAME): Don't undefine.
5171 (MD_UNWIND_SUPPORT): Undefine.
5172 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5173 (REG_NAME): Don't undefine.
5174 (MD_UNWIND_SUPPORT): Undefine.
5175 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5176
5177 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5178
5179 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5180 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5181
5182 2011-04-11 Xinliang David Li <davidxl@google.com>
5183
5184 * value-profile.c (check_ic_target): New function.
5185 (gimple_ic_transform): Sanity check indirect call target.
5186 * gimple-low.c (gimple_check_call_args): Interface change.
5187 (gimple_check_call_matching_types): New function.
5188 * tree-inline.c (tree_can_inline_p): Call new function.
5189
5190 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5191
5192 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5193 tree-pretty-print.h & realmpfr.h.
5194
5195 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5196
5197 PR middle-end/48464
5198 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5199 (setup_allocno_and_important_classes): Ditto.
5200
5201 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5202
5203 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5204 GNU_USER_DYNAMIC_LINKER.
5205 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5207 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5208 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5209 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5210 GNU_USER_TARGET_OS_CPP_BUILTINS.
5211 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5212 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5213 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5214 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5215 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5216 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5217 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5218 GNU_USER_TARGET_OS_CPP_BUILTINS.
5219 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5220 GNU_USER_DYNAMIC_LINKER.
5221 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5222 GNU_USER_TARGET_OS_CPP_BUILTINS.
5223 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5224 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5225 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5226 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5227 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5228 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5229 GNU_USER_DYNAMIC_LINKER64): Remove.
5230 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5231 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5232 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5233 GNU_USER_DYNAMIC_LINKER.
5234 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5235 GNU_USER_TARGET_OS_CPP_BUILTINS.
5236 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5237 GNU_USER_TARGET_OS_CPP_BUILTINS.
5238 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5239 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5240 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5241 GNU_USER_TARGET_OS_CPP_BUILTINS.
5242 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5243 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5244 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5245 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5247 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5248 GNU_USER_DYNAMIC_LINKER.
5249 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5250 GNU_USER_TARGET_OS_CPP_BUILTINS.
5251 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5253 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5254 GNU_USER_DYNAMIC_LINKER.
5255 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5256 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5257 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5258 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5259 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5260 GNU_USER_DYNAMIC_LINKER.
5261 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5262 GNU_USER_DYNAMIC_LINKERN32.
5263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5264 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5265 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5266 GNU_USER_DYNAMIC_LINKER32.
5267 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5270 GNU_USER_DYNAMIC_LINKER.
5271 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5272 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5273 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5274 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5275 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5276 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5277 GNU_USER_DYNAMIC_LINKER32.
5278 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5279 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5280 GNU_USER_DYNAMIC_LINKER.
5281 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5282 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5283 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5284 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5285 GNU_USER_DYNAMIC_LINKER64.
5286 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5287 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5288 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5289 GNU_USER_DYNAMIC_LINKER.
5290 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5291 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5292 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5293 GNU_USER_DYNAMIC_LINKER.
5294 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5295 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5296 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5297 GNU_USER_DYNAMIC_LINKER32.
5298 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5299 GNU_USER_DYNAMIC_LINKER64.
5300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5301 GNU_USER_DYNAMIC_LINKER64.
5302 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5304 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5306 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5307
5308 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5309
5310 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5311 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5312 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5313 GNU_USER_DYNAMIC_LINKER.
5314 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5315 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5316 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5317 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5318 GNU_USER_DYNAMIC_LINKER64.
5319 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5320 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5321 GNU_USER_LINK_EMULATION.
5322 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5323 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5324 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5325 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5326 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5327 CPP_SPEC, CC1_SPEC): Remove.
5328 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5329 (GNU_USER_DYNAMIC_LINKER): Define.
5330 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5331 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5332 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5333 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5334 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5335 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5336 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5337 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5338 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5339 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5340 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5341 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5342 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5343 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5344 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5345 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5346 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5347 GNU_USER_DYNAMIC_LINKER.
5348 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5349 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5350 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5351 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5352 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5353 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5354 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5355 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5356 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5357 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5358
5359 2011-04-11 Kai Tietz <ktietz@redhat.com>
5360
5361 PR target/9601
5362 PR target/11772
5363 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5364 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5365 comment.
5366 (ix86_is_msabi_thiscall): Removed.
5367 (ix86_is_type_thiscall): Likewise.
5368 (ix86_get_callcvt): New function.
5369 (ix86_comp_type_attributes): Simplify check.
5370 (ix86_function_regparm): Use ix86_get_callcvt for calling
5371 convention attribute checks.
5372 (ix86_return_pops_args): Likewise.
5373 (ix86_static_chain): Likewise.
5374 (x86_this_parameter): Likewise.
5375 (x86_output_mi_thunk): Likewise.
5376 (ix86_function_type_abi): Optimize check for types without attributes.
5377 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5378 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5379 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5380 by flag-values.
5381 (IX86_BASE_CALLCVT): Helper macro.
5382 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5383 Use ix86_get_callcvt for calling convention attribute checks and avoid
5384 symbol-decoration for stdcall in TARGET_RTD case.
5385 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5386 Likewise.
5387 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5388 for declaration.
5389
5390 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5391
5392 * config/i386/sse.md (VI_128): New mode iterator.
5393 (VI12_128): Rename from SSEMODE12.
5394 (VI14_128): Rename from SSEMODE14.
5395 (VI124_128): New mode iterator.
5396 (VI24_128): Rename from SSEMODE248.
5397 (VI248_128): Rename from SSEMODE248.
5398 (SSEMODE124C8): Remove.
5399 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5400 (*sse2_<plusminus_insn><mode>3): Merge with
5401 *avx_<plusminus_insn><mode>3.
5402 (*mulv8hi3): Merge with *avx_mulv8hi3.
5403 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5404 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5405 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5406 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5407 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5408 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5409 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5410 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5411 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5412 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5413 (*<smaxmin:code>v8hi3): Ditto.
5414 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5415 (*<smaxmin:code>v16qi3): Ditto.
5416 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5417 (*sse2_eq<mode>3): Ditto.
5418 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5419 (*sse2_gt<mode>3): Ditto.
5420 (vcondv2di): Split out of vcond<mode>.
5421 (vconduv2di): Split out of vcondu<mode>.
5422
5423 2011-04-11 Richard Guenther <rguenther@suse.de>
5424
5425 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5426 before calling tree_low_cst.
5427
5428 2011-04-11 Richard Guenther <rguenther@suse.de>
5429
5430 * stor-layout.c (layout_type): Compute all array index size operations
5431 in the original type.
5432 (initialize_sizetypes): Add comment.
5433 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5434
5435 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5436
5437 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5438
5439 2011-04-11 Martin Jambor <mjambor@suse.cz>
5440
5441 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5442 of cgraph_node, handle NULL return value.
5443 (cgraph_global_info): Likewise.
5444 (cgraph_rtl_info): Likewise.
5445 * tree-inline.c (estimate_num_insns): Likewise.
5446 * gimplify.c (unshare_body): Likewise.
5447 (unvisit_body): Likewise.
5448 (gimplify_body): Likewise.
5449 * predict.c (optimize_function_for_size_p): Likewise.
5450 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5451 (call_may_clobber_ref_p_1): Likewise.
5452 * varasm.c (function_section_1): Likewise.
5453 (assemble_start_function): Likewise.
5454
5455 2011-04-11 Martin Jambor <mjambor@suse.cz>
5456
5457 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5458 of cgraph_node.
5459 * final.c (rest_of_clean_state): Likewise.
5460 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5461 * passes.c (pass_init_dump_file): Likewise.
5462 (execute_all_ipa_transforms): Likewise.
5463 (function_called_by_processed_nodes_p): Likewise.
5464 * predict.c (maybe_hot_frequency_p): Likewise.
5465 (probably_never_executed_bb_p): Likewise.
5466 (compute_function_frequency): Likewise.
5467 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5468 (unnest_nesting_tree_1): Likewise.
5469 (lower_nested_functions): Likewise.
5470 * tree-optimize.c (execute_fixup_cfg): Likewise.
5471 (tree_rest_of_compilation): Likewise.
5472 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5473 * tree-sra.c (ipa_early_sra): Likewise.
5474 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5475 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5476 * ipa.c (record_cdtor_fn): Likewise.
5477 * ipa-inline.c (cgraph_early_inlining): Likewise.
5478 (compute_inline_parameters_for_current): Likewise.
5479 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5480 * ipa-pure-const.c (local_pure_const): Likewise.
5481 * ipa-split.c (split_function): Likewise.
5482 (execute_split_functions): Likewise.
5483 * cgraphbuild.c (build_cgraph_edges): Likewise.
5484 (rebuild_cgraph_edges): Likewise.
5485 (cgraph_rebuild_references): Likewise.
5486 (remove_cgraph_callee_edges): Likewise.
5487 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5488 (verify_cgraph_node): Likewise.
5489 (cgraph_analyze_functions): Likewise.
5490 (cgraph_preserve_function_body_p): Likewise.
5491 (save_inline_function_body): Likewise.
5492 (save_inline_function_body): Likewise.
5493 * tree-inline.c (copy_bb): Likewise.
5494 (optimize_inline_calls): Likewise.
5495
5496 2011-04-11 Martin Jambor <mjambor@suse.cz>
5497
5498 PR tree-optimization/48195
5499 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5500 ipa_check_create_edge_args.
5501 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5502 ipa_check_create_edge_args.
5503 * ipa-inline.c (inline_generate_summary): Do not call
5504 ipa_check_create_node_params and ipa_check_create_edge_args.
5505 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5506 ipa_check_create_edge_args.
5507
5508 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5509
5510 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5511 instead of loop.
5512 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5513 * function.c (record_hard_reg_sets): Likewise.
5514 * ira.c (compute_regs_asm_clobbered): Likewise.
5515 * sched-deps.c (sched_analyze_1): Likewise.
5516 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5517
5518 2011-04-09 Xinliang David Li <davidxl@google.com>
5519
5520 PR tree-optimization/PR48484
5521 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5522 has_valid_pred lazily
5523
5524 2011-04-09 Duncan Sands <baldrick@free.fr>
5525
5526 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5527
5528 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5529
5530 * combine.c (combine_validate_cost): Adjust comments. Set registered
5531 cost of I0 to zero at the end, if any.
5532
5533 2011-04-08 Xinliang David Li <davidxl@google.com>
5534
5535 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5536 to insane profile data.
5537
5538 2011-04-08 Xinliang David Li <davidxl@google.com>
5539
5540 * ipa-cp.c (ipcp_update_profiling): Correct
5541 negative scale factor due to insane profile data.
5542
5543 2011-04-08 Xinliang David Li <davidxl@google.com>
5544
5545 * final.c (dump_basic_block_info): New function.
5546 (final): Dump basic block.
5547 (final_scan_insn): Remove old dump.
5548
5549 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5550
5551 PR target/47829
5552 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5553 crtbegin/crtend.
5554
5555 2011-04-08 Michael Matz <matz@suse.de>
5556
5557 PR middle-end/48389
5558 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5559 functions.
5560 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5561 * rtl.h (rebuild_jump_labels_chain): Declare.
5562 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5563 insns inserted on edges.
5564
5565 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5566
5567 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5568 * config/arm/arm-arches.def: New.
5569 * config/arm/arm-opts.h: New.
5570 * config/arm/genopt.sh: New.
5571 * config/arm/arm-tables.opt: New (generated).
5572 * config/arm/arm.c (arm_handle_option, arm_target_help,
5573 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5574 (all_architectures): Get most table contents from arm-arches.def.
5575 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5576 arm_selected_tune here.
5577 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5578 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5579 (march=, mcpu=, mtune=): Use Enum and Var.
5580 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5581 (arm.o): Update dependencies.
5582
5583 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5584
5585 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5586 of header_file.
5587 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5588 (write_typed_alloc_defns): Likewise.
5589 (main): Calls write_typed_alloc_defns with output_header.
5590
5591 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5592
5593 PR inline-asm/48435
5594 * ira-color.c (setup_profitable_hard_regs): Add comments.
5595 Don't take prohibited hard regs into account.
5596 (setup_conflict_profitable_regs): Rename to
5597 get_conflict_profitable_regs.
5598 (check_hard_reg_p): Check prohibited hard regs.
5599
5600 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5601
5602 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5603 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5604 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5605
5606 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5607
5608 PR target/48366
5609 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5610 move from floating point to shift amount register.
5611 (emit_move_sequence): Remove secondary reload support for floating
5612 point to shift amount amount register copies.
5613 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5614 amount register copies.
5615 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5616 register, return false if mode isn't a scalar integer mode.
5617 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5618
5619 2011-04-08 Richard Guenther <rguenther@suse.de>
5620
5621 * gimple.c (gimple_call_flags): Remove kludge.
5622
5623 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5624
5625 * sel-sched.c (sel_region_init): Move call to
5626 sel_setup_region_sched_flags after setup_current_loop_nest.
5627
5628 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5629
5630 PR rtl-optimization/48272
5631 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5632 init_insn_reg_pressure_info. Adjust a caller.
5633 * sched-int.h (init_insn_reg_pressure_info): Declare.
5634 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5635 when sched-pressure is enabled.
5636
5637 2011-04-08 Richard Guenther <rguenther@suse.de>
5638
5639 * gimple.c (gimple_set_modified): Do not queue calls to
5640 MODIFIED_NORETURN_CALLS here ...
5641 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5642
5643 2011-04-08 Richard Guenther <rguenther@suse.de>
5644
5645 PR lto/48467
5646 * toplev.c (lang_dependent_init): Do not open asm_out_file
5647 in WPA mode, nor perform debug machinery initialization.
5648 (finalize): Do not unlink asm_out_file in WPA mode.
5649
5650 2011-04-08 Richard Guenther <rguenther@suse.de>
5651
5652 * gimple.h (gimple_call_fntype): New function.
5653 (gimple_call_return_type): Use it.
5654 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5655 * gimple-low.c (gimple_check_call_args): Likewise.
5656 * gimple.c (gimple_call_flags): Likewise.
5657 (gimple_call_arg_flags): Likewise.
5658 (gimple_call_return_flags): Likewise.
5659 * tree-cfg.c (verify_gimple_call): Likewise.
5660 (do_warn_unused_result): Likewise.
5661 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5662 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5663
5664 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5665
5666 PR rtl-optimization/48235
5667 * sel-sched.c (code_motion_process_successors): Recompute the last
5668 insn in basic block if control flow changed.
5669 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5670 Update condition for ilist_remove.
5671
5672 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5673
5674 PR rtl-optimization/48302
5675 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5676 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5677 it to record added preheader blocks.
5678 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5679 on to sel_add_loop_preheaders.
5680 (sel_region_init): Move call to setup_current_loop_nest after
5681 sel_init_bbs.
5682
5683 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5684
5685 PR target/48273
5686 * cfgloop.h (loop_has_exit_edges): New helper.
5687 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5688 non-clonable.
5689 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5690 that have no exit edges.
5691
5692 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5693
5694 PR rtl-optimization/48442
5695 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5696 all callers. Adjust assert.
5697
5698 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR tree-optimization/48377
5701 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5702 is_packed to true even for types with smaller TYPE_ALIGN than
5703 TYPE_SIZE.
5704
5705 2011-04-08 Richard Guenther <rguenther@suse.de>
5706
5707 PR bootstrap/48513
5708 * doc/tm.texi: Re-generate.
5709
5710 2011-04-08 Wei Guozhi <carrot@google.com>
5711
5712 PR target/47855
5713 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5714 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5715 * config/arm/arm.md (*push_multi): Change the length computation to
5716 call a C function.
5717
5718 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5719
5720 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5721 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5722 * doc/tm.texi: Regenerate.
5723 * system.h (ASM_OUTPUT_BSS): Poison.
5724 * varasm.c (asm_output_bss): Remove function.
5725 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5726
5727 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5728 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5729 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5730 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5731 Likewise.
5732 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5733 Likewise.
5734 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5735 Likewise.
5736 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5737
5738 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5739
5740 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5741 EnumValue lines.
5742
5743 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5744
5745 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5746 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5747 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5748 OPT_mcpu32.
5749 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5750 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5751 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5752 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5753 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5754 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5755 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5756 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5757 options. Don't map other m68k options manually. Don't handle
5758 old-style options as canonical.
5759 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5760 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5761
5762 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5763
5764 * basic-block.h (force_nonfallthru): Move to...
5765 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5766 (force_nonfallthru): ...here.
5767 * cfghooks.c (force_nonfallthru): New function.
5768 * cfgrtl.c (force_nonfallthru): Rename into...
5769 (rtl_force_nonfallthru): ...this.
5770 (commit_one_edge_insertion): Do not set AUX field.
5771 (commit_edge_insertions): Do not discover new basic blocks.
5772 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5773 (cfg_layout_rtl_cfg_hooks): Likewise.
5774 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5775 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5776 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5777
5778 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5779
5780 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5781 Remove macros.
5782
5783 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5784
5785 * config/i386/sse.md: Update copyright year.
5786 (avxcvtvecmode): Remove.
5787 (sse_movhlps): Merge with *avx_movhlps.
5788 (sse_movlhps): Merge with *avx_movlhps.
5789 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5790 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5791 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5792 (sse_loadhps): Merge with *avx_loadhps.
5793 (sse_storelps): Merge with *avx_storelps.
5794 (sse_loadlps): Merge with *avx_loadlps.
5795 (sse_movss): Merge with *avx_movss.
5796 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5797 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5798 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5799 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5800 (vec_set<mode>_0): Ditto.
5801 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5802 (sse4_1_insertps): Merge with *avx_insertps.
5803 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5804 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5805 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5806 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5807 (sse2_storehpd): Merge with *avx_storehpd.
5808 (sse2_loadhpd): Merge with *avx_loadhpd.
5809 (sse2_loadlpd): Merge with *avx_loadlpd.
5810 (sse2_movsd): Merge with *avx_movsd.
5811 (*vec_concatv2df): Merge with *vec_concatv2df.
5812
5813 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5814
5815 PR debug/48343
5816 * combine.c (combine_instructions): Add last_combined_insn,
5817 update it if insn is after it, pass it to all try_combine calls.
5818 (try_combine): Add last_combined_insn parameter, pass it instead of
5819 i3 to propagate_for_debug.
5820
5821 2011-04-07 Nick Clifton <nickc@redhat.com>
5822
5823 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5824 to handle MDR <-> data register transfers.
5825 (movhi_internal): Likewise.
5826
5827 2011-04-07 Alan Modra <amodra@gmail.com>
5828
5829 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5830 previous stack info.
5831
5832 2011-04-07 Tom de Vries <tom@codesourcery.com>
5833
5834 PR target/43920
5835 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5836 flow_find_cross_jump. Swap variables to implement backward replacement.
5837 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5838
5839 2011-04-07 Tom de Vries <tom@codesourcery.com>
5840
5841 PR target/43920
5842 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5843 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5844 and bb2.
5845 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5846 src1 or src2. Redirect edges to the last basic block. Update
5847 frequency and count on multiple basic blocks in case of fallthru.
5848
5849 2011-04-07 Tom de Vries <tom@codesourcery.com>
5850
5851 PR target/43920
5852 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5853 function.
5854 (old_insns_match_p): Change return type. Replace return false/true
5855 with return dir_none/dir_both. Use can_replace_by.
5856 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5857 direction from dir_p. Register replacement direction in dir, last_dir
5858 and afterlast_dir. Handle new return type of old_insns_match_p using
5859 merge_dir. Return replacement direction in dir_p.
5860 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5861 return type of old_insns_match_p.
5862 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5863 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5864 flow_find_cross_jump.
5865 * basic-block.h (enum replace_direction): New type.
5866 (flow_find_cross_jump): Add parameter to declaration.
5867
5868 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5869
5870 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5871 (AVXMODEDCVTPS2DQ): Ditto.
5872 (VEC_FLOAT_MODE): Ditto.
5873 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5874 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5875 (<any_logic:code><mode>3): Use VF mode iterator.
5876 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5877 Use VF mode iterator.
5878 (copysign<mode>3): Use VF mode iterator.
5879 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5880 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5881 (*<any_logic:code><MODEF:mode>3): Merge with
5882 *avx_<any_logic:code><MODEF:mode>3.
5883 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5884 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5885 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5886 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5887 (sse2_cvtdq2ps): Use %v modifier.
5888 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5889 (avx_cvtps2dq<avxmodesuffix>): Remove.
5890 (sse2_cvtps2dq): Use %v modifier.
5891 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5892 (avx_cvttps2dq<avxmodesuffix>): Remove.
5893 (sse2_cvttps2dq): Use %v modifier.
5894 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5895 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5896 (sse2_cvtsd2siq): Fix insn template.
5897 (sse2_cvtsd2siq_2): Ditto.
5898 (sse2_cvttsd2siq): Ditto.
5899 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5900 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5901
5902 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5903
5904 * gcov-io.c: Use GCC Runtime Library Exception.
5905
5906 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5907
5908 PR debug/48466
5909 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5910 as base_reg whatever register reg has been eliminated to, instead
5911 of hardcoding STACK_POINTER_REGNUM.
5912
5913 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5914
5915 * doc/tm.texi.in: Document C target hooks as separate from general
5916 target hooks.
5917 * doc/tm.texi: Regenerate.
5918 * genhooks.c (struct hook_desc): Add docname field.
5919 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5920 docname field.
5921 (hook_array): Include c-target.def.
5922 (emit_documentation): Use docname field in output.
5923 (emit_init_macros): Take docname argument. Only emit definitions
5924 for hooks matching docname.
5925 (main): Expect additional arguments in all cases. Pass argument
5926 to emit_init_macros.
5927 * target.def: Move initial macro definitions and comments to
5928 target-hooks-macros.h.
5929 (gcc_targetcm): Move to c-family/c-target.def.
5930 * target.h (targetcm): Move declaration to c-family/c-target.h.
5931 * targhooks.c (default_handle_c_option): Move to
5932 c-family/c-opts.c.
5933 * targhooks.h (default_handle_c_option): Move declaration to
5934 c-family/c-common.h.
5935 * target-hooks-macros.h: New file.
5936 * config.gcc (target_has_targetcm): Define and use to add to
5937 c_target_objs and cxx_target_objs.
5938 * config/default-c.c: New file.
5939 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5940 of target.h and target-def.h.
5941 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5942 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5943 darwin_check_cfstring_format_arg): Make static.
5944 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5945 TARGET_STRING_OBJECT_REF_TYPE_P,
5946 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5947 * config/darwin-protos.h (darwin_objc_construct_string,
5948 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5949 declare.
5950 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5951 TARGET_STRING_OBJECT_REF_TYPE_P,
5952 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5953 * config/t-darwin (darwin-c.o): Update dependencies.
5954 * system.h (TARGET_HAS_TARGETCM): Poison.
5955 * Makefile.in (TARGET_H): Update.
5956 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5957 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5958 (default-c.o): New target.
5959 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5960 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5961 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5962 c-target.def.
5963 (build/genhooks.o): Update dependencies.
5964
5965 2011-04-06 Richard Guenther <rguenther@suse.de>
5966
5967 * ipa-inline.c (enum inlining_mode): Remove.
5968 (cgraph_flatten): Use some other token.
5969 (cgraph_edge_early_inlinable_p): New function, split out from ...
5970 (cgraph_perform_always_inlining): New function, split out from ...
5971 (cgraph_decide_inlining_incrementally): ... here.
5972 (cgraph_mark_inline_edge): Adjust.
5973 (cgraph_early_inlining): Re-structure.
5974 (pass_early_inline): Require SSA form.
5975
5976 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5977 Julian Brown <julian@codesourcery.com>
5978 Mark Shinwell <shinwell@codesourcery.com>
5979
5980 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5981 LO_REGS only for Thumb-1.
5982 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5983 be used in short instructions when optimising for size on Thumb-2.
5984
5985 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5986
5987 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5988 associated with user returns to be preserved.
5989
5990 2011-04-06 Tristan Gingold <gingold@adacore.com>
5991
5992 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5993 symbol_queue_size, DBXOUT_DECR_NESTING,
5994 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5995 if XCOFF_DEBUGGING_INFO.
5996
5997 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5998
5999 * config/i386/i386.md (attribute isa): New.
6000 (attribute enabled): New.
6001 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6002 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6003 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6004 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6005 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6006 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6007 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6008 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6009
6010 * config/i386/sse.md (VF): New mode iterator.
6011 (VF1): Ditto.
6012 (VF2): Ditto.
6013 (VF_128): Ditto.
6014 (SSEMODEF4): Remove.
6015 (attribute sse): Handle V8SF and V4DF modes.
6016 (<absneg:code><mode>2): Use VF mode iterator.
6017 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6018 mode iterator.
6019 (<plusminus_insn><mode>3): Use VF mode iterator.
6020 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6021 Use VF mode iterator.
6022 (<sse>_vm<plusminus_insn><mode>3): Merge with
6023 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6024 (mul<mode>3): Use VF mode iterator.
6025 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6026 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6027 mode iterator.
6028 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6029 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6030 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6031 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6032 mode iterator.
6033 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6034 Use VF1 mode iterator.
6035 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6036 (sqrt<VF2:mode>2): New expander.
6037 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6038 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6039 and sqrtv2df2. Use VF mode iterator.
6040 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6041 mode iterator.
6042 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6043 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6044 Use VF1 mode iterator.
6045 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6046 (<smaxmin:code><mode>3): Use VF mode iterator.
6047 (*<smaxmin:code><mode>3_finite): Merge with
6048 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6049 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6050 (<sse>_vm<smaxmin:code><mode>2): Merge with
6051 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6052 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6053 mode iterator.
6054 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6055 mode iterator.
6056 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6057 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6058 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6059 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6060 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6061 VF mode iterator.
6062 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6063 Use VF_128 mode iterator.
6064 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6065 mode iterator.
6066 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6067 VF_128 mode iterator.
6068 (vcond<mode>): Use VF mode iterator.
6069 * config/i386/predicates.md (sse_comparison_operator): Merge with
6070 avx_comparison_float_operator. Do not declare as special_predicate.
6071 * config/i386/i386.c (struct builtin_description): Update for renamed
6072 compare patterns.
6073 (ix86_expand_args_builtin): Ditto.
6074 (ix86_expand_sse_compare_mask): Ditto.
6075
6076 2011-04-06 Richard Guenther <rguenther@suse.de>
6077
6078 * tree-inline.c (estimate_num_insns): For calls simply account
6079 for all passed arguments and a used return value.
6080
6081 2011-04-06 Richard Guenther <rguenther@suse.de>
6082
6083 PR tree-optimization/47663
6084 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6085 call_stmt_time fields.
6086 (cgraph_edge_inlinable_p): Declare.
6087 (cgraph_edge_recursive_p): New inline function.
6088 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6089 (cgraph_clone_edge): Copy it.
6090 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6091 Account for call stmt time.
6092 (cgraph_estimate_time_after_inlining): Take edge argument.
6093 (cgraph_estimate_edge_growth): Account call stmt size.
6094 (cgraph_estimate_size_after_inlining): Take edge argument.
6095 (cgraph_mark_inline_edge): Adjust.
6096 (cgraph_check_inline_limits): Likewise.
6097 (cgraph_recursive_inlining_p): Remove.
6098 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6099 (cgraph_decide_recursive_inlining): Take edge argument and
6100 adjust.
6101 (cgraph_decide_inlining_of_small_functions): Do not avoid
6102 diags for recursive inlining here.
6103 (cgraph_flatten): Adjust.
6104 (cgraph_decide_inlining_incrementally): Likewise.
6105 (estimate_function_body_sizes): Remove call cost handling.
6106 (compute_inline_parameters): Initialize caller edge call costs.
6107 (cgraph_estimate_edge_growth): New function.
6108 (cgraph_estimate_growth): Use it.
6109 (cgraph_edge_badness): Likewise.
6110 (cgraph_check_inline_limits): Take an edge argument.
6111 (cgraph_decide_inlining_of_small_functions): Adjust.
6112 (cgraph_decide_inlining): Likewise.
6113 * tree-inline.c (estimate_num_insns): Only account for call
6114 return value if it is used.
6115 (expand_call_inline): Avoid diagnostics on recursive inline
6116 functions here.
6117 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6118 (input_edge): Input edge call costs.
6119
6120 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6121
6122 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6123
6124 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6125
6126 * doc/invoke.texi (Spec Files): Fix typo.
6127
6128 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6129
6130 * profile.c (branch_prob): Move declaration of local variable. Remove
6131 obsolete ??? comment. Expand the location explicitly instead of using
6132 the LOCATION_FILE and LOCATION_LINE macros.
6133
6134 2011-04-06 Wei Guozhi <carrot@google.com>
6135
6136 PR target/47855
6137 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6138 (arm_cond_branch): Likewise.
6139 (arm_cond_branch_reversed): Likewise.
6140 (arm_jump): Likewise.
6141 (push_multi): Likewise.
6142 * config/arm/constraints.md (Py): New constraint.
6143
6144 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6145
6146 PR bootstrap/48471
6147 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6148 Move these...
6149 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6150 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6151 #ifdef DBX_DEBUGGING_INFO.
6152
6153 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6154
6155 PR bootstrap/48403
6156 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6157 if old and new states differ.
6158
6159 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6160
6161 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6162 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6163 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6164 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6165 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6166 mcfv4e): Use Alias.
6167 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6168 ColdFire options to -mcpu= options.
6169
6170 2011-04-05 Jeff Law <law@redhat.com>
6171
6172 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6173 check if BB is a successor of LOOP->header and return
6174 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6175
6176 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6177
6178 * cprop.c (struct reg_use): Remove.
6179 (reg_use_table): Make an array of RTX.
6180 (find_used_regs, constprop_register, local_cprop_pass,
6181 bypass_block): Simplify users of reg_use_table.
6182 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6183 on one of the uses found by find_used_regs.
6184
6185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6186
6187 PR bootstrap/48469
6188 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6189 declaration.
6190
6191 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6192
6193 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6194 as an rtx.
6195 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6196
6197 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6198
6199 PR middle-end/48441
6200 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6201
6202 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6203
6204 * combine.c: Include obstack.h.
6205 (struct insn_link): Define.
6206 (uid_log_links): Adjust type.
6207 (FOR_EACH_LOG_LINK): New macro.
6208 (insn_link_obstack): Declare.
6209 (alloc_insn_link): Define.
6210 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6211 type of link variables.
6212 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6213 (try_combine, record_promoted_values, distribute_notes): Likewise.
6214 (distribute_links): Likewise. Tweak prototype.
6215 (clear_log_links): Delete.
6216 (adjust_for_new_dest): Call alloc_insn_link.
6217 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6218
6219 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6220
6221 * gcse.c (modify_mem_list): Convert to an array of VECs.
6222 (canon_modify_mem_list, compute_transp): Tweak formatting.
6223 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6224 (load_killed_in_block_p): Likewise.
6225 (record_last_mem_set_info): Likewise.
6226 (clear_modify_mem_tables): Likewise.
6227
6228 2011-04-05 Tom de Vries <tom@codesourcery.com>
6229
6230 PR middle-end/48461
6231 * function.c (emit_use_return_register_into_block): Only define if
6232 HAVE_return.
6233
6234 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6235
6236 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6237
6238 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6239
6240 * config/rx/rx-opts.h: New.
6241 * config/rx/rx.c (rx_cpu_type): Remove.
6242 (rx_handle_option): Don't assert that global structures are in
6243 use. Access variables via opts pointer. Defer most handling of
6244 OPT_mint_register_. Use error_at.
6245 (rx_option_override): Handle deferred OPT_mint_register_ here.
6246 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6247 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6248 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6249 (rx_cpu_types): New Enum and EnumValue entries.
6250 (mint-register=): Use Defer and use Var accordingly.
6251
6252 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6253
6254 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6255 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6256 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6257 Move these...
6258 (debug_free_queue, debug_nesting, symbol_queue_index):
6259 ...and these...
6260 * dbxout.c: ...to here. Make static.
6261
6262 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6263
6264 * gcse.c (modify_pair): Define. Define a VEC of it.
6265 (canon_modify_mem_list): Convert to an array of VECs.
6266 (free_insn_expr_list_list): Delete.
6267 (clear_modify_mem_tables): Call VEC_free instead.
6268 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6269 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6270 (canon_list_insert, compute_transp): Likewise.
6271
6272 2011-04-05 Tom de Vries <tom@codesourcery.com>
6273
6274 PR target/43920
6275 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6276 for size.
6277
6278 2011-04-05 Tom de Vries <tom@codesourcery.com>
6279
6280 PR target/43920
6281 * function.c (emit_use_return_register_into_block): New function.
6282 (thread_prologue_and_epilogue_insns): Use
6283 emit_use_return_register_into_block.
6284
6285 2011-04-05 Tom de Vries <tom@codesourcery.com>
6286
6287 PR target/43920
6288 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6289 insn.
6290
6291 2011-04-05 Tom de Vries <tom@codesourcery.com>
6292
6293 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6294
6295 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6296
6297 * config/arm/arm.md (define_constants for unspec): Replace with
6298 define_c_enum.
6299 (define_constants for unspecv): Replace with define_c_enum.
6300 * config/arm/neon.md (define_constants for unspec): Replace with
6301 define_c_enum.
6302
6303 2011-04-04 Richard Henderson <rth@redhat.com>
6304
6305 PR bootstrap/48400
6306 * dwarf2out.c (output_line_info): Always emit line info from
6307 at least one section.
6308 (dwarf2out_init): Create text_section_line_info here ...
6309 (set_cur_line_info_table): ... not here.
6310
6311 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6312
6313 PR target/48380
6314 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6315 not called.
6316
6317 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6318
6319 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6320
6321 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6322 (expr_equiv_p): Remove.
6323 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6324 (hash_scan_set): Update call to insert_set_in_table.
6325 (dump_hash_table): Dump <dest, src> pair.
6326 (lookup_set): Simplify. Lookup <dest, src> pair.
6327 (compute_transp): Remove, fold heavily simplified code into...
6328 (compute_local_properties): ...here. Expect COMP and TRANSP
6329 unconditionally.
6330 (find_avail_set): Take set directly from struct expr.
6331 (find_bypass-set): Likewise.
6332 (bypass_block): Likewise.
6333 (cprop_insn): Likewise. Remove redundant INSN_P test.
6334
6335 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6336 checks on form of COND from find_implicit_sets to here.
6337 (find_implicit_sets): Cleanup control flow. Split critical edges
6338 if it exposes implicit sets. Allocate/resize implicit_sets as
6339 necessary.
6340 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6341 changed something. Run df_analyze after find_implicit_sets if any
6342 edges were split. Do not allocate implicit_sets here.
6343
6344 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6345 (gcse_obstack): Renamed to cprop_obstack.
6346 (GNEW, GNEWVEC, GNEWVAR): Remove.
6347 (gmalloc): Remove.
6348 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6349 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6350 (gcse_alloc): Likewise, and rename to cprop_alloc.
6351 (alloc_gcse_men, free_gcse_mem): Remove.
6352 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6353 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6354 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6355
6356 * cprop.c (oprs_not_set_p): Remove.
6357 (mark_set, mark_clobber): Remove.
6358 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6359 (reg_not_set_p): New function.
6360 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6361 (cprop_insn): Likewise.
6362 (cprop_jump): Use FOR_EACH_EDGE.
6363
6364 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6365
6366 PR bootstrap/48403
6367 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6368 (rank_for_schedule): Use scheduled_insns vector instead of
6369 last_scheduled_insn.
6370 (ok_for_early_queue_removal): Likewise.
6371 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6372 we have a dbg_cnt.
6373 (choose_ready): Likewise.
6374 (commit_schedule): Use VEC_iterate.
6375 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6376 a dbg_cnt, use it and ensure the first insn is in the ready list.
6377 (haifa_sched_init): Allocate scheduled_insns.
6378 (sched_extend_ready_list): Don't allocate it; reserve space.
6379 (haifa_sched_finish): Free it.
6380
6381 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6382
6383 * optc-gen.awk: Always remove type from Variable entry before
6384 recording in var_seen.
6385
6386 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6387
6388 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6389 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6390 call to tidy_fallthru_edges.
6391
6392 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6393
6394 * doc/options.texi (ToLower): Document.
6395 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6396 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6397 * opts.h (cl_option): Add cl_tolower field.
6398 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6399 arguments with lowercase strings.
6400 * config/rx/rx.opt (mcpu=): Add ToLower.
6401 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6402 argument.
6403
6404 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6405
6406 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6407
6408 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6409
6410 * config/vax/vax.c: Include reload.h.
6411
6412 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6413
6414 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6415 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6416 (sparc_preferred_reload_class): New function.
6417
6418 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6419
6420 PR debug/48401
6421 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6422 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6423
6424 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6425
6426 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6427 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6428
6429 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6430
6431 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6432 (ASM_OUTPUT_ALIGNED_BSS): Define.
6433
6434 2011-04-03 Michael Matz <matz@suse.de>
6435
6436 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6437 and next_slot members.
6438 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6439 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6440 (lto_streamer_cache_append): Declare.
6441 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6442 unsigned index, remove offset parameter, ensure that we append
6443 or update existing entries.
6444 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6445 parameter, update next_slot for append.
6446 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6447 parameter.
6448 (lto_streamer_cache_insert_at): Likewise.
6449 (lto_streamer_cache_append): New function.
6450 (lto_streamer_cache_lookup): Use unsigned index.
6451 (lto_streamer_cache_get): Likewise.
6452 (lto_record_common_node): Don't test tree_node_can_be_shared.
6453 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6454 (lto_streamer_cache_delete): Don't free offsets member.
6455 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6456 (lto_output_string_with_length): Use lto_output_data_stream.
6457 (lto_output_tree_header): Remove ix parameter, don't write it.
6458 (lto_output_builtin_tree): Likewise.
6459 (lto_write_tree): Adjust callers to above, don't track and write
6460 offset, write unsigned index.
6461 (output_unreferenced_globals): Don't emit all global vars.
6462 (write_global_references): Use unsigned indices.
6463 (lto_output_decl_state_refs): Likewise.
6464 (write_symbol): Likewise.
6465 * lto-streamer-in.c (lto_input_chain): Move earlier.
6466 (input_function): Use unsigned index.
6467 (input_alias_pairs): Don't read and then ignore all global vars.
6468 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6469 don't pass it back, use lto_streamer_cache_append.
6470 (lto_register_var_decl_in_symtab): Use unsigned index.
6471 (lto_register_function_decl_in_symtab): Likewise.
6472 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6473 index.
6474 (lto_get_builtin_tree): Don't read index, use
6475 lto_streamer_cache_append.
6476 (lto_read_tree): Adjust call to lto_materialize_tree.
6477
6478 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6479 don't use function calls in arguments to MIN.
6480
6481 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6482 twice.
6483
6484 * gimple.c (gimple_type_leader_entry): Mark deletable.
6485
6486 2011-04-03 Alan Modra <amodra@gmail.com>
6487
6488 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6489
6490 2011-04-03 Michael Matz <matz@suse.de>
6491
6492 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6493 an integer.
6494 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6495
6496 2011-04-03 Michael Matz <matz@suse.de>
6497
6498 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6499 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6500 without function context.
6501 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6502 current_function_decl and cfun.
6503
6504 2011-04-03 Michael Matz <matz@suse.de>
6505
6506 * tree.c (decl_init_priority_insert): Don't create entry for
6507 default priority.
6508 (decl_fini_priority_insert): Ditto.
6509 (fields_compatible_p, find_compatible_field): Remove.
6510 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6511 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6512
6513 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6514
6515 * combine.c (try_combine): Remove useless local variable.
6516
6517 2011-04-03 Richard Guenther <rguenther@suse.de>
6518 Ira Rosen <ira.rosen@linaro.org>
6519
6520 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6521 non-variable offsets and compare the remaining bases of the two
6522 accesses instead of looking for exact same data-ref.
6523
6524 2011-04-02 Kai Tietz <ktietz@redhat.com>
6525
6526 PR target/48416
6527 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6528
6529 * i386.c (ix86_is_msabi_thiscall): New helper function.
6530 (ix86_is_type_thiscall): New helper function.
6531 (ix86_comp_type_attributes): Handle thiscall for method-functions
6532 special.
6533 (init_cumulative_args): Likewise.
6534 (find_drap_reg): Likewise.
6535 (ix86_static_chain): Likewise.
6536 (x86_this_parameter): Likewise.
6537 (x86_output_mi_thunk): Likewise.
6538
6539 2011-04-01 Olivier Hainque <hainque@adacore.com>
6540 Nicolas Setton <setton@adacore.com>
6541 Eric Botcazou <ebotcazou@adacore.com>
6542
6543 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6544 (add_gnat_descriptive_type_attribute): New function.
6545 (gen_array_type_die): Call it.
6546 (gen_enumeration_type_die): Likewise.
6547 (gen_struct_or_union_type_die): Likewise.
6548 (modified_type_die): Likewise.
6549 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6550 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6551 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6552
6553 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6554
6555 PR bootstrap/48148
6556 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6557 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6558
6559 Revert:
6560 2011-03-17 Richard Guenther <rguenther@suse.de>
6561
6562 PR bootstrap/48148
6563 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6564 origin for decls in other ltrans units.
6565 (input_varpool_node): Likewise.
6566
6567 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6568
6569 PR middle-end/48335
6570 * expr.c (expand_assignment): Handle all possibilities
6571 if TO_RTX is CONCAT.
6572 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6573 (store_split_bit_field): If SUBREG_REG (op0) or
6574 op0 itself has smaller mode than word, return it
6575 for offset 0 and const0_rtx for out-of-bounds stores.
6576 If word is const0_rtx, skip it.
6577
6578 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6579
6580 * config/h8300/h8300.c (print_operand_address): Rename to...
6581 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6582 Call h8300_print_operand and h8300_print_operand_address instead of
6583 print_operand and print_operand_address. Declare.
6584 (print_operand): Renake to...
6585 (h8300_print_operand): ...this. Make static. Adjust comments.
6586 Call h8300_print_operand instead of print_operand. Declare.
6587 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6588 (h8300_register_move_cost): Likewise.
6589 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6590 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6591 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6592 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6593 * config/h8300/h8300-protos.h (print_operand): Delete.
6594 (print_operand_address): Delete.
6595
6596 2011-04-01 Richard Henderson <rth@redhat.com>
6597
6598 PR 48400
6599 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6600 in strict mode before dwarf4. Re-order tests to early out
6601 before switching sections.
6602
6603 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6604
6605 * config/h8300/constraints.md: New file.
6606 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6607 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6608 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6609 * config/h8300/predicates.md (bit_operand): Likewise.
6610 (incdec_operand): Use satisfies_constraint_M and
6611 satisfies_constraint_O. Don't use C code block.
6612 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6613 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6614 (compute_mov_length): Use satisfies_constraint_G.
6615 (fix_bit_operand): Use satisfies_constraint_U.
6616 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6617 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6618 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6619 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6620 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6621 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6622 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6623 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6624 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6625 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6626 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6627 (EXTRA_MEMORY_CONSTRAINT): Delete.
6628
6629 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6630 Michael Meissner <meissner@linux.vnet.ibm.com>
6631
6632 PR target/48262
6633 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6634 operands, as per the specifications.
6635
6636 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6637 (vec_extract_evenv4sf): Ditto.
6638 (vec_extract_evenv8hi): Ditto.
6639 (vec_extract_evenv16qi): Ditto.
6640 (vec_extract_oddv4si): Ditto.
6641
6642 2011-03-31 Mark Wielaard <mjw@redhat.com>
6643
6644 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6645 high_pc attribute if the CU has no associated code. Only output
6646 DW_AT_entry_pc for CU if not generating strict dwarf and
6647 dwarf_version < 4.
6648
6649 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6650
6651 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6652 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6653 out of ...
6654 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6655 * final.c (final_start_function): Call the new function rather
6656 than using a NULL argument for dwarf2out_frame_debug.
6657
6658 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6659 that contains the prologue.
6660
6661 * haifa-sched.c (queue_insn): New arg REASON. All callers
6662 changed. Print it in debugging output.
6663
6664 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6665
6666 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6667 Split most of the code into...
6668 (begin_move_insn): ... here. New function.
6669 (ebb_sched_info): Add a pointer to it.
6670 * haifa-sched.c (scheduled_insns): New static variable.
6671 (sched_extend_ready_list): Allocate it.
6672 (schedule_block): Use it to record the order of scheduled insns.
6673 Perform RTL changes to move insns only after all scheduling
6674 decisions have been made.
6675 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6676 begin_move_insn field.
6677 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6678 * sched-int.h (struct haifa_sched_info): Remove second argument
6679 from begin_schedule_ready hook. Add new member begin_move_insn.
6680 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6681 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6682
6683 * haifa-sched.c (prune_ready_list): New function, broken out of
6684 schedule_block.
6685 (schedule_block): Use it.
6686
6687 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6688
6689 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6690
6691 2011-04-01 Kai Tietz <ktietz@redhat.com>
6692
6693 * config.gcc (*-*-mingw*): Allow as option the
6694 posix threading model.
6695 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6696 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6697 definition.
6698 (CPP_SPEC): Add pthread/no-pthread handling.
6699 (LIB_SPEC): Likewise.
6700 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6701 (LIB_SPEC): Likewise.
6702 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6703 flag to pass -pthread option for shared libgcc build.
6704 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6705 for shared libgcc build.
6706 * config/i386/t-mingw-pthread: New file.
6707 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6708 New define to enable use of library pthread by default.
6709 * config/i386/mingw.opt (pthread): New driver option.
6710 (no-pthread): New driver option.
6711 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6712 * config/i386/mingw-w64.opt: Likewise.
6713
6714 2011-04-01 Gary Funck <gary@intrepid.com>
6715
6716 * c-decl.c (grokdeclarator): Fix formatting.
6717
6718 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6719
6720 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6721 instead of n_operands.
6722 (set_storage_via_setmem): Likewise.
6723 * optabs.c (maybe_gen_insn): Likewise.
6724 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6725 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6726 (mips_expand_builtin_direct): Likewise.
6727 * config/spu/spu.c (expand_builtin_args): Likewise.
6728
6729 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6730
6731 * recog.h (insn_data_d): Add n_generator_args.
6732 * genoutput.c (data): Likewise.
6733 (output_insn_data): Print it.
6734 (max_opno, num_dups): Delete.
6735 (scan_operands): Just fill in "d->operand[...]".
6736 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6737
6738 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6739
6740 * gensupport.h (pattern_stats): New structure.
6741 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6742 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6743 (max_operand_1, max_operand_vec): Delete.
6744 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6745
6746 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6747
6748 * emit-rtl.c (emit_pattern_after_setloc): New function.
6749 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6750 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6751 (emit_pattern_after): New function.
6752 (emit_insn_after, emit_jump_insn_after): Call it.
6753 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6754 (emit_pattern_before_setloc): New function.
6755 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6756 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6757 Likewise.
6758 (emit_pattern_before): New function.
6759 (emit_insn_before, emit_jump_insn_before): Call it.
6760 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6761
6762 2011-03-31 Richard Henderson <rth@redhat.com>
6763
6764 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6765 (dw_separate_line_info_entry): Remove.
6766 (enum dw_line_info_opcode): New.
6767 (dw_line_info_entry): Use it.
6768 (dw_line_info_table, dw_line_info_table_p): New.
6769 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6770 (line_info_table, line_info_label_num): Remove.
6771 (line_info_table_in_use): Remove.
6772 (separate_line_info_table): Remove.
6773 (separate_line_info_table_allocated): Remove.
6774 (separate_line_info_table_in_use): Remove.
6775 (LINE_INFO_TABLE_INCREMENT): Remove.
6776 (line_info_label_num): New.
6777 (cur_line_info_table): New.
6778 (text_section_line_info, cold_text_section_line_info): New.
6779 (separate_line_info): New.
6780 (SEPARATE_LINE_CODE_LABEL): Remove.
6781 (print_dwarf_line_table): Remove.
6782 (debug_dwarf): Don't dump it.
6783 (output_one_line_info_table): New.
6784 (output_line_info): Use it.
6785 (new_line_info_table): New.
6786 (set_cur_line_info_table): New.
6787 (dwarf2out_switch_text_section): Use it.
6788 (dwarf2out_begin_function): Likewise.
6789 (push_dw_line_info_entry): New.
6790 (dwarf2out_source_line): Rewrite for new line info tables.
6791 (dwarf2out_init): Remove dead initailizations.
6792
6793 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6794
6795 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6796 various flags.
6797 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6798 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6799 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6800 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6801 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6802 * opt-functions.awk (flag_init, switch_bit_fields): New.
6803 (switch_flags): Don't handle flags moved to bit-fields. Don't
6804 generate CL_MISSING_OK or CL_SAVE.
6805 * optc-gen.awk: Update to generate bit-field output as well as
6806 flags field.
6807 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6808 bit-field instead of CL_REJECT_DRIVER flag.
6809 * opts-common.c (generate_canonical_option,
6810 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6811 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6812 instead of CL_REJECT_NEGATIVE flag.
6813 * toplev.c (print_switch_values): Use cl_report bit-field instead
6814 of CL_REPORT flag.
6815
6816 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6817
6818 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6819 a zero minimum index only if it is redundant.
6820
6821 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6822
6823 PR rtl-optimization/48381
6824 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6825 instead of ira_class_hard_reg_index for calculating conflicting
6826 hard registers.
6827
6828 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6829
6830 * cprop.c: Clean up hash table building.
6831 (reg_avail_info): Remove.
6832 (oprs_available_p): Remove.
6833 (record_last_reg_set_info): Remove.
6834 (record_last_set_info): Remove.
6835 (reg_available_p): New function.
6836 (gcse_constant_p): Do not treat unfolded conditions as constants.
6837 (make_set_regs_unavailable): New function.
6838 (hash_scan_set): Simplify with new reg_available_p.
6839 (compute_hash_table_work): Traverse insns stream only once.
6840 Do not compute reg_avail_info. Traverse insns in reverse order.
6841 Record implicit sets after recording explicit sets from the block.
6842
6843 2011-03-31 Michael Matz <matz@suse.de>
6844
6845 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6846
6847 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6848
6849 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6850 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6851 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6852 (h8300_mode_dependent_address_p): New function.
6853 (h8300_get_index): Make static.
6854
6855 2011-03-31 Jeff Law <law@redhat.com>
6856
6857 * reload1.c (elimination_effects): Fix typo in recent change.
6858
6859 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6860 typo potentially leading to null pointer dereference.
6861
6862 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6863 (setup_save_areas): Corresponding changes to avoid useless
6864 assignments.
6865
6866 * jump.c (reversed_comparison_code_parts): Avoid successive return
6867 statements when REVERSE_CONDITION is defined.
6868
6869 * expr.c (expand_assignment): Avoid useless assignments.
6870 (expand_expr_real_1): Likewise.
6871 (expand_expr_real_2): Avoid useless statements.
6872
6873 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6874
6875 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6876
6877 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6878 statements.
6879
6880 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6881
6882 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6883
6884 PR target/47109
6885 * doc/tm.texi.in (TARGET_VERSION): Remove.
6886 * doc/tm.texi: Regenerate.
6887 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6888 * collect2.c (main): Don't use TARGET_VERSION.
6889 * mips-tdump.c (main): Don't use TARGET_VERSION.
6890 * mips-tfile.c (main): Don't use TARGET_VERSION.
6891 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6892 * config/rs6000/vxworksae.h: Remove.
6893 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6894 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6895 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6896 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6897 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6898 * config/arm/arm.h (TARGET_VERSION): Remove.
6899 * config/arm/coff.h (TARGET_VERSION): Remove.
6900 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6901 * config/arm/elf.h (TARGET_VERSION): Remove.
6902 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6903 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6904 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6905 * config/arm/pe.h (TARGET_VERSION): Remove.
6906 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6907 * config/arm/semi.h (TARGET_VERSION): Remove.
6908 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6909 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6910 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6911 * config/avr/avr.h (TARGET_VERSION): Remove.
6912 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6913 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6914 * config/frv/frv.h (TARGET_VERSION): Remove.
6915 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6916 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6917 * config/i386/darwin.h (TARGET_VERSION): Remove.
6918 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6919 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6920 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6921 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6922 * config/i386/gnu.h (TARGET_VERSION): Remove.
6923 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6924 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6925 * config/i386/linux.h (TARGET_VERSION): Remove.
6926 * config/i386/linux64.h (TARGET_VERSION): Remove.
6927 * config/i386/lynx.h (TARGET_VERSION): Remove.
6928 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6929 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6930 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6931 * config/i386/netware.h (TARGET_VERSION): Remove.
6932 * config/i386/nto.h (TARGET_VERSION): Remove.
6933 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6934 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6935 * config/ia64/elf.h (TARGET_VERSION): Remove.
6936 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6937 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6938 * config/ia64/linux.h (TARGET_VERSION): Remove.
6939 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6940 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6941 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6942 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6943 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6944 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6945 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6946 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6947 * config/m68k/linux.h (TARGET_VERSION): Remove.
6948 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6949 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6950 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6951 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6952 * config/mep/mep.h (TARGET_VERSION): Remove.
6953 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6954 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6955 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6956 * config/mips/linux.h (TARGET_VERSION): Remove.
6957 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6958 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6959 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6960 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6961 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6962 * config/pa/pa.h (TARGET_VERSION): Remove.
6963 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6964 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6965 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6966 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6967 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6968 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6969 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6970 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6971 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6972 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6973 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6974 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6975 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6976 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6977 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6978 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6979 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6980 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6981 * config/s390/linux.h (TARGET_VERSION): Remove.
6982 * config/s390/s390.h (TARGET_VERSION): Remove.
6983 * config/s390/tpf.h (TARGET_VERSION): Remove.
6984 * config/score/score.h (TARGET_VERSION): Remove.
6985 * config/sh/linux.h (TARGET_VERSION): Remove.
6986 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6987 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6988 * config/sh/sh.h (TARGET_VERSION): Remove.
6989 * config/sh/sh64.h (TARGET_VERSION): Remove.
6990 * config/sh/superh.h (TARGET_VERSION): Remove.
6991 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6992 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6993 * config/sparc/linux.h (TARGET_VERSION): Remove.
6994 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6995 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6996 TARGET_NAME32, TARGET_NAME): Remove.
6997 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6998 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6999 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7000 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7001 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7002 * config/spu/spu.h (TARGET_VERSION): Remove.
7003 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7004 * config/v850/v850.h (TARGET_VERSION): Remove.
7005 * config/vax/linux.h (TARGET_VERSION): Remove.
7006 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7007 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7008 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7009
7010 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7011
7012 PR target/48142
7013 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7014 frame-related from frame-unrelated adjustments to the stack pointer.
7015
7016 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7017
7018 * common.opt (fdebug-types-section): Move earlier.
7019 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7020
7021 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7022
7023 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7024 var.
7025
7026 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7027
7028 * tree.h (CASE_CHAIN): Define.
7029 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7030 (gimple_redirect_edge_and_branch): Likewise.
7031
7032 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7033
7034 PR middle-end/48367
7035 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7036 calculation.
7037
7038 2011-03-30 Jeff Law <law@redhat.com>
7039
7040 * PR bootstrap/48371
7041 * reload1.c (reload): Fix botch in last change.
7042
7043 * reload.h (struct reload): Fix typo introduced in last change.
7044
7045 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7046
7047 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7048 Undocumented. Remove help text.
7049 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7050 -mhard-float.
7051
7052 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7053
7054 * doc/options.texi (NegativeAlias): Document.
7055 (Alias): Mention NegativeAlias.
7056 * opt-functions.awk: Handle NegativeAlias.
7057 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7058 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7059 * opts.h (CL_NEGATIVE_ALIAS): Define.
7060 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7061 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7062 OPT_mspe_.
7063 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7064 Alias entries.
7065 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7066 mno-spe and mno-isel instead of mspe=no and -misel=no.
7067
7068 2011-03-29 Mark Wielaard <mjw@redhat.com>
7069
7070 * common.opt (fdebug-types-section): New flag.
7071 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7072 * dwarf2out.c (use_debug_types): New define.
7073 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7074 (print_die): Guard output of type unit signatures using
7075 use_debug_types.
7076 (build_abbrev_table): Replace assert of dwarf_version >= 4
7077 with assert on use_debug_types.
7078 (size_of_die): Likewise.
7079 (unmark_dies): Likewise.
7080 (value_format): Decide AT_ref_external form on use_debug_types.
7081 (output_die): Replace dwarf_version version check guard with
7082 use_debug_types where appropriate.
7083 (modified_type_die): Likewise.
7084 (gen_reference_type_die): Likewise.
7085 (dwarf2out_start_source_file): Likewise.
7086 (dwarf2out_end_source_file): Likewise.
7087 (prune_unused_types_walk_attribs): Likewise.
7088 (dwarf2out_finish): Likewise.
7089
7090 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7091
7092 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7093
7094 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7095
7096 PR rtl-optimization/48332
7097 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7098 mode of input operand N and modeN to its actual mode.
7099
7100 2011-03-30 Jeff Law <law@redhat.com>
7101
7102 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7103 define accessor macro.
7104 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7105 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7106 (reg_equiv_init): Likewise.
7107 (reg_equivs_size): New variable.
7108 (reg_equiv_init_size): Remove.
7109 (allocate_initial_values): Move prototype to here from....
7110 * integrate.h (allocate_initial_values): Remove prototype.
7111 * integrate.c: Include reload.h.
7112 (allocate_initial_values): Corresponding changes.
7113 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7114 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7115 (update_equiv_regs): Corresponding changes.
7116 (ira): Corresponding changes.
7117 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7118 (push_secondary_reload): Corresponding changes.
7119 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7120 (make_memloc, find_reloads_address): Corresponding changes.
7121 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7122 (find_reloads_address_1): Corresponding changes.
7123 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7124 (refers_to_regno_for_reload_p): Corresponding changes.
7125 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7126 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7127 * reload1.c: Include ggc.h.
7128 (grow_reg_equivs): New function.
7129 (replace_pseudos_in, reload): Corresponding changes.
7130 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7131 (eliminate_regs_1, elimination_effects): Corresponding changes.
7132 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7133 (delete_output_reload): Likewise.
7134 * caller-save.c (mark_referenced_regs): Corresponding changes.
7135 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7136 * frv/predicates.md (frv_load_operand): Corresponding changes.
7137 * microblaze/microblaze.c (double_memory_operand): Corresponding
7138 changes.
7139 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7140 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7141 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7142 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7143 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7144 changes.
7145 * pa/pa.c (emit_move_sequence): Corresponding changes.
7146 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7147
7148 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7149
7150 PR target/47551
7151 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7152 structure modes. Don't check neon_vector_mem_operand for
7153 vector or structure modes.
7154
7155 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7156 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7157
7158 PR target/43590
7159 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7160 operand 1 and reshuffle the operands to match.
7161 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7162
7163 2011-03-30 Christian Schüler <cschueler@gmx.de>
7164
7165 PR driver/48208
7166 * config/c.opt (F): Added 'Driver' to -F option.
7167
7168 PR driver/48260
7169 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7170 handler function.
7171 * config/darwin.opt: Added '-arch' option.
7172
7173 2011-03-30 Nick Clifton <nickc@redhat.com>
7174
7175 * config/rx/rx.md: Add peepholes and patterns to combine
7176 extending loads and simple arithmetic instructions.
7177 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7178 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7179 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7180 modes to use pre-decrement and post-increment addressing.
7181 (rx_is_restricted_memory_address): Add range checking of REG+INT
7182 addresses.
7183 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7184 (rx_memory_move_cost): Adjust cost of stores.
7185 (rx_adjust_insn_length): New function.
7186
7187 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7188
7189 PR c/48305
7190 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7191 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7192 matching arg00/arg01 types.
7193
7194 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7195
7196 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7197 last_location to UNKNOWN_LOCATION.
7198
7199 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7200
7201 PR target/48349
7202 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7203 FLOAT_SSE_REGS.
7204
7205 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7206 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7207
7208 PR bootstrap/48337
7209 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7210 Init(PROCESSOR_V7).
7211 (sparc_cpu): Likewise.
7212 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7213 PROCESSOR_V7.
7214
7215 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7216
7217 PR target/48336
7218 PR middle-end/48342
7219 PR rtl-optimization/48345
7220 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7221 hard regs for given mode from profitable regs when doing secondary
7222 allocation.
7223
7224 2011-03-29 Jeff Law <law@redhat.com>
7225
7226 PR bootstrap/48327
7227 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7228 do_not_duplicate field.
7229 (lookup_redirection_data): Corresponding changes.
7230 (create_duplicates): Always create a template block.
7231 (redirect_edges): Remove code which reused the original block
7232 when it was going to become unreachable code.
7233 (thread_block): Don't set do_not_duplicate field.
7234
7235 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7236
7237 * lto-opts.c (register_user_option_p, lto_register_user_option):
7238 Make type argument unsigned.
7239 * lto-streamer.h (lto_register_user_option): Make type argument
7240 unsigned.
7241 * opth-gen.awk: Make CL_* macros unsigned.
7242 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7243 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7244 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7245 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7246 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7247 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7248 (find_opt): Make lang_mask argument unsigned.
7249
7250 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7251
7252 PR rtl-optimization/48331
7253 PR rtl-optimization/48334
7254 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7255 for any used algorithm.
7256
7257 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7258
7259 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7260 to parent_max.
7261
7262 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7263
7264 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7265 (alpha_option_override): Don't set alpha_sr_alias_set.
7266 (emit_frame_store_1): Use gen_frame_mem rather than calling
7267 set_mem_alias_set.
7268 (alpha_expand_epilogue): Ditto.
7269
7270 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7271
7272 PR tree-optimization/48290
7273 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7274 vectorization, check that relevant phis in the basic block after
7275 the inner loop are really inner loop's exit phis.
7276
7277 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7278
7279 PR debug/48190
7280 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7281 (cached_dw_loc_list_def): New structure.
7282 (cached_dw_loc_list): New typedef.
7283 (cached_dw_loc_list_table): New variable.
7284 (cached_dw_loc_list_table_hash): New function.
7285 (cached_dw_loc_list_table_eq): Likewise.
7286 (add_location_or_const_value_attribute): Take a bool cache_p.
7287 Cache the list when the parameter is true.
7288 (gen_formal_parameter_die): Update caller.
7289 (gen_variable_die): Likewise.
7290 (dwarf2out_finish): Likewise.
7291 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7292 while generating debug info for the decl.
7293 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7294 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7295 (resolve_addr): Cache the result of resolving a chain of
7296 location lists.
7297
7298 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7299
7300 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7301 conflict object hard regset nodes have intersecting hard reg sets.
7302
7303 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7304 after regstat_init_n_sets_and_refs.
7305
7306 * ira.c: Add more comments at the top.
7307 (setup_stack_reg_pressure_class, setup_pressure_classes):
7308 Add comments how we compute the register pressure classes.
7309 (setup_allocno_and_important_classes): Add more comments.
7310 (setup_class_translate_array, reorder_important_classes)
7311 (setup_reg_class_relations): Add comments.
7312
7313 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7314 start of the file.
7315
7316 * ira-color.c: Add 2011 to the Copyright line.
7317 (assign_hard_reg): Add more comments.
7318 (improve_allocation): Ditto.
7319
7320 * ira-costs.c: Add 2011 to the Copyright line.
7321 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7322 comments.
7323 (setup_regno_cost_classes_by_mode): Ditto.
7324
7325 Initial patches from ira-improv branch:
7326
7327 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7328
7329 * ira-build.c (ira_create_object): Remove initialization of
7330 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7331 (ira_create_allocno): Remove initialization of
7332 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7333 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7334 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7335 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7336 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7337 Initialize ALLOCNO_ADD_DATA.
7338 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7339 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7340 ALLOCNO_REG.
7341 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7342 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7343
7344 * ira.c (ira_reallocate): Remove.
7345 (setup_pressure_classes): Call
7346 ira_init_register_move_cost_if_necessary. Use
7347 ira_register_move_cost instead of ira_get_register_move_cost.
7348 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7349 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7350
7351 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7352 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7353 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7354 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7355 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7356 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7357 Fix formatting.
7358 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7359 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7360 (struct allocno_color_data): New.
7361 (allocno_color_data_t): New typedef.
7362 (allocno_color_data): New definition.
7363 (ALLOCNO_COLOR_DATA): New macro.
7364 (struct object_color_data): New.
7365 (object_color_data_t): New typedef.
7366 (object_color_data): New definition.
7367 (OBJECT_COLOR_DATA): New macro.
7368 (update_copy_costs, calculate_allocno_spill_cost): Call
7369 ira_init_register_move_cost_if_necessary. Use
7370 ira_register_move_cost instead of ira_get_register_move_cost.
7371 (move_spill_restore, update_curr_costs): Ditto.
7372 (allocno_spill_priority): Make it inline.
7373 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7374 (struct coalesce_data, coalesce_data_t): New.
7375 (allocno_coalesce_data): New definition.
7376 (ALLOCNO_COALESCE_DATA): New macro.
7377 (merge_allocnos, coalesced_allocno_conflict_p): Use
7378 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7379 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7380 (coalesce_allocnos): Ditto.
7381 (setup_coalesced_allocno_costs_and_nums): Ditto.
7382 (collect_spilled_coalesced_allocnos): Ditto.
7383 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7384 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7385 (coalesce_spill_slots): Ditto.
7386 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7387 free allocno_coalesce_data.
7388
7389 * ira-conflicts.c: Fix formatting.
7390 (process_regs_for_copy): Call
7391 ira_init_register_move_cost_if_necessary. Use
7392 ira_register_move_cost instead of ira_get_register_move_cost.
7393 (build_object_conflicts): Optimize.
7394
7395 * ira-costs.c (record_reg_classes): Optimize. Call
7396 ira_init_register_move_cost_if_necessary. Use
7397 ira_register_move_cost, ira_may_move_in_cost, and
7398 ira_may_move_out_cost instead of ira_get_register_move_cost and
7399 ira_get_may_move_cost.
7400 (record_address_regs): Ditto.
7401 (scan_one_insn): Optimize.
7402 (find_costs_and_classes): Optimize.
7403 (process_bb_node_for_hard_reg_moves): Call
7404 ira_init_register_move_cost_if_necessary. Use
7405 ira_register_move_cost instead of ira_get_register_move_cost.
7406
7407 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7408 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7409 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7410 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7411 definitions.
7412 (ira_initiate_emit_data, ira_finish_emit_data)
7413 (create_new_allocno): New functions.
7414 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7415 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7416 Use ira_register_move_cost instead of ira_get_register_move_cost.
7417
7418 * ira-int.h: Fix some comments.
7419 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7420 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7421 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7422 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7423 add_data.
7424 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7425 bitfield after mode. Make hard_regno a short int. Make
7426 hard_regno short. Remove first_coalesced_allocno and
7427 next_coalesced_allocno. Move mem_optimized_dest_p,
7428 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7429 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7430 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7431 temp, colorable_p. Add new member add_data.
7432 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7433 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7434 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7435 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7436 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7437 (ALLOCNO_ADD_DATA): New macro.
7438 (ira_emit_data_t): New typedef.
7439 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7440 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7441 from struct ira_allocno.
7442 (ALLOCNO_EMIT_DATA): New macro.
7443 (ira_allocno_emit_data, allocno_emit_reg): New.
7444 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7445 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7446 (OBJECT_ADD_DATA): New macro.
7447 (ira_reallocate): Remove.
7448 (ira_initiate_emit_data, ira_finish_emit_data): New.
7449 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7450 (ira_init_register_move_cost_if_necessary): New.
7451 (ira_object_conflict_iter_next): Merge into
7452 ira_object_conflict_iter_cond.
7453 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7454
7455 * ira-live.c (process_single_reg_class_operands): Call
7456 ira_init_register_move_cost_if_necessary. Use
7457 ira_register_move_cost instead of ira_get_register_move_cost.
7458
7459 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7460
7461 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7462
7463 * ira-costs.c: Fix formatting.
7464 (cost_classes, cost_classes_num): Remove.
7465 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7466 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7467 (cost_classes_del, cost_classes_htab): New.
7468 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7469 (initiate_regno_cost_classes, setup_cost_classes): New.
7470 (setup_regno_cost_classes_by_aclass): New.
7471 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7472 (record_reg_classes): Use regno_cost_classes instead of
7473 cost_classes. Move checking opposite operand up.
7474 (record_address_regs): Use regno_cost_classes
7475 instead of cost_classes.
7476 (scan_one_insn): Ditto. Use always general register.
7477 (print_allocno_costs): Use regno_cost_classes instead of
7478 cost_classes.
7479 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7480 (find_costs_and_classes): Set up cost classes for each registers.
7481 Use also their mode for this. Use regno_cost_classes instead of
7482 cost_classes.
7483 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7484 cost_classes.
7485 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7486 (ira_costs, ira_set_pseudo_classes): Call
7487 initiate_regno_cost_classes and finish_regno_cost_classes.
7488
7489 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7490
7491 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7492
7493 * target.def (ira_cover_classes): Remove.
7494
7495 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7496
7497 * doc/tm.texi.in: Ditto.
7498
7499 * ira-conflicts.c: Remove mentioning cover classes from the file.
7500 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7501 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7502
7503 * targhooks.c (default_ira_cover_classes): Remove.
7504
7505 * targhooks.h (default_ira_cover_classes): Ditto.
7506
7507 * haifa-sched.c: Remove mentioning cover classes from the file.
7508 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7509 ira_pressure_classes and ira_pressure_classes_num instead of
7510 ira_reg_class_cover_size and ira_reg_class_cover. Use
7511 sched_regno_pressure_class instead of sched_regno_cover_class.
7512 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7513 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7514
7515 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7516 classes from the file.
7517 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7518 (struct object_hard_regs, struct object_hard_regs_node): New.
7519 (struct ira_object): New members profitable_hard_regs,
7520 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7521 (struct ira_allocno): Rename cover_class to aclass. Rename
7522 cover_class_cost and updated_cover_class_cost to class_cost and
7523 updated_class_cost. Remove splay_removed_p and
7524 left_conflict_size. Add new members colorable_p.
7525 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7526 (ALLOCNO_COLORABLE_P): New macro.
7527 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7528 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7529 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7530 (OBJECT_...): Rename parameter C to O.
7531 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7532 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7533 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7534 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7535 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7536 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7537 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7538 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7539 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7540 x_ira_reg_class_subunion.
7541 (ira_max_memory_move_cost, ira_max_register_move_cost)
7542 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7543 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7544 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7545 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7546 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7547 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7548 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7549 (ira_tune_allocno_costs_and_cover_classes): Rename to
7550 ira_tune_allocno_costs.
7551 (ira_debug_hard_regs_forest): New.
7552 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7553 (ira_object_conflict_iter_next): Fix comments.
7554 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7555 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7556 cover_class to aclass.
7557 (ira_allocate_and_accumulate_costs): Ditto.
7558 (ira_allocate_and_set_or_copy_costs): Ditto.
7559
7560 * opts.c (decode_options): Remove ira_cover_class check.
7561
7562 * ira-color.c: Remove mentioning cover classes from the file. Use
7563 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7564 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7565 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7566 (splay-tree.h): Remove include.
7567 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7568 before copy_freq_compare_func.
7569 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7570 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7571 New definitions.
7572 (hard_regs_roots, hard_regs_node_vec): Ditto.
7573 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7574 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7575 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7576 (create_new_object_hard_regs_node): Ditto.
7577 (add_new_object_hard_regs_node_to_forest): Ditto.
7578 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7579 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7580 Ditto.
7581 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7582 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7583 (remove_unused_object_hard_regs_nodes): Ditto.
7584 (enumerate_object_hard_regs_nodes): Ditto.
7585 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7586 (object_hard_regs_subnode_t): Ditto.
7587 (struct object_hard_regs_subnode): Ditto.
7588 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7589 (setup_object_hard_regs_subnode_index): Ditto.
7590 (get_object_hard_regs_subnodes_num): Ditto.
7591 (form_object_hard_regs_nodes_forest): Ditto.
7592 (finish_object_hard_regs_nodes_tree): Ditto.
7593 (finish_object_hard_regs_nodes_forest): Ditto.
7594 (allocnos_have_intersected_live_ranges_p): Rename to
7595 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7596 (pseudos_have_intersected_live_ranges_p): Rename to
7597 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7598 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7599 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7600 (update_copy_costs): Remove assert. Skip cost update if the hard
7601 reg does not belong the class.
7602 (assign_hard_reg): Process only profitable hard regs.
7603 (uncolorable_allocnos_num): Make it scalar.
7604 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7605 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7606 and ira_reg_class_max_nregs.
7607 (bucket_allocno_compare_func): Check frequency first.
7608 (sort_bucket): Add compare function as a parameter.
7609 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7610 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7611 (push_allocno_to_stack): Rewrite for checking new allocno
7612 colorability.
7613 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7614 (push_only_colorable): Pass new parameter to sort_bucket.
7615 (push_allocno_to_spill): Remove.
7616 (allocno_spill_priority_compare): Make it inline and rewrite.
7617 (splay_tree_allocate, splay_tree_free): Remove.
7618 (allocno_spill_sort_compare): New function.
7619 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7620 build and use splay tree. Choose first allocno in uncolorable
7621 allocno bucket to spill. Remove setting spill cost.
7622 (all_conflicting_hard_regs): Remove.
7623 (setup_allocno_available_regs_num): Check only profitable hard
7624 regs. Print info about hard regs nodes.
7625 (setup_allocno_left_conflicts_size): Remove.
7626 (put_allocno_into_bucket): Don't call
7627 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7628 (improve_allocation): New.
7629 (color_allocnos): Call setup_profitable_hard_regs,
7630 form_object_hard_regs_nodes_forest, improve_allocation,
7631 finish_object_hard_regs_nodes_forest. Setup spill cost.
7632 (print_loop_title): Use pressure classes.
7633 (color_allocnso): Ditto.
7634 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7635 and allocnos_for_spilling.
7636 (ira_sort_regnos_for_alter_reg): Don't setup members
7637 {first,next}_coalesced_allocno.
7638 (color): Remove allocating and freeing removed_splay_allocno_vec.
7639 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7640 prohibited_class_mode_regs.
7641
7642 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7643 formatting.
7644 (update_allocno_pressure_excess_length): Use pressure classes.
7645 (inc_register_pressure, dec_register_pressure): Check for pressure
7646 class.
7647 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7648 pressure class. Use ira_reg_class_nregs instead of
7649 ira_reg_class_max_nregs.
7650 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7651 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7652 (single_reg_class): Use ira_reg_class_nregs instead of
7653 ira_reg_class_max_nregs.
7654 (process_bb_node_lives): Use pressure classes.
7655
7656 * ira-emit.c: Remove mentioning cover classes from the file. Use
7657 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7658 (change_loop): Use pressure classes.
7659 (modify_move_list): Call ira_set_allocno_class instead of
7660 ira_set_allocno_cover_class.
7661
7662 * ira-build.c: Remove mentioning cover classes from the file. Use
7663 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7664 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7665 ALLOCNO_UPDATED_CLASS_COST instead of
7666 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7667 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7668 (ira_create_allocno): Remove initialization of
7669 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7670 ALLOCNO_COLORABLE_P.
7671 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7672 Update conflict regs for the objects.
7673 (create_cap_allocno): Remove assert. Don't propagate
7674 ALLOCNO_AVAILABLE_REGS_NUM.
7675 (ira_free_allocno_costs): New function.
7676 (finish_allocno): Change a part of code into call of
7677 ira_free_allocno_costs.
7678 (low_pressure_loop_node_p): Use pressure classes.
7679 (object_range_compare_func): Don't compare classes.
7680 (setup_min_max_conflict_allocno_ids): Ditto.
7681
7682 * loop-invariant.c: Remove mentioning cover classes from the file.
7683 Use ira_pressure_classes and ira_pressure_classes_num instead of
7684 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7685 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7686 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7687 Use reg_allocno_class instead of reg_cover_class.
7688 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7689 STACK_REG_COVER_CLASS.
7690 (get_regno_cover_class): Rename to get_regno_pressure_class.
7691 (move_loop_invariants): Initialize and finalize regstat.
7692
7693 * ira.c: Remove mentioning cover classes from the file. Add
7694 comments about coloring without cover classes. Use ALLOCNO_CLASS
7695 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7696 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7697 setup_class_subset_and_memory_move_costs.
7698 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7699 (setup_cover_and_important_classes): Rename to
7700 setup_allocno_and_important_classes.
7701 (setup_class_translate_array): New.
7702 (setup_class_translate): Call it for allocno and pressure classes.
7703 (cover_class_order): Rename to allocno_class_order.
7704 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7705 of ira_class_translate.
7706 (reorder_important_classes): Set up ira_important_class_nums.
7707 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7708 (print_class_cover): Rename to print_classes. Add parameter.
7709 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7710 Print pressure classes too.
7711 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7712 setup_reg_subclasses.
7713 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7714 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7715 (setup_prohibited_class_mode_regs): Use
7716 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7717 (clarify_prohibited_class_mode_regs): New function.
7718 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7719 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7720 (ira_init_once): Initialize them.
7721 (free_register_move_costs): Process them.
7722 (ira_init): Move calls of find_reg_classes and
7723 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7724 Call clarify_prohibited_class_mode_regs.
7725 (ira_no_alloc_reg): Remove.
7726 (too_high_register_pressure_p): Use pressure classes.
7727
7728 * sched-deps.c: Remove mentioning cover classes from the file.
7729 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7730 ira_pressure_classes and ira_pressure_classes_num instead of
7731 ira_reg_class_cover_size and ira_reg_class_cover.
7732 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7733 sched_regno_pressure_class instead of sched_regno_cover_class.
7734 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7735 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7736
7737 * ira.h: Add 2010 to Copyright.
7738 (ira_no_alloc_reg): Remove external.
7739 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7740 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7741 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7742 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7743 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7744 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7745 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7746 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7747 x_ira_no_alloc_regs.
7748 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7749 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7750 ira_allocno_classes_num and ira_allocno_classes.
7751 (ira_class_translate): Rename to ira_allocno_class_translate.
7752 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7753 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7754 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7755 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7756 (ira_no_alloc_regs): New.
7757
7758 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7759 classes from the file. Use ALLOCNO_CLASS instead of
7760 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7761 ALLOCNO_COVER_CLASS_COST.
7762 (regno_cover_class): Rename to regno_aclass.
7763 (record_reg_classes): Use ira_reg_class_subunion instead of
7764 ira_reg_class_union.
7765 (record_address_regs): Check overflow.
7766 (scan_one_insn): Ditto.
7767 (print_allocno_costs): Print total mem cost fore regional allocation.
7768 (print_pseudo_costs): Use REG_N_REFS.
7769 (find_costs_and_classes): Use classes intersected with them on the
7770 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7771 ira_reg_class_union. Use ira_allocno_class_translate and
7772 regno_aclass instead of ira_class_translate and regno_cover_class.
7773 Modify code for finding regno_aclass. Setup preferred classes for
7774 the next pass.
7775 (setup_allocno_cover_class_and_costs): Rename to
7776 setup_allocno_class_and_costs. Use regno_aclass instead of
7777 regno_cover_class. Use ira_set_allocno_class instead of
7778 ira_set_allocno_cover_class.
7779 (init_costs, finish_costs): Use regno_aclass instead of
7780 regno_cover_class.
7781 (ira_costs): Use setup_allocno_class_and_costs instead of
7782 setup_allocno_cover_class_and_costs.
7783 (ira_tune_allocno_costs_and_cover_classes): Rename to
7784 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7785 by processing objects. Use ira_reg_class_max_nregs instead of
7786 ira_reg_class_nregs.
7787
7788 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7789
7790 * sched-int.h: Remove mentioning cover classes from the file.
7791 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7792
7793 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7794 classes from the file.
7795 (struct reg_pref): Rename coverclass into allocnoclass.
7796 (reg_cover_class): Rename to reg_allocno_class.
7797
7798 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7799
7800 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7801
7802 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7803
7804 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7805
7806 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7807
7808 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7809
7810 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7811
7812 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7813
7814 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7815
7816 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7817
7818 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7819 (i386_ira_cover_classes): Ditto.
7820
7821 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7822
7823 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7824
7825 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7826
7827 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7828
7829 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7830
7831 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7832
7833 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7834 (mips_ira_cover_classes): Ditto.
7835
7836 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7837
7838 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7839
7840 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7841
7842 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7843
7844 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7845
7846 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7847 (IRA_COVER_CLASSES_VSX): Ditto.
7848
7849 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7850 (rs6000_ira_cover_classes): Ditto.
7851
7852 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7853
7854 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7855
7856 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7857
7858 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7859
7860 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7861
7862 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7863
7864 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7865
7866 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7867
7868 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7869
7870 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7871
7872 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR debug/48253
7875 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7876 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7877 dw_fde_unlikely_section_end_label, cold_in_std_section,
7878 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7879 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7880 fields.
7881 (output_fde): Use dw_fde_second_{begin,end} if second is
7882 true, otherwise dw_fde_{begin,end}.
7883 (output_call_frame_info): Test dw_fde_second_begin != NULL
7884 instead of dw_fde_switched_sections.
7885 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7886 fields, initialize new fields. Initialize in_std_section
7887 unconditionally from the first partition.
7888 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7889 dw_fde_second_begin is non-NULL.
7890 (dwarf2out_switch_text_section): Stop initializing removed
7891 dw_fde_struct fields, initialize new fields, initialize
7892 also dw_fde_end here. Set dw_fde_switch_cfi even when
7893 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7894 (struct var_loc_list_def): Add last_before_switch field.
7895 (arange_table, arange_table_allocated, arange_table_in_use,
7896 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7897 (size_of_aranges): Count !in_std_section and !second_in_std_section
7898 hunks in fdes, instead of looking at arange_table_in_use.
7899 (output_aranges): Add aranges_length argument, don't call
7900 size_of_aranges here. Instead of using aranges_table*
7901 emit ranges for fdes when !in_std_section resp.
7902 !second_in_std_section.
7903 (dw_loc_list): Break ranges crossing section switch.
7904 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7905 use dw_fde_second_end instead of dw_fde_end as end of last range.
7906 (gen_subprogram_die): Don't call add_arange. Use
7907 dw_fde_{begin,end} for first partition and if switched
7908 section dw_fde_second_{begin,end} for the second.
7909 (var_location_switch_text_section_1,
7910 var_location_switch_text_section): New functions.
7911 (dwarf2out_begin_function): Initialize cold_text_section even
7912 when function_section () isn't text_section.
7913 (prune_unused_types): Don't walk arange_table.
7914 (dwarf2out_finish): Don't needlessly test
7915 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7916 If info_section_emitted, call size_of_aranges and if it indicates
7917 non-empty .debug_aranges, call output_aranges with the computed
7918 size. Stop using removed dw_fde_struct fields, use
7919 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7920 for second.
7921
7922 PR debug/48203
7923 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7924 create ENTRY_VALUE if incoming or address of incoming's MEM
7925 is a hard REG.
7926 * dwarf2out.c (mem_loc_descriptor): Don't emit
7927 DW_OP_GNU_entry_value of DW_OP_fbreg.
7928 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7929 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7930 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7931 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7932 ENTRY_VALUE_EXPs.
7933 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7934 is a REG_P or MEM_P with REG_P address, compute hash directly
7935 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7936 (preserve_only_constants): Don't clear VALUES forwaring
7937 ENTRY_VALUE to some other VALUE.
7938
7939 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7940
7941 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7942 instead of GEN_INT.
7943
7944 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7945
7946 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7947 block before expanding the statement.
7948 (expand_gimple_stmt_1): Likewise. Set them here...
7949 (expand_gimple_stmt): ...and not here. Tidy.
7950 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7951 unknown.
7952
7953 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7954
7955 * Makefile.in: New rule for cprop.o.
7956 * gcse.c: Move constant/copy propagation to cprop.c.
7957 (compute_local_properties): Only handle expression tables.
7958 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7959 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7960 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7961 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7962 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7963 compute_cprop_data, find_used_regs, try_replace_reg,
7964 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7965 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7966 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7967 find_bypass_set, reg_killed_on_edge, bypass_block,
7968 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7969 execute_rtl_cprop, pass_rtl_cprop): Move to...
7970 * cprop.c: ...here. New file, constant/copy propagation for RTL
7971 moved from gcse.c to here with minor cleanups in duplicated code.
7972
7973 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7974
7975 * config/i386/i386.c (flag_opts): Fix a typo in
7976 -mavx256-split-unaligned-store.
7977
7978 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7979
7980 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7981 LIBCALL_VALUE): Remove macros.
7982 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7983 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7984 (h8300_function_value, h8300_libcall_value,
7985 h8300_function_value_regno_p): New functions.
7986
7987 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7988
7989 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7990
7991 2011-03-28 Jeff Law <law@redhat.com>
7992
7993 * tree-ssa-threadupdate.c (redirect_edges): Call
7994 create_edge_and_update_destination_phis as needed.
7995 (create_edge_and_update_destination_phis): Accept new BB argument.
7996 All callers updated.
7997 (thread_block): Do not update the profile when threading around
7998 intermediate blocks.
7999 (thread_single_edge): Likewise.
8000 (determine_bb_domination_status): If BB is not a successor of the
8001 loop header, return NONDOMINATING.
8002 (register_jump_thread): Note when we register a jump thread around
8003 an intermediate block.
8004 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8005 (thread_across_edge): Use it.
8006
8007 2011-03-28 Tristan Gingold <gingold@adacore.com>
8008
8009 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8010 when for_return is 2.
8011
8012 2011-03-28 Jeff Law <law@redhat.com>
8013
8014 * var-tracking.c (canonicalize_values_mark): Delete unused
8015 lhs assignment.
8016 (canonicalize_values_star, set_variable_part): Likewise.
8017 (clobber_variable_part, delete_variable_part): Likewise.
8018
8019 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8020
8021 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8022
8023 2011-03-28 Martin Jambor <mjambor@suse.cz>
8024
8025 * tree-inline.c (expand_call_inline): Do not check that destination
8026 node is analyzed.
8027 (optimize_inline_calls): Assert that destination node is analyzed.
8028 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8029 not call tree_lowering_passes.
8030 * cgraph.h (cgraph_analyze_function): Declare.
8031 * cgraphunit.c (cgraph_analyze_function): Make public.
8032
8033 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8034
8035 * config/sparc/sparc-opts.h: New.
8036 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8037 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8038 (sparc_option_override): Store processor_type enumeration rather
8039 than string in cpu_default. Remove name and enumeration from
8040 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8041 without using sparc_select. Use target_flags_explicit instead of
8042 fpu_option_set.
8043 * config/sparc/sparc.h (enum processor_type): Move to
8044 sparc-opts.h.
8045 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8046 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8047 HeaderInclude entry.
8048 (mcpu=, mtune=): Use Var and Enum.
8049 (sparc_processor_type): New Enum and EnumValue entries.
8050
8051 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8052 Iain Sandoe <iains@gcc.gnu.org>
8053
8054 PR target/48245
8055 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8056
8057 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8058
8059 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8060 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8061 Insert new statements at it in lieu of STMT.
8062 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8063 * tree-vect-stmts.c (vectorizable_store): Likewise.
8064 (vectorizable_load): Likewise.
8065
8066 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8067
8068 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8069 (divtf3): Ditto.
8070 (multf3): Ditto.
8071 (subtf3): Ditto.
8072
8073 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8074
8075 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8076 unaligned 256bit load/store.
8077 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8078 (*avx_movdqu<avxmodesuffix>): Likewise.
8079
8080 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8081
8082 PR target/48288
8083 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8084 * config/pa/pa.md (iordi3): Use new predicate in expander.
8085 (iorsi3): Likewise.
8086
8087 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8088
8089 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8090 FUNCTION_VALUE_REGNO_P): Remove macros.
8091 * config/mips/mips-protos.h (mips_function_value): Remove.
8092 * config/mips/mips.c (mips_function_value): Rename to...
8093 (mips_function_value_1): ... this. Make static. Handle receiving
8094 the function type in 'fn_decl_or_type' argument.
8095 (mips_function_value, mips_libcall_value,
8096 mips_function_value_regno_p): New function.
8097 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8098 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8099
8100 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8101
8102 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8103 and -mavx256-split-unaligned-store.
8104 (ix86_option_override_internal): Split 32-byte AVX unaligned
8105 load/store by default.
8106 (ix86_avx256_split_vector_move_misalign): New.
8107 (ix86_expand_vector_move_misalign): Use it.
8108
8109 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8110 -mavx256-split-unaligned-store.
8111
8112 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8113 256bit load/store. Generate unaligned store on misaligned memory
8114 operand.
8115 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8116 256bit load/store.
8117 (*avx_movdqu<avxmodesuffix>): Likewise.
8118
8119 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8120 -mavx256-split-unaligned-store.
8121
8122 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8123
8124 PR target/38598
8125 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8126 Update commentary.
8127
8128 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8129
8130 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8131 opno arguments with an expand_operand. Use create_input_operand.
8132 (mips_prepare_builtin_target): Delete.
8133 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8134 functions.
8135 (mips_expand_builtin_direct): Use create_output_operand and
8136 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8137 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8138 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8139
8140 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8141
8142 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8143 function.
8144 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8145
8146 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8147
8148 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8149 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8150 basic blocks and call commit_edge_insertions directly.
8151 (fixup_abnormal_edges): Move from here to...
8152 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8153 on the edges and return whether some have actually been inserted.
8154 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8155 compensation code.
8156
8157 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8158
8159 PR rtl-optimization/48144
8160 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8161 (merge_expr_data): ... here.
8162 (av_set_intersect): Rename to av_set_code_motion_filter.
8163 Update all callers. Call merge_history_vect when an expression
8164 is found in both sets.
8165 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8166
8167 2011-03-26 Alan Modra <amodra@gmail.com>
8168
8169 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8170 cmodel medium addresses.
8171 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8172 64-bit gpr loads and stores.
8173 (rs6000_secondary_reload_ppc64): New function.
8174 * config/rs6000/rs6000-protos.h: Declare it.
8175 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8176
8177 2011-03-26 Alan Modra <amodra@gmail.com>
8178
8179 PR target/47487
8180 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8181 GNU Go in traceback table.
8182
8183 2011-03-25 Richard Henderson <rth@redhat.com>
8184
8185 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8186 if there are exactly 6 operands.
8187 (set_storage_via_setmem): Similarly.
8188
8189 2011-03-25 Kai Tietz <ktietz@redhat.com>
8190
8191 * collect2.c (write_c_file_stat): Handle backslash
8192 as right-hand directory separator.
8193 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8194 checking just for slash.
8195 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8196 instead of checking for trailing slash.
8197 * gcc.c (record_temp_file): Use filename_cmp instead
8198 of strcmp.
8199 (do_spec_1): Likewise.
8200 (replace_outfile_spec_function): Likewise.
8201 (is_directory): Use filename_ncmp instead of strncmp.
8202 (print_multilib_info): Likewise.
8203 * gcov.c (find_source): Use filename_cmp instead
8204 instead of strcmp.
8205 (make_gcov_file_name): Fix order of slash/backslash
8206 checks.
8207 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8208 (add_standard_paths): Likewise.
8209 * mips-tfile.c (saber_stop): Handle backslash.
8210 * prefix.c (update_path): Use filename_ncmp instead of
8211 strncmp.
8212 * profile.c (output_location): Use filename_cmp instead
8213 of strcmp.
8214 * read-md.c (handle_toplevel_file): Handle backslash.
8215 * tlink.c (frob_extension): Likewise.
8216 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8217 strcmp.
8218 * tree-dump.c (dequeue_and_dump): Handle backslash.
8219 * tree.c (get_file_function_name): Likewise.
8220 * gengtype.c (read_input_list): Likewise.
8221 (get_file_realbasename): Likewise.
8222 (get_output_file_with_visibility): Use filename_cmp
8223 instead of strcmp.
8224
8225 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8226
8227 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8228 case to VFPv1.
8229
8230 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8231
8232 * fold-const.c (expr_location_or): New function.
8233 (fold_truth_not_expr): Call it.
8234
8235 2011-03-25 Jeff Law <law@redhat.com>
8236
8237 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8238 va_end.
8239 * c-family/c-common.c (def_fn_type): Likewise.
8240 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8241 * emit-rtl.c (gen_rtvec): Likewise.
8242 * lto/lto-lang.c (def_fn_type): Likewise.
8243
8244 2011-03-25 Richard Guenther <rguenther@suse.de>
8245
8246 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8247 also generate copies.
8248 (fini_copy_prop): Handle constant values properly.
8249
8250 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8251
8252 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8253 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8254 (hash_loc_operands, compare_loc_operands): Handle
8255 DW_OP_GNU_entry_value.
8256
8257 2011-03-25 Kai Tietz <ktietz@redhat.com>
8258
8259 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8260 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8261 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8262 comment and use macro TARGET_64BIT_MS_ABI instead.
8263 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8264 and change default behavior for 32-bit MS_ABI.
8265 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8266 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8267 32-bit, too.
8268 (ix86_cfun_abi): Likewise.
8269 (ix86_maybe_switch_abi): Adjust comment.
8270 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8271 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8272 instead of checking for SYSV_ABI.
8273 (ix86_nsaved_sseregs): Likewise.
8274 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8275 to 16 bytes.
8276 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8277 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8278 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8279 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8280 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8281
8282 2011-03-25 Richard Guenther <rguenther@suse.de>
8283
8284 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8285 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8286 (verify_gimple): Remove.
8287 * tree-cfg.c (verify_gimple_call): Merge verification
8288 from verify_stmts.
8289 (verify_gimple_phi): Merge verification from verify_stmts.
8290 (verify_gimple_label): New function.
8291 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8292 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8293 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8294 (verify_stmts): Rename to verify_gimple_in_cfg.
8295 (verify_gimple_in_cfg): New function.
8296 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8297 * tree-ssa.c (verify_ssa): Likewise.
8298 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8299
8300 2011-03-25 Richard Guenther <rguenther@suse.de>
8301
8302 * passes.c (init_optimization_passes): Add FRE pass after
8303 early SRA.
8304
8305 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8306 Andrew Stubbs <ams@codesourcery.com>
8307
8308 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8309 for Cortex-A8.
8310 (arm_movdi_vfp_cortexa8): New pattern.
8311 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8312 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8313 instructions when tuning for Cortex-A8. Set attribute "arch".
8314 * config/arm/arm.md: Move include arm-tune.md up a bit.
8315 (define_attr "arch"): Add "onlya8" and "nota8" values.
8316 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8317
8318 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8319
8320 PR bootstrap/48282
8321 Revert:
8322 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8323
8324 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8325 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8326 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8327 * passes.c (init_optimization_passes): Move
8328 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8329
8330 2011-03-25 Kai Tietz <ktietz@redhat.com>
8331
8332 * c-typeck.c (comptypes_internal): Replace target
8333 hook call of comp_type_attributes by version in tree.c file.
8334 * gimple.c (gimple_types_compatible_p_1): Likewise.
8335 * tree-ssa.c (useless_type_conversion_p): Likewise.
8336 * tree.c (build_type_attribute_qual_variant): Likewise.
8337 (attribute_value_equal): New static helper function.
8338 (comp_type_attributes): New function.
8339 (merge_attributes): Use attribute_value_equal for comparison.
8340 (attribute_list_contained): Likewise.
8341 * tree.h (comp_type_attributes): New prototype.
8342
8343 2011-03-25 Richard Guenther <rguenther@suse.de>
8344
8345 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8346 of complex types at -O0.
8347 (verify_gimple_assign_binary): Likewise.
8348 (verify_gimple_assign_ternary): Likewise.
8349
8350 2011-03-24 Mark Wielaard <mjw@redhat.com>
8351
8352 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8353 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8354
8355 2011-03-24 Mark Wielaard <mjw@redhat.com>
8356
8357 PR debug/48041
8358 * dwarf2out.c (output_abbrev_section): Only write table when
8359 abbrev_die_table_in_use > 1.
8360
8361 2011-02-24 Richard Henderson <rth@redhat.com>
8362
8363 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8364 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8365 (alpha_expand_unaligned_load_words): Use extql.
8366 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8367 (emit_insxl): Handle all modes for consistency.
8368
8369 2011-02-24 Richard Henderson <rth@redhat.com>
8370
8371 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8372 (alpha_expand_unaligned_load): Likewise.
8373 (alpha_expand_unaligned_store): Likewise.
8374 (alpha_expand_unaligned_load_words): Likewise.
8375 (alpha_expand_unaligned_store_words): Likewise.
8376 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8377 (alpha_split_lock_test_and_set_12): Likewise.
8378 (print_operand, alpha_fold_builtin_extxx): Likewise.
8379 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8380 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8381 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8382 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8383 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8384 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8385 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8386 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8387 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8388 (extwl, extll, extql): Similarly.
8389 (inswh, inslh, insqh): Similarly.
8390 (mskbl, mskwl, mskll, mskql): Similarly.
8391 (mskwh, msklh, mskqh): Similarly.
8392
8393 2011-02-24 Richard Henderson <rth@redhat.com>
8394
8395 * config/alpha/alpha.md (attribute isa): Add er, ner.
8396 (attribute enabled): Handle them.
8397 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8398
8399 2011-02-24 Richard Henderson <rth@redhat.com>
8400
8401 * config/alpha/alpha.md (attribute isa): Add vms.
8402 (attribute enabled): Handle it.
8403 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8404 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8405 (*movtf): Rename from *movtf_internal for consistency.
8406 (*movsi): Merge with *movsi_nt_vms.
8407 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8408 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8409 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8410 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8411
8412 2011-02-24 Richard Henderson <rth@redhat.com>
8413
8414 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8415 (extendqisi2, extendhisi2): Likewise.
8416 (extendqidi2): Simplify BWX/non-BWX expansions.
8417 (extendhidi2): Similarly.
8418
8419 2011-02-24 Richard Henderson <rth@redhat.com>
8420
8421 * config/alpha/alpha.md (attribute isa): New.
8422 (attribute enabled): New.
8423 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8424 (zero_extendqisi2, zero_extendqidi2): Similarly.
8425 (zero_extendhisi2, zero_extendhidi2): Similarly.
8426 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8427
8428 2011-02-24 Richard Henderson <rth@redhat.com>
8429
8430 * config/alpha/predicates.md (input_operand): Revert last change;
8431 update comment to mention 32-bit VMS rather than Windows.
8432
8433 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8434
8435 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8436 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8437 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8438 * passes.c (init_optimization_passes): Move
8439 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8440
8441 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8442
8443 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8444
8445 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8446
8447 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8448 correctly.
8449
8450 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8451
8452 PR debug/48204
8453 * simplify-rtx.c (simplify_const_unary_operation): Call
8454 real_convert when changing mode class with FLOAT_EXTEND.
8455
8456 2011-03-24 Nick Clifton <nickc@redhat.com>
8457
8458 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8459 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8460 * config/rx/rx.c (rx_option_override): Set align_jumps,
8461 align_loops and align_labels if not set by the user.
8462 (rx_align_for_label): New function.
8463 (rx_max_skip_for_label): New function.
8464 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8465 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8466 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8467 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8468 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8469
8470 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8471
8472 PR rtl-optimization/48263
8473 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8474 and original commutative_p handling. Use maybe_gen_insn.
8475
8476 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8477
8478 * reload.c (find_reloads_subreg_address): Add address_reloaded
8479 parameter and return true there if the full address has been
8480 reloaded.
8481 (find_reloads_toplev): Pass address_reloaded flag.
8482 (find_reloads_address_1): Don't use address_reloaded parameter.
8483
8484 2011-03-24 Jeff Law <law@redhat.com>
8485
8486 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8487 unused variable "ann".
8488 (remove_unused_locals): Likewise.
8489
8490 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8491 statement.
8492
8493 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8494 after it is freed.
8495
8496 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8497
8498 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8499 for invalid symbolic addresses.
8500 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8501 larl operands.
8502
8503 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8504
8505 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8506 the argument in calls to fold_truth_not_expr.
8507
8508 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8509
8510 * tree.c (record_node_allocation_statistics): New function.
8511 (make_node_stat, copy_node_stat, build_string): Call it.
8512 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8513 (build1_stat, build_omp_clause): Likewise.
8514
8515 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8516
8517 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8518 last commit.
8519
8520 2011-03-24 Richard Guenther <rguenther@suse.de>
8521
8522 PR tree-optimization/48271
8523 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8524 blocks that still exist.
8525
8526 2011-03-24 Richard Guenther <rguenther@suse.de>
8527
8528 PR tree-optimization/48270
8529 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8530 not free datarefs before ddrs.
8531
8532 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8533
8534 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8535 from the address built for a reference with variable offset.
8536
8537 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8538
8539 PR target/48237
8540 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8541 alternatives that can be handled with movq or movabsq insn.
8542 (*movdf_internal): Disable for !TARGET_64BIT.
8543 (*movdf_internal_nointeger): Ditto.
8544 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8545
8546 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8547
8548 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8549 (FUNCTION_ARG_ADVANCE): Likewise.
8550 * tm.texi.in: Change references to them to hook references.
8551 * tm.texi: Regenerate.
8552 * targhooks.c (default_function_arg): Eliminate check for target macro.
8553 (default_function_incoming_arg): Likewise.
8554 (default_function_arg_advance): Likewise.
8555 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8556 (function_arg_advance): Likewise.
8557 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8558
8559 2011-03-24 Richard Guenther <rguenther@suse.de>
8560
8561 PR middle-end/48269
8562 * tree-object-size.c (addr_object_size): Do not double-account
8563 for MEM_REF offsets.
8564
8565 2011-03-24 Diego Novillo <dnovillo@google.com>
8566
8567 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8568 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8569 (lto_input_data_block): Move from lto-opts.c. Make extern.
8570 Update all users.
8571 (lto_input_string): Rename from input_string. Make extern.
8572 Update all users.
8573 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8574 output_string_with_length.
8575 Output 0 to indicate a non-NULL string. Update all callers to
8576 not emit 0.
8577 (lto_output_string): Rename from output_string. Make extern.
8578 Update all users.
8579 (lto_output_decl_state_streams): Make extern.
8580 (lto_output_decl_state_refs): Make extern.
8581 * lto-streamer.h (lto_input_string): Declare.
8582 (lto_input_data_block): Declare.
8583 (lto_output_string): Declare.
8584 (lto_output_string_with_length): Declare.
8585 (lto_output_decl_state_streams): Declare.
8586 (lto_output_decl_state_refs): Declare.
8587
8588 2011-03-24 Richard Guenther <rguenther@suse.de>
8589
8590 PR tree-optimization/46562
8591 * tree.c (build_invariant_address): New function.
8592 * tree.h (build_invariant_address): Declare.
8593 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8594 a renamed function moved ...
8595 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8596 Take valueization callback parameter.
8597 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8598 * gimple-fold.h: New file.
8599 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8600 (ccp_fold, fold_const_aggregate_ref,
8601 fold_ctor_reference, fold_nonarray_ctor_reference,
8602 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8603 get_base_constructor): Move ...
8604 * gimple-fold.c: ... here.
8605 (gimple_fold_stmt_to_constant_1): New function
8606 split out from ccp_fold. Take a valueization callback parameter.
8607 Valueize all operands.
8608 (gimple_fold_stmt_to_constant): New wrapper function.
8609 (fold_const_aggregate_ref_1): New function split out from
8610 fold_const_aggregate_ref. Take a valueization callback parameter.
8611 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8612 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8613 invariant POINTER_PLUS_EXPRs to invariant form.
8614 (vn_valueize): New function.
8615 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8616 * tree-vrp.c (vrp_valueize): New function.
8617 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8618 to fold statements to constants.
8619 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8620 function declarations.
8621 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8622 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8623
8624 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8625
8626 * config/h8300/predicates.md (jump_address_operand): Fix register
8627 mode check.
8628
8629 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8630
8631 * doc/invoke.texi (max-stores-to-sink): Document.
8632 * params.h (MAX_STORES_TO_SINK): Define.
8633 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8634 if either vectorization or if-conversion is disabled.
8635 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8636 tree-vect-data-refs.c vect_equal_offsets.
8637 (dr_equal_offsets_p): New function.
8638 (find_data_references_in_bb): Remove static.
8639 * tree-data-ref.h (find_data_references_in_bb): Declare.
8640 (dr_equal_offsets_p): Likewise.
8641 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8642 (vect_drs_dependent_in_basic_block): Update calls to
8643 vect_equal_offsets.
8644 (vect_check_interleaving): Likewise.
8645 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8646 (cond_if_else_store_replacement): Rename to...
8647 (cond_if_else_store_replacement_1): ... this. Change arguments and
8648 documentation.
8649 (cond_if_else_store_replacement): New function.
8650 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8651 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8652
8653 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8654
8655 PR target/46934
8656 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8657 to subtract lower bound instead of GEN_INT().
8658
8659 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8660
8661 PR other/48179
8662 PR other/48221
8663 PR other/48234
8664 * doc/extend.texi (Alignment): Move section to match order in TOC.
8665 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8666 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8667
8668 2011-03-23 Jeff Law <law@redhat.com>
8669
8670 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8671 before removing the edge.
8672
8673 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8674 it may have been freed by redirect_branch_edge or
8675 redirect_edge_succ_nodup.
8676
8677 2011-03-23 Richard Guenther <rguenther@suse.de>
8678
8679 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8680 (check_va_list_escapes): Likewise.
8681 (check_all_va_list_escapes): Likewise.
8682
8683 2011-03-23 Richard Guenther <rguenther@suse.de>
8684
8685 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8686 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8687 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8688 (alias.o): Likewise.
8689 (ipa-type-escape.o): Remove.
8690 (ipa-struct-reorg.o): Likewise.
8691 (GTFILES): Remove ipa-struct-reorg.c.
8692 * alias.c: Do not include ipa-type-escape.h.
8693 * tree-ssa-alias.c: Likewise.
8694 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8695 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8696 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8697 and ipa-type-escape passes.
8698 * tree-pass.h (pass_ipa_type_escape): Remove.
8699 (pass_ipa_struct_reorg): Likewise.
8700 * ipa-struct-reorg.h: Remove.
8701 * ipa-struct-reorg.c: Likewise.
8702 * ipa-type-escape.h: Likewise.
8703 * ipa-type-escape.c: Likewise.
8704 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8705 (--param struct-reorg-cold-struct-ratio): Likewise.
8706 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8707 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8708 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8709
8710 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8711
8712 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8713 cpu attribute value.
8714 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8715 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8716 * config/s390/s390.c (processor_flags_table): New constant array.
8717 (s390_handle_arch_option): Remove.
8718 (s390_handle_option): Remove s390_handle_arch_option invocations
8719 and OPT_mwarn_framesize_ handling.
8720 (s390_option_override): Remove s390_handle_arch_option invocation.
8721 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8722 warnings.
8723 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8724 * config/s390/s390.opt (s390_tune, s390_arch)
8725 (march=): Replace s390_arch_option enum and values with
8726 processor_type. Set variable name to s390_arch. Set
8727 initialization value.
8728 (mtune=): Replace s390_arch_option with processor_type. Set
8729 variable name to s390_tune. Set initialization value.
8730
8731 2011-03-23 Julian Brown <julian@codesourcery.com>
8732
8733 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8734 accesses which are not naturally aligned.
8735
8736 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8737
8738 PR target/47553
8739 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8740
8741 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8742
8743 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8744 parameter from "int" to "enum insn_code".
8745 (expand_operand_type): New enum.
8746 (expand_operand): New structure.
8747 (create_expand_operand): New function.
8748 (create_fixed_operand, create_output_operand): Likewise
8749 (create_input_operand, create_convert_operand_to): Likewise.
8750 (create_convert_operand_from, create_address_operand): Likewise.
8751 (create_integer_operand): Likewise.
8752 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8753 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8754 (expand_insn, expand_jump_insn): Likewise.
8755 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8756 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8757 (expand_movstr, expand_builtin___clear_cache): Likewise.
8758 (expand_builtin_lock_release): Likewise.
8759 * explow.c (allocate_dynamic_stack_space): Likewise.
8760 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8761 and use the default handling in that case.
8762 * expmed.c (check_predicate_volatile_ok): Delete.
8763 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8764 (emit_cstore): Likewise.
8765 * expr.c (emit_block_move_via_movmem): Likewise.
8766 (set_storage_via_setmem, expand_assignment): Likewise.
8767 (emit_storent_insn, try_casesi): Likewise.
8768 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8769 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8770 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8771 (expand_twoval_unop, expand_twoval_binop): Likewise.
8772 (expand_unop_direct, emit_indirect_jump): Likewise.
8773 (emit_conditional_move, vector_compare_rtx): Likewise.
8774 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8775 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8776 (expand_sync_lock_test_and_set): Likewise.
8777 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8778 (emit_unop_insn): Likewise.
8779 (expand_copysign_absneg): Change icode to an insn_code.
8780 (create_convert_operand_from_type): New function.
8781 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8782 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8783 (expand_insn, expand_jump_insn): Likewise.
8784 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8785 than const_int_operand for operand 2.
8786
8787 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8788
8789 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8790 if possible.
8791
8792 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8793
8794 * emit-rtl.c (emit_pattern_before_noloc): New function.
8795 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8796 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8797 (emit_pattern_after_noloc): New function.
8798 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8799 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8800
8801 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8802
8803 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8804 (__ffsDI2): Likewise.
8805
8806 2011-03-22 Richard Henderson <rth@redhat.com>
8807
8808 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8809 of !TARGET_ABI_OPEN_VMS.
8810 (alpha_trampoline_init, alpha_start_function): Likewise.
8811 (alpha_expand_epilogue, alpha_file_start): Likewise.
8812 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8813 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8814 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8815 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8816 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8817
8818 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8819
8820 * config/s390/s390-opts.h: New.
8821 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8822 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8823 s390_stack_guard): Remove.
8824 (s390_handle_arch_option): Return void. Take enum
8825 s390_arch_option value instead of string and searching array.
8826 (s390_handle_option): Don't assert that global structures are in
8827 use. Access variables via opts pointer. Use error_at. Don't use
8828 sscanf for -mstack-guard= or -mstack-size=. Update call to
8829 s390_handle_arch_option.
8830 (s390_option_override): Update call to s390_handle_arch_option.
8831 (s390_emit_prologue): Use %d format for s390_stack_size in
8832 diagnostic. Use %wd for HOST_WIDE_INT.
8833 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8834 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8835 * config/s390/s390.opt (config/s390/s390-opts.h): New
8836 HeaderInclude entry.
8837 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8838 s390_arch_flags, s390_warn_framesize): New Variable entries.
8839 (s390_arch_option): New Enum and EnumValue entries.
8840 (march=): Use Enum instead of Var.
8841 (mstack-guard=, mstack-size=): Use UInteger and Var.
8842 (mtune=): Use Enum.
8843
8844 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8845
8846 * config/score/score.c (score_handle_option): Don't assert that
8847 global structures are in use. Access target_flags via opts
8848 pointer. Use value of -march= option to determine target_flags
8849 settings.
8850 * config/score/score.opt (march=): Use Enum.
8851 (score_arch): New Enum and EnumValue entries.
8852
8853 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8854
8855 * config/mep/mep.c (option_mtiny_specified): Remove.
8856 (mep_option_override): Move register handling for -mivc2 from
8857 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8858 instead of option_mtiny_specified.
8859 (mep_handle_option): Access target_flags via opts pointer. Don't
8860 assert that global structures are in use. Defer part of -mivc2
8861 handling and move it to mep_option_override.
8862 * config/mep/mep.opt (IVC2): New Mask entry.
8863 (mivc2): Use Var and Defer instead of Mask.
8864
8865 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8866
8867 * config/v850/v850-opts.h: New.
8868 * config/v850/v850.c (small_memory): Replace with
8869 small_memory_physical_max array. Make that array static const.
8870 (v850_handle_memory_option): Take integer value of argument. Take
8871 gcc_options pointer, option text and location. Return void.
8872 Update for changes to small memory structures.
8873 (v850_handle_option): Access target_flags via opts pointer. Don't
8874 assert that global structures are in use. Update calls to
8875 v850_handle_memory_option.
8876 (v850_encode_data_area): Update references to small memory settings.
8877 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8878 (enum small_memory_type): Move to v850-opts.h.
8879 * config/v850/v850.opt (config/v850/v850-opts.h): New
8880 HeaderInclude entry.
8881 (small_memory_max): New Variable entry.
8882 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8883 (mtda, mzda): Likewise.
8884
8885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8886
8887 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8888 pointer. Don't assert that global structures are in use.
8889
8890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8891
8892 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8893 via opts pointer. Don't assert that global structures are in use.
8894
8895 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8896
8897 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8898 (munix=93): Use Var.
8899 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8900 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8901 * config/pa/pa-opts.h: New.
8902 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8903 (pa_handle_option): Don't assert that global structures are in
8904 use. Access target_flags via opts pointer. Don't handle
8905 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8906 OPT_munix_98 here.
8907 (pa_option_override): Handle deferred OPT_mfixed_range_.
8908
8909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8910
8911 * config/mn10300/mn10300-opts.h: New.
8912 * config/mn10300/mn10300.c (mn10300_processor,
8913 mn10300_tune_string): Remove.
8914 (mn10300_handle_option): Don't assert that global structures are
8915 in use. Access mn10300_processor via opts pointer. Don't handle
8916 OPT_mtune_ here.
8917 * config/mn10300/mn10300.h (enum processor_type): Move to
8918 mn10300-opts.h.
8919 (mn10300_processor): Remove.
8920 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8921 HeaderInclude entry.
8922 (mn10300_processor): New Variable entry.
8923 (mtune=): Use Var.
8924
8925 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8926
8927 * config/microblaze/microblaze.c: Don't include opts.h.
8928 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8929 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8930 (mno-clearbss): Use Var and Warn.
8931
8932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8933
8934 * config/m32r/m32r-opts.h: New.
8935 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8936 (m32r_handle_option): Don't assert that global structures are in
8937 use. Access target_flags and m32r_cache_flush_func via opts
8938 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8939 OPT_mno_flush_trap here.
8940 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8941 include of m32r-opts.h.
8942 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8943 HeaderInclude entry.
8944 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8945 (mmodel=): Use Enum and Var.
8946 (m32r_model): New Enum and EnumValue entries.
8947 (mno-flush-trap): Use Var.
8948 (msdata=): Use Enum and Var.
8949 (m32r_sdata): New Enum and EnumValue entries.
8950
8951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8952
8953 * config/m32c/m32c.c: Don't include opts.h.
8954 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8955 m32c_handle_option): Remove.
8956 (m32c_option_override): Check global_options_set.x_target_memregs
8957 instead of target_memregs_set.
8958 * config/m32c/m32c.h (target_memregs): Remove.
8959 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8960 variable.
8961
8962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8963
8964 * config/iq2000/iq2000-opts.h: New.
8965 * config/iq2000/iq2000.c: Don't include opts.h.
8966 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8967 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8968 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8969 HeaderInclude entry.
8970 (iq2000_tune): New Variable entry.
8971 (march=): Add comment. Use Enum.
8972 (iq2000_arch): New Enum and EnumValue entries.
8973 (mcpu=): Use Enum and Var.
8974 (iq2000_tune): New Enum and EnumValue entries.
8975
8976 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8977
8978 * config/ia64/ia64-opts.h: New.
8979 * config/ia64/ia64.c (ia64_tune): Remove.
8980 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8981 here. Use error_at.
8982 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8983 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8984 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8985 HeaderInclude entry.
8986 (ia64_tune): New Variable entry.
8987 (mfixed-range=): Use Defer and Var.
8988 (mtune=): Use Enum and Var.
8989 (ia64_tune): New Enum and EnumValue entries.
8990
8991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8992
8993 * config/frv/frv-opts.h: New.
8994 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8995 frv-opts.h.
8996 (frv_cpu_type): Remove.
8997 * config/frv/frv.c: Don't include opts.h.
8998 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8999 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9000 (frv_cpu_type): New Variable entry.
9001 (frv_cpu): New Enum and EnumValue entries.
9002
9003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9004
9005 * config/cris/cris.c (cris_handle_option): Access target_flags via
9006 opts pointer. Don't assert that global structures are in use.
9007 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9008 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9009
9010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9011
9012 * config/bfin/bfin-opts.h: New.
9013 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9014 bfin_si_revision, bfin_workarounds): Remove.
9015 (bfin_cpus): Make static const.
9016 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9017 not bfin_lib_id_given.
9018 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9019 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9020 pointer. Use error_at. Don't assert that global structures are in use.
9021 * config/bfin/bfin.h: Include bfin-opts.h.
9022 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9023 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9024 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9025 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9026 entries.
9027
9028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9029
9030 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9031 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9032 or -msoft-float here.
9033 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9034 -msoft-float and -mhard-float.
9035 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9036 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9037 msoft-float.
9038 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9039 -msoft-float.
9040 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9041 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9042 not mhard-float.
9043 (LIBGCC_SPEC): Don't handle -msoft-float.
9044 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9045 -mhard-float.
9046 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9047 msoft-float.
9048 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9049 -mfloat-abi=*, not -msoft-float and -mhard-float.
9050 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9051 -msoft-float.
9052 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9053 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9054 mhard-float and msoft-float.
9055 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9056 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9057 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9058 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9059 mhard-float.
9060 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9061 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9062 msoft-float.
9063 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9064 not mhard-float.
9065 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9066 not msoft-float.
9067
9068 2011-03-22 Richard Henderson <rth@redhat.com>
9069
9070 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9071 TARGET_ABI_WINDOWS_NT.
9072 (alpha_output_function_end_prologue): Likewise.
9073 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9074 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9075 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9076 (trap, *movsi_nt_vms): Likewise.
9077 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9078 (*tablejump_osf_nt_internal): Remove.
9079 * config/alpha/predicates.md (input_operand): Only test Pmode.
9080
9081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9082
9083 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9084 via opts pointer. Use error_at. Don't assert that global
9085 structures are in use.
9086
9087 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9088
9089 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9090 (ix86_handle_option): Access ix86_isa_flags and
9091 ix86_isa_flags_explicit via opts pointer. Don't assert that
9092 global structures are in use.
9093 (ix86_function_specific_save, ix86_function_specific_restore):
9094 Update ix86_isa_flags_explicit field name.
9095 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9096 (ix86_isa_flags_explicit): Rename TargetSave entry to
9097 x_ix86_isa_flags_explicit.
9098
9099 2011-03-22 Richard Henderson <rth@redhat.com>
9100
9101 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9102 (alpha_option_override, direct_return): Likewise.
9103 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9104 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9105 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9106 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9107 (alpha_expand_epilogue, alpha_end_function): Likewise.
9108 (alpha_init_libfuncs): Likewise.
9109 (struct machine_function): Remove unicosmk members.
9110 (print_operand) ['t']: Remove.
9111 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9112 unicosmk_output_module_name, unicosmk_output_common,
9113 current_section_align, unicosmk_output_text_section_asm_op,
9114 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9115 unicosmk_section_type_flags, unicosmk_unique_section,
9116 unicosmk_asm_named_section, unicosmk_insert_attributes,
9117 unicosmk_output_align, unicosmk_defer_case_vector,
9118 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9119 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9120 unicosmk_output_ssib, unicosmk_add_call_info_word,
9121 unicosmk_extern_head, unicosmk_output_default_externs,
9122 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9123 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9124 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9125 * config/alpha/alpha-protos.h: Update.
9126 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9127 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9128 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9129 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9130 (*mulsi_se, mulvsi3): Likewise.
9131 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9132 (*divmodsi_internal, call, call_value, realign): Likewise.
9133 (moddi3, umoddi3): Likewise; remove duplicate expander.
9134 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9135 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9136 (*movdi_nofix): Remove r/U alternative.
9137 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9138 * config/alpha/constraints.md ("U"): Remove.
9139 * config/alpha/predicates.md (call_operand"): Don't test
9140 TARGET_ABI_UNICOSMK.
9141
9142 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9143
9144 * target.def (handle_option): Take gcc_options and
9145 cl_decoded_option pointers and location_t.
9146 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9147 * doc/tm.texi: Regenerate.
9148 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9149 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9150 * lto-opts.c (lto_reissue_options): Generate option structure for
9151 targetm.handle_option call.
9152 * opts.c (target_handle_option): Update call to
9153 targetm.handle_option. Remove assertions about values now passed
9154 down to hook.
9155 * targhooks.c (default_target_handle_option): New.
9156 * targhooks.h (default_target_handle_option): Declare.
9157 * config/alpha/alpha.c: Include opts.h.
9158 (alpha_handle_option): Update to new hook interface.
9159 * config/arm/arm.c: Include opts.h.
9160 (arm_handle_option): Update to new hook interface.
9161 * config/arm/t-arm (arm.o): Update dependencies.
9162 * config/bfin/bfin.c: Include opts.h.
9163 (bfin_handle_option): Update to new hook interface.
9164 * config/cris/cris.c: Include opts.h.
9165 (cris_handle_option): Update to new hook interface.
9166 * config/frv/frv.c: Include opts.h.
9167 (frv_handle_option): Update to new hook interface.
9168 * config/i386/i386.c: Include opts.h.
9169 (ix86_handle_option): Update to new hook interface.
9170 (ix86_valid_target_attribute_inner_p): Generate option structure
9171 for call to ix86_handle_option.
9172 * config/i386/t-i386 (i386.o): Update dependencies.
9173 * config/ia64/ia64.c: Include opts.h.
9174 (ia64_handle_option): Update to new hook interface.
9175 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9176 * config/iq2000/iq2000.c: Include opts.h.
9177 (iq2000_handle_option): Update to new hook interface.
9178 * config/m32c/m32c.c: Include opts.h.
9179 (m32c_handle_option): Update to new hook interface.
9180 * config/m32r/m32r.c: Include opts.h.
9181 (m32r_handle_option): Update to new hook interface.
9182 * config/m68k/m68k.c: Include opts.h.
9183 (m68k_handle_option): Update to new hook interface.
9184 * config/mep/mep.c: Include opts.h.
9185 (mep_handle_option): Update to new hook interface.
9186 * config/microblaze/microblaze.c: Include opts.h.
9187 (microblaze_handle_option): Update to new hook interface.
9188 * config/mips/mips.c: Include opts.h.
9189 (mips_handle_option): Update to new hook interface.
9190 * config/mn10300/mn10300.c: Include opts.h.
9191 (mn10300_handle_option): Update to new hook interface.
9192 * config/pa/pa.c: Include opts.h.
9193 (pa_handle_option): Update to new hook interface.
9194 * config/pdp11/pdp11.c: Include opts.h.
9195 (pdp11_handle_option): Update to new hook interface.
9196 * config/rs6000/rs6000.c: Include opts.h.
9197 (rs6000_handle_option): Update to new hook interface.
9198 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9199 * config/rx/rx.c: Include opts.h.
9200 (rx_handle_option): Update to new hook interface.
9201 * config/s390/s390.c: Include opts.h.
9202 (s390_handle_option): Update to new hook interface.
9203 * config/score/score.c: Include opts.h.
9204 (score_handle_option): Update to new hook interface.
9205 * config/sh/sh.c: Include opts.h.
9206 (sh_handle_option): Update to new hook interface.
9207 * config/sparc/sparc.c: Include opts.h.
9208 (sparc_handle_option): Update to new hook interface.
9209 * config/v850/v850.c: Include opts.h.
9210 (v850_handle_option): Update to new hook interface.
9211
9212 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9213
9214 * gcc.c (driver_unknown_option_callback): Only permit and save
9215 unknown -Wno- options.
9216 (driver_wrong_lang_callback): Save options directly instead of via
9217 driver_unknown_option_callback.
9218
9219 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9220
9221 * combine.c (simplify_set): Try harder to find the best CC mode when
9222 simplifying a nested COMPARE on the RHS.
9223
9224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9225
9226 * config/alpha/gnu.h: Remove.
9227 * config/arc: Remove directory.
9228 * config/arm/netbsd.h: Remove.
9229 * config/arm/t-pe: Remove.
9230 * config/crx: Remove directory.
9231 * config/i386/netbsd.h: Remove.
9232 * config/m68hc11: Remove directory.
9233 * config/m68k/uclinux-oldabi.h: Remove.
9234 * config/mcore/mcore-pe.h: Remove.
9235 * config/mcore/t-mcore-pe: Remove.
9236 * config/netbsd-aout.h: Remove.
9237 * config/rs6000/gnu.h: Remove.
9238 * config/sh/sh-symbian.h: Remove.
9239 * config/sh/symbian-base.c: Remove.
9240 * config/sh/symbian-c.c: Remove.
9241 * config/sh/symbian-cxx.c: Remove.
9242 * config/sh/symbian-post.h: Remove.
9243 * config/sh/symbian-pre.h: Remove.
9244 * config/sh/t-symbian: Remove.
9245 * config/svr3.h: Remove.
9246 * config/vax/netbsd.h: Remove.
9247 * config.build: Don't handle i[34567]86-*-pe.
9248 * config.gcc: Remove handling of deprecations for most deprecated
9249 targets.
9250 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9251 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9252 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9253 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9254 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9255 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9256 Remove cases.
9257 * config.host: Don't handle i[34567]86-*-pe.
9258 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9259 (ASM_SPEC32): Don't handle -mcall-gnu.
9260 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9261 -mcall-gnu.
9262 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9263 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9264 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9265 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9266 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9267 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9268 conditional on SYMBIAN.
9269 * configure.ac: Don't handle powerpc*-*-gnu*.
9270 * configure: Regenerate.
9271 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9272 * doc/install-old.texi (m6811, m6812): Don't mention.
9273 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9274 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9275 (m68k-uclinuxoldabi): Don't mention.
9276 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9277 Remove.
9278 (-mcall-gnu): Remove.
9279 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9280 families): Remove constraint documentation.
9281
9282 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9283
9284 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9285 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9286 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9287
9288 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9289
9290 PR target/48226
9291 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9292 vector when peeking at the next token for vector, don't expand the
9293 keywords.
9294
9295 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9296
9297 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9298 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9299 * config/avr/avr.c (init_cumulative_args)
9300 (avr_function_arg_advance): Use it.
9301 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9302 sibcall epilogues.
9303 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9304 (avr_function_ok_for_sibcall): ...this new function.
9305 (avr_lookup_function_attribute1): New static Function.
9306 (avr_naked_function_p, interrupt_function_p)
9307 (signal_function_p, avr_OS_task_function_p)
9308 (avr_OS_main_function_p): Use it.
9309 * config/avr/avr.md ("sibcall", "sibcall_value")
9310 ("sibcall_epilogue"): New expander.
9311 ("*call_insn", "*call_value_insn"): New insn.
9312 ("call_insn", "call_value_insn"): Remove
9313 ("call", "call_value", "epilogue"): Change expander to handle
9314 sibling calls.
9315
9316 2011-03-21 Nick Clifton <nickc@redhat.com>
9317
9318 * doc/invoke.texi (Overall Options): Move closing brace to end of
9319 options list.
9320 (Optimization Options): Add missing @gol.
9321 (Directory Options): Likewise.
9322 (i386 and x86-64 Options): Likewise.
9323 (RS6000 and PowerPC Options): Likewise.
9324 (i386 and x86-64 Windows Options): Likewise.
9325 (V850 Options): Add text missing from descriptions.
9326
9327 2011-03-22 Richard Henderson <rth@redhat.com>
9328
9329 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9330 (avr_incoming_return_addr_rtx): New.
9331 (emit_push_byte): New.
9332 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9333 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9334 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9335 (emit_pop_byte): New.
9336 (expand_epilogue): Use it. Pop frame pointer by bytes.
9337 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9338 (INCOMING_RETURN_ADDR_RTX): New.
9339 (INCOMING_FRAME_SP_OFFSET): New.
9340 (ARG_POINTER_CFA_OFFSET): New.
9341 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9342 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9343 (pophi): Remove.
9344
9345 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9346
9347 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9348
9349 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9350 (FUNCTION_ARG_ADVANCE): Likewise.
9351 * tm.texi.in: Change references to them to hook references.
9352 * tm.texi: Regenerate.
9353 * targhooks.c (default_function_arg): Eliminate check for target
9354 macro.
9355 (default_function_incoming_arg): Likewise.
9356 (default_function_arg_advance): Likewise.
9357 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9358 (function_arg_advance): Likewise.
9359 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9360
9361 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9362
9363 * tree.c (build_call_1): New function.
9364 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9365
9366 2011-03-22 Richard Guenther <rguenther@suse.de>
9367
9368 PR tree-optimization/48228
9369 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9370 for single-arg PHIs.
9371
9372 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9373
9374 PR rtl-optimization/48143
9375 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9376 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9377 sse2_cvtps2pd): Likewise.
9378
9379 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9380
9381 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9382
9383 2011-03-22 Richard Guenther <rguenther@suse.de>
9384
9385 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9386 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9387 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9388 and REALIGN_LOAD_EXPR.
9389 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9390 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9391 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9392 DOT_PROD_EXPR case ...
9393 (expand_expr_real_2): ... here.
9394 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9395 and REALIGN_LOAD_EXPR.
9396 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9397 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9398 (vect_create_epilog_for_reduction): Likewise.
9399 (vectorizable_reduction): Likewise.
9400 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9401 * tree-vect-stmts.c (vectorizable_load): Likewise.
9402
9403 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9404
9405 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9406
9407 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9408
9409 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9410 handling for PLTOFF/GOTOFF.
9411
9412 2011-03-22 Nick Clifton <nickc@redhat.com>
9413
9414 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9415 trailing backslash from the end of the macro definition.
9416
9417 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9418
9419 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9420 and PLT unspecs.
9421
9422 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9423
9424 * expr.h (prepare_operand): Move to...
9425 * optabs.h (prepare_operand): ...here and change the insn code
9426 parameter from "int" to "enum insn_code".
9427 (insn_operand_matches): Declare.
9428 * expr.c (init_expr_target): Use insn_operand_matches.
9429 (compress_float_constant): Likewise.
9430 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9431 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9432 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9433 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9434 Likewise.
9435 (gen_cond_trap): Likewise.
9436 (prepare_operand): Likewise. Change icode to an insn_code.
9437 (insn_operand_matches): New function.
9438 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9439 * reload1.c (gen_reload): Likewise.
9440 * targhooks.c (default_secondary_reload): Likewise.
9441
9442 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9443
9444 * config/alpha/alpha.md (unspec): New define_c_enum.
9445 (unspecv): Ditto.
9446
9447 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9448
9449 PR debug/48214
9450 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9451 between a call and its CALL_ARG_LOCATION note.
9452
9453 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9454
9455 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9456
9457 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9458
9459 PR c/42544
9460 PR c/48197
9461 * c-common.c (shorten_compare): If primopN is first sign-extended
9462 to opN and then zero-extended to result type, set primopN to opN.
9463
9464 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9465
9466 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9467 for barrier handlers.
9468
9469 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9470
9471 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9472 UNSPEC constants to be in the unspec enumeration, and redefine
9473 all UNSPECV constants to be in the unspecv enumeration, so that
9474 dumps print which unspec/unspec_volatile this is.
9475 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9476 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9477 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9478 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9479 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9480
9481 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9482 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9483 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9484 * config/rs6000/sync.md (isync, lwsync): Ditto.
9485
9486 2011-03-21 Richard Guenther <rguenther@suse.de>
9487
9488 * params.def (lto-min-partition): Fix typo.
9489
9490 2011-03-21 Richard Guenther <rguenther@suse.de>
9491
9492 PR c/47939
9493 * c-decl.c (grokdeclarator): Drop to the main variant only
9494 for array types. Drop flag_gen_aux_info check.
9495
9496 2011-03-21 Richard Guenther <rguenther@suse.de>
9497
9498 PR translation/47911
9499 * params.def (lto-partitions): Fix typo.
9500 (lto-min-partition): Fix wording.
9501
9502 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9503
9504 * config/rs6000/t-freebsd: Remove duplication from file.
9505
9506 2011-03-21 Richard Guenther <rguenther@suse.de>
9507
9508 PR middle-end/47661
9509 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9510
9511 2011-03-21 Richard Guenther <rguenther@suse.de>
9512
9513 PR lto/48210
9514 * params.def (lto-partitions): Require at least 1 partition.
9515
9516 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9517
9518 * gthr-solaris.h: Remove.
9519 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9520 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9521 (LIB_SPEC): Likewise.
9522 * config/sol2.opt (threads): Remove.
9523 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9524 (sparc*-*-solaris2*): Likewise.
9525 * configure.ac (enable_threads): Enable solaris support.
9526 * configure: Regenerate.
9527 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9528 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9529 solaris.
9530
9531 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9532
9533 * config.gcc: Obsolete *-*-solaris2.8*.
9534 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9535
9536 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9537
9538 PR bootstrap/48135
9539 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9540 reference. Solaris 8 perl works.
9541
9542 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9543
9544 PR bootstrap/48135
9545 * doc/install.texi (Prerequisites): Move jar etc. up.
9546 Explain support library version requirements.
9547
9548 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9549
9550 PR bootstrap/48135
9551 * doc/install.texi (Prerequisites): Move Perl to build
9552 requirements. Always necessary on Solaris 2 with Sun ld.
9553
9554 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9555
9556 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9557 binutils 2.21.
9558 (Specific, i?86-*-solaris2.[89]): Likewise.
9559 (Specific, i?86-*-solaris2.10): Likewise.
9560 (Specific, mips-sgi-irix6): Likewise.
9561 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9562 Update for binutils 2.21.
9563
9564 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9565
9566 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9567 Allow -fuse-linker-plugin for non-default plugin linker.
9568 * configure: Regenerate.
9569
9570 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9571
9572 PR bootstrap/48167
9573 * gengtype.c (files_rules): Added rule for cp/parser.h.
9574
9575 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9576
9577 PR target/48213
9578 * config/s390/s390.c (s390_delegitimize_address): Don't call
9579 lowpart_subreg if orig_x has BLKmode.
9580
9581 2011-03-21 Kai Tietz <ktietz@redhat.com>
9582
9583 PR target/12171
9584 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9585 * tree.h (attribute_spec): Add new member affects_type_identity.
9586 * attribs.c (empty_attribute_table): Adjust attribute_spec
9587 initializers.
9588 * config/alpha/alpha.c: Likewise.
9589 * config/arc/arc.c: Likewise.
9590 * config/arm/arm.c: Likewise.
9591 * config/avr/avr.c: Likewise.
9592 * config/bfin/bfin.c: Likewise.
9593 * config/crx/crx.c: Likewise.
9594 * config/darwin.h: Likewise.
9595 * config/h8300/h8300.c: Likewise.
9596 * config/i386/cygming.h: Likewise.
9597 * config/i386/i386.c: Likewise.
9598 * config/ia64/ia64.c: Likewise.
9599 * config/m32c/m32c.c: Likewise.
9600 * config/m32r/m32r.c: Likewise.
9601 * config/m68hc11/m68hc11.c: Likewise.
9602 * config/m68k/m68k.c: Likewise.
9603 * config/mcore/mcore.c: Likewise.
9604 * config/mep/mep.c: Likewise.
9605 * config/microblaze/microblaze.c: Likewise.
9606 * config/mips/mips.c: Likewise.
9607 * config/rs6000/rs6000.c: Likewise.
9608 * config/rx/rx.c: Likewise.
9609 * config/sh/sh.c: Likewise.
9610 * config/sol2.h: Likewise.
9611 * config/sparc/sparc.c: Likewise.
9612 * config/spu/spu.c: Likewise.
9613 * config/stormy16/stormy16.c: Likewise.
9614 * config/v850/v850.c: Likewise.
9615
9616 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9617
9618 * simplify-rtx.c (simplify_binary_operation_1): Handle
9619 (xor (and A B) C) case when B and C are both constants.
9620
9621 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9622
9623 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9624
9625 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9626
9627 PR bootstrap/48168
9628 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9629
9630 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9631
9632 PR rtl-optimization/48156
9633 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9634 assume df and df_lr are not NULL.
9635
9636 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9637
9638 PR debug/48023
9639 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9640 between a call and its CALL_ARG_LOCATION note.
9641
9642 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9643
9644 PR debug/48178
9645 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9646 between a call and its corresponding CALL_ARG_LOCATION note.
9647
9648 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9649
9650 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9651 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9652 * haifa-sched.c (setup_ref_regs): Ditto.
9653 * caller-save.c (add_used_regs_1): Ditto.
9654 * dse.c (look_for_hardregs): Ditto.
9655 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9656 * sched-rgn.c (check_live_1): Ditto.
9657
9658 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9659
9660 * c-decl.c (diagnose_mismatched_decls): Give an error for
9661 redefining a typedef with variably modified type.
9662
9663 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9664
9665 * c-decl.c (grokfield): Don't allow typedefs for structures or
9666 unions with no tag by default.
9667 * doc/extend.texi (Unnamed Fields): Update.
9668
9669 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9670
9671 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9672 Rewrite using indirect functions.
9673 (lwp_slwpcb): Ditto.
9674 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9675 (avx_vinsertf128<mode>): Ditto.
9676
9677 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9678
9679 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9680 unspecs.
9681
9682 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9683
9684 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9685 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9686
9687 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9688
9689 PR rtl-optimization/48170
9690 * gcse.c (hoist_code): Remove bogus asserts.
9691
9692 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9693
9694 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9695 computation for prologue/epilogue.
9696
9697 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9698
9699 * Makefile.in (check-consistency): Remove.
9700
9701 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9702
9703 PR debug/48176
9704 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9705 arange_table_in_use is 0, but either text_section_used or
9706 cold_text_section_used is true. Don't call it if
9707 !info_section_emitted.
9708
9709 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9710
9711 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9712 FUNCTION_VALUE_REGNO_P): Remove.
9713 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9714 Remove.
9715 * config/avr/avr.c (avr_ret_register): Make static inline.
9716 (avr_function_value_regno_p): New function.
9717 (avr_libcall_value): Make static. Add 'func' argument.
9718 (avr_function_value): Make static. Rename 'func' argument to
9719 'fn_decl_or_type', forward it to avr_libcall_value. Call
9720 avr_ret_register function instead of RET_REGISTER macro.
9721 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9722
9723 2011-03-18 Jason Merrill <jason@redhat.com>
9724
9725 PR c++/23372
9726 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9727
9728 2011-03-18 Richard Guenther <rguenther@suse.de>
9729
9730 * doc/install.texi (--enable-gold): Remove.
9731 (--with-plugin-ld): Document.
9732 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9733
9734 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9735
9736 PR middle-end/47790
9737 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9738 again after expansion changes.
9739
9740 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9741
9742 * combine.c (try_combine): Do simplification only call of
9743 subst() on i2 even when i1 is present. Update comments.
9744
9745 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9746
9747 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9748 and UNSPEC_PCREL_SYMOFF.
9749
9750 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9751
9752 * config/s390/s390.md: Use define_c_enum for the unspec constant
9753 definitions.
9754
9755 2011-03-18 Richard Henderson <rth@redhat.com>
9756 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR bootstrap/48161
9759 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9760 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9761
9762 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9763
9764 PR middle-end/47725
9765 * combine.c (cant_combine_insn_p): Don't check zero/sign
9766 extended hard registers.
9767
9768 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9769
9770 PR middle-end/47725
9771 * combine.c (cant_combine_insn_p): Check zero/sign extended
9772 hard registers.
9773
9774 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9775
9776 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9777 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9778 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9779 Change return type to bool.
9780 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9781
9782 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR debug/48163
9785 * var-tracking.c (prepare_call_arguments): If CALL target
9786 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9787 pc instead of looking it up using cselib_lookup and use
9788 Pmode for it if x has VOIDmode.
9789 * dwarf2out.c (gen_subprogram_die): If also both first and
9790 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9791
9792 PR debug/48163
9793 * function.c (assign_parms): For data.passed_pointer parms
9794 use MEM of data.entry_parm instead of data.entry_parm itself
9795 as DECL_INCOMING_RTL.
9796 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9797 also when passed and declared mode is the same, DECL_RTL
9798 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9799 a MEM too.
9800
9801 2011-03-16 Jeff Law <law@redhat.com>
9802
9803 PR rtl-optimization/37273
9804 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9805 handle them like argument loads from stack slots. Do not double
9806 count memory for memory constants and argument loads from stack slots.
9807
9808 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9809
9810 PR debug/48160
9811 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9812
9813 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9814
9815 PR target/48171
9816 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9817
9818 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9819
9820 PR bootstrap/48153
9821 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9822 if dwarf_strict.
9823 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9824 Clear call_arg_locations and call_arg_loc_last always.
9825
9826 PR middle-end/48152
9827 * var-tracking.c (prepare_call_arguments): If argument needs to be
9828 passed by reference, adjust argtype and mode.
9829
9830 2011-03-17 Richard Guenther <rguenther@suse.de>
9831
9832 PR middle-end/48134
9833 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9834 a value make sure to fold the statement.
9835
9836 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9837
9838 PR target/43872
9839 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9840 return condition with !cfun->calls_alloca.
9841
9842 2011-03-17 Richard Guenther <rguenther@suse.de>
9843
9844 PR bootstrap/48148
9845 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9846 origin for decls in other ltrans units.
9847 (input_varpool_node): Likewise.
9848
9849 2011-03-17 Richard Guenther <rguenther@suse.de>
9850
9851 PR middle-end/48165
9852 * tree-object-size.c (compute_object_offset): Properly return
9853 the offset operand of MEM_REFs as sizetype.
9854
9855 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9856
9857 PR rtl-optimization/48141
9858 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9859 * dse.c: Include params.h.
9860 (active_local_stores_len): New variable.
9861 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9862 to NULL.
9863 (record_store, check_mem_read_rtx): Decrease it when removing
9864 from the chain.
9865 (scan_insn): Likewise. Increase it when adding to chain, if it
9866 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9867 set active_local_stores to NULL before the addition.
9868 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9869
9870 PR rtl-optimization/48141
9871 * dse.c (record_store): If no positions are needed in an insn
9872 that cannot be deleted, at least unchain it from active_local_stores.
9873
9874 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9875
9876 PR debug/47510
9877 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9878 (lookup_type_die_strip_naming_typedef): ... here.
9879 (get_context_die): Use it.
9880 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9881 the anonymous struct named by the naming typedef.
9882
9883 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9884
9885 PR target/48154
9886 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9887 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9888
9889 2011-03-16 Jeff Law <law@redhat.com>
9890
9891 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9892 check for operands of conditional. Allow type to be a pointer.
9893
9894 2011-03-16 Richard Guenther <rguenther@suse.de>
9895
9896 PR tree-optimization/48149
9897 * fold-const.c (fold_binary_loc): Fold
9898 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9899
9900 2011-03-16 Richard Guenther <rguenther@suse.de>
9901
9902 PR tree-optimization/26134
9903 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9904 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9905 (non_rewritable_mem_ref_base): Handle complex type component
9906 accesses, constrain offsets for vector and complex extracts
9907 more properly.
9908
9909 2011-03-16 Richard Guenther <rguenther@suse.de>
9910
9911 PR tree-optimization/48146
9912 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9913 operands avoiding the need for renaming.
9914
9915 2011-03-16 Richard Guenther <rguenther@suse.de>
9916
9917 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9918 constant folding. Move MEM_REF canonicalization first.
9919 Rely on fold_const_aggregate_ref for initializer folding.
9920 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9921
9922 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9923
9924 PR middle-end/48136
9925 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9926 arg0/arg1 or their arguments are always fold converted to matching
9927 types.
9928
9929 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9930 to nargs.
9931
9932 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9933
9934 PR lto/46944
9935 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9936 Handle in-tree gold.
9937 (ld_vers): Extract binutils version for gold.
9938 (gcc_cv_ld_hidden): Handle gold here.
9939 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9940 * configure: Regenerate.
9941 * config.in: Regenerate.
9942 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9943 -fuse-linker-plugin otherwise.
9944 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9945 (LINK_COMMAND_SPEC): Use it.
9946 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9947
9948 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9949
9950 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9951 * calls.c: Remove debug.h include.
9952 (emit_call_1): Don't call virtual_call_token debug hook.
9953 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9954 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9955 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9956 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9957 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9958 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9959 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9960 dwarf2out_virtual_call): Remove.
9961 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9962 copy_call_info and virtual_call hooks.
9963 (dwarf2out_init): Don't initialize vcall_insn_table,
9964 debug_dcall_section and debug_vcall_section.
9965 (prune_unused_types): Don't mark nodes from dcall_table.
9966 (dwarf2out_finish): Don't output dcall or vcall tables.
9967 * final.c (final_scan_insn): Don't call direct_call or
9968 virtual_call debug hooks.
9969 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9970 virtual_call_token, copy_call_info and virtual_call hooks.
9971 (debug_nothing_uid): Remove prototype.
9972 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9973 copy_call_info and virtual_call hooks.
9974 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9975 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9976 * debug.c (do_nothing_debug_hooks): Likewise.
9977 (debug_nothing_uid): Remove.
9978 * doc/invoke.texi (-fenable-icf-debug): Remove.
9979 * common.opt (-fenable-icf-debug): Likewise.
9980
9981 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9982 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9983 call's MEM. Handle functions returning aggregate through a hidden
9984 first pointer. For virtual calls add clobbered pc to call arguments
9985 chain.
9986 * dwarf2out.c (gen_subprogram_die): Emit
9987 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9988 can't be emitted.
9989
9990 PR debug/45882
9991 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9992 * rtl.h (ENTRY_VALUE_EXP): Define.
9993 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9994 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9995 * print-rtl.c (print_rtx): Likewise.
9996 * gengtype.c (adjust_field_rtx_def): Likewise.
9997 * var-tracking.c (vt_add_function_parameter): Adjust
9998 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9999 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10000 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10001 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10002 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10003
10004 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10005 Call var_location debug hook even on CALL_INSNs.
10006 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10007 * rtl.def (ENTRY_VALUE): New.
10008 * dwarf2out.c: Include cfglayout.h.
10009 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10010 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10011 (struct call_arg_loc_node): New type.
10012 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10013 tail_call_site_count): New variables.
10014 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10015 DW_TAG_GNU_call_site_parameter.
10016 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10017 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10018 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10019 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10020 and DW_AT_GNU_all_source_call_sites.
10021 (mem_loc_descriptor): Handle ENTRY_VALUE.
10022 (add_src_coords_attributes): Don't add enything if
10023 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10024 (dwarf2out_abstract_function): Save and clear call_arg_location,
10025 call_site_count and tail_call_site_count around dwarf2out_decl call.
10026 (gen_call_site_die): New function.
10027 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10028 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10029 (dwarf2out_function_decl): Clear call_arg_locations,
10030 call_arg_loc_last, set call_site_count and tail_call_site_count
10031 to -1 and free block_map.
10032 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10033 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10034 followed by any real instructions.
10035 (dwarf2out_begin_function): Set call_site_count and
10036 tail_call_site_count to 0.
10037 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10038 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10039 attempt to force a DIE for it and worst case remove the attribute.
10040 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10041 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10042 the decl itself.
10043 * var-tracking.c: Include tm_p.h.
10044 (vt_stack_adjustments): For calls call note_register_arguments.
10045 (argument_reg_set): New variable.
10046 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10047 ensure the VALUE is resolved.
10048 (call_arguments): New variable.
10049 (prepare_call_arguments): New function.
10050 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10051 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10052 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10053 always use the best expression.
10054 (vt_expand_loc): Add ignore_cur_loc argument.
10055 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10056 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10057 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10058 note for all calls.
10059 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10060 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10061 argument. Don't call cselib_preserve_only_values and
10062 cselib_reset_table.
10063 (note_register_arguments): New function.
10064 (vt_initialize): Compute argument_reg_set. Call
10065 vt_add_function_parameters before processing basic blocks instead of
10066 afterwards. For calls call prepare_call_arguments before calling
10067 cselib_process_insn.
10068 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10069 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10070 (var-tracking.o): Depend on $(TM_P_H).
10071 * cfglayout.h (insn_scope): New prototype.
10072 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10073 * cfglayout.c (insn_scope): No longer static.
10074 * insn-notes.def (CALL_ARG_LOCATION): New.
10075 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10076 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10077 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10078 nothing for DECL_EXTERNAL BLOCK_VARS.
10079
10080 2011-03-16 Alan Modra <amodra@gmail.com>
10081
10082 PR target/45844
10083 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10084 create invalid offset address for vsx splat insn.
10085 * config/rs6000/predicates.md (splat_input_operand): New.
10086 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10087
10088 2011-03-15 Xinliang David Li <davidxl@google.com>
10089
10090 PR c/47837
10091 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10092 (normalize_preds): New function.
10093 (is_use_properly_guarded): Normalize def predicates.
10094
10095 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10096
10097 PR target/46788
10098 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10099 in the output template.
10100
10101 2011-03-15 Richard Guenther <rguenther@suse.de>
10102
10103 PR middle-end/47650
10104 * tree-pretty-print.c (dump_function_declaration): Properly
10105 dump unprototyped and varargs function types.
10106
10107 2011-03-15 Richard Guenther <rguenther@suse.de>
10108
10109 PR tree-optimization/13954
10110 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10111 and friends.
10112
10113 2011-03-15 Richard Guenther <rguenther@suse.de>
10114
10115 PR tree-optimization/48037
10116 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10117 selects into BIT_FIELD_REFs.
10118 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10119 vector select.
10120
10121 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10122
10123 PR tree-optimization/48129
10124 * builtins.c (fold_builtin_snprintf): Convert to type of
10125 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10126 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10127
10128 2011-03-15 Richard Guenther <rguenther@suse.de>
10129
10130 PR tree-optimization/41490
10131 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10132 value but with VUSE.
10133 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10134 return statements.
10135 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10136 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10137 * tree-tailcall.c (find_tail_calls): Ignore returns.
10138
10139 2011-03-15 Richard Guenther <rguenther@suse.de>
10140
10141 PR middle-end/48031
10142 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10143 or variable-indexed array accesses when in gimple form.
10144
10145 2011-03-15 Richard Guenther <rguenther@suse.de>
10146
10147 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10148
10149 2011-03-15 Alan Modra <amodra@gmail.com>
10150
10151 PR target/48032
10152 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10153 presume symbol_refs without a symbol_ref_decl are suitably
10154 aligned, nor other trees we may see here. Handle anchor symbols.
10155 (legitimate_constant_pool_address_p): Comment. Add mode param.
10156 Check cmodel=medium addresses. Adjust all calls.
10157 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10158 creating cmodel=medium optimized access to locals.
10159 * config/rs6000/constraints.md (R): Pass QImode to
10160 legitimate_constant_pool_address_p.
10161 * config/rs6000/predicates.md (input_operand): Pass mode to
10162 legitimate_constant_pool_address_p.
10163 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10164 Update prototype.
10165
10166 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10167
10168 PR target/48053
10169 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10170 64-bit constants being loaded into registers other than GPRs such
10171 as loading 0 into a VSX register.
10172
10173 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10174
10175 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10176
10177 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10178
10179 PR middle-end/47917
10180 * builtins.c (fold_builtin_snprintf): New function.
10181 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10182 (fold_builtin_4): Likewise.
10183
10184 PR middle-end/38878
10185 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10186 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10187 and C - X == X also strip nops from +/-/p+ operand.
10188 When optimizing -X == C, fold C to arg0's type.
10189
10190 PR debug/47946
10191 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10192 emit it as add_AT_int instead of add_AT_unsigned.
10193
10194 2011-03-14 Tom Tromey <tromey@redhat.com>
10195
10196 * unwind-dw2.c: Include sys/sdt.h if it exists.
10197 (_Unwind_DebugHook): Use STAP_PROBE2.
10198 * config.in, configure: Rebuild.
10199 * configure.ac: Check for sys/sdt.h.
10200
10201 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10202
10203 * config/i386/i386.md (ROUND_FLOOR): New constant.
10204 (ROUND_CEIL): Ditto.
10205 (ROUND_TRUNC): Ditto.
10206 (ROUND_MXCSR): Ditto.
10207 (ROUND_NO_EXC): Ditto.
10208 (rint<mode>2): Use new defines instead of numerical constants.
10209 (floor<mode>2): Ditto.
10210 (ceil<mode>2): Ditto.
10211 (btrunc<mode>2): Ditto.
10212 * config/i386/i386-builtin-types.def: Define ROUND function type
10213 aliases.
10214 * config/i386/i386.c (enum ix86_builtins): Add
10215 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10216 (struct builtin_description): Add
10217 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10218 (ix86_expand_sse_round): New static function.
10219 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10220 function types.
10221 (ix86_builtin_vectorized_function): Handle
10222 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10223
10224 2011-03-14 Tom Tromey <tromey@redhat.com>
10225
10226 * c-parser.c (c_parser_asm_string_literal): Clear
10227 warn_overlength_strings.
10228
10229 2011-03-14 Tom Tromey <tromey@redhat.com>
10230
10231 * c-parser.c (disable_extension_diagnostics): Save
10232 warn_overlength_strings.
10233 (restore_extension_diagnostics): Restore warn_overlength_strings.
10234
10235 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10236
10237 * BASE-VER: Change to 4.7.0.
10238
10239 2011-03-14 Richard Guenther <rguenther@suse.de>
10240
10241 PR middle-end/48098
10242 * tree.c (build_vector_from_val): Adjust assert to requirements
10243 and reality.
10244
10245 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10246
10247 PR bootstrap/48102
10248 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10249
10250 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10251
10252 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10253 terms of target_flags_explicit. Adjust copyright year.
10254
10255 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10256 * config/rs6000/t-freebsd: New file. Add override for
10257 LIB2FUNCS_EXTRA.
10258
10259 2011-03-13 Chris Demetriou <cgd@google.com>
10260
10261 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10262 (-fno-diagnostics-show-option): this, to reflect current default.
10263 (-Werror=): Update text about -fno-diagnostics-show-option.
10264
10265 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10266
10267 PR target/48053
10268 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10269 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10270 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10271 mode is not V2DImode or V2DFmode.
10272 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10273 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10274 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10275 registers to 0.
10276 (movdi_internal64): Likewise.
10277
10278 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10279
10280 PR tree-optimization/47127
10281 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10282 parameter.
10283 (set_cloog_options): Same.
10284 (scop_to_clast): Same.
10285 (print_clast_stmt): Do not call cloog_state_malloc and
10286 cloog_state_free.
10287 (print_generated_program): Same.
10288 (gloog): Same.
10289 * graphite-clast-to-gimple.h (cloog_state): Declared.
10290 (scop_to_clast): Adjust declaration.
10291 * graphite.c (cloog_state): Defined here.
10292 (graphite_initialize): Call cloog_state_malloc.
10293 (graphite_finalize): Call cloog_state_free.
10294
10295 2011-03-11 Jason Merrill <jason@redhat.com>
10296
10297 * attribs.c (lookup_attribute_spec): Take const_tree.
10298 * tree.h: Adjust.
10299
10300 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10301
10302 * config/sparc/sparc.c (sparc_option_override): Use
10303 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10304
10305 2011-03-11 Richard Guenther <rguenther@suse.de>
10306
10307 PR tree-optimization/48067
10308 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10309 multiplication result will be only used once on the target
10310 stmt.
10311
10312 2011-03-11 Richard Guenther <rguenther@suse.de>
10313
10314 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10315
10316 2011-03-11 Richard Guenther <rguenther@suse.de>
10317
10318 PR lto/48073
10319 * tree.c (find_decls_types_r): Do not walk types only reachable
10320 from IDENTIFIER_NODEs.
10321
10322 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10323
10324 PR middle-end/48044
10325 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10326 all vnode->force_output nodes as needed.
10327
10328 2011-03-11 Jason Merrill <jason@redhat.com>
10329
10330 PR c++/48069
10331 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10332 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10333
10334 2011-03-11 Martin Jambor <mjambor@suse.cz>
10335
10336 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10337 cgraph_node.
10338
10339 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10340
10341 PR tree-optimization/48063
10342 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10343 inline functions called once if !tree_can_inline_p (node->callers).
10344
10345 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10346
10347 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10348 extra_objs.
10349 * config/score/score3.c: Delete.
10350 * config/score/score3.h: Delete.
10351 * config/score/mul-div.S: Delete.
10352 * config/score/sfp-machine.h: Add new file.
10353 * config/score/constraints.md: Add new file.
10354 * config/score/t-score-softfp: Add new file.
10355 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10356 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10357 (score7_extra_constraint): Delete.
10358 (score7_option_override): Remove unused code.
10359 * config/score/score.c: Remove score3 and score5 define and code.
10360 * config/score/score.h: Remove score3 and score5 define and code.
10361 * config/score/score.md: Remove score3 template and unusual insn.
10362 * config/score/score.opt: Remove score3 and score5 options.
10363
10364 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10365
10366 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10367 when _HPUX_SOURCE is defined.
10368 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10369
10370 2011-03-10 Jason Merrill <jason@redhat.com>
10371
10372 PR c++/48029
10373 * stor-layout.c (layout_type): Don't set structural equality
10374 on arrays of incomplete type.
10375 * tree.c (type_hash_eq): Handle comparing them properly.
10376
10377 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10378
10379 PR debug/48043
10380 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10381 result mode matches original rtl mode.
10382
10383 2011-03-10 Nick Clifton <nickc@redhat.com>
10384
10385 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10386 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10387
10388 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10389
10390 PR rtl-optimization/47866
10391 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10392 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10393 if target wasn't scalar.
10394 * function.c (assign_stack_temp_for_type): Assert that neither
10395 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10396 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10397 macro.
10398 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10399
10400 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10401
10402 * config/s390/s390-protos.h (s390_label_align): New prototype.
10403 * config/s390/s390.c (s390_label_align): New function.
10404 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10405
10406 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10407
10408 PR target/47755
10409 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10410 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10411 (output_vec_const_move): Ditto.
10412
10413 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10414
10415 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10416 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10417 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10418 Change 'rclass' argument and result type to reg_class_t.
10419 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10420
10421 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10422
10423 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10424 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10425 (TARGET_MEMORY_MOVE_COST): Define.
10426 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10427
10428 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10429
10430 PR debug/47881
10431 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10432 removed anything.
10433
10434 PR tree-optimization/48022
10435 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10436 for EQ/NE_EXPR.
10437
10438 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10439
10440 PR debug/47991
10441 * var-tracking.c (find_use_val): Return NULL for
10442 cui->sets && cui->store_p BLKmode MEMs.
10443
10444 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10445
10446 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10447 Remove.
10448 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10449 xstormy16_print_operand_address): Remove.
10450 * config/stormy16/stormy16.c (xstormy16_print_operand,
10451 xstormy16_print_operand_address): Make static.
10452 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10453
10454 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10455
10456 PR target/47862
10457 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10458 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10459 before definition.
10460
10461 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10462
10463 PR bootstrap/48000
10464 * cfgloopmanip.c (fix_bb_placements): Return immediately
10465 if FROM is BASE_LOOP's header.
10466
10467 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10468
10469 * gimplify.c (gimplify_function_tree): Fix building calls
10470 to __builtin_return_address.
10471
10472 2011-03-07 Alan Modra <amodra@gmail.com>
10473
10474 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10475 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10476 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10477 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10478 return_mode args.
10479 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10480 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10481 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10482 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10483 * config/rs6000/rs6000.c
10484 (rs6000_elf_end_indicate_exec_stack): Rename to..
10485 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10486 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10487 (rs6000_file_start): ..here.
10488 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10489 file scope variables.
10490 (call_ABI_of_interest): New function.
10491 (init_cumulative_args): Set above vars when function return value
10492 is a float, vector, or small struct.
10493 (rs6000_function_arg_advance_1): Likewise for function args.
10494 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10495 references float args.
10496
10497 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10498
10499 * doc/cfg.texi: Remove "See" before @ref.
10500 * doc/invoke.texi: Likewise.
10501
10502 2011-03-05 Jason Merrill <jason@redhat.com>
10503
10504 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10505
10506 2011-03-05 Anthony Green <green@moxielogic.com>
10507
10508 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10509
10510 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10511
10512 PR rtl-optimization/47899
10513 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10514 to flow_loop_nested_p when moving the loop upward.
10515
10516 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10517
10518 PR target/47719
10519 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10520
10521 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR tree-optimization/47967
10524 * ipa-cp.c (build_const_val): Return NULL instead of creating
10525 VIEW_CONVERT_EXPR for mismatching sizes.
10526 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10527 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10528 give up on versioning.
10529
10530 2011-03-05 Alan Modra <amodra@gmail.com>
10531
10532 PR target/47986
10533 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10534 full cmodel medium/large lo_sum + high addresses.
10535
10536 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10537
10538 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10539 pool references in UNSPEC_LTREL_OFFSET.
10540
10541 2011-03-04 Jan Hubicka <jh@suse.cz>
10542
10543 PR lto/47497
10544 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10545 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10546 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10547 Add node pointers.
10548 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10549 cgraph_add_thunk): Add node pointers.
10550 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10551 associated to right node.
10552 (input_node): Update use of cgraph_same_body_alias
10553 and cgraph_add_thunk.
10554
10555 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10556
10557 * config/i386/i386.opt (mprefer-avx128): New flag.
10558 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10559 modes when the flag -mprefer-avx128 is on.
10560
10561 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10562
10563 * dwarf2out.c (compare_loc_operands): Fix address handling.
10564
10565 2011-03-04 Alan Modra <amodra@gmail.com>
10566
10567 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10568
10569 2011-03-04 Richard Guenther <rguenther@suse.de>
10570
10571 PR middle-end/47968
10572 * expmed.c (extract_bit_field_1): Prefer vector modes that
10573 vec_extract patterns can handle.
10574
10575 2011-03-04 Richard Guenther <rguenther@suse.de>
10576
10577 PR middle-end/47975
10578 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10579
10580 2011-03-04 Richard Henderson <rth@redhat.com>
10581
10582 * explow.c (emit_stack_save): Remove 'after' parameter.
10583 (emit_stack_restore): Likewise.
10584 * expr.h: Update to match.
10585 * builtins.c, calls.c, stmt.c: Likewise.
10586 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10587 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10588 * function.c (expand_function_end): Insert the emit_stack_save
10589 sequence before parm_birth_insn instead of after.
10590
10591 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10592
10593 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10594 (ssse3_pmaddubsw128): Ditto.
10595 (ssse3_pmaddubsw): Ditto.
10596
10597 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10598
10599 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10600
10601 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10602
10603 PR c/47963
10604 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10605 on TYPE_SIZE_UNIT if it is a DECL.
10606
10607 PR debug/47283
10608 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10609 first operand is not is_gimple_mem_ref_addr, try to fold it.
10610 If the operand still isn't is_gimple_mem_ref_addr, clear
10611 MEM_EXPR on op0.
10612
10613 2011-03-03 Richard Guenther <rguenther@suse.de>
10614
10615 PR middle-end/47283
10616 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10617 match comment.
10618 (refs_may_alias_p_1): For release branches return true if
10619 we are confused by our input.
10620
10621 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10622
10623 * config/s390/s390.c (s390_function_value): Rename to ...
10624 (s390_function_and_libcall_value): ... this.
10625 (s390_function_value): New function.
10626 (s390_libcall_value): New function.
10627 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10628 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10629 target macro definitions.
10630 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10631
10632 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10633
10634 * config/i386/freebsd64.h (CC1_SPEC): Define.
10635 * config/i386/linux64.h (CC1_SPEC): Define.
10636 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10637
10638 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10639
10640 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10641 Remove.
10642 * config/stormy16/stormy16.c: Include reload.h.
10643 (xstormy16_memory_move_cost): New function.
10644 (TARGET_MEMORY_MOVE_COST): Define.
10645
10646 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10647
10648 PR rtl-optimization/47925
10649 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10650 with side effects. Remove the more-specific check for volatile asms.
10651
10652 2011-03-02 Alan Modra <amodra@gmail.com>
10653
10654 PR target/47935
10655 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10656 toc relative addresses for valid offsets.
10657
10658 2011-03-01 Richard Guenther <rguenther@suse.de>
10659
10660 PR tree-optimization/47890
10661 * tree-vect-loop.c (get_initial_def_for_induction): Set
10662 related stmt properly.
10663
10664 2011-03-01 Richard Guenther <rguenther@suse.de>
10665
10666 PR lto/47924
10667 * lto-streamer.c (lto_record_common_node): Also register
10668 the canonical type.
10669
10670 2011-03-01 Richard Guenther <rguenther@suse.de>
10671
10672 PR lto/46911
10673 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10674 Do not stream DECL_ABSTRACT_ORIGIN.
10675 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10676 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10677 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10678 Do not stream DECL_ABSTRACT_ORIGIN.
10679 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10680 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10681
10682 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10683
10684 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10685 FUNCTION_VALUE_REGNO_P): Remove.
10686 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10687 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10688 Add 'outgoing' argument.
10689 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10690 function.
10691 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10692 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10693
10694 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10695
10696 PR debug/28047
10697 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10698 (lookup_filename): Likewise.
10699 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10700
10701 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10702 Jakub Jelinek <jakub@redhat.com>
10703
10704 PR middle-end/47893
10705 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10706 (assign_stack_local_1): Change last argument type to int.
10707 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10708 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10709 don't record padding space into frame_space_list nor use those areas.
10710 (assign_stack_local): Adjust caller.
10711 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10712 of assign_stack_local, pass 0 as last argument.
10713 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10714 callers.
10715
10716 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10717
10718 PR debug/47283
10719 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10720 Use target address_mode and pointer_mode hooks instead of hardcoded
10721 Pmode and ptr_mode. Handle some simple cases of extending if
10722 POINTERS_EXTEND_UNSIGNED < 0.
10723 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10724 Call convert_debug_memory_address.
10725 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10726 convert_debug_memory_address.
10727
10728 PR middle-end/46790
10729 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10730 * configure: Regenerated.
10731 * config.in: Regenerated.
10732 * varasm.c (default_function_section): Return NULL
10733 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10734
10735 2011-02-28 Martin Jambor <mjambor@suse.cz>
10736
10737 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10738 the description to match the printed values.
10739
10740 2011-02-28 Richard Guenther <rguenther@suse.de>
10741
10742 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10743 of the copied scope tree.
10744
10745 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10746
10747 * doc/extend.texi (Function Attributes): Avoid deeply (and
10748 wrongly) nested tables.
10749
10750 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10751
10752 PR middle-end/47903
10753 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10754 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10755 r isn't op0 nor op1.
10756
10757 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10758
10759 * config/avr/avr.md: Remove magic comment for emacs.
10760
10761 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10762
10763 PR target/45261
10764 * config/avr/avr.c (avr_option_override): Use error on bad options.
10765 (avr_help): New function.
10766 (TARGET_HELP): Define.
10767
10768 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10769
10770 PR target/42240
10771 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10772 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10773
10774 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10775
10776 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10777 (ARM Options): Ditto.
10778 (i386 and x86-64 Options): Ditto.
10779 (RX Options): Ditto.
10780 (SPARC Options): Ditto.
10781
10782 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10783
10784 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10785 FreeBSD 6 and later. Generally use cpu generic.
10786
10787 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10788
10789 * doc/cpp.texi: Update copyright years.
10790
10791 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10792
10793 PR target/46898
10794 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10795
10796 2011-02-25 Jon Beniston <jon@beniston.com>
10797
10798 PR target/46898
10799 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10800 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10801 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10802 (lm32_block_move_inline): Add type cast to remove warning.
10803 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10804 (gen_int_relational): Move declarations to start of function.
10805
10806 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10807
10808 PR tree-optimization/45470
10809 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10810 can throw internally only.
10811 * tree-vect-stmts.c (vectorizable_call): Likewise.
10812
10813 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10814
10815 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10816 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10817 * config/stormy16/stormy16-protos.h
10818 (xstormy16_preferred_reload_class): Remove.
10819 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10820 static. Change 'rclass' argument and return type to reg_class_t.
10821 (TARGET_PREFERRED_RELOAD_CLASS,
10822 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10823
10824 2011-02-24 Richard Guenther <rguenther@suse.de>
10825
10826 * lto-streamer-in.c (input_bb): Do not find referenced vars
10827 in debug statements.
10828
10829 2011-02-23 Jason Merrill <jason@redhat.com>
10830
10831 * common.opt (fabi-version): Document v5 and v6.
10832
10833 2011-02-23 Richard Guenther <rguenther@suse.de>
10834
10835 PR tree-optimization/47849
10836 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10837
10838 2011-02-23 Jie Zhang <jie@codesourcery.com>
10839
10840 * opts-common.c (decode_cmdline_option): Print empty string
10841 argument as "" in decoded->orig_option_with_args_text.
10842 * gcc.c (execute): Print empty string argument as ""
10843 in the verbose output.
10844 (do_spec_1): Keep empty string argument.
10845
10846 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10847
10848 * config.gcc: Declare score-* and crx-* obsolete.
10849
10850 2011-02-23 Jie Zhang <jie@codesourcery.com>
10851
10852 PR rtl-optimization/47763
10853 * web.c (web_main): Ignore naked clobber when replacing register.
10854
10855 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10856
10857 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10858 Remove.
10859
10860 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10861
10862 PR doc/47848
10863 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10864
10865 2011-02-22 Mike Stump <mikestump@comcast.net>
10866
10867 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10868 assembler.
10869 * configure: Regenerate.
10870
10871 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10872
10873 PR rtl-optimization/46002
10874 * ira-color.c (update_copy_costs): Change class intersection
10875 test to reg_class_contents[] test of 'hard_regno'.
10876
10877 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10878
10879 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10880 than Driver option.
10881 * config/hpux11.opt (mt): Likewise.
10882 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10883 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10884 * config/vax/elf.opt (mno-asm-pic): Likewise.
10885 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10886
10887 2011-02-21 Mike Stump <mikestump@comcast.net>
10888
10889 PR target/47822
10890 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10891 tree so we can get save the type.
10892 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10893 for CFString instead of trying to use past the end of the builtins.
10894 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10895 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10896 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10897 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10898 Rename to darwin_builtin_cfstring.
10899 (darwin_init_cfstring_builtins): Return the built type.
10900
10901 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10902
10903 PR target/47840
10904 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10905 (_mm256_insert_epi64): Use _mm_insert_epi64.
10906
10907 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10908
10909 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10910 * config/stormy16/stormy16-protos.h
10911 (xstormy16_mode_dependent_address_p): Remove.
10912 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10913 Make static. Change return type to bool. Change argument type to
10914 const_rtx. Remove dead code.
10915 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10916
10917 2011-02-21 Richard Guenther <rguenther@suse.de>
10918
10919 PR lto/47820
10920 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10921 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10922 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10923 TUs context.
10924 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10925 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10926
10927 2011-02-20 Richard Guenther <rguenther@suse.de>
10928
10929 PR lto/47822
10930 * tree.c (free_lang_data_in_decl): Clean builtins from
10931 the TU decl BLOCK_VARS.
10932
10933 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10934
10935 PR debug/47620
10936 PR debug/47630
10937 * haifa-sched.c (fix_tick_ready): Skip tick computation
10938 for debug insns.
10939
10940 2011-02-19 Richard Guenther <rguenther@suse.de>
10941
10942 PR lto/47647
10943 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10944 Remove lazy BLOCK_VARS streaming.
10945 (lto_input_ts_block_tree_pointers): Likewise.
10946 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10947
10948 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10949
10950 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10951
10952 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10953
10954 * config/i386/biarch32.h, config/i386/mach.h,
10955 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10956
10957 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10958
10959 PR target/47800
10960 * config/i386/i386.md (peephole2 for shift and plus): Use
10961 operands[1] original mode in the first insn.
10962
10963 2011-02-18 Mike Stump <mikestump@comcast.net>
10964
10965 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10966
10967 2011-02-18 Jan Hubicka <jh@suse.cz>
10968
10969 PR middle-end/47788
10970 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10971 to zero when the function is not inlinable at all.
10972
10973 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10974
10975 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10976 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10977 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10978 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10979 * config/pa/t-pa64: Likewise.
10980 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10981
10982 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10983
10984 PR driver/47787
10985 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10986
10987 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10988
10989 PR target/47792
10990 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10991
10992 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10993
10994 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10995 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10996 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10997 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10998 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10999 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11000 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11001 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11002 m32r_legitimate_address_p): New functions.
11003 * config/m32r/constraints.md (constraint "S"): Don't use
11004 STORE_PREINC_PREDEC_P.
11005 (constraint "U"): Don't use LOAD_POSTINC_P.
11006
11007 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11008
11009 PR rtl-optimization/46178
11010 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11011 compute ira_hard_regno_cover_class[].
11012
11013 2011-02-18 Richard Guenther <rguenther@suse.de>
11014
11015 PR lto/47798
11016 * lto-streamer.h (lto_global_var_decls): Declare.
11017 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11018 statics for global var processing.
11019
11020 2011-02-18 Richard Guenther <rguenther@suse.de>
11021
11022 PR tree-optimization/47737
11023 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11024 edge dominance check.
11025
11026 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11027
11028 PR debug/47780
11029 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11030 avoid invalid rtx sharing.
11031
11032 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11033
11034 * doc/cpp.texi (Obsolete Features): Add background on the
11035 origin of assertions.
11036
11037 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11038
11039 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11040 objc_abi == 2.
11041 * config/darwin.c (output_objc_section_asm_op): Added support for
11042 ABI v1 and v2.
11043 (is_objc_metadata): New.
11044 (darwin_objc2_section): New.
11045 (darwin_objc1_section): New.
11046 (machopic_select_section): Added support for ABI v1 and v2.
11047 (darwin_emit_objc_zeroed): New.
11048 (darwin_output_aligned_bss): Detect objc metadata and treat it
11049 appropriately.
11050 (darwin_asm_output_aligned_decl_common): Same.
11051 (darwin_asm_output_aligned_decl_local): Same.
11052 * config/darwin-sections.def: Updated for ABI v1 and v2.
11053 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11054 compiling Objective-C code for the NeXT runtime, default to using
11055 ABI version 0 for 32-bit, and version 2 for 64-bit.
11056
11057 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11058
11059 * common.opt (optimize_fast): New Variable.
11060 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11061 instead of local variable ofast.
11062
11063 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11064
11065 * doc/invoke.texi (fobjc-abi-version): Documented.
11066 (fobjc-nilcheck): Documented.
11067 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11068 version.
11069
11070 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11071
11072 PR driver/47390
11073 * common.opt (export-dynamic): New Driver option.
11074 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11075
11076 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11077
11078 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11079
11080 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11081 Jan Hubicka <jh@suse.cz>
11082
11083 PR debug/47106
11084 PR debug/47402
11085 * cfgexpand.c (account_used_vars_for_block): Remove.
11086 (estimated_stack_frame_size): Use referenced vars.
11087 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11088 that were referenced in the original function. Test src_fn
11089 rather than cfun. Drop redundant get_var_ann.
11090 (setup_one_parameter): Drop redundant get_var_ann.
11091 (declare_return_variable): Likewise.
11092 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11093 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11094 * ipa-inline.c (compute_inline_parameters): Do not compute
11095 disregard_inline_limits here.
11096 (compute_inlinable_for_current, pass_inlinable): New.
11097 (pass_inline_parameters): Require PROP_referenced_vars.
11098 * cgraphunit.c (cgraph_process_new_functions): Don't run
11099 compute_inline_parameters explicitly unless function is in SSA form.
11100 (cgraph_analyze_function): Set .disregard_inline_limits.
11101 * tree-sra.c (convert_callers): Compute inliner parameters
11102 only for functions already in SSA form.
11103
11104 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11105
11106 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11107 -mlittle-endian-data.
11108
11109 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11110
11111 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11112 -mno-fpu, not -fpu and -no-fpu.
11113 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11114 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11115
11116 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11117
11118 PR target/43653
11119 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11120 input reload with PLUS RTX.
11121
11122 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11123
11124 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11125 of InverseVar(MDMX).
11126
11127 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11128
11129 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11130 --m4-340.
11131
11132 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11133
11134 * config/mn10300/mn10300.opt (mno-crt0): New.
11135
11136 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11137
11138 * config/m68k/uclinux.opt (static-libc): New Driver option.
11139
11140 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11141
11142 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11143
11144 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11145
11146 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11147 %{muser-extend-enabled}.
11148
11149 2011-02-16 Richard Guenther <rguenther@suse.de>
11150
11151 PR tree-optimization/47738
11152 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11153 the TODO from tree_predictive_commoning.
11154
11155 2011-02-15 Jeff Law <law@redhat.com>
11156
11157 Revert
11158 2011-01-25 Jeff Law <law@redhat.com>
11159
11160 PR rtl-optimization/37273
11161 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11162 handle them like argument loads from stack slots. Do not double
11163 count memory for memory constants and argument loads from stack slots.
11164
11165 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11166
11167 PR middle-end/47725
11168 * combine.c (cant_combine_insn_p): Revert the last change.
11169
11170 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11171
11172 PR target/47755
11173 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11174 mode for vector constants. Remove code that checks for TImode.
11175
11176 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11177
11178 PR debug/47106
11179 PR debug/47402
11180 * cgraph.h (compute_inline_parameters): Return void.
11181 * ipa-inline.c (compute_inline_parameters): Adjust.
11182
11183 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11184
11185 PR debug/47106
11186 PR debug/47402
11187 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11188 rather than decl.
11189 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11190 * ipa-inline.c (compute_inline_parameters): Adjust.
11191
11192 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11193
11194 PR debug/47106
11195 PR debug/47402
11196 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11197 Adjust all users. Pass FN to...
11198 * tree-flow-inline.h (first_referenced_var): ... this. Add
11199 fn argument.
11200 * ipa-struct-reorg.c: Adjust.
11201 * tree-dfa.c: Adjust.
11202 * tree-into-ssa.c: Adjust.
11203 * tree-sra.c: Adjust.
11204 * tree-ssa-alias.c: Adjust.
11205 * tree-ssa-live.c: Adjust.
11206 * tree-ssa.c: Adjust.
11207 * tree-ssanames.c: Adjust.
11208 * tree-tailcall.c: Adjust.
11209
11210 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11211
11212 PR debug/47106
11213 PR debug/47402
11214 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11215 Adjust all callers.
11216 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11217 * tree-flow-inline.h: Adjust.
11218 * gimple-pretty-print.c: Adjust.
11219 * tree-into-ssa.c: Adjust.
11220 * tree-ssa.c: Adjust.
11221 * cfgexpand.c: Adjust.
11222
11223 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11224
11225 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11226 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11227 (EXTRA_CONSTRAINT): Delete.
11228 * config/iq2000/constraints.md: New file.
11229 * config/iq2000/iq2000.md: Include it.
11230 (define_insn ""): Delete.
11231 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11232 unsupported constraint letters from patterns.
11233 (call_value, call_value_internal1): Likewise.
11234 (call_value_multiple_internal1): Likewise.
11235
11236 2011-02-15 Nick Clifton <nickc@redhat.com>
11237
11238 * config/mn10300/mn10300.c: Include tm-constrs.h.
11239 (struct liw_data): New data structure describing an LIW candidate
11240 instruction.
11241 (extract_bundle): Use struct liw_data. Allow small integer
11242 operands for some instructions.
11243 (check_liw_constraints): Use struct liw_data. Remove swapped
11244 parameter. Add comments describing the checks. Fix bug when
11245 assigning the source of liw1 to the source of liw2.
11246 (liw_candidate): Delete. Code moved into extract_bundle.
11247 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11248 before swapping.
11249 * config/mn10300/predicates.md (liw_operand): New predicate.
11250 Allows registers and small integer constants.
11251 * config/mn10300/constraints.md (O): New constraint. Accetps
11252 integers in the range -8 to +7 inclusive.
11253 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11254 for moving a small integer into a register. Give this alternative
11255 LIW attributes.
11256 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11257 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11258 using the J,K,L and M constraints,
11259 (liw): Remove SI mode on second operands to allow for HI and QI
11260 mode values.
11261 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11262 instruction.
11263
11264 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11265
11266 PR middle-end/47725
11267 * combine.c (cant_combine_insn_p): Check zero/sign extended
11268 hard registers.
11269
11270 2011-02-15 Richard Guenther <rguenther@suse.de>
11271
11272 PR tree-optimization/47743
11273 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11274 for a non-type-compatible VN lookup bail out.
11275
11276 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11277
11278 * config/fr30/constraints.md: New file.
11279 * config/fr30/fr30.md: Include it.
11280 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11281 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11282 (EXTRA_CONSTRAINT): Delete.
11283
11284 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11285
11286 * config/frv/constraints.md: New file.
11287 * config/frv/predicates.md: Include it.
11288 * config/frv/frv.c (reg_class_from_letter): Delete.
11289 (frv_option_override): Don't initialize it.
11290 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11291 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11292 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11293 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11294 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11295 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11296 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11297 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11298 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11299 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11300 (REG_CLASS_FROM_CONSTRAINT): Delete.
11301
11302 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11303
11304 PR middle-end/47581
11305 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11306 if frame size is 0 in a leaf function.
11307
11308 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11309
11310 PR pch/14940
11311 * config/alpha/host-osf.c: New file.
11312 * config/alpha/x-osf: New file.
11313 * config.host (alpha*-dec-osf*): Use it.
11314
11315 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11316
11317 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11318 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11319 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11320 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11321 type to const_rtx.
11322 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11323
11324 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11325
11326 * config/stormy16/constraints.md: New file.
11327 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11328 Use satisfies_constraint_Q and satisfies_constraint_R.
11329 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11330 Delete.
11331 (xstormy16_legitiamte_address_p): Declare.
11332 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11333 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11334 (EXTRA_CONSTRAINT): Delete.
11335 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11336 Un-staticize.
11337 (xstormy16_extra_constraint_p): Delete.
11338
11339 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11340
11341 PR tree-optimization/46494
11342 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11343 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11344 (pass_rtl_loop_done): Add TODO_verify_flow.
11345 * fwprop.c (pass_rtl_fwprop): Likewise.
11346 * modulo-sched.c (pass_sms): Likewise.
11347 * tree-ssa-dom.c (pass_dominator): Likewise.
11348 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11349 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11350 (pass_tree_loop_done): Likewise.
11351 * tree-ssa-pre.c (execute_pre): Likewise.
11352 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11353 * tree-ssa-sink.c (pass_sink_code): Likewise.
11354 * tree-vrp.c (pass_vrp): Likewise.
11355
11356 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11357
11358 * config/v850/constraints.md: New file.
11359 * config/v850/v850.md: Include it.
11360 * config/v850/predicates.md (reg_or_0_operand): Use
11361 satisfies_constraint_G.
11362 (special_symbolref_operand): Use satisfies_constraint_K.
11363 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11364 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11365 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11366 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11367 (EXTRA_CONSTRAINT): Delete.
11368 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11369 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11370 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11371
11372 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11373
11374 PR target/47696
11375 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11376 description.
11377
11378 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11379
11380 * config/mcore/constraints.md: New file.
11381 * config/mcore/mcore.md: Include it.
11382 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11383 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11384 (REG_CLASS_FROM_LETTER): Delete.
11385 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11386 insn_const_int_ok_for_constraint.
11387 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11388 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11389 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11390 (EXTRA_CONSTRAINT): Delete.
11391
11392 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11393
11394 PR ada/41929
11395 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11396 (IS_SIGHANDLER): Define.
11397 (sparc64_is_sighandler): New function, split off from
11398 sparc64_fallback_frame_state.
11399 (sparc_is_sighandler): New function, split off from
11400 sparc_fallback_frame_state.
11401 (sparc64_fallback_frame_state): Merge with ...
11402 (sparc_fallback_frame_state): ... this into ...
11403 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11404 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11405 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11406 stack instead of hardcoded offsets.
11407
11408 2011-02-14 Andriy Gapon <avg@freebsd.org>
11409
11410 PR target/45808
11411 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11412
11413 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11414
11415 * configure: Regenerate.
11416
11417 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11418
11419 PR driver/45731
11420 * gcc.c (asm_options): Correct spec matching --target-help.
11421
11422 2011-02-12 Martin Jambor <mjambor@suse.cz>
11423
11424 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11425 to gimple call error.
11426
11427 2011-02-12 Mike Stump <mikestump@comcast.net>
11428
11429 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11430 comments in backslash regions.
11431
11432 2011-02-12 Mike Stump <mikestump@comcast.net>
11433 Jakub Jelinek <jakub@redhat.com>
11434 Iain Sandoe <iains@gcc.gnu.org>
11435
11436 PR target/47324
11437 * dwarf2out.c (output_cfa_loc): When required, apply the
11438 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11439 (output_loc_sequence): Likewise.
11440 (output_loc_operands_raw): Likewise.
11441 (output_loc_sequence_raw): Likewise.
11442 (output_cfa_loc): Likewise.
11443 (output_loc_list): Suppress register number adjustment when
11444 calling output_loc_sequence()
11445 (output_die): Likewise.
11446
11447 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11448
11449 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11450 Remove macros.
11451 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11452 xtensa_memory_move_cost): New functions.
11453 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11454
11455 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11456
11457 PR lto/47225
11458 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11459 in the current directory.
11460 * configure: Rebuilt.
11461
11462 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11463
11464 * config/darwin.c (darwin_override_options): Add a hunk missed
11465 from the commit of r168571. Trim comment line lengths and
11466 correct indents of the preceding block.
11467
11468 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11469
11470 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11471 the switch.
11472
11473 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11474
11475 * common.opt (nostartfiles): New Driver option.
11476
11477 2011-02-11 Xinliang David Li <davidxl@google.com>
11478
11479 PR tree-optimization/47707
11480 * tree-chrec.c (convert_affine_scev): Keep type precision.
11481
11482 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11483
11484 PR tree-optimization/47420
11485 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11486
11487 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11488
11489 PR rtl-optimization/47614
11490 * rtl.h (check_for_inc_dec): Declare.
11491 * dse.c (check_for_inc_dec): Externalize...
11492 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11493 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11494
11495 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11496
11497 PR driver/47678
11498 * gcc.c (main): Do not compile inputs if there were errors in
11499 option handling.
11500 * opts-common.c (read_cmdline_option): Check for wrong language
11501 after other error checks.
11502
11503 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11504
11505 * cgraph.c: Fix comment typos.
11506 * cgraph.h: Likewise.
11507 * cgraphunit.c: Likewise.
11508 * ipa-cp.c: Likewise.
11509 * ipa-inline.c: Likewise.
11510 * ipa-prop.c: Likewise.
11511 * ipa-pure-const.c: Likewise.
11512 * ipa-ref.c: Likewise.
11513 * ipa-reference.c: Likewise.
11514
11515 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11516
11517 PR debug/47684
11518 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11519
11520 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11521
11522 PR testsuite/47400
11523 * doc/sourcebuild.texi (Require Support): Document
11524 dg-require-ascii-locale.
11525
11526 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11527
11528 * doc/lto.texi (Write summary): Fix missing parentheses.
11529
11530 2011-02-10 DJ Delorie <dj@redhat.com>
11531
11532 * config/m32c/m32c.c (m32c_option_override): Disable
11533 -fcombine-stack-adjustments until flag value tracking and compare
11534 optimization can be rewritten.
11535
11536 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11537
11538 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11539 PROCESSOR_POWER7.
11540 (PROCESSOR_DEFAULT64): Likewise.
11541
11542 2011-02-10 Richard Henderson <rth@redhat.com>
11543
11544 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11545 change from 2011-02-03.
11546 * config/rx/rx.c (flags_from_code): Likewise.
11547 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11548 is valid, n/pz otherwise.
11549 (rx_select_cc_mode): Return CCmode if Y is not zero.
11550
11551 2011-02-10 Richard Guenther <rguenther@suse.de>
11552
11553 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11554
11555 2011-02-10 Richard Guenther <rguenther@suse.de>
11556
11557 PR tree-optimization/47677
11558 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11559
11560 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11561
11562 PR target/47665
11563 * combine.c (make_compound_operation): Only change shifts into
11564 multiplication for SCALAR_INT_MODE_P.
11565
11566 2011-02-10 Jie Zhang <jie@codesourcery.com>
11567
11568 PR testsuite/47622
11569 Revert
11570 2011-02-05 Jie Zhang <jie@codesourcery.com>
11571 PR debug/42631
11572 * web.c (entry_register): Don't clobber the number of the
11573 first uninitialized reference in used[].
11574
11575 2011-02-09 Richard Guenther <rguenther@suse.de>
11576
11577 PR tree-optimization/47664
11578 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11579 all edges again.
11580
11581 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11582
11583 PR target/46481
11584 PR target/47032
11585 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11586 PROCESSOR_POWER7.
11587 (PROCESSOR_DEFAULT64): Same.
11588 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11589
11590 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11591
11592 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11593
11594 2011-02-09 Martin Jambor <mjambor@suse.cz>
11595
11596 PR middle-end/45505
11597 * tree-sra.c (struct access): New flags grp_scalar_read and
11598 grp_scalar_write. Changed description of assignment read and write
11599 flags.
11600 (dump_access): Dump new flags, reorder all of them.
11601 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11602 to detect multiple scalar reads.
11603 (analyze_access_subtree): Use the new scalar read write flags instead
11604 of the old flags. Adjusted comments.
11605
11606 2011-02-08 DJ Delorie <dj@redhat.com>
11607
11608 PR target/47548
11609 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11610 patterns.
11611
11612 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11613
11614 * config/m68k/uclinux.opt: New.
11615 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11616
11617 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11618
11619 * config/cris/elf.opt (sim): New Driver option.
11620
11621 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11622
11623 * config/xtensa/elf.opt: New.
11624 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11625
11626 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11627
11628 * config/vax/elf.opt: New.
11629 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11630
11631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11632
11633 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11634
11635 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11636
11637 * config/gnu-user.opt: New.
11638 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11639 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11640 *-*-uclinux*): Use gnu-user.opt.
11641
11642 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11643
11644 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11645 * config/i386/gnu.h (CPP_SPEC): Likewise.
11646
11647 2011-02-08 Ian Lance Taylor <iant@google.com>
11648
11649 * common.opt (fcx-limited-range): Add SetByCombined flag.
11650 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11651 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11652 (fassociative-math, freciprocal-math): Likewise.
11653 (funsafe-math-optimizations): Likewise.
11654 * opth-gen.awk: Handle SetByCombined.
11655 * optc-gen.awk: Likewise.
11656 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11657 (set_unsafe_math_optimizations_flags): Likewise.
11658 * doc/options.texi (Option properties): Document SetByCombined.
11659
11660 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11661
11662 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11663 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11664 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11665 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11666 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11667
11668 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11669
11670 PR tree-optimization/46834
11671 PR tree-optimization/46994
11672 PR tree-optimization/46995
11673 * graphite-sese-to-poly.c (used_outside_reduction): New.
11674 (detect_commutative_reduction): Call used_outside_reduction.
11675 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11676 translate_scalar_reduction_to_array only when at least one
11677 loop-phi/close-phi tuple has been detected.
11678
11679 2011-02-08 Richard Guenther <rguenther@suse.de>
11680
11681 PR middle-end/47639
11682 * tree-vect-generic.c (expand_vector_operations_1): Update
11683 stmts here ...
11684 (expand_vector_operations): ... not here. Cleanup EH info
11685 and the CFG if required.
11686
11687 2011-02-08 Richard Guenther <rguenther@suse.de>
11688
11689 PR tree-optimization/47641
11690 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11691 require type compatibility.
11692
11693 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11694
11695 * gimple-low.c (lower_function_body): Don't remove the location of
11696 the return statement here.
11697 (lower_gimple_return): Do it here instead but only if the return
11698 statement is actually used twice.
11699
11700 2011-02-08 Richard Guenther <rguenther@suse.de>
11701
11702 PR tree-optimization/47632
11703 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11704 unused up_to_stmt parameter, return whether cfg-cleanup is
11705 necessary, remove EH info properly.
11706 (forward_propagate_into_gimple_cond): Adjust caller.
11707 (forward_propagate_into_cond): Likewise.
11708 (forward_propagate_comparison): Likewise.
11709 (tree_ssa_forward_propagate_single_use_vars): Make
11710 forward_propagate_comparison case similar to the two others.
11711
11712 2011-02-08 Nick Clifton <nickc@redhat.com>
11713
11714 * config/mn10300/mn10300.opt (mliw): New command line option.
11715 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11716 (liw_bundling): New automaton.
11717 (liw): New attribute.
11718 (liw_op): New attribute.
11719 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11720 (movsi_internal): Add LIW attributes.
11721 (andsi3): Likewise.
11722 (iorsi3): Likewise.
11723 (xorsi3): Likewise.
11724 (addsi3): Separate register and immediate alternatives.
11725 Add LIW attributes.
11726 (subsi3): Likewise.
11727 (cmpsi): Likewise.
11728 (aslsi3): Likewise.
11729 (lshrsi3): Likewise.
11730 (ashrsi3): Likewise.
11731 (liw): New pattern.
11732 * config/mn10300/mn10300.c (liw_op_names): New
11733 (mn10300_print_operand): Handle 'W' operand descriptor.
11734 (extract_bundle): New function.
11735 (check_liw_constraints): New function.
11736 (liw_candidate): New function.
11737 (mn10300_bundle_liw): New function.
11738 (mn10300_reorg): New function.
11739 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11740 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11741 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11742 __LIW__ or __NO_LIW__.
11743 * doc/invoke.texi: Describe the -mliw command line option.
11744
11745 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11746
11747 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11748 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11749 pthread_mutex_unlock): Remove.
11750 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11751 * config/pa/t-pa64: Likewise.
11752 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11753 shared libc if not linking against libpthread.
11754 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11755
11756 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11757
11758 PR target/47558
11759 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11760 on 10.6 and later to ensure that we always use the unwinder from
11761 the system. Only add -no_compact_unwind when tarteting darwin
11762 10.6 or later.
11763
11764 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11765
11766 PR target/46997
11767 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11768 (vec_interleave_lowv2sf): Ditto.
11769 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11770 (vec_extract_oddv2sf): Ditto.
11771
11772 2011-02-07 Mike Stump <mikestump@comcast.net>
11773
11774 PR target/42333
11775 Add __ieee_divdc3 entry point.
11776 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11777 entry point.
11778 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11779 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11780 * config/darwin.c (darwin_rename_builtins): Add.
11781 * config/darwin-protos.h (darwin_rename_builtins): Add.
11782
11783 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11784
11785 PR target/47636
11786 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11787 for the condition.
11788
11789 2011-02-07 Mike Stump <mikestump@comcast.net>
11790
11791 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11792
11793 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11794
11795 PR target/47534
11796 * config/avr/libgcc.S (exit): Move .endfunc
11797
11798 2011-02-07 Richard Guenther <rguenther@suse.de>
11799
11800 PR tree-optimization/47615
11801 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11802 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11803 (run_scc_vn): Initialize it.
11804 (visit_reference_op_load): Use it.
11805 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11806
11807 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11808
11809 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11810 DImode trapping arithmetic libfuncs.
11811
11812 2011-02-07 Richard Guenther <rguenther@suse.de>
11813
11814 PR tree-optimization/47621
11815 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11816 two duplicates ...
11817 (execute_update_addresses_taken): ... here. Make it more
11818 conservative in what we accept.
11819
11820 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11821
11822 * config/sparc/freebsd.h (ASM_SPEC): Define.
11823 * config/sparc/vxworks.h (ASM_SPEC): Define.
11824
11825 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11826
11827 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11828
11829 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11830
11831 * doc/invoke.texi: Remove reference to compiler internals from
11832 user documentation.
11833
11834 * reg-notes.def: Remove REG_VALUE_PROFILE.
11835 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11836
11837 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11838
11839 PR middle-end/47610
11840 * varasm.c (default_section_type_flags): If decl is NULL,
11841 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11842
11843 2011-02-05 Jie Zhang <jie@codesourcery.com>
11844
11845 PR debug/42631
11846 * web.c (entry_register): Don't clobber the number of the
11847 first uninitialized reference in used[].
11848
11849 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11850
11851 PR tree-optimization/46194
11852 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11853 (build_classic_dist_vector_1): Do not represent classic distance
11854 vectors when the access functions are variating in different loops.
11855
11856 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11857
11858 * config/mips/iris6.opt: New.
11859 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11860
11861 2011-02-04 Richard Henderson <rth@redhat.com>
11862 Steve Ellcey <sje@cup.hp.com>
11863
11864 PR target/46997
11865 * config/ia64/predicates.md (mux1_brcst_element): New.
11866 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11867 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11868 (ia64_unpack_sign): New.
11869 (ia64_expand_unpack): Rewrite using new routines.
11870 (ia64_expand_widen_sum): Ditto.
11871 (ia64_expand_dot_prod_v8qi): Ditto.
11872 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11873 routines, add endian check.
11874 (pmpy2_even): Rename from pmpy2_r, add endian check.
11875 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11876 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11877 (vec_widen_smult_hi_v4hi): Ditto.
11878 (vec_widen_umult_lo_v4hi): Ditto.
11879 (vec_widen_umult_hi_v4hi): Ditto.
11880 (mulv2si3): Change endian checks.
11881 (sdot_prodv4hi): Rewrite with new calls.
11882 (udot_prodv4hi): New.
11883 (vec_pack_ssat_v4hi): Add endian check.
11884 (vec_pack_usat_v4hi): Ditto.
11885 (vec_pack_ssat_v2si): Ditto.
11886 (max1_even): Rename from max1_r, add endian check.
11887 (max1_odd): Rename from max1_l, add endian check.
11888 (*mux1_rev): Format change.
11889 (*mux1_mix): Ditto.
11890 (*mux1_shuf): Ditto.
11891 (*mux1_alt): Ditto.
11892 (*mux1_brcst_v8qi): Use new predicate.
11893 (vec_extract_evenv8qi): Remove endian check.
11894 (vec_extract_oddv8qi): Ditto.
11895 (vec_interleave_lowv4hi): Format change.
11896 (vec_interleave_highv4hi): Ditto.
11897 (mix2_even): Rename from mix2_r, add endian check.
11898 (mix2_odd): Rename from mux2_l, add endian check.
11899 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11900 (vec_extract_evenodd_helper): Format change.
11901 (vec_extract_evenv4hi): Remove endian check.
11902 (vec_extract_oddv4hi): Remove endian check.
11903 (vec_interleave_lowv2si): Format change.
11904 (vec_interleave_highv2si): Format change.
11905 (vec_initv2si): Remove endian check.
11906 (vecinit_v2si): Add endian check.
11907 (reduc_splus_v2sf): Add endian check.
11908 (reduc_smax_v2sf): Ditto.
11909 (reduc_smin_v2sf): Ditto.
11910 (vec_initv2sf): Remove endian check.
11911 (fpack): Add endian check.
11912 (fswap): Add endian check.
11913 (vec_interleave_highv2sf): Add endian check.
11914 (vec_interleave_lowv2sf): Add endian check.
11915 (fmix_lr): Add endian check.
11916 (vec_setv2sf): Format change.
11917 (*vec_extractv2sf_0_be): Use shift to extract operand.
11918 (*vec_extractv2sf_1_be): New.
11919 (vec_pack_trunc_v4hi): Add endian check.
11920 (vec_pack_trunc_v2si): Format change.
11921
11922 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11923
11924 PR inline-asm/23200
11925 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11926 do bb, locus and block comparison and disallow loads if it is not set.
11927 (stmt_is_replaceable_p): New function.
11928 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11929 callers.
11930 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11931 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11932 SSA_NAME_DEF_STMT.
11933 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11934
11935 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11936
11937 * config/rs6000/xilinx.opt: New.
11938 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11939
11940 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11941
11942 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11943
11944 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11945
11946 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11947 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11948 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11949 secondary_reload_info, xtensa_secondary_reload): Remove.
11950 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11951 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11952 (xtensa_preferred_reload_class): Make static. Change return and
11953 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11954 Use CONST_DOUBLE_P predicate.
11955 (xtensa_preferred_output_reload_class): New function.
11956 (xtensa_secondary_reload): Make static.
11957
11958 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11959
11960 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11961 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11962 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11963
11964 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11965
11966 PR middle-end/31490
11967 * output.h (SECTION_RELRO): Define.
11968 (SECTION_MACH_DEP): Adjust.
11969 (get_variable_section): New prototype.
11970 * varpool.c (varpool_finalize_named_section_flags): New function.
11971 (varpool_assemble_pending_decls): Call it.
11972 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11973 * cgraphunit.c (cgraph_output_in_order): Call
11974 varpool_finalize_named_section_flags.
11975 * varasm.c (get_section): Allow section flags conflicts between
11976 relro and read-only sections if the section hasn't been declared yet.
11977 Set SECTION_OVERRIDE after diagnosing section type conflict.
11978 (get_variable_section): No longer static.
11979 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11980 readonly sections that need relocations.
11981 (decl_readonly_section_1): New function.
11982 (decl_readonly_section): Use it.
11983
11984 Revert:
11985 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11986 Steve Ellcey <sje@cup.hp.com>
11987
11988 PR middle-end/31490
11989 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11990 if section attribute used.
11991
11992 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11993
11994 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11995 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11996 (darwin_init_sections): Remove assertion.
11997
11998 2011-02-03 Nick Clifton <nickc@redhat.com>
11999
12000 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12001 lt and ge.
12002 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12003 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12004 instead of "n" and "pz".
12005 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12006 CC_FLAG_S.
12007
12008 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12009
12010 PR target/47312
12011 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12012 fma, expand FMA_EXPR as fma{,f,l} call.
12013
12014 PR lto/47274
12015 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12016 copy them into a unsigned char variable and pass address of it to
12017 lto_output_data_stream.
12018
12019 PR target/47564
12020 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12021 around backend_init_target and lang_dependent_init_target calls.
12022 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12023 (verify_cgraph_node): Don't call set_cfun here. Use
12024 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12025 Set error_found for incorrectly represented calls to thunks.
12026
12027 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12028
12029 PR debug/43092
12030 PR rtl-optimization/43494
12031 * rtl.h (for_each_inc_dec_fn): New type.
12032 (for_each_inc_dec): Declare.
12033 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12034 (for_each_inc_dec_find_inc_dec): New fn.
12035 (for_each_inc_dec_find_mem): New fn.
12036 (for_each_inc_dec): New fn.
12037 * dse.c (struct insn_size): Remove.
12038 (replace_inc_dec, replace_inc_dec_mem): Remove.
12039 (emit_inc_dec_insn_before): New fn.
12040 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12041 (canon_address): Pass mem modes to cselib_lookup.
12042 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12043 (cselib_lookup_from_insn): Likewise.
12044 (cselib_subst_to_values): Likewise.
12045 * cselib.c (find_slot_memmode): New var.
12046 (cselib_find_slot): New fn. Use it instead of
12047 htab_find_slot_with_hash everywhere.
12048 (entry_and_rtx_equal_p): Use find_slot_memmode.
12049 (autoinc_split): New fn.
12050 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12051 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12052 Deal with autoinc. Special-case recursion into MEMs.
12053 (cselib_hash_rtx): Likewise.
12054 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12055 address and MEM modes.
12056 (cselib_subst_to_values): Add memmode, pass it on.
12057 Deal with autoinc.
12058 (cselib_lookup): Add memmode argument, pass it on.
12059 (cselib_lookup_from_insn): Add memmode.
12060 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12061 (struct cselib_record_autoinc_data): New.
12062 (cselib_record_autoinc_cb): New fn.
12063 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12064 mode to cselib_lookup. Reset autoinced REGs here instead of...
12065 (cselib_process_insn): ... here.
12066 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12067 to cselib_lookup.
12068 (add_uses): Likewise, also to cselib_subst_to_values.
12069 (add_stores): Likewise.
12070 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12071 cselib_subst_to_values.
12072 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12073 * gcse.c (do_local_cprop): Adjusted.
12074 * postreload.c (reload_cse_simplify_set): Adjusted.
12075 (reload_cse_simplify_operands): Adjusted.
12076 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12077
12078 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12079
12080 PR tree-optimization/45122
12081 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12082 unsafe assumptions when there's more than one loop exit.
12083
12084 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12085
12086 PR target/47272
12087 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12088 Document using vector double with the load/store builtins, and
12089 that the load/store builtins always use Altivec instructions.
12090
12091 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12092 to use altivec memory instructions, even on VSX.
12093 (vector_altivec_store_<mode>): Ditto.
12094
12095 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12096 function.
12097
12098 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12099 V2DF, V2DI support to load/store overloaded builtins.
12100
12101 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12102 altivec load/store builtins for V2DF/V2DI types.
12103
12104 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12105 set avoid indexed addresses on power6 if -maltivec.
12106 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12107 vector_altivec_load/vector_altivec_store builtins.
12108 (altivec_expand_st_builtin): Ditto.
12109 (altivec_expand_builtin): Add VSX memory builtins.
12110 (rs6000_init_builtins): Add V2DI types to internal types.
12111 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12112 load/store builtins.
12113 (rs6000_address_for_altivec): Insure memory address is appropriate
12114 for Altivec.
12115
12116 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12117 vec_vsx_ld and vec_vsx_st.
12118 (vsx_store_<mode>): Ditto.
12119
12120 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12121 variables to hold long long types for VSX vector memory builtins.
12122 (RS6000_BTI_unsigned_long_long): Ditto.
12123 (long_long_integer_type_internal_node): Ditti.
12124 (long_long_unsigned_type_internal_node): Ditti.
12125
12126 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12127 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12128 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12129
12130 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12131 short cuts.
12132 (vec_vsx_st): Ditto.
12133
12134 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12135
12136 * config/pa/pa-hpux10.opt: New.
12137 * config/hpux11.opt (pthread): New Driver option.
12138 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12139 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12140
12141 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12142
12143 * config/ia64/vms.opt: New.
12144 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12145
12146 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12147
12148 PR target/47580
12149 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12150 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12151 generator functions.
12152 (vsx_floatuns<VSi><mode>2): Ditto.
12153 (vsx_fix_trunc<mode><VSi>2): Ditto.
12154 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12155
12156 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12157
12158 * config/i386/djgpp.opt (posix): New Driver option.
12159
12160 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12161
12162 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12163 Move to the unsupported targets list.
12164
12165 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12166
12167 PR rtl-optimization/47525
12168 * df-scan.c: Update copyright years.
12169 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12170 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12171
12172 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12173
12174 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12175 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12176 (ASM_OUTPUT_ASCII): Remove.
12177 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12178
12179 2011-02-02 Jeff Law <law@redhat.com>
12180
12181 PR middle-end/47543
12182 * reload.c (find_reloads_address): Handle reg+d address where both
12183 components are invalid by reloading the entire address.
12184
12185 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12186 Richard Guenther <rguenther@suse.de>
12187
12188 PR tree-optimization/40979
12189 PR bootstrap/47044
12190 * passes.c (init_optimization_passes): After LIM call copy_prop
12191 and DCE to clean up.
12192 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12193
12194 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12195
12196 PR tree-optimization/47576
12197 PR tree-optimization/47555
12198 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12199 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12200 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12201 * tree-scalar-evolution.c (follow_ssa_edge): Use
12202 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12203
12204 2011-02-02 Richard Guenther <rguenther@suse.de>
12205
12206 PR tree-optimization/47566
12207 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12208
12209 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12210
12211 PR debug/47106
12212 PR debug/47402
12213 * tree-inline.c (declare_return_variable): Remove unused caller
12214 variable.
12215
12216 PR debug/47106
12217 PR debug/47402
12218 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12219 * cfgexpand.c (account_used_vars_for_block): Use them.
12220 * tree-nrv.c (tree_nrv): Likewise.
12221 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12222 (dump_scope_block): Likewise.
12223 (remove_unused_locals): Likewise.
12224
12225 PR debug/47106
12226 PR debug/47402
12227 * tree-inline.c (declare_return_variable): Add result decl to
12228 local decls only once.
12229 * gimple-low.c (record_vars_into): Mark newly-created variables
12230 as referenced.
12231
12232 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12233
12234 PR debug/47498
12235 PR debug/47501
12236 PR debug/45136
12237 PR debug/45130
12238 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12239 debug insns.
12240 (no_real_insns_p, schedule_block, set_priorities): Drop special
12241 treatment of boundary debug insns.
12242 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12243 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12244 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12245 (BOUNDARY_DEBUG_INSN_P): Likewise.
12246 (SCHEDULE_DEBUG_INSN_P): Likewise.
12247 * sched-rgn.c (init_ready_list): Drop special treatment of
12248 boundary debug insns.
12249 * final.c (rest_of_clean_state): Clear notes' BB.
12250
12251 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12252
12253 * config/openbsd.opt (assert=): New Driver option.
12254
12255 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12256
12257 * config/i386/nto.opt: New.
12258 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12259
12260 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12261
12262 * config/i386/netware.opt: New.
12263 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12264
12265 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12266
12267 * config/interix.opt (posix): New Driver option.
12268
12269 2011-02-01 DJ Delorie <dj@redhat.com>
12270
12271 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12272
12273 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12274 class for A0/A1.
12275
12276 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12277
12278 PR tree-optimization/47561
12279 * toplev.c (process_options): Print the Graphite flags. Add
12280 flag_loop_flatten to the list of options requiring Graphite.
12281
12282 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12283
12284 * config/i386/cygming.opt (posix): New Driver option.
12285
12286 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12287
12288 * config/arm/vxworks.opt: New.
12289 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12290
12291 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12292
12293 * config/alpha/elf.opt: New.
12294 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12295 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12296
12297 2011-02-01 Richard Guenther <rguenther@suse.de>
12298
12299 PR tree-optimization/47559
12300 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12301 store-motion on references that can throw.
12302
12303 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12304
12305 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12306 * tree-pass.h (TDF_CSELIB): New macro.
12307 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12308 cselib_lookup): Check for it rather than for TDF_DETAILS.
12309
12310 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12311
12312 PR driver/47547
12313 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12314 is HOST_BIT_BUCKET.
12315
12316 * opts.c (finish_options): Don't add x_aux_base_name if it is
12317 HOST_BIT_BUCKET.
12318
12319 2011-02-01 Richard Guenther <rguenther@suse.de>
12320
12321 PR tree-optimization/47555
12322 Revert
12323 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12324
12325 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12326
12327 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12328
12329 PR gcc/46692
12330 * config/lm32/t-lm32: Add multilib for all CPU options.
12331
12332 2011-02-01 Richard Guenther <rguenther@suse.de>
12333
12334 PR tree-optimization/47541
12335 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12336 sure to have a field at offset zero.
12337
12338 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12339
12340 * config/arc/arc.opt (EB, EL): New Driver options.
12341
12342 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12343
12344 * config/alpha/osf5.opt: New.
12345 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12346
12347 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12348
12349 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12350
12351 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12352
12353 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12354 -floop-interchange.
12355 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12356 is an alias of -floop-interchange and that it requires the
12357 Graphite infrastructure.
12358 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12359 flag_loop_interchange based on the value of flag_tree_loop_linear.
12360
12361 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12362 Richard Guenther <rguenther@suse.de>
12363
12364 PR tree-optimization/47538
12365 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12366 type instead of r1type, except for comparisons. For right
12367 shifts and comparisons punt if there are mismatches in
12368 sizetype vs. non-sizetype types.
12369
12370 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12371
12372 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12373 avx_runtime.
12374
12375 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376
12377 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12378 version number.
12379 * configure: Regenerate.
12380
12381 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12382
12383 * configure.ac (gcc_cv_ld_static_option): Define.
12384 (gcc_cv_ld_dynamic_option): Define.
12385 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12386 instead.
12387 (HAVE_LD_STATIC_DYNAMIC): Update message.
12388 (LD_STATIC_OPTION): Define.
12389 (LD_DYNAMIC_OPTION): Define.
12390 * configure: Regenerate.
12391 * config.in: Regenerate.
12392 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12393 HAVE_LD_STATIC_DYNAMIC]: Use them.
12394
12395 2011-01-31 Nick Clifton <nickc@redhat.com>
12396
12397 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12398 registers inside interrupt handlers if the handler is not a leaf
12399 function.
12400
12401 2011-01-31 Nick Clifton <nickc@redhat.com>
12402
12403 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12404 reg_renumber returning an INVALID_REGNUM.
12405
12406 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12407
12408 PR libgcj/44341
12409 * doc/install.texi: Document host options discarded when cross
12410 configuring target libraries.
12411
12412 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12413
12414 Reverted:
12415 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12416 PR debug/45136
12417 PR debug/45130
12418 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12419 debug insns.
12420 (no_real_insns_p, schedule_block, set_priorities): Drop special
12421 treatment of boundary debug insns.
12422 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12423 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12424 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12425 (BOUNDARY_DEBUG_INSN_P): Likewise.
12426 (SCHEDULE_DEBUG_INSN_P): Likewise.
12427 * sched-rgn.c (init_ready_list): Drop special treatment of
12428 boundary debug insns.
12429 * final.c (rest_of_clean-state): Clear notes' BB.
12430
12431 2011-01-31 Alan Modra <amodra@gmail.com>
12432
12433 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12434 toc relative expressions as we do in print_operand_address.
12435
12436 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12437
12438 * doc/extend.texi: Follow spelling conventions.
12439 * doc/invoke.texi: Fix a typo.
12440
12441 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12442
12443 * config/hpux11.opt: New.
12444 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12445 ia64*-*-hpux*): Use hpux11.opt.
12446
12447 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12448
12449 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12450 to tmake_file.
12451
12452 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12453
12454 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12455 support sites.
12456
12457 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12458
12459 * doc/install.texi (Binaries): Remove outdated reference for
12460 Motorola 68HC11/68HC12 downloads.
12461
12462 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12463
12464 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12465 Drepper's paper.
12466
12467 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12468
12469 PR bootstrap/47147
12470 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12471 used by NetBSD.
12472
12473 2011-01-28 Ahmad Sharif <asharif@google.com>
12474
12475 * value-prof.c (check_counter): Corrected error message.
12476
12477 2011-01-29 Jie Zhang <jie@codesourcery.com>
12478
12479 * config/arm/arm.c (arm_legitimize_reload_address): New.
12480 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12481 arm_legitimize_reload_address.
12482 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12483
12484 2011-01-28 Ian Lance Taylor <iant@google.com>
12485
12486 * godump.c (go_define): Ignore macros whose definitions include
12487 two adjacent operands.
12488
12489 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12490
12491 PR target/42894
12492 * varasm.c (force_const_mem): Store copy of x in desc->constant
12493 instead of x itself.
12494 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12495 itself into REG_EQUAL note.
12496
12497 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12498
12499 * config/freebsd.opt (posix, rdynamic): New Driver options.
12500
12501 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12502
12503 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12504 -Bstatic/-Bdynamic.
12505 * configure: Regenerate.
12506
12507 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12508
12509 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12510 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12511
12512 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12513
12514 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12515 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12516 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12517 (s390_preferred_reload_class): Make static. Change return and
12518 'rclass' argument type to reg_class_t.
12519
12520 2011-01-27 Jan Hubicka <jh@suse.cz>
12521
12522 PR middle-end/46949
12523 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12524 (process_function_and_variable_attributes): Check defined weakrefs.
12525
12526 2011-01-27 Martin Jambor <mjambor@suse.cz>
12527
12528 PR tree-optimization/47228
12529 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12530 build_ref_for_offset.
12531
12532 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12533
12534 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12535
12536 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12537
12538 PR rtl-optimization/46856
12539 * postreload.c (reload_combine_recognize_const_pattern): Do not
12540 separate cc0 setter and user on cc0 targets.
12541
12542 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12543
12544 PR c/43082
12545 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12546 passed a VOID_TYPE expression, immediately emit an error and
12547 return error_mark_node.
12548
12549 2011-01-26 Jeff Law <law@redhat.com>
12550
12551 PR rtl-optimization/47464
12552 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12553 rather than may_trap_p as needed.
12554
12555 2011-01-26 DJ Delorie <dj@redhat.com>
12556
12557 PR rtl-optimization/46878
12558 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12559 setter/user dependency as well.
12560
12561 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12562
12563 PR rtl-optimization/44469
12564 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12565 after removing trivially dead basic blocks.
12566
12567 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12568
12569 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12570 * config/frv/frv.h (LINK_SPEC): Likewise.
12571 * config/i386/netware.h (LINK_SPEC): Likewise.
12572 * config/m68k/linux.h (ASM_SPEC): Likewise.
12573 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12574 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12575 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12576 * config/sparc/linux.h (ASM_SPEC): Likewise.
12577 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12578 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12579
12580 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12581
12582 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12583 * config/frv/frv.h (ASM_SPEC): Likewise.
12584 * config/m68k/linux.h (ASM_SPEC): Likewise.
12585 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12586 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12587 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12588 * config/sparc/linux.h (ASM_SPEC): Likewise.
12589 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12590 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12591
12592 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12593
12594 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12595 * config/frv/frv.h (LINK_SPEC): Likewise.
12596 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12597
12598 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12599
12600 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12601 * config/frv/frv.h (ASM_SPEC): Likewise.
12602 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12603 * config/m68k/linux.h (ASM_SPEC): Likewise.
12604 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12605 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12606 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12607 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12608 * config/sparc/linux.h (ASM_SPEC): Likewise.
12609 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12610 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12611 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12612
12613 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12614
12615 PR target/46997
12616 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12617 (*mux2): Ditto.
12618 (vec_extract_evenodd_help): Ditto.
12619 (vec_extract_evenv4hi): Ditto.
12620 (vec_extract_oddv4hi): Ditto.
12621 (vec_interleave_lowv2si): Ditto.
12622 (vec_interleave_highv2si): Ditto.
12623 (vec_extract_evenv2si): Ditto.
12624 (vec_extract_oddv2si: Ditto.
12625 (vec_pack_trunc_v2si): Ditto.
12626
12627 2011-01-22 Jan Hubicka <jh@suse.cz>
12628
12629 PR target/47237
12630 * cgraph.h (cgraph_local_info): New field can_change_signature.
12631 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12632 signature can change.
12633 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12634 can change.
12635 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12636 (cgraph_function_versioning): We can not change signature of functions
12637 that don't allow that.
12638 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12639 (lto_input_node): Likewise.
12640 * ipa-inline.c (compute_inline_parameters): Compute
12641 local.can_change_signature.
12642 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12643 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12644 functions that can not change signature.
12645 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12646 init_cumulative_args): Do not use local calling conventions
12647 for functions that can not change signature.
12648
12649 2011-01-22 Jan Hubicka <jh@suse.cz>
12650
12651 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12652
12653 2011-01-26 Richard Guenther <rguenther@suse.de>
12654
12655 PR tree-optimization/47190
12656 * cgraphunit.c (process_common_attributes): New function.
12657 (process_function_and_variable_attributes): Use it.
12658
12659 2011-01-26 Richard Guenther <rguenther@suse.de>
12660
12661 PR lto/47423
12662 * cgraphbuild.c (record_eh_tables): Record reference to personality
12663 function.
12664
12665 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12666
12667 PR debug/45454
12668 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12669 non-debug insns from moving up.
12670
12671 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12672
12673 PR target/40125
12674 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12675 t-dlldir{,-x} fragment for build and add it to tmake_file.
12676 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12677 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12678 * config/i386/t-dlldir: New file.
12679 (SHLIB_DLLDIR): Define.
12680 * config/i386/t-dlldir-x: New file.
12681 (SHLIB_DLLDIR): Define.
12682 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12683 (SHLIB_INSTALL): Use it.
12684
12685 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12686
12687 PR target/47246
12688 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12689 lower bound of the allowed Thumb-2 coprocessor load/store
12690 index range to -256. Add explaining comment.
12691
12692 2011-01-25 Ian Lance Taylor <iant@google.com>
12693
12694 * godump.c (go_define): Improve lexing of macro expansion to only
12695 accept expressions which match Go spec.
12696
12697 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12698
12699 PR c++/43601
12700 * tree.c (handle_dll_attribute): Handle it.
12701 * doc/extend.texi (@item dllexport): Mention it.
12702 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12703
12704 2011-01-25 Ian Lance Taylor <iant@google.com>
12705
12706 PR tree-optimization/26854
12707 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12708 (decl_jump_unsafe): Move higher in file, with no other change.
12709 (bind): Set has_jump_unsafe_decl if appropriate.
12710 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12711 (check_earlier_gotos): Likewise.
12712 (c_check_switch_jump_warnings): Likewise.
12713
12714 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12715
12716 * doc/invoke.texi (Warning Options): Add missing hyphen.
12717 (-fprofile-dir): Minor grammatical fixes.
12718 (-fbranch-probabilities): Likewise.
12719
12720 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12721
12722 PR debug/45136
12723 PR debug/45130
12724 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12725 debug insns.
12726 (no_real_insns_p, schedule_block, set_priorities): Drop special
12727 treatment of boundary debug insns.
12728 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12729 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12730 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12731 (BOUNDARY_DEBUG_INSN_P): Likewise.
12732 (SCHEDULE_DEBUG_INSN_P): Likewise.
12733 * sched-rgn.c (init_ready_list): Drop special treatment of
12734 boundary debug insns.
12735 * final.c (rest_of_clean-state): Clear notes' BB.
12736
12737 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12738
12739 * Makefile.in (LAMBDA_H): Removed.
12740 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12741 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12742 lambda-trans.o, and tree-loop-linear.o.
12743 (lto-symtab.o): Remove dependence on LAMBDA_H.
12744 (tree-loop-linear.o): Remove rule.
12745 (lambda-mat.o): Same.
12746 (lambda-trans.o): Same.
12747 (lambda-code.o): Same.
12748 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12749 (tree-vect-slp.o): Same.
12750 * hwint.h (gcd): Moved here.
12751 (least_common_multiple): Same.
12752 * lambda-code.c: Removed.
12753 * lambda-mat.c: Removed.
12754 * lambda-trans.c: Removed.
12755 * lambda.h: Removed.
12756 * tree-loop-linear.c: Removed.
12757 * lto-symtab.c: Do not include lambda.h.
12758 * omega.c (gcd): Removed.
12759 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12760 * tree-data-ref.c (print_lambda_vector): Moved here.
12761 (lambda_vector_copy): Same.
12762 (lambda_matrix_copy): Same.
12763 (lambda_matrix_id): Same.
12764 (lambda_vector_first_nz): Same.
12765 (lambda_matrix_row_add): Same.
12766 (lambda_matrix_row_exchange): Same.
12767 (lambda_vector_mult_const): Same.
12768 (lambda_vector_negate): Same.
12769 (lambda_matrix_row_negate): Same.
12770 (lambda_vector_equal): Same.
12771 (lambda_matrix_right_hermite): Same.
12772 * tree-data-ref.h: Do not include lambda.h.
12773 (lambda_vector): Moved here.
12774 (lambda_matrix): Same.
12775 (dependence_level): Same.
12776 (lambda_transform_legal_p): Removed declaration.
12777 (lambda_collect_parameters): Same.
12778 (lambda_compute_access_matrices): Same.
12779 (lambda_vector_gcd): Same.
12780 (lambda_vector_new): Same.
12781 (lambda_vector_clear): Same.
12782 (lambda_vector_lexico_pos): Same.
12783 (lambda_vector_zerop): Same.
12784 (lambda_matrix_new): Same.
12785 * tree-flow.h (least_common_multiple): Removed declaration.
12786 * tree-parloops.c (lambda_trans_matrix): Moved here.
12787 (LTM_MATRIX): Same.
12788 (LTM_ROWSIZE): Same.
12789 (LTM_COLSIZE): Same.
12790 (LTM_DENOMINATOR): Same.
12791 (lambda_trans_matrix_new): Same.
12792 (lambda_matrix_vector_mult): Same.
12793 (lambda_transform_legal_p): Same.
12794 * tree-pass.h (pass_linear_transform): Removed declaration.
12795 * tree-ssa-loop.c (tree_linear_transform): Removed.
12796 (gate_tree_linear_transform): Removed.
12797 (pass_linear_transform): Removed.
12798 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12799 flag_loop_interchange.
12800
12801 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12802
12803 PR tree-optimization/47265
12804 PR tree-optimization/47443
12805 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12806 if name still has some uses.
12807
12808 2011-01-25 Martin Jambor <mjambor@suse.cz>
12809
12810 PR tree-optimization/47382
12811 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12812 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12813
12814 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12815
12816 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12817 sjlj_except_unwind_info.
12818
12819 2011-01-25 Richard Guenther <rguenther@suse.de>
12820
12821 PR tree-optimization/47426
12822 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12823 visible functions results escape.
12824
12825 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12826
12827 PR target/45701
12828 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12829 (arm_get_frame_offsets): Use it.
12830
12831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12832 Jakub Jelinek <jakub@redhat.com>
12833
12834 PR tree-optimization/47271
12835 * tree-if-conv.c (bb_postdominates_preds): New.
12836 (if_convertible_bb_p): Call bb_postdominates_preds.
12837 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12838 (predicate_scalar_phi): Call bb_postdominates_preds.
12839
12840 2011-01-25 Nick Clifton <nickc@redhat.com>
12841
12842 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12843 * config/rx/rx.c (rx_function_value): Likewise.
12844 (rx_promote_function_mode): Likewise.
12845 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12846 in order to make it legitimate.
12847 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12848 make sure that the first operand is the same as the result register.
12849 (addsi3_unspec): Delete.
12850 (subdi3): Do not accept immediate operands.
12851 (subdi3_internal): Likewise.
12852
12853 2011-01-25 Jeff Law <law@redhat.com>
12854
12855 PR rtl-optimization/37273
12856 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12857 handle them like argument loads from stack slots. Do not double
12858 count memory for memory constants and argument loads from stack slots.
12859
12860 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12861
12862 PR tree-optimization/47427
12863 PR tree-optimization/47428
12864 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12865 coalesce if the new root var would be TREE_READONLY.
12866
12867 2011-01-25 Richard Guenther <rguenther@suse.de>
12868
12869 PR middle-end/47414
12870 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12871 correct type for TBAA.
12872
12873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12874
12875 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12876 (close_phi_written_to_memory): Call for_each_index with
12877 dr_indices_valid_in_loop.
12878
12879 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12880
12881 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12882 when it is initialized.
12883
12884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12885
12886 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12887 call to graphite_find_data_references_in_stmt.
12888 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12889 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12890 call to graphite_find_data_references_in_stmt.
12891 (analyze_drs_in_stmts): Same.
12892 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12893 in which the scalar analysis of indices is performed.
12894 (create_data_ref): Same. Update call to dr_analyze_indices.
12895 (find_data_references_in_stmt): Update call to create_data_ref.
12896 (graphite_find_data_references_in_stmt): Same.
12897 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12898 declaration.
12899 (create_data_ref): Same.
12900 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12901 call to create_data_ref.
12902
12903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12904
12905 * graphite-sese-to-poly.c (build_poly_scop): Move
12906 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12907
12908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12909
12910 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12911 VAR_DECL, PARM_DECL, and RESULT_DECL.
12912
12913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12914
12915 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12916 in a reduction PBB.
12917 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12918 that have already been marked as PBB_IS_REDUCTION.
12919
12920 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12921
12922 * graphite-scop-detection.c (same_close_phi_node): New.
12923 (remove_duplicate_close_phi): New.
12924 (make_close_phi_nodes_unique): New.
12925 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12926
12927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12928
12929 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12930 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12931 of both data references to be the same.
12932
12933 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12934
12935 * graphite-dependences.c (build_lexicographical_constraint): Remove
12936 the gdim parameter.
12937 (build_lexicographical_constraint): Adjust call to
12938 ppl_powerset_is_empty.
12939 (dependence_polyhedron): Same.
12940 (graphite_legal_transform_dr): Same.
12941 (graphite_carried_dependence_level_k): Same.
12942 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12943 parameter.
12944 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12945
12946 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12947
12948 * graphite-sese-to-poly.c
12949 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12950 (close_phi_written_to_memory): New.
12951 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12952 and unshare_expr.
12953
12954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12955
12956 * doc/install.texi: Update the expected version number of PPL to 0.11.
12957 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12958 #if PPL_VERSION_MINOR < 11.
12959
12960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12961
12962 * graphite-dependences.c: Include graphite-cloog-util.h.
12963 (new_poly_ddr): Inlined into dependence_polyhedron.
12964 (free_poly_ddr): Moved close by new_poly_ddr.
12965 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12966 Early return NULL when ppl_powerset_is_empty returns true.
12967 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12968 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12969 (graphite_legal_transform_dr): Call new_poly_ddr.
12970 (graphite_carried_dependence_level_k): Same.
12971 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12972 (dot_transformed_deps_stmt_1): Removed.
12973 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12974 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12975 (dot_deps_1): Call dot_deps_2.
12976 * Makefile.in (graphite-dependences.o): Add missing dependence on
12977 graphite-cloog-util.h.
12978
12979 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12980
12981 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12982 (build_lexicographical_constraint): Same.
12983 (dependence_polyhedron_1): Same.
12984 (graphite_legal_transform_dr): Same.
12985 (graphite_carried_dependence_level_k): Same.
12986 * graphite-ppl.c (ppl_powerset_is_empty): New.
12987 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12988 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12989
12990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12991
12992 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12993 the "a followed by b" relation and document it.
12994
12995 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12996
12997 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12998 iteration when the bag of constraints is empty.
12999
13000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13001
13002 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13003
13004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13005
13006 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13007 nest and two loop depths as parameters.
13008 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13009 lst_perfect_nestify.
13010
13011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13012
13013 * graphite-dependences.c (print_pddr): Call
13014 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13015
13016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13017
13018 * graphite-ppl.c (debug_gmp_value): New.
13019 * graphite-ppl.h (debug_gmp_value): Declared.
13020
13021 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13022
13023 * doc/install.texi: Document availability of cloog-0.16.
13024
13025 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13026
13027 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13028 invalid postdominance info.
13029
13030 2011-01-24 Jan Hubicka <jh@suse.cz>
13031
13032 PR c/21659
13033 * doc/extend.texi (weak pragma): Drop claim that it must
13034 appear before definition.
13035 * varasm.c (merge_weak, declare_weak): Only sanity check
13036 that DECL is not output at a time it is declared weak.
13037
13038 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13039
13040 * machmode.def: Fixed comments.
13041
13042 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13043
13044 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13045
13046 2011-01-24 Paul Koning <ni1d@arrl.net>
13047
13048 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13049 WORDS_BIG_ENDIAN.
13050
13051 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13052
13053 PR target/46519
13054 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13055 (block_info): Add scanned and prev.
13056 (move_or_delete_vzeroupper_2): Return if the basic block
13057 has been scanned and the upper 128bit state is unchanged
13058 from the last scan.
13059 (move_or_delete_vzeroupper_1): Return true if the exit
13060 state is changed.
13061 (move_or_delete_vzeroupper): Visit basic blocks using the
13062 work-list based algorithm based on vt_find_locations in
13063 var-tracking.c.
13064
13065 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13066
13067 2011-01-24 Nick Clifton <nickc@redhat.com>
13068
13069 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13070 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13071 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13072 then define __v850e1__.
13073 * doc/invoke.texi: Document -mv850es.
13074
13075 2011-01-24 Richard Henderson <rth@redhat.com>
13076
13077 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13078 compound unordered comparisons.
13079 * config/rx/rx.c (rx_split_fp_compare): Remove.
13080 * config/rx/rx-protos.h: Update.
13081 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13082 (cbranchsf4): Don't call rx_split_fp_compare.
13083 (*cbranchsf4): Use rx_split_cbranch.
13084 (*cmpsf): Don't accept "i" constraint.
13085 (*conditional_branch): Only valid after reload.
13086 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13087
13088 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13089
13090 PR target/47385
13091 * config/rs6000/altivec.md (vector constant splitters): Add
13092 support for creating vector single precision constants if -mvsx is
13093 used and we would create the constant using Altivec primitives.
13094
13095 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13096 Richard Sandiford <rdsandiford@googlemail.com>
13097
13098 PR rtl-optimization/47166
13099 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13100 mechanism for PRE_MODIFY and POST_MODIFY.
13101 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13102 reloadreg.
13103
13104 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13105
13106 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13107
13108 2011-01-22 Jan Hubicka <jh@suse.cz>
13109
13110 PR lto/47333
13111 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13112
13113 2011-01-22 Jan Hubicka <jh@suse.cz>
13114
13115 PR tree-optimization/43884
13116 PR lto/44334
13117 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13118 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13119
13120 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13121
13122 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13123 * config/s390/s390.c (s390_register_move_cost,
13124 s390_memory_move_cost): New.
13125 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13126
13127 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13128
13129 PR middle-end/47401
13130 * except.c (sjlj_assign_call_site_values): Move setting the
13131 crtl->uses_eh_lsda flag to ...
13132 (sjlj_mark_call_sites): ... here.
13133 (sjlj_emit_function_enter): Support NULL dispatch label.
13134 (sjlj_build_landing_pads): In a function with no landing pads
13135 that still has must-not-throw regions, generate code to register
13136 a personality function with empty LSDA.
13137
13138 2011-01-21 Richard Henderson <rth@redhat.com>
13139
13140 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13141
13142 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13143
13144 * compare-elim.c: New file.
13145 * Makefile.in (OBJS-common): Add it.
13146 (compare-elim.o): New.
13147 * common.opt (fcompare-elim): New.
13148 * opts.c (default_options_table): Add OPT_fcompare_elim.
13149 * tree-pass.h (pass_compare_elim_after_reload): New.
13150 * passes.c (init_optimization_passes): Add it.
13151 * recog.h: Protect against re-inclusion.
13152 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13153 * doc/invoke.texi (-fcompare-elim): Document it.
13154 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13155 * doc/tm.texi: Rebuild.
13156
13157 2011-01-22 Nick Clifton <nickc@redhat.com>
13158
13159 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13160 rx_split_fp_compare.
13161
13162 2011-01-22 Nick Clifton <nickc@redhat.com>
13163
13164 * config/rx/rx.md (UNSPEC_CONST): New.
13165 (deallocate_and_return): Wrap the amount popped off the stack in
13166 an UNSPEC_CONST in order to stop it being rejected by
13167 -mmax-constant-size.
13168 (pop_and_return): Add a "(return)" rtx.
13169 (call): Drop the immediate operand.
13170 (call_internal): Likewise.
13171 (call_value): Likewise.
13172 (call_value_internal): Likewise.
13173 (sibcall_internal): Likewise.
13174 (sibcall_value_internal): Likewise.
13175 (sibcall): Likewise. Generate an explicit call using
13176 sibcall_internal.
13177 (sibcall_value): Likewise.
13178 (mov<>): FAIL if a constant operand is not legitimate.
13179 (addsi3_unpsec): New pattern.
13180
13181 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13182 (ok_for_max_constant): New function.
13183 (gen_safe_add): New function.
13184 (rx_expand_prologue): Use gen_safe_add.
13185 (rx_expand_epilogue): Likewise.
13186 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13187 UNSPEC CONSTs.
13188
13189 2011-01-21 Jeff Law <law@redhat.com>
13190
13191 PR tree-optimization/47053
13192 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13193 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13194 statements are deleted.
13195 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13196 is nonempty, then purge dead edges and cleanup the CFG.
13197
13198 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13199
13200 PR debug/47402
13201 Temporarily revert:
13202 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13203 PR debug/47106
13204 * tree-dfa.c (create_var_ann): Mark variable as used.
13205
13206 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13207
13208 PR middle-end/45566
13209 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13210 notes from other section in hot/cold partitioning even if
13211 last_action is -3. Increment call_site_base.
13212
13213 PR rtl-optimization/47366
13214 * fwprop.c (forward_propagate_into): Return bool. If
13215 any changes are made, -fnon-call-exceptions is used and
13216 REG_EH_REGION note is present, call purge_dead_edges
13217 and return true if it purged anything.
13218 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13219 any EH edges were purged.
13220
13221 2011-01-21 Jeff Law <law@redhat.com>
13222
13223 PR rtl-optimization/41619
13224 * caller-save.c (setup_save_areas): Break out code to determine
13225 which hard regs are live across calls by examining the reload chains
13226 so that it is always used.
13227 Eliminate code which checked REG_N_CALLS_CROSSED.
13228
13229 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13230
13231 PR tree-optimization/47355
13232 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13233 NOP has non-debug uses beyond PHIs in new_bb.
13234
13235 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13236
13237 PR debug/47106
13238 * cfgexpand.c (account_used_vars_for_block): Only account vars
13239 that are annotated as used.
13240 (estimated_stack_frame_size): Don't set TREE_USED.
13241 * tree-dfa.c (create_var_ann): Mark variable as used.
13242
13243 2011-01-21 Richard Guenther <rguenther@suse.de>
13244
13245 PR middle-end/47395
13246 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13247
13248 2011-01-21 Richard Guenther <rguenther@suse.de>
13249
13250 PR tree-optimization/47365
13251 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13252 (vn_reference_lookup_pieces): Adjust.
13253 (vn_reference_lookup): Likewise.
13254 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13255 (vn_reference_lookup_3): Only look through kills if in
13256 VN_WALKREWRITE mode.
13257 (vn_reference_lookup_pieces): Adjust.
13258 (vn_reference_lookup): Likewise.
13259 (visit_reference_op_load): Likewise.
13260 (visit_reference_op_store): Likewise.
13261 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13262 (compute_avail): Likewise.
13263 (eliminate): Likewise.
13264
13265 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13266
13267 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13268 DECL_IGNORED_P non-reg vars if they are used.
13269
13270 PR tree-optimization/47391
13271 * varpool.c (const_value_known_p): Return false if
13272 decl is volatile.
13273
13274 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13275
13276 PR bootstrap/47215
13277 * config/i386/i386.c (ix86_local_alignment): Handle
13278 case for va_list_type_node is nil.
13279 (ix86_canonical_va_list_type): Likewise.
13280
13281 2011-01-21 Alan Modra <amodra@gmail.com>
13282
13283 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13284 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13285
13286 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13287
13288 * config/arm/arm.md (define_attr type): Rename f_load
13289 and f_store to f_fpa_load and f_fpa_store. Update.
13290 (write_conflict): Deal with rename fallout.
13291 (*push_fp_multi): Likewise.
13292 * config/arm/fpa.md (f_load): Use f_fpa_load.
13293 (f_store): Use f_fpa_store.
13294 (*movsf_fpa): Likewise.
13295 (*movdf_fpa): Likewise.
13296 (*movxf_fpa): Likewise.
13297 (*thumb2_movsf_fpa): Likewise.
13298 (*thumb2_movdf_fpa): Likewise.
13299 (*thumb2_movxf_fpa): Likewise.
13300 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13301 f_loadd and f_stored.
13302 (*thumb2_movdi_vfp): Likewise.
13303 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13304 (*thumb2_movsi_vfp): Likewise.
13305 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13306 Use f_loads instead of f_load.
13307 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13308
13309 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13310
13311 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13312 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13313 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13314 (xtensa_mode_dependent_address_p): New function.
13315 (constantpool_address_p): Make static. Change return type to bool.
13316 Change argument type to const_rtx. Use CONST_INT_P predicate.
13317
13318 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13319
13320 PR debug/46583
13321 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13322
13323 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13324
13325 PR debug/47283
13326 * cfgexpand.c (expand_debug_expr): Instead of generating
13327 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13328 etc. handling.
13329
13330 2011-01-20 Richard Guenther <rguenther@suse.de>
13331
13332 PR middle-end/47370
13333 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13334 the pointer operand of MEM_REFs.
13335
13336 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13337
13338 PR tree-optimization/46130
13339 * ipa-split.c (consider_split): If return_bb contains non-virtual
13340 PHIs other than for retval or if split_function would not adjust it,
13341 refuse to split.
13342
13343 2011-01-20 Richard Guenther <rguenther@suse.de>
13344
13345 PR tree-optimization/47167
13346 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13347 Revert previous change, only avoid enumeral type changes.
13348
13349 2011-01-19 Mike Stump <mikestump@comcast.net>
13350
13351 * doc/tm.texi.in (BRANCH_COST): Englishify.
13352 * doc/tm.texi (BRANCH_COST): Likewise.
13353
13354 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13355
13356 PR c++/47291
13357 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13358 (gen_scheduled_generic_parms_dies): New functions.
13359 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13360 generation for the end of CU compilation.
13361 (dwarf2out_finish): Generate template parameters DIEs here.
13362
13363 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13364
13365 PR debug/46240
13366 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13367 debug bind stmt on merge edges.
13368
13369 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13370
13371 PR debug/47079
13372 PR debug/46724
13373 * function.c (instantiate_expr): Instantiate incoming rtl of
13374 implicit arguments, and recurse on VALUE_EXPRs.
13375 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13376 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13377
13378 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13379
13380 * c-parser.c (c_parser_for_statement): Initialize
13381 collection_expression.
13382
13383 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13384
13385 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13386
13387 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13388
13389 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13390 (LINK_SHLIB_SPEC): Don't use %(link_path).
13391 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13392
13393 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13394
13395 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13396 (NO_SHARED_LIB_SUPPORT): Remove.
13397 (LINK_SHLIB_SPEC): Remove one conditional definition.
13398
13399 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13400
13401 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13402 %{call_shared}.
13403 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13404 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13405 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13406 %{call_shared} and conditionals on these options not being passed.
13407 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13408 %{call_shared}.
13409
13410 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13411
13412 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13413 simplify.
13414
13415 * ipa-split.c: Spelling fixes.
13416
13417 2011-01-19 Richard Henderson <rth@redhat.com>
13418
13419 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13420 (*mulsi3): Likewise.
13421
13422 * longlong.h [__mn10300__] (count_leading_zeros): New.
13423 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13424 [__mn10300__] (add_ssaaaa, subddmmss): New.
13425 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13426 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13427
13428 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13429
13430 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13431
13432 2011-01-19 Richard Henderson <rth@redhat.com>
13433
13434 * config/mn10300/mn10300.md (addsi3_flags): New.
13435 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13436 (subsi3_flags, subc_internal, subdi3): New.
13437 (subdi3_internal, *subdi3_degenerate): New.
13438 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13439
13440 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13441 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13442 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13443 * config/mn10300/mn10300-protos.h: Update.
13444 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13445 (return_ret): Likewise. Rename from return_internal_regs.
13446 (return_internal): Remove.
13447
13448 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13449 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13450 (mn10300_legitimate_constant_p): Likewise.
13451 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13452 (mn10300_frame_size): New.
13453 (mn10300_expand_prologue): Use it.
13454 (mn10300_expand_epilogue): Likewise.
13455 (mn10300_initial_offset): Likewise.
13456 * config/mn10300/mn10300-protos.h: Update.
13457 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13458 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13459 (prologue, epilogue, return_internal): Tidy output code.
13460 (mn10300_store_multiple_operation, return): Likewise.
13461 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13462 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13463 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13464 (load_pic, am33_load_pic): New.
13465 (mn10300_load_pic0, mn10300_load_pic1): New.
13466
13467 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13468 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13469 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13470 (cc_flags_for_mode, cc_flags_for_code): New.
13471 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13472 overflow flag is not valid. Validate that the flags we need
13473 for the comparison are valid.
13474 (mn10300_output_cmp): Remove.
13475 (mn10300_output_add): New.
13476 (mn10300_select_cc_mode): Use cc_flags_for_code.
13477 (mn10300_split_cbranch): New.
13478 (mn10300_match_ccmode): New.
13479 (mn10300_split_and_operand_count): New.
13480 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13481 to the function.
13482 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13483 (addsi3): ... here. Use mn10300_output_add.
13484 (*addsi3_flags): New.
13485 (*am33_subsi3, *mn10300_subsi3): Merge...
13486 (subsi3): ... here. Use attribute isa.
13487 (*subsi3_flags): New.
13488 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13489 when possible.
13490 (*am33_andsi3, *mn10300_andsi3): Merge...
13491 (andsi3): ... here.
13492 (*andsi3_flags): New.
13493 (andsi3 splitters): New.
13494 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13495 (iorsi3): ... here.
13496 (*iorsi3_flags): New.
13497 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13498 (xorsi3): ... here.
13499 (*xorsi3_flags): New.
13500 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13501 (one_cmplsi2): ... here.
13502 (*one_cmplsi2_flags): New.
13503 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13504 instead of "dax" in constraints. Use mn10300_split_cbranch.
13505 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13506 use matching constraints to eliminate a self-comparison.
13507 (*integer_conditional_branch): Rename from integer_conditional_branch.
13508 Use int_mode_flags to match CC_REG.
13509 (*cbranchsi4_btst, *btstsi): New.
13510 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13511 mn10300_split_cbranch.
13512 (*am33_cmpsf): Rename from am33_cmpsf.
13513 (*float_conditional_branch): Rename from float_conditional_branch.
13514 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13515 (zero_extendqisi2): ... here.
13516 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13517 (zero_extendhisi2): ... here.
13518 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13519 (extendqisi2): ... here.
13520 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13521 (extendhisi2): ... here.
13522 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13523 (ashlsi3): ... here.
13524 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13525 (lshrsi3): ... here.
13526 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13527 (ashrsi3): ... here.
13528 (consecutive add peephole): Remove.
13529 * config/mn10300/predicates.md (label_ref_operand): New.
13530 (int_mode_flags): New.
13531 (CCZN_comparison_operator): New.
13532
13533 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13534 (throughput_42_latency_43): New reservation.
13535 (mulsidi3, umulsidi3): New expanders.
13536 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13537 the MDR register to allocation; separately allocate the low and
13538 high parts of the DImode result.
13539 (umulsidi3_internal): Similarly.
13540 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13541 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13542 (udivsi3, umodsi3): Remove.
13543 (udivmodsi4, divmodsi4): New expanders.
13544 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13545 (*divmodsi4): Simiarly.
13546 (ext_internal): New.
13547
13548 * config/mn10300/constraints.md ("z"): New constraint.
13549 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13550 (FIXED_REGISTERS): Don't fix MDR.
13551 (CALL_USED_REGSITERS): Reformat nicely.
13552 (REG_ALLOC_ORDER): Add MDR.
13553 (enum regclass): Add MDR_REGS.
13554 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13555 (IRA_COVER_CLASSES): Add MDR_REGS.
13556 (REGNO_REG_CLASS): Handle MDR_REG.
13557 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13558 (mn10300_register_move_cost): Likewise.
13559 * config/mn10300/mn10300.md (MDR_REG): New.
13560 (*movsi_internal): Handle moves to/from MDR_REGS.
13561
13562 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13563 POST_MODIFY.
13564 (mn10300_secondary_reload): Tidy combination reload classes.
13565 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13566 addresses for AM33. Allow symbolic offsets for reg+imm.
13567 (mn10300_regno_in_class_p): New.
13568 (mn10300_legitimize_reload_address): New.
13569 * config/mn10300/mn10300.h (enum reg_class): Remove
13570 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13571 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13572 SP_OR_GENERAL_REGS.
13573 (REG_CLASS_NAMES): Update to match.
13574 (REG_CLASS_CONTENTS): Likewise.
13575 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13576 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13577 (REGNO_IN_RANGE_P): Remove.
13578 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13579 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13580 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13581 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13582 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13583 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13584 (REGNO_GENERAL_P): New.
13585 (HAVE_POST_MODIFY_DISP): New.
13586 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13587 (LEGITIMIZE_RELOAD_ADDRESS): New.
13588 * config/mn10300/mn10300-protos.h: Update.
13589
13590 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13591 DATA_REGS for AM33 stack-pointer destination.
13592 (mn10300_preferred_output_reload_class): Likewise.
13593 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13594 into a form appropriate for ...
13595 (TARGET_SECONDARY_RELOAD): New.
13596 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13597 * config/mn10300/mn10300-protos.h: Update.
13598 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13599 reload_insi; use the "A" constraint for the scratch; handle AM33
13600 moves of sp to non-address registers.
13601
13602 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13603 (*movqi_internal): ... here.
13604 (*am33_movhi, *mn10300_movhi): Merge into...
13605 (*movhi_internal): ... here.
13606 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13607 as the source/destination of moves from/to SP.
13608 (movsf): Only allow for AM33-2.
13609 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13610 any integer constant constraint. Only allow for AM33-2. Tidy
13611 all of the alternative outputs.
13612 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13613 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13614 for MN103.
13615 (udivsi3, umodsi3): New patterns for MN103 only.
13616
13617 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13618
13619 * doc/tm.texi.in: Spell out that a lack of register class unions
13620 can lead to ICEs.
13621 * doc/tm.texi: Regenerate.
13622
13623 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13624
13625 PR rtl-optimization/47337
13626 * dce.c (check_argument_store): New function.
13627 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13628
13629 PR tree-optimization/47290
13630 * tree-eh.c (infinite_empty_loop_p): New function.
13631 (cleanup_empty_eh): Use it.
13632
13633 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13634
13635 PR target/46997
13636 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13637 (a64_expand_widen_sum): Ditto.
13638 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13639 (vec_extract_evenodd_help): Ditto.
13640 (vec_extract_evenv4hi): Ditto.
13641 (vec_extract_oddv4hi): Ditto.
13642 (vec_extract_evenv2si): Ditto.
13643 (vec_extract_oddv2si): Ditto.
13644 (vec_extract_evenv2sf): Ditto.
13645 (vec_extract_oddv2sf): Ditto.
13646 (vec_pack_trunc_v4hi: Ditto.
13647 (vec_pack_trunc_v2si): Ditto.
13648 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13649 (vec_interleave_highv8qi): Ditto.
13650 (mix1_r): Ditto.
13651 (vec_extract_oddv8qi): Ditto.
13652 (vec_interleave_lowv4hi): Ditto.
13653 (vec_interleave_highv4hi): Ditto.
13654 (vec_interleave_lowv2si): Ditto.
13655 (vec_interleave_highv2si): Ditto.
13656
13657 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13658
13659 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13660 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13661 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13662 (pa_c_mode_for_suffix): New.
13663 (TARGET_EXPAND_BUILTIN): Define.
13664 (TARGET_C_MODE_FOR_SUFFIX): Define.
13665 (pa_builtins): Define.
13666 (pa_init_builtins): Register __float128 type and init new support
13667 builtins.
13668 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13669 * config/pa/quadlib.c (_U_Qfcopysign): New.
13670
13671 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13672
13673 PR middle-end/46894
13674 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13675 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13676 are defined.
13677
13678 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13679
13680 PR tree-optimization/47179
13681 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13682 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13683
13684 2011-01-18 Richard Guenther <rguenther@suse.de>
13685
13686 PR rtl-optimization/47216
13687 * emit-rtl.c: Include tree-flow.h.
13688 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13689 of replicating it with different semantics.
13690 * Makefile.in (emit-rtl.o): Adjust.
13691
13692 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13693
13694 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13695 (cortex_a9_dp): Handle neon types correctly.
13696
13697 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13698
13699 PR rtl-optimization/47299
13700 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13701 subtarget. Use normal multiplication if both operands are constants.
13702 * expmed.c (expand_widening_mult): Don't try to optimize constant
13703 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13704 before using it.
13705
13706 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13707
13708 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13709 spacing after 'e.g.', typos, comma, hyphenation.
13710
13711 2011-01-17 Richard Henderson <rth@redhat.com>
13712
13713 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13714 (rx_restricted_mem_operand): New.
13715 (rx_shift_operand): Use register_operand.
13716 (rx_source_operand, rx_compare_operand): Likewise.
13717 * config/rx/rx.md (addsi3_flags): New expander.
13718 (adddi3): Rewrite as expander.
13719 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13720 (subsi3_flags): New expander.
13721 (subdi3): Rewrite as expander.
13722 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13723
13724 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13725 (rx_init_builtins): Remove sat builtin.
13726 (rx_expand_builtin): Likewise.
13727 * config/rx/rx.md (ssaddsi3): New.
13728 (*sat): Rename from sat. Represent the CC_REG input.
13729
13730 * config/rx/predicates.md (rshift_operator): New.
13731 * config/rx/rx.c (rx_expand_insv): Remove.
13732 * config/rx/rx-protos.h: Update.
13733 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13734 operand to the canonical position.
13735 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13736 (*bitclr, *bitclr_in_memory): Similarly.
13737 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13738 (insv): Retain the zero_extract in the expansion.
13739
13740 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13741 (bswaphi2, bitinvert, revw): Likewise.
13742
13743 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13744 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13745 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13746 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13747 (bitset, bitset_in_memory): Likewise.
13748 (bitinvert, bitinvert_in_memory): Likewise.
13749 (bitclr, bitclr_in_memory): Likewise.
13750 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13751 (rx_strend, rx_cmpstrn): Likewise.
13752 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13753 (bitop peep2 patterns): Remove.
13754
13755 * config/rx/rx.c (rx_match_ccmode): New.
13756 * config/rx/rx-protos.h: Update.
13757 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13758 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13759 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13760 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13761 (fix_truncsfsi2, floatsisf2): Likewise.
13762 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13763 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13764 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13765 (*subsi3_flags, *xorsi3_flags): New.
13766
13767 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13768
13769 * config/rx/rx.c (rx_print_operand): Remove workaround for
13770 unsplit comparison operations.
13771
13772 * config/rx/rx.md (movsicc): Split after reload.
13773 (*movsicc): Merge *movsieq and *movsine via match_operator.
13774 (*stcc): New pattern.
13775
13776 * config/rx/rx.c (rx_float_compare_mode): Remove.
13777 * config/rx/rx.h (rx_float_compare_mode): Remove.
13778 * config/rx/rx.md (cstoresi4): Split after reload.
13779 (*sccc): New pattern.
13780
13781 * config/rx/predicates.md (label_ref_operand): New.
13782 (rx_z_comparison_operator): New.
13783 (rx_zs_comparison_operator): New.
13784 (rx_fp_comparison_operator): New.
13785 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13786 Validate that the flags are set properly for the comparison.
13787 (rx_gen_cond_branch_template): Remove.
13788 (rx_cc_modes_compatible): Remove.
13789 (mode_from_flags): New.
13790 (flags_from_code): Rename from flags_needed_for_conditional.
13791 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13792 (rx_select_cc_mode): Likewise.
13793 (rx_split_fp_compare): New.
13794 (rx_split_cbranch): New.
13795 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13796 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13797 (*cbranchsf4): Similarly.
13798 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13799 match_operator and rx_split_cbranch.
13800 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13801 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13802 (*cmpsi): Rename from cmpsi.
13803 (*tstsi): Rename from tstsi.
13804 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13805 (*conditional_branch): Rename from conditional_branch.
13806 (*reveresed_conditional_branch): Remove.
13807 (b<code>): Remove expander.
13808 * config/rx/rx-protos.h: Update.
13809
13810 * config/rx/rx.c (rx_compare_redundant): Remove.
13811 * config/rx/rx.md (cmpsi): Don't use it.
13812 * config/rx/rx-protos.h: Update.
13813
13814 * config/rx/rx-modes.def (CC_F): New mode.
13815 * config/rx/rx.c (rx_select_cc_mode): New.
13816 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13817 * config/rx/rx-protos.h: Update.
13818
13819 2011-01-17 Richard Henderson <rth@redhat.com>
13820
13821 * except.c (dump_eh_tree): Fix stray ; after for statement.
13822
13823 2011-01-17 Richard Guenther <rguenther@suse.de>
13824
13825 PR tree-optimization/47313
13826 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13827 handling before copying the body. Properly deal with
13828 by-reference result in SSA form.
13829
13830 2011-01-17 Ian Lance Taylor <iant@google.com>
13831
13832 PR target/47219
13833 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13834 (struct_value_alias_set): Don't define.
13835 (sparc_option_override): Don't set sparc_sr_alias_set and
13836 struct_value_alias_set.
13837 (save_or_restore_regs): Use gen_frame_mem rather than calling
13838 set_mem_alias_set.
13839 (sparc_struct_value_rtx): Likewise.
13840
13841 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13842
13843 PR target/47318
13844 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13845 (_mm_maskstore_pd): Likewise.
13846 (_mm_maskload_ps): Likewise.
13847 (_mm_maskstore_ps): Likewise.
13848 (_mm256_maskload_pd): Change mask to __m256i.
13849 (_mm256_maskstore_pd): Likewise.
13850 (_mm256_maskload_ps): Likewise.
13851 (_mm256_maskstore_ps): Likewise.
13852
13853 * config/i386/i386-builtin-types.def: Updated.
13854 (ix86_expand_special_args_builtin): Likewise.
13855
13856 * config/i386/i386.c (bdesc_special_args): Update
13857 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13858 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13859 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13860 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13861
13862 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13863 Use <avxpermvecmode> on mask register.
13864 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13865
13866 2011-01-17 Olivier Hainque <hainque@adacore.com>
13867 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13868 Eric Botcazou <ebotcazou@adacore.com>
13869
13870 PR target/46655
13871 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13872 if <= USHRT_MAX in 32-bit mode.
13873
13874 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13875
13876 * doc/install.texi (Configuration, Specific): Wrap long
13877 lines in examples. Allow line wrapping in long options
13878 and URLs where beneficial for PDF output.
13879
13880 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13881
13882 * config/mips/mips.c (mips_classify_symbol): Don't return
13883 SYMBOL_PC_RELATIVE for nonlocal labels.
13884
13885 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13886
13887 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13888
13889 2011-01-15 Jan Hubicka <jh@suse.cz>
13890
13891 PR tree-optimization/47276
13892 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13893 declarations as needed.
13894
13895 2011-01-15 Martin Jambor <mjambor@suse.cz>
13896
13897 * common.opt (fdevirtualize): New flag.
13898 * doc/invoke.texi (Option Summary): Document it.
13899 * opts.c (default_options_table): Add devirtualize flag.
13900 * ipa-prop.c (detect_type_change): Return immediately if
13901 devirtualize flag is not set.
13902 (detect_type_change_ssa): Likewise.
13903 (compute_known_type_jump_func): Likewise.
13904 (ipa_analyze_virtual_call_uses): Likewise.
13905
13906 2011-01-14 Martin Jambor <mjambor@suse.cz>
13907
13908 PR tree-optimization/45934
13909 PR tree-optimization/46302
13910 * ipa-prop.c (type_change_info): New type.
13911 (stmt_may_be_vtbl_ptr_store): New function.
13912 (check_stmt_for_type_change): Likewise.
13913 (detect_type_change): Likewise.
13914 (detect_type_change_ssa): Likewise.
13915 (compute_complex_assign_jump_func): Check for dynamic type change.
13916 (compute_complex_ancestor_jump_func): Likewise.
13917 (compute_known_type_jump_func): Likewise.
13918 (compute_scalar_jump_functions): Likewise.
13919 (ipa_analyze_virtual_call_uses): Likewise.
13920 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13921
13922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13923
13924 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13925 * config/i386/i386.opt (msse5): New Alias.
13926
13927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13928
13929 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13930 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13931 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13932 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13933
13934 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13935
13936 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13937 -mcpu options.
13938 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13939 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13940 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13941 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13942 Likewise.
13943 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13944
13945 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13946
13947 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13948
13949 2011-01-14 Mike Stump <mikestump@comcast.net>
13950
13951 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13952 * config/fr30/fr30.md: Likweise
13953 (movsi_push): Likewise.
13954 (movsi_pop): Likewise.
13955 (enter_func): Likewise.
13956 * config/moxie/moxie.md (movsi_push): Likewise.
13957 (movsi_pop): Likewise.
13958
13959 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13960
13961 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13962 %{no_archive} %{exact_version}.
13963 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13964 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13965 %{no_archive} %{exact_version}.
13966 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13967 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13968 * config/mips/vxworks.h: Likewise.
13969
13970 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13971
13972 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13973
13974 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13975
13976 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13977 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13978
13979 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13980
13981 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13982 -nodefaultlib.
13983
13984 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13985
13986 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13987 for mcpu not cpu.
13988 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13989 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13990 not cpu.
13991 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13992 Don't handle -shlib.
13993
13994 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13995
13996 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13997 (CC1_SPEC): Don't handle -profile.
13998
13999 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14000
14001 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14002 * config/mips/mips.h (CC1_SPEC): Likewise.
14003
14004 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14005
14006 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14007 * config/mips/mips.h (CC1_SPEC): Likewise.
14008
14009 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14010
14011 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14012 * config/m32r/linux.h (LINK_SPEC): Likewise.
14013 * config/mips/linux.h (LINK_SPEC): Likewise.
14014 * config/mips/linux64.h (LINK_SPEC): Likewise.
14015 * config/sparc/linux.h (LINK_SPEC): Likewise.
14016 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14017 LINK_SPEC): Likewise.
14018 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14019
14020 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14021
14022 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14023 %{version:-v}.
14024 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14025
14026 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14027
14028 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14029 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14030
14031 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14032
14033 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14034
14035 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14036
14037 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14038 supports -Bstatic/-Bdynamic.
14039 * configure: Regenerate.
14040
14041 2011-01-14 Jan Hubicka <jh@suse.cz>
14042 Jack Howarth <howarth@bromo.med.uc.edu>
14043
14044 PR target/46037
14045 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14046 when checking debug_info_level. Test write_symbols instead of
14047 debug_hooks->var_location when setting flag_var_tracking_uninit.
14048
14049 2011-01-14 Richard Guenther <rguenther@suse.de>
14050
14051 PR tree-optimization/47179
14052 * target.def (ref_may_alias_errno): New target hook.
14053 * targhooks.h (default_ref_may_alias_errno): Declare.
14054 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14055 (default_ref_may_alias_errno): New function.
14056 * target.h (struct ao_ref_s): Declare.
14057 * tree-ssa-alias.c: Include target.h.
14058 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14059 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14060 (targhooks.o): Likewise.
14061 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14062 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14063
14064 2011-01-14 Richard Guenther <rguenther@suse.de>
14065
14066 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14067
14068 2011-01-14 Richard Guenther <rguenther@suse.de>
14069
14070 PR tree-optimization/47280
14071 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14072 return CFG changes.
14073 (tree_ssa_forward_propagate_single_use_vars): Deal with
14074 CFG changes from associate_plusminus.
14075
14076 2011-01-14 Richard Guenther <rguenther@suse.de>
14077
14078 PR middle-end/47281
14079 Revert
14080 2011-01-11 Richard Guenther <rguenther@suse.de>
14081
14082 PR tree-optimization/46076
14083 * tree-ssa.c (useless_type_conversion_p): Conversions from
14084 unprototyped to empty argument list function types are useless.
14085
14086 2011-01-14 Richard Guenther <rguenther@suse.de>
14087
14088 PR tree-optimization/47286
14089 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14090
14091 2011-01-14 Martin Jambor <mjambor@suse.cz>
14092
14093 PR middle-end/46823
14094 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14095
14096 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14097
14098 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14099 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14100 * config/xtensa/xtensa.c (xtensa_libcall_value,
14101 xtensa_function_value_regno_p): New functions.
14102 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14103
14104 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14105
14106 PR c++/47213
14107 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14108 PE specific hook.
14109 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14110 New function prototype.
14111 * config/i386/winnt.c (i386_pe_assemble_visibility):
14112 Warn only if attribute was specified by user.
14113
14114 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14115
14116 PR target/47251
14117 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14118 floating point.
14119 (floatunsdidf2_fcfidu): Ditto.
14120
14121 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14122
14123 * config/s390/s390.c (print_operand_address): Replace 'error' with
14124 'output_operand_lossage'.
14125 (print_operand): Likewise.
14126
14127 2011-01-13 Jeff Law <law@redhat.com>
14128
14129 PR rtl-optimization/39077
14130 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14131 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14132 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14133 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14134 * gcse.c (prune_insertions_deletions): New function.
14135 (compute_pre_data): Use it.
14136
14137 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14138
14139 PR debug/PR46973
14140 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14141 static function.
14142 (prune_unused_types_mark): Use it.
14143
14144 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14145
14146 PR rtl-optimization/45352
14147 * sel-sched.c: Update copyright years.
14148 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14149 in the advancing loop when we have issued issue_rate insns.
14150
14151 2011-01-12 Richard Henderson <rth@redhat.com>
14152
14153 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14154 (TARGET_MD_ASM_CLOBBERS): New.
14155
14156 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14157 (TARGET_DELEGITIMIZE_ADDRESS): New.
14158
14159 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14160 (clzsi2, *bsch): New patterns.
14161
14162 * config/mn10300/mn10300.md (INT): New mode iterator.
14163 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14164
14165 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14166 flag_split_wide_types.
14167
14168 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14169 (mn10300_trampoline_init): Rewrite without a template, an immediate
14170 load and a direct branch.
14171 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14172
14173 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14174
14175 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14176 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14177 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14178 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14179
14180 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14181
14182 PR debug/47209
14183 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14184 of type.
14185
14186 2011-01-12 Jan Hubicka <jh@suse.cz>
14187
14188 PR driver/47244
14189 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14190 (PLUGIN_COND_CLOSE): New macro.
14191 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14192
14193 2011-01-12 Richard Guenther <rguenther@suse.de>
14194
14195 PR lto/47259
14196 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14197 register variables in a MEM_REF.
14198
14199 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14200
14201 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14202 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14203 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14204 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14205 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14206 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14207 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14208 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14209 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14210 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14211 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14212 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14213 * config/gnu-user.h: New. Copied from linux.h.
14214 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14215 GNU_USER_TARGET_STARTFILE_SPEC.
14216 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14217 GNU_USER_TARGET_ENDFILE_SPEC.
14218 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14219 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14220 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14221 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14222 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14223 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14224 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14225 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14226 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14227 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14228 * config/arm/linux-eabi.h (CC1_SPEC): Use
14229 GNU_USER_TARGET_CC1_SPEC.
14230 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14231 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14232 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14233 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14234 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14235 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14236 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14237 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14238
14239 2011-01-12 Richard Guenther <rguenther@suse.de>
14240
14241 PR other/46946
14242 * doc/invoke.texi (ffast-math): Document it is turned on
14243 with -Ofast.
14244
14245 2011-01-12 Jan Hubicka <jh@suse.cz>
14246
14247 PR tree-optimization/47233
14248 * opts.c (common_handle_option): Disable ipa-reference with profile
14249 feedback.
14250
14251 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14252
14253 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14254 error message.
14255
14256 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14257
14258 * c-parser.c (c_lex_one_token): Updated and reindented some
14259 comments. No changes in code.
14260
14261 2011-01-11 Ian Lance Taylor <iant@google.com>
14262
14263 * godump.c (go_output_var): Don't output the variable if there is
14264 already a type with the same name.
14265
14266 2011-01-11 Ian Lance Taylor <iant@google.com>
14267
14268 * godump.c (go_format_type): Don't generate float80.
14269
14270 2011-01-11 Richard Henderson <rth@redhat.com>
14271
14272 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14273 declaration. Rewrite for both speed and size.
14274 (mn10300_address_cost_1): Remove.
14275 (mn10300_register_move_cost): New.
14276 (mn10300_memory_move_cost): New.
14277 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14278 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14279 extensions, shifts, BSWAP, CLZ.
14280 (mn10300_wide_const_load_uses_clr): Remove.
14281 (TARGET_REGISTER_MOVE_COST): New.
14282 (TARGET_MEMORY_MOVE_COST): New.
14283 * config/mn10300/mn10300-protos.h: Update.
14284 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14285
14286 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14287 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14288 * config/mn10300/mn10300-protos.h: Update.
14289 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14290 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14291 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14292 (*test_int_bitfield, *test_byte_bitfield): Remove.
14293 (*bit_test, *subreg_bit_test): Remove.
14294 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14295
14296 * config/mn10300/constraints.md ("c"): Rename from "A".
14297 ("A", "D"): New constraint letters.
14298 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14299 (fmssf4, fnmasf4, fnmssf4): Likewise.
14300
14301 * config/mn10300/mn10300.md (isa): New attribute.
14302 (enabled): New attribute.
14303
14304 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14305 (abssf2, negsf2): Define only for hardware fp.
14306 (sqrtsf2): Reformat.
14307 (addsf3, subsf3, mulsf3): Merge expander and insn.
14308
14309 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14310 (DEBUGGER_AUTO_OFFSET): Remove.
14311 (DEBUGGER_ARG_OFFSET): Remove.
14312
14313 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14314 Emit register stores with the same offsets as the hardware.
14315 (mn10300_store_multiple_operation): Don't check that the register
14316 save offsets are monotonic.
14317 * config/mn10300/mn10300-protos.h: Update.
14318
14319 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14320
14321 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14322 in terms of the value on the stack, not the MDR register.
14323
14324 2011-01-11 Jan Hubicka <jh@suse.cz>
14325
14326 PR lto/45721
14327 PR lto/45375
14328 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14329 (symbol_alias_set_destroy, symbol_alias_set_contains,
14330 propagate_aliases_backward): Declare.
14331 * lto-streamer-out.c (struct sets): New sturcture.
14332 (trivally_defined_alias): New function.
14333 (output_alias_pair_p): Rewrite.
14334 (output_unreferenced_globals): Fix output of alias pairs.
14335 (produce_symtab): Likewise.
14336 * ipa.c (function_and_variable_visibility): Set weak alias destination
14337 as needed in lto.
14338 * varasm.c (symbol_alias_set_t): Remove.
14339 (symbol_alias_set_destroy): Export.
14340 (propagate_aliases_forward, propagate_aliases_backward): New functions
14341 based on ...
14342 (compute_visible_aliases): ... this one; remove.
14343 (trivially_visible_alias): New
14344 (trivially_defined_alias): New.
14345 (remove_unreachable_alias_pairs): Rewrite.
14346 (finish_aliases_1): Reorganize code checking if alias is defined.
14347 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14348 in LTO mode.
14349
14350 2011-01-11 Richard Guenther <rguenther@suse.de>
14351
14352 PR tree-optimization/46076
14353 * tree-ssa.c (useless_type_conversion_p): Conversions from
14354 unprototyped to empty argument list function types are useless.
14355
14356 2011-01-11 Richard Guenther <rguenther@suse.de>
14357
14358 PR middle-end/45235
14359 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14360 volatile MEMs as MEM_READONLY_P.
14361
14362 2011-01-11 Richard Guenther <rguenther@suse.de>
14363
14364 PR tree-optimization/47239
14365 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14366
14367 2011-01-11 Jeff Law <law@redhat.com>
14368
14369 PR tree-optimization/47086
14370 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14371 IVs from statements that might throw.
14372
14373 2011-01-10 Jan Hubicka <jh@suse.cz>
14374
14375 PR lto/45375
14376 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14377
14378 2011-01-10 Jan Hubicka <jh@suse.cz>
14379
14380 PR lto/45375
14381 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14382 when correcting profile.
14383
14384 2011-01-10 Jan Hubicka <jh@suse.cz>
14385
14386 PR lto/46083
14387 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14388 DECL_FINI_PRIORITY.
14389 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14390 Restore DECL_FINI_PRIORITY.
14391
14392 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14393
14394 * doc/gimple.texi: Fix quoting of multi-word return values in
14395 @deftypefn statements. Ensure presence of return value. Wrap
14396 overlong @deftypefn lines.
14397 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14398 descriptions of removed functions.
14399 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14400 of multi-word return value in @deftypefn statement.
14401
14402 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14403
14404 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14405 (Conditional Expressions, Logical Operators)
14406 (Statement and operand traversals): Do not indent smallexample
14407 code. Fix duplicate function argument in example.
14408
14409 2011-01-10 Jeff Law <law@redhat.com>
14410
14411 PR tree-optimization/47141
14412 * ipa-split.c (split_function): Handle case where we are
14413 returning a value and the return block has a virtual operand phi.
14414
14415 2011-01-10 Jan Hubicka <jh@suse.cz>
14416
14417 PR tree-optimization/47234
14418 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14419 (pass_feedback_split_functions): Declare.
14420 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14421 tree-profile.
14422 * ipa-split.c (gate_split_functions): Update comments; disable
14423 split-functions for profile_arc_flag and branch_probabilities.
14424 (gate_feedback_split_functions): New function.
14425 (execute_feedback_split_functions): New function.
14426 (pass_feedback_split_functions): New global var.
14427
14428 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14429
14430 PR lto/46760
14431 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14432 calling gimple_call_set_cannot_inline.
14433
14434 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14435
14436 * config/darwin-sections.def: Remove unused section.
14437
14438 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14439
14440 PR c++/47218
14441 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14442
14443 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14444
14445 PR objc/47232
14446 * c-parser.c (c_parser_declaration_or_fndef): Improved
14447 error message.
14448
14449 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14450
14451 * config/i386/winnt.c (i386_pe_start_function): Make sure
14452 to switch back to function's section.
14453
14454 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14455
14456 PR gcc/46902
14457 PR testsuite/46912
14458 * plugin.c: Move include of dlfcn.h from here...
14459 * system.h: ... to here.
14460
14461 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14462
14463 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14464 file name.
14465 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14466 two extra empty pages in PDF output.
14467
14468 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14469
14470 PR objc/47078
14471 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14472 for error recovery purposes behave as if it was not specified so
14473 that the default type is usd.
14474
14475 2011-01-07 Jan Hubicka <jh@suse.cz>
14476
14477 PR tree-optmization/46469
14478 * ipa.c (function_and_variable_visibility): Clear needed flags on
14479 nodes with external decls; handle weakrefs merging correctly.
14480
14481 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14482
14483 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14484 not false.
14485
14486 2011-01-07 Jan Hubicka <jh@suse.cz>
14487
14488 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14489 and no longer claim that gold is required for linker plugin.
14490 * configure: Regenerate.
14491 * gcc.c (PLUGIN_COND): New macro.
14492 (LINK_COMMAND_SPEC): Use it.
14493 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14494 * config.in (HAVE_LTO_PLUGIN): New.
14495 * configure.ac (--with-lto-plugin): New parameter; autodetect
14496 HAVE_LTO_PLUGIN.
14497
14498 2011-01-07 Jan Hubicka <jh@suse.cz>
14499
14500 PR tree-optimization/46367
14501 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14502 when we can update original.
14503 (cgraph_mark_inline_edge): Sanity check.
14504 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14505
14506 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14507
14508 * config/spu/spu.h (ASM_COMMENT_START): Define.
14509
14510 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14511
14512 PR driver/42445
14513 * gcc.c (%>S): New.
14514 (SWITCH_KEEP_FOR_GCC): Likewise.
14515 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14516 (do_spec_1): Handle "%>".
14517
14518 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14519
14520 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14521
14522 PR target/47201
14523 * config/i386/i386.c (ix86_delegitimize_address): If
14524 simplify_gen_subreg fails, return orig_x.
14525
14526 PR bootstrap/47187
14527 * value-prof.c (gimple_stringop_fixed_value): Handle
14528 lhs of the call properly.
14529
14530 2011-01-07 Jan Hubicka <jh@suse.cz>
14531
14532 PR lto/45375
14533 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14534
14535 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14536
14537 * target.def (function_switched_text_sections): New hook.
14538 * doc/tm.texi: Regenerated.
14539 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14540 * final.c (default_function_switched_text_sections): New.
14541 (final_scan_insn): Call function_switched_text_sections when a
14542 mid-function section change occurs.
14543 * output.h (default_function_switched_text_sections): Declare.
14544 * config/darwin-protos.h (darwin_function_switched_text_sections):
14545 Likewise.
14546 * config/darwin.c (darwin_function_switched_text_sections): New.
14547 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14548
14549 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14550
14551 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14552 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14553 the secondary code fragment when outputting for DWARF == 2.
14554
14555 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14556
14557 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14558 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14559 Remove.
14560 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14561 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14562
14563 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14564
14565 PR debug/46704
14566 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14567 when it is not empty.
14568
14569 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14570
14571 Bobcat Enablement
14572 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14573 (case ${target}): Add btver1.
14574 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14575 -march=native recognize btver1 processors.
14576 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14577 btver1 def_and_undef
14578 * config/i386/i386.c (struct processor_costs btver1_cost): New
14579 btver1 cost table.
14580 (m_BTVER1): New definition.
14581 (m_AMD_MULTIPLE): Includes m_BTVER1.
14582 (initial_ix86_tune_features): Add btver1 tune.
14583 (processor_target_table): Add btver1 entry.
14584 (static const char *const cpu_names): Add btver1 entry.
14585 (software_prefetching_beneficial_p): Add btver1.
14586 (ix86_option_override_internal): Add btver1 instruction sets.
14587 (ix86_issue_rate): Add btver1.
14588 (ix86_adjust_cost): Add btver1.
14589 * config/i386/i386.h (TARGET_BTVER1): New definition.
14590 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14591 (enum processor_type): Add PROCESSOR_BTVER1.
14592 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14593
14594 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14595
14596 PR target/43309
14597 * config/i386/i386.c (legitimize_tls_address)
14598 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14599 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14600 (tls_initial_exec_64_sun): New pattern.
14601
14602 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14603
14604 * doc/invoke.texi (Overall Options): Improve wording and markup
14605 of the description of -wrapper.
14606
14607 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14608
14609 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14610 rdynamic, threads): New Driver options.
14611
14612 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14613
14614 PR target/38118
14615 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14616 if coming from .tdata.
14617 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14618
14619 2011-01-06 Jan Hubicka <jh@suse.cz>
14620
14621 PR lto/47188
14622 * collect2.c (main): Do not enable LTOmode when plugin is active.
14623
14624 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14625
14626 PR other/45915
14627 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14628 --version output if supported.
14629 * configure: Regenerate.
14630
14631 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14632
14633 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14634 Driver options.
14635
14636 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14637
14638 PR c/47150
14639 * c-convert.c (convert): When converting a complex expression
14640 other than COMPLEX_EXPR to a different complex type, ensure
14641 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14642 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14643 when converting COMPLEX_TYPE.
14644
14645 2011-01-06 Ira Rosen <irar@il.ibm.com>
14646
14647 PR tree-optimization/47139
14648 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14649 only the last reduction value is used outside the loop. Update
14650 documentation.
14651
14652 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14653
14654 * config/rtems.opt: New.
14655 * config.gcc (*-*-rtems*): Use rtems.opt.
14656
14657 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14658
14659 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14660 processors do not support 3DNow instructions.
14661
14662 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14663
14664 * config/spu/spu.c (spu_option_override): Set parameter
14665 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14666
14667 2011-01-05 Jan Hubicka <jh@suse.cz>
14668
14669 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14670 at the command line.
14671
14672 2011-01-05 Martin Jambor <mjambor@suse.cz>
14673
14674 PR lto/47162
14675 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14676 deltas on streamed outgoing edges.
14677 (output_node_opt_summary): Output info for outgoing edges only when
14678 the node is in new parameter set.
14679 (output_cgraph_opt_summary): New parameter set, passed to the two
14680 aforementioned functions. Update its forward declaration and its
14681 callee too.
14682
14683 2011-01-05 Tom Tromey <tromey@redhat.com>
14684
14685 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14686 operator to c_finish_omp_atomic.
14687 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14688 (build_unary_op): Update.
14689 (build_modify_expr): Update.
14690 (build_asm_expr): Update.
14691
14692 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14693
14694 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14695 newly inserted insns.
14696 (pad_bb): Likewise.
14697 (spu_emit_branch_hint): Likewise.
14698 (insert_hbrp_for_ilb_runout): Likewise.
14699 (spu_machine_dependent_reorg): Call df_finish_pass after
14700 schedule_insns returns.
14701
14702 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14703
14704 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14705
14706 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14707
14708 PR tree-optimization/47005
14709 * tree-sra.c (struct access): Add 'non_addressable' bit.
14710 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14711 (decide_one_param_reduction): Return 0 if the parameter is passed by
14712 reference and one of the accesses in the group is non_addressable.
14713
14714 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14715
14716 PR tree-optimization/47056
14717 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14718 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14719 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14720
14721 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14722
14723 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14724 initializer. Skip view conversions from aggregate types.
14725
14726 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14727
14728 PR bootstrap/47055
14729 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14730
14731 2011-01-04 Philipp Thomas <pth@suse.de>
14732
14733 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14734 obvious typo.
14735
14736 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14737
14738 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14739 on empty epilogue sequences.
14740
14741 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14742
14743 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14744 non-static): New Driver options.
14745
14746 2011-01-04 Jie Zhang <jie@codesourcery.com>
14747
14748 PR driver/47137
14749 * gcc.c (default_compilers[]): Set combinable field to 0
14750 for all assembly languages.
14751
14752 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14753
14754 * config/mips/loongson3a.md: New file.
14755 * config/mips/mips.md: Include loongson3a.md.
14756 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14757 TUNE_LOONGSON_3A.
14758
14759 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14760
14761 PR middle-end/47017
14762 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14763 instead of convert_memory_address_addr_space on the base expression.
14764
14765 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14766
14767 * config/spu/spu.c (spu_option_override): Update error text
14768 for bad -march= / -mtune= values.
14769
14770 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14771
14772 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14773 if branch-hint optimization will be performed.
14774
14775 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14776
14777 PR tree-optimization/47148
14778 * ipa-split.c (split_function): Convert arguments to
14779 DECL_ARG_TYPE if possible.
14780
14781 PR tree-optimization/47155
14782 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14783 when computing uns.
14784
14785 PR rtl-optimization/47157
14786 * combine.c (try_combine): If undobuf.other_insn becomes
14787 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14788 and set *new_direct_jump_p too.
14789
14790 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14791
14792 PR tree-optimization/47021
14793 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14794
14795 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14796
14797 * gcc.c (process_command): Update copyright notice dates.
14798 * gcov.c (print_version): Likewise.
14799 * gcov-dump.c (print_version): Likewise.
14800 * mips-tfile.c (main): Likewise.
14801 * mips-tdump.c (main): Likewise.
14802
14803 2011-01-03 Martin Jambor <mjambor@suse.cz>
14804
14805 PR tree-optimization/46801
14806 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14807 aggregate fields start at byte boundary instead of the bit-field flag.
14808
14809 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14810
14811 PR driver/47137
14812 * gcc.c (main): Revert revision 168407.
14813
14814 2011-01-03 Martin Jambor <mjambor@suse.cz>
14815
14816 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14817
14818 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14819
14820 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14821 vector optab to expand vector/scalar shift, update gimple to vector.
14822
14823 2011-01-03 Martin Jambor <mjambor@suse.cz>
14824
14825 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14826 a thunk.
14827
14828 2011-01-03 Martin Jambor <mjambor@suse.cz>
14829
14830 PR tree-optimization/46984
14831 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14832 HOST_WIDE_INT.
14833 (cgraph_create_indirect_edge): Fixed line length.
14834 (cgraph_indirect_call_info): Declare.
14835 (cgraph_make_edge_direct) Update declaration.
14836 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14837 (cgraph_create_indirect_edge): Use it.
14838 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14839 callees.
14840 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14841 the new thunk_delta representation.
14842 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14843 HOST_WIDE_INT.
14844 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14845 (ipa_read_indirect_edge_info): Likewise.
14846 * lto-cgraph.c (output_edge_opt_summary): New function.
14847 (output_node_opt_summary): Call it on all outgoing edges.
14848 (input_edge_opt_summary): New function.
14849 (input_node_opt_summary): Call it on all outgoing edges.
14850
14851 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14852
14853 PR driver/47137
14854 * gcc.c (main): Don't check have_o when settting combine_inputs.
14855
14856 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14857
14858 * regrename.c: Add general comment describing the pass.
14859 (struct du_head): Remove 'length' field.
14860 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14861 (regrename_optimize): Do not sort chains. Rework comments, add others.
14862 Force renaming to the preferred class (if any) in the first pass and do
14863 not consider registers that belong to it in the second pass.
14864 (create_new_chain): Do not set 'length' field.
14865 (scan_rtx_reg): Likewise.
14866
14867 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14868
14869 PR tree-optimization/47140
14870 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14871 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14872 to bit_value_binop.
14873
14874 PR rtl-optimization/47028
14875 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14876 parm_birth_insn instead of at the beginning of first bb.
14877
14878 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14879
14880 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14881 Remove the word "see" before "@pxref".
14882 * doc/rtl.texi: Remove the word "see" before "@pxref".
14883
14884 2011-01-01 Jan Hubicka <jh@suse.cz>
14885
14886 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14887 memory.
14888
14889 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14890
14891 PR target/38662
14892 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14893
14894 \f
14895 Copyright (C) 2011 Free Software Foundation, Inc.
14896
14897 Copying and distribution of this file, with or without modification,
14898 are permitted in any medium without royalty provided the copyright
14899 notice and this notice are preserved.