sparc.md (setjmp): Handle PIC mode and use the hard frame pointer.
[gcc.git] / gcc / ChangeLog
1 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4 frame pointer.
5
6 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7
8 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
9 false if there are call-saved registers here...
10 (sparc_can_use_return_insn_p): ...but here instead.
11 (save_or_restore_regs): Fix thinko.
12 (sparc_expand_prologue): Use current_function_is_leaf.
13 (sparc_frame_pointer_required): Likewise.
14
15 2011-05-21 Nick Clifton <nickc@redhat.com>
16
17 PR target/49098
18 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
19
20 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
21
22 * gengtype.c (walk_type): Implemented "atomic" GTY option.
23 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
24
25 2011-05-21 Joseph Myers <joseph@codesourcery.com>
26
27 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
28 * optc-gen.awk: Move common code to opt-read.awk.
29 * opth-gen.awk: Likewise.
30 * Makefile.in (options.c, s-options-h): Update to use
31 opt-read.awk.
32
33 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
34
35 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
36
37 2011-05-20 Tom de Vries <tom@codesourcery.com>
38
39 PR target/45098
40 * tree-ssa-loop-ivopts.c: Include expmed.h.
41 (get_shiftadd_cost): New function.
42 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
43
44 2011-05-20 Jakub Jelinek <jakub@redhat.com>
45
46 PR bootstrap/49086
47 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
48 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
49
50 2011-05-20 Joseph Myers <joseph@codesourcery.com>
51
52 * Makefile.in: Update comment referring to $(OBJS-common).
53
54 2011-05-20 Ian Lance Taylor <iant@google.com>
55
56 * godump.c (go_output_typedef): Put enum constants in the macro
57 hash table to avoid duplicate Go const definitions.
58
59 2011-05-20 Joseph Myers <joseph@codesourcery.com>
60
61 * Makefile.in (LIBDEPS): Add libcommon.a.
62 (LIBS): Likewise.
63 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
64 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
65 pretty-print.o and version.o.
66 (OBJS-libcommon): New.
67 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
68 (BACKEND): Add libcommon.a.
69 (MOSTLYCLEANFILES): Likewise.
70 (libcommon.a): New.
71 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
72 (cpp$(exeext)): Likewise.
73 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
74 pretty-print.o and input.o.
75 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
76 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
77 (errors.o): Remove.
78 (mips-tfile): Don't explicitly use version.o.
79 (mips-tdump): Likewise.
80 (gcov.o): Depend on $(DIAGNOSTIC_H).
81 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
82 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
83 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
84 * gcov-dump.c: Include intl.h and diagnostic.h.
85 (main): Initialize diagnostics.
86 * gcov.c: Include diagnostic.h.
87 (fnotice): Remove.
88 (main): Initialize diagnostics.
89 * lto-wrapper.c: Include diagnostic.h.
90 (main): Initialize diagnostics.
91
92 2011-05-20 Michael Matz <matz@suse.de>
93
94 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
95
96 2011-05-20 Michael Matz <matz@suse.de>
97 Richard Guenther <rguenther@suse.de>
98
99 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
100 use lto_streamer_cache_append directly instead of returning a VEC.
101 (preload_common_node): Remove.
102 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
103 track seen nodes.
104 (lto_streamer_cache_create): Call lto_preload_common_nodes.
105
106 2011-05-20 Richard Guenther <rguenther@suse.de>
107
108 PR tree-optimization/49079
109 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
110 MEM_REFs correctly for the trailing array access detection.
111 Special case constants the same way as decls for overall size
112 constraining.
113
114 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
115
116 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
117 argument expansion.
118
119 2011-05-20 Jakub Jelinek <jakub@redhat.com>
120
121 PR tree-optimization/49073
122 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
123 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
124 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
125
126 2011-05-20 Richard Guenther <rguenther@suse.de>
127
128 PR middle-end/48849
129 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
130 of pointer types the same way the middle-end does.
131
132 2011-05-20 Richard Guenther <rguenther@suse.de>
133
134 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
135 or pointer-to chains. Delay all fixup to uniquify_nodes.
136
137 2011-05-19 Quentin Neill <quentin.neill@amd.com>
138
139 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
140 (fma4_fmaddsub): Likewise
141
142 2011-05-19 Jan Hubicka <jh@suse.cz>
143
144 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
145 (GIMPLE_TYPE_PAIR_SIZE): New macro.
146 (type_pair_cache): New static var.
147 (lookup_type_pair): Use fixed sized custom hash; make inline.
148 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
149 calls of lookup_type_pair.
150 (print_gimple_types_stats): Remove cache stats.
151 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
152 and gtc_ob.
153
154 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
155
156 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
157 when TARGET_RDRND is active.
158 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
159 Generate dummy SImode target register when target is NULL.
160
161 2011-05-19 Joseph Myers <joseph@codesourcery.com>
162
163 * config/arm/arm-fpus.def: New.
164 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
165 arm-fpus.def.
166 * config/arm/arm-tables.opt: Regenerate.
167 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
168 (arm_option_override): Don't decode FPU name to string here.
169 * config/arm/arm.opt (mfpu=): Use Enum.
170 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
171 Update dependencies.
172
173 2011-05-19 Joseph Myers <joseph@codesourcery.com>
174
175 * collect2.c: Include diagnostic.h.
176 (fatal_perror, fatal, error, fancy_abort): Remove.
177 (main): Set progname. Call xmalloc_set_program_name and
178 diagnostic_initialize.
179 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
180 scan_libraries, resolve_lib_name): Call fatal_error instead of
181 fatal and fatal_perror.
182 * collect2.h (error, fatal, fatal_perror): Don't declare.
183 * tlink.c: Include diagnostic-core.h.
184 (recompile_files): Call fatal_error instead of fatal_perror.
185 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
186 pretty-print.o and input.o.
187 (collect2.o, tlink.o): Update dependencies.
188
189 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
192
193 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194
195 PR target/40483
196 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
197 COMDAT group syntax, both SPARC and x86 variants.
198 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
199 * configure: Regenerate.
200 * config/sol2.h (TARGET_SOLARIS): Define.
201 (PUSHSECTION_FORMAT): Remove.
202 (SECTION_NAME_FORMAT): Define.
203 * config/sol2.c: Include hashtab.h.
204 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
205 expansion, using SECTION_NAME_FORMAT.
206 (solaris_comdat_htab): New variable.
207 (struct comdat_entry): Define.
208 (comdat_hash): New function.
209 (comdat_eq): New function.
210 (solaris_elf_asm_comdat_section): New function.
211 (solaris_define_comdat_signature): New function.
212 (solaris_code_end): New function.
213 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
214 (solaris_code_end): Declare.
215 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
216 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
217 solaris_code_end.
218 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
219 Remove ATTRIBUTE_UNUSED.
220 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
221 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
222 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
223 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
224 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
225 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
226 (PUSHSECTION_FORMAT): Remove.
227 (SECTION_NAME_FORMAT): Redefine.
228
229 2011-05-19 Kai Tietz <ktietz@redhat.com>
230
231 * tree-cfg.c (verify_gimple_assign_binary): Barf on
232 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
233 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
234
235 2011-05-19 Anatoly Sokolov <aesok@post.ru>
236 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237
238 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
239
240 2011-05-19 Richard Guenther <rguenther@suse.de>
241
242 PR middle-end/48985
243 * tree-object-size.c (addr_object_size): If the pointed-to
244 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
245
246 2011-05-19 Richard Guenther <rguenther@suse.de>
247
248 * gimple.c (gimple_types_compatible_p_1): Compare names of
249 the types themselves.
250 (iterative_hash_gimple_type): And hash them that way.
251 (gimple_register_type_1): If we register a main variant properly
252 initialize the leader to ourselves.
253
254 2011-05-19 Tom de Vries <tom@codesourcery.com>
255
256 PR target/45098
257 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
258 get_loop_invariant_expr_id.
259 (get_loop_invariant_expr_id): Use get_expr_id.
260 (parm_decl_cost): New function.
261 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
262 Improve bound cost estimation. Use different inv_expr_id for elim and
263 express cases.
264
265 2011-05-19 Tom de Vries <tom@codesourcery.com>
266
267 PR target/45098
268 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
269 cost_base.cost == 0.
270
271 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
272
273 PR target/49002
274 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
275 Properly handle load cast.
276
277 2011-05-18 Jakub Jelinek <jakub@redhat.com>
278
279 PR tree-optimization/49039
280 * tree-vrp.c (extract_range_from_binary_expr): For
281 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
282 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
283
284 2011-05-18 Tom de Vries <tom@codesourcery.com>
285
286 PR target/45098
287 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
288
289 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
290
291 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
292 (*tls_global_dynamic_64): Ditto.
293 (*tls_local_dynamic_base_32_gnu): Ditto.
294 (*tls_local_dynamic_base_64): Ditto.
295 (tls_initial_exec_64_sun): Ditto.
296
297 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
298
299 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
300 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
301 bf592-none.
302 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
303 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
304 * config/bfin/bfin.c (bfin_cpus): Add bf592.
305 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
306 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
307 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
308 * config/bfin/elf.h (LIB_SPEC): Add bf592.
309
310 2011-05-18 Joseph Myers <joseph@codesourcery.com>
311
312 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
313 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
314 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
315 target_thread_pointer, arm_structure_size_boundary, struct
316 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
317 struct abi_name, arm_all_abis): Remove.
318 (arm_option_override) Don't process most enumerated option values here.
319 Don't process target_fpe_name here. Work with integer not string for
320 structure size boundary; use separate diagnostics for each case.
321 * config/arm/arm.h (enum float_abi_type, enum
322 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
323 to arm-opts.h.
324 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
325 arm_structure_size_boundary): Remove.
326 * config/arm/arm.opt (mabi=): Use Enum and Init.
327 (arm_abi_type): New Enum and EnumValue entries.
328 (mfloat-abi=): Use Enum and Init.
329 (float_abi_type): New Enum and EnumValue entries.
330 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
331 (mfp16-format=): Use Enum and Init.
332 (arm_fp16_format_type): New Enum and EnumValue entries.
333 (mstructure-size-boundary=): Use UInteger and Init.
334 (mtp=): Use Enum and Init.
335 (arm_tp_type): New Enum and EnumValue entries.
336
337 2011-05-18 Richard Guenther <rguenther@suse.de>
338
339 PR tree-optimization/49018
340 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
341 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
342 gimple_has_side_effects.
343
344 2011-05-18 Richard Guenther <rguenther@suse.de>
345
346 * gimple.c (gimple_register_type_1): New function, split out from ...
347 (gimple_register_type): ... here. Avoid infinite recursion.
348
349 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
350
351 PR tree-optimization/41881
352 * tree-vectorizer.h (struct _loop_vec_info): Add new field
353 reduction_chains along with a macro for its access.
354 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
355 (destroy_loop_vec_info): Free reduction chains.
356 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
357 (vect_is_slp_reduction): New function.
358 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
359 (vect_create_epilog_for_reduction): Support SLP reduction chains.
360 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
361 definition types for reduction chains.
362 (vect_supported_load_permutation_p): Don't allow permutations for
363 reduction chains.
364 (vect_analyze_slp_instance): Support reduction chains.
365 (vect_analyze_slp): Try to build SLP instance from reduction chains.
366 (vect_get_constant_vectors): Handle reduction chains.
367 (vect_schedule_slp_instance): Mark the first statement of the
368 reduction chain as reduction.
369
370 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
371
372 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
373 names for group elements access.
374 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
375 reduction chains as well. Remove data reference and interleaving
376 related words from the fields names.
377 * tree-vect-loop.c (vect_transform_loop): Use new names for group
378 elements access.
379 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
380 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
381 vect_update_interleaving_chain, vect_same_range_drs,
382 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
383 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
384 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
385 vect_analyze_group_access, vect_analyze_data_ref_access,
386 vect_create_data_ref_ptr, vect_transform_strided_load,
387 vect_record_strided_load_vectors): Likewise.
388 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
389 vect_model_load_cost, vectorizable_store, vectorizable_load,
390 vect_remove_stores, new_stmt_vec_info): Likewise.
391 * tree-vect-slp.c (vect_build_slp_tree,
392 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
393
394 2011-05-18 Richard Guenther <rguenther@suse.de>
395
396 PR middle-end/48989
397 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
398 operand verification.
399 (verify_gimple_assign_binary): Likewise.
400 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
401 to non-1-precision BOOLEAN_TYPEs.
402
403 2011-05-18 Tom de Vries <tom@codesourcery.com>
404
405 PR target/45098
406 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
407
408 2011-05-18 Jakub Jelinek <jakub@redhat.com>
409
410 PR tree-optimization/49000
411 * tree-ssa.c (execute_update_addresses_taken): Call
412 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
413 be rewritten and decl has been marked for renaming, reset
414 the debug stmt.
415
416 2011-05-17 Joseph Myers <joseph@codesourcery.com>
417
418 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
419 enum_opts_set when testing if attributes have set -mfpmath=.
420
421 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
422
423 * config/mips/mips.c (mips_handle_option): Remove unused variable.
424
425 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
426
427 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
428 info->entry with 0
429 * tree-inline.c (maybe_inline_call_in_expr): Initialize
430 id.transform_lang_insert_block with NULL.
431
432 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
433
434 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
435 (output_fp_compare): Change args 3 and 4 to bool.
436 (ix86_expand_call): Change arg 6 to bool.
437 (ix86_attr_length_immediate_default): Change arg 2 to bool.
438 (ix86_attr_length_vex_default): Change arg 3 to bool.
439 * config/i386/i386.md: Update all uses.
440 * config/i386/i386.c: Ditto.
441 (ix86_flags_dependent): Change return type to bool.
442
443 2011-05-17 Richard Guenther <rguenther@suse.de>
444
445 * gimple.c (type_hash_pair_compare): Fix comparison.
446
447 2011-05-17 Richard Guenther <rguenther@suse.de>
448
449 * gimple.c (iterative_hash_gimple_type): Simplify singleton
450 case some more, fix final hash value of the non-singleton case.
451
452 2011-05-17 Richard Guenther <rguenther@suse.de>
453
454 PR bootstrap/49013
455 Revert
456 2011-05-16 Richard Guenther <rguenther@suse.de>
457
458 * gimple.c (gimple_types_compatible_p_1): Use names of the
459 type itself, not its main variant.
460 (iterative_hash_gimple_type): Likewise.
461
462 2011-05-17 Richard Guenther <rguenther@suse.de>
463
464 * gimple.c (gimple_register_canonical_type): Use the main-variant
465 leader for computing the canonical type.
466
467 2011-05-17 Nick Clifton <nickc@redhat.com>
468
469 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
470 moves.
471
472 * config/rx/rx.md: Add peephole to remove redundant extensions
473 after loads.
474 (bitset_in_memory): Use rx_restricted_mem_operand.
475 (bitinvert_in_memory): Likewise.
476 (bitclr_in_memory): Likewise.
477
478 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
479 Nick Clifton <nickc@redhat.com>
480
481 * config/rx/rx.md: Add peepholes to match a register move followed
482 by a comparison of the moved register. Replace these with an
483 addition of zero that does both actions in one instruction.
484
485 2011-05-17 Jakub Jelinek <jakub@redhat.com>
486
487 PR target/48986
488 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
489 predicate to allow CONST_INT.
490 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
491
492 2011-05-16 Joseph Myers <joseph@codesourcery.com>
493
494 * opts-common.c (opt_enum_arg_to_value): New.
495 * opts.h (opt_enum_arg_to_value): Declare.
496 * config/i386/i386.opt (fpmath): Remove.
497 (mfpmath=): Use Enum, Init and Save.
498 (fpmath_unit): New Enum and EnumValue entries.
499 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
500 name for function fpmath state.
501 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
502 * config/i386/i386.c: Include diagnostic.h.
503 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
504 (ix86_target_string): Take enum fpmath_unit value instead of string.
505 (ix86_debug_options): Update call to ix86_target_string.
506 (ix86_option_override_internal): Don't process fpmath strings here.
507 (x86_function_specific_save, ix86_function_specific_restore):
508 Don't handle fpmath state specially.
509 (ix86_function_specific_print): Pass fpmath state to
510 ix86_target_string instead of printing in this function.
511 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
512 Handle enum attributes.
513 (IX86_ATTR_ENUM, ix86_opt_enum): New.
514 (ix86_valid_target_attribute_tree): Update option_strings
515 handling. Handle fpmath as enum option.
516 (ix86_can_inline_p): Update field names for function fpmath state.
517 (ix86_expand_builtin): Update call to ix86_target_string.
518 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
519 (ix86_fpmath): Remove.
520 * config/i386/t-i386 (i386.o): Update dependencies.
521
522 2011-05-16 Joseph Myers <joseph@codesourcery.com>
523
524 PR preprocessor/48677
525 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
526 from decoded_options[0], not from itself.
527
528 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
529
530 * config/i386/constraints.md (z): New constraint.
531 * config/i386/i386.c (c): New mode attribute.
532 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
533 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
534 constraint for operand 0.
535 (*call_vzeroupper): Ditto.
536 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
537 (*call_rex64_ms_sysv_vzeroupper): Ditto.
538 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
539 Use "lzm" constraint for operand 0.
540 (*call_pop_vzeroupper): Ditto.
541 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
542 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
543 constraint for operand 0.
544 (*sibcall_vzeroupper): Ditto.
545 (*sibcall_rex64_ms_sysv): Ditto.
546 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
547 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
548 *sibcall_pop_1. Use "Uz" constraint for operand 0.
549 (*sibcall_pop_vzeroupper): Ditto.
550 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
551 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
552 mode iterator. Use "<c>zm" constraint for operand 1.
553 (*call_value_vzeroupper): Ditto.
554 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
555 for operand 1.
556 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
557 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
558 *call_value_pop_1. Use "lzm" constraint for operand 1.
559 (*call_value_pop_vzeroupper): Ditto.
560 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
561 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
562 mode iterator. Use "Uz" constraint for operand 1.
563 (*sibcall_value_vzeroupper): Ditto.
564 (*sibcall_value_rex64_ms_sysv): Ditto.
565 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
566 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
567 constraint for operand 1.
568 (*sibcall_value_pop_vzeroupper): Ditto.
569 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
570 and "z" constraint for operand 2.
571 (*tls_global_dynamic_32_gnu): Ditto.
572 (*tls_local_dynamic_base_32_gnu): Ditto.
573 (*tls_local_dynamic_base_64): Ditto.
574 (*tls_local_dynamic_32_once): Ditto.
575 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
576 Update all callers.
577 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
578
579 2011-05-16 Richard Guenther <rguenther@suse.de>
580
581 * gimple.c (gimple_types_compatible_p_1): Use names of the
582 type itself, not its main variant.
583 (iterative_hash_gimple_type): Likewise.
584
585 2011-05-16 Richard Guenther <rguenther@suse.de>
586
587 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
588 always visit pointer target and function result and argument types.
589
590 2011-05-16 Jason Merrill <jason@redhat.com>
591
592 PR c++/48999
593 * tree-inline.c (copy_statement_list): Put back recursion.
594
595 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
596
597 PR target/27663
598 PR target/41076
599 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
600 * config/avr/avr.md ("*ior<mode>qi.byte0",
601 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
602
603 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
604
605 PR target/45099
606 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
607 register is needed for a function argument.
608
609 2011-05-16 Richard Guenther <rguenther@suse.de>
610
611 * gimple.c (struct type_hash_pair): New type.
612 (type_hash_pair_compare): New function.
613 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
614
615 2011-05-16 Revital Eres <revital.eres@linaro.org>
616
617 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
618
619 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
620
621 * config/i386/i386.md (floating point move splitters): Fix
622 usage of standard_80387_constant_p.
623 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
624
625 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
626
627 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
628
629 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
630
631 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
632 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
633 (tree_ssa_lim_finalize): Likewise.
634
635 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
636
637 * config/i386/constraint.md (Yd, Yx): New register constraints.
638 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
639 Yd conditional register constraint.
640 (*movtf_internal): Use standard_sse_constant_opcode.
641 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
642 Yx conditional register constraint.
643 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
644 Yd conditional register constraint. Use standard_sse_constant_p to
645 check for valid SSE constants and call standard_sse_constant_opcode to
646 output SSE insn.
647 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
648 constants and call standard_sse_constant_opcode to output SSE insn.
649 * config/i386/i386.c (ix86_option_ovverride_internal): Set
650 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
651 optimize_size is set.
652 (standard_sse_constant_opcode): Output conditional AVX insn templates.
653
654 2011-05-14 Tobias Burnus <burnus@net-b.de>
655
656 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
657
658 2011-05-13 Martin Jambor <mjambor@suse.cz>
659
660 * ipa-prop.c (ipa_cst_from_jfunc): New function.
661 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
662 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
663 (evaluate_conditions_for_ipcp_clone): Removed.
664 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
665 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
666 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
667
668 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
669
670 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
671 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
672 lieu of MAY_HAVE_DEBUG_STMTS.
673 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
674 debug statements if !MAY_HAVE_DEBUG_STMTS.
675
676 2011-05-13 Martin Thuresson <martint@google.com>
677
678 PR gcov-profile/47793
679 * libgcov.c (gcov_exit): Support relative profile paths.
680 * doc/invoke.texi (-fprofile-dir): Update for above change.
681
682 2011-05-13 Richard Guenther <rguenther@suse.de>
683
684 * gimple.c (gimple_canonical_types_compatible_p): Do not use
685 type-pair caching, do not compare hashes.
686
687 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
688
689 PR middle-end/48965
690 * tree-cfg.c (edge_to_cases_cleanup): Return true.
691 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
692
693 2011-05-13 Kai Tietz <ktietz@redhat.com>
694
695 * gimplify.c (gimplify_expr): Make sure operand is boolified.
696 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
697 compatible type for TRUTH_NOT_EXPR.
698
699 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
700
701 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
702 (ix86_hard_regno_mode_ok): Change return value to bool. Use
703 can_create_pseudo_p ().
704
705 2011-05-13 Richard Guenther <rguenther@suse.de>
706
707 PR lto/48978
708 * gimple.c (iterative_hash_gimple_type): Revert change in
709 pointer target and function result and argument hashing.
710
711 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
712
713 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
714 (*movxf_internal_nointeger): Ditto.
715 (*movdf_internal_rex64): Ditto.
716 (*movdf_internal): Ditto.
717 (*movdf_internal_nointeger): Ditto.
718 (*movsf_internal): Ditto.
719 (sincos splitters): Use can_create_pseudo ().
720
721 2011-05-13 Joseph Myers <joseph@codesourcery.com>
722
723 * config/i386/i386-opts.h: New.
724 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
725 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
726 ix86_section_threshold): Remove.
727 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
728 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
729 OPT_mbranch_cost_.
730 (ix86_option_override_internal): Don't decode strings for options
731 other than -march=, -mtune= and -mfpmath=. Don't allow for
732 __attribute__ uses in remaining diagnostics for options with
733 string arguments. Don't check for integer arguments being negative.
734 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
735 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
736 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
737 ix86_branch_cost, ix86_section_threshold): Remove.
738 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
739 HeaderInclude.
740 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
741 but not Var.
742 (masm=): Use Enum and Init.
743 (asm_dialect): New Enum and EnumValue entries.
744 (mbranch-cost=): Use UInteger.
745 (mlarge-data-threshold=): Use UInteger and Init.
746 (mcmodel=): Use Enum and Init.
747 (cmodel): New Enum and EnumValue entries.
748 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
749 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
750 mregparm=): Use UInteger.
751 (mstringop-strategy=): Use Enum and Init.
752 (stringop_alg): New Enum and EnumValue entries.
753 (mtls-dialect=): Use Enum and Init.
754 (tls_dialect): New Enum and EnumValue entries.
755 (mabi=): Use Enum and Init.
756 (calling_abi): New Enum and EnumValue entries.
757 (mveclibabi=): Use Enum and Init.
758 (ix86_veclibabi): New Enum and EnumValue entries.
759
760 2011-05-13 Nick Clifton <nickc@redhat.com>
761
762 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
763 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
764
765 2011-05-13 Kai Tietz <ktietz@redhat.com>
766
767 PR middle-end/48984
768 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
769 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
770 (gimple_boolify): Check for cast for boolean_type_node instead for
771 BOOLEAN_TYPE.
772
773 2011-05-13 Richard Guenther <rguenther@suse.de>
774
775 PR tree-optimization/48172
776 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
777 multiplying by number of iterations for equal step.
778 (vect_create_cond_for_alias_checks): Likewise.
779
780 2011-05-13 Andreas Schwab <schwab@redhat.com>
781
782 * configure.ac: Use AS_HELP_STRING throughout.
783 * configure: Regenerate.
784
785 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
786
787 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
788 (ix86_emit_restore_regs_using_mov): Likewise.
789 (ix86_emit_restore_sse_regs_using_mov): Likewise.
790
791 2011-05-12 Anatoly Sokolov <aesok@post.ru>
792
793 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
794 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
795 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
796 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
797 RTX_OK_FOR_OLO10_P): ...here.
798 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
799 SYMBOLIC_CONST.
800
801 2011-05-12 Kai Tietz <ktietz@redhat.com>
802
803 * gimplify.c (gimple_boolify): Re-boolify expression
804 arguments even if expression type is of kind BOOLEAN_TYPE.
805 (gimplify_boolean_expr): Removed.
806 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
807 and XOR. Additional take care that we keep expression's type.
808 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
809 of TRUTH_AND|OR|XOR_EXPR.
810
811 2011-05-12 Jakub Jelinek <jakub@redhat.com>
812
813 PR tree-optimization/48975
814 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
815 on all bbs here and free and clear ifc_bbs at the end.
816
817 2011-05-12 Richard Guenther <rguenther@suse.de>
818
819 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
820 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
821 until after simple checks.
822 (gimple_types_compatible_p): Likewise.
823 (iterative_hash_gimple_type): Always hash pointer targets
824 and function return and argument types.
825 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
826 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
827 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
828 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
829 completely in the simple compare section.
830 (gimple_register_canonical_type): Query the cache again after
831 registering.
832
833 2011-05-12 Richard Guenther <rguenther@suse.de>
834
835 PR tree-optimization/48172
836 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
837 the number of iterations from the segment size calculation.
838 (vect_create_cond_for_alias_checks): Adjust.
839
840 2011-05-12 Jakub Jelinek <jakub@redhat.com>
841
842 PR debug/48967
843 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
844 if validate_subreg fails.
845
846 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
847
848 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
849 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
850 early.
851
852 2011-05-12 DJ Delorie <dj@redhat.com>
853
854 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
855 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
856 created builtin into rx_builtins array.
857 (rx_builtin_decl): New function.
858 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
859
860 2011-05-12 DJ Delorie <dj@redhat.com>
861 Nick Clifton <nickc@redhat.com>
862
863 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
864 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
865 (rx_is_legitimate_address): Add pre-decrement and post-increment
866 addressing in HImode and QImode. Fix test for out of range
867 REG+INT addressing.
868 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
869 (rx_align_for_label): Test label before extracting its usage count.
870 (rx_adjust_insn_lengths): Fix selection of insn codes.
871 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
872
873 2011-05-11 Jason Merrill <jason@redhat.com>
874
875 * tree.c (type_hash_canon): Use struct tree_type_non_common.
876
877 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
878
879 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
880 reindent the subsequent block.
881
882 2011-05-11 Satoru Takabayashi <satorux@google.com>
883 Paul Pluzhnikov <ppluzhnikov@google.com>
884
885 * doc/install.texi (Configuration): Document --with-linker-hash-style.
886 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
887 * config.in: Add LINKER_HASH_STYLE.
888 * configure.ac: Add --with-linker-hash-style.
889 * configure: Regenerate.
890
891 2011-05-11 Richard Guenther <rguenther@suse.de>
892
893 PR middle-end/48964
894 * gimple.c (iterative_hash_canonical_type): Fix typo.
895
896 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
897
898 * config/i386/i386.c (legitimize_tls_address)
899 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
900 expanders directly for TARGET_GNU2_TLS. Determine pic and
901 __tls_get_addr symbol reference here. Update call to
902 gen_tls_global_dynamic_{32,64} for added arguments.
903 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
904 expanders directly for TARGET_GNU2_TLS. Determine
905 __tls_get_addr symbol reference here. Update call to
906 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
907 unique UNSPEC REG_EQUIV to libcall block.
908 (ix86_tls_get_addr): Declare static.
909 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
910 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
911 Do not determine pic and __tls_get_addr symbol reference here. Do not
912 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
913 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
914 (tls_global_dynamic_64): Add operand 2. Do not determine
915 __tls_get_addr symbol reference here. Do not call
916 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
917 (tls_local_dynamic_base64): Ditto for operand 1.
918
919 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
920
921 * function.c (expand_function_start): Initialize stack_check_probe_note
922 only if the generic stack checking mechanism is used.
923
924 2011-05-11 Richard Guenther <rguenther@suse.de>
925
926 PR tree-optimization/15256
927 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
928 (A & B) | C, combine (A op CST1) op CST2.
929 (tree_ssa_forward_propagate_single_use_vars): Only bother to
930 visit assigns that have uses.
931
932 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
933
934 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
935 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
936 (unpack_ts_type_common_value_fields): ...this. Update comment.
937 (unpack_value_fields): Adjust for renaming.
938 (lto_input_ts_type_tree_pointers): Split into...
939 (lto_input_ts_type_common_tree_pointer): ...this and...
940 (lto_input_ts_type_non_common_tree_pointers): ...this.
941 (lto_input_tree_pointers): Adjust for above split.
942 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
943 (pack_ts_type_common_value_fields): ...this. Update comment.
944 (lto_output_ts_type_tree_pointers): Split into...
945 (lto_output_ts_type_common_tree_pointers): ...this and...
946 (lto_output_ts_type_non_common_tree_pointers): ...this.
947 (lto_output_tree_pointers): Adjust for above split.
948 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
949 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
950 * stor-layout.c (vector_type_mode): Adjust location of mode field.
951 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
952 Define.
953 (struct tree_type): Split into...
954 (struct tree_type_common: ...this and...
955 (struct tree_type_with_lang_specific): ...this and...
956 (struct tree_type_non_common): ...this. Adjust accessor macros
957 accordingly.
958 (TYPE_VALUES_RAW): Define.
959 (union tree_node): Update for above changes.
960 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
961 TS_TYPE_NON_COMMON.
962 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
963 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
964 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
965 * treestructu.def (TS_TYPE): Remove.
966 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
967 Define.
968
969 2011-05-11 Jakub Jelinek <jakub@redhat.com>
970
971 PR debug/48159
972 * tree-ssa.c (reset_debug_uses): New function.
973 * tree-flow.h (reset_debug_uses): New prototype.
974 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
975 * tree-loop-distribution.c (generate_loops_for_partition): Call
976 reset_debug_uses on the stmts that will be removed. Keep around
977 all debug stmts, don't count them as bits in partition bitmap.
978 (generate_builtin): Don't count debug stmts or labels as bits in
979 partition bitmap.
980
981 2011-05-11 Richard Guenther <rguenther@suse.de>
982
983 * gimple.c (gimple_type_hash_1): Merge with ...
984 (gimple_type_hash): ... this.
985 (gtc_visit): Remove mode parameter and simplify accordingly.
986 (gimple_types_compatible_p_1): Likewise.
987 (gimple_types_compatible_p): Likewise.
988 (iterative_hash_gimple_type): Likewise.
989 (visit): Likewise.
990 (gimple_type_eq): Adjust.
991
992 2011-05-11 Revital Eres <revital.eres@linaro.org>
993
994 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
995 enters the branch create an anti edge in the opposite direction
996 to prevent the creation of reg-moves.
997 * modulo-sched.c: Adjust comment to reflect the fact we are
998 scheduling closing branch.
999 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1000 (stage_count): New field in struct partial_schedule.
1001 (calculate_stage_count): New function.
1002 (normalize_sched_times): Rename to reset_sched_times and handle
1003 incrementing the sched time of the nodes by a constant value
1004 passed as parameter.
1005 (duplicate_insns_of_cycles): Skip closing branch.
1006 (sms_schedule_by_order): Schedule closing branch.
1007 (ps_insn_find_column): Handle closing branch.
1008 (sms_schedule): Call reset_sched_times and adjust the code to
1009 support scheduling of the closing branch.
1010 (ps_insert_empty_row): Update calls to normalize_sched_times
1011 and rotate_partial_schedule functions.
1012
1013 2011-05-11 Richard Guenther <rguenther@suse.de>
1014
1015 PR middle-end/48953
1016 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1017
1018 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1019
1020 * opts.c (finish_options): Move warning settings from process_options.
1021 * toplev.c (process_options): Move warning settings to finish_options.
1022
1023 2011-05-11 Richard Guenther <rguenther@suse.de>
1024
1025 PR tree-optimization/18041
1026 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1027 (simplify_bitwise_binary): ... this. Handle operand conversions
1028 by applying them to the result instead.
1029 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1030
1031 2011-05-11 Richard Guenther <rguenther@suse.de>
1032
1033 * gimple.c (gimple_canonical_types_compatible_p): Split out
1034 from gimple_types_compatible_p and friends. Do not recurse
1035 to pointed-to types.
1036 (gimple_canonical_type_eq): Use it.
1037 (iterative_hash_canonical_type): Split out from
1038 iterative_hash_gimple_type and friends. Do not recurse
1039 to pointed-to types.
1040 (gimple_canonical_type_hash): Use it, allocate the hash here.
1041
1042 2011-05-11 Revital Eres <revital.eres@linaro.org>
1043
1044 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1045 recognizing doloop.
1046
1047 2011-05-11 Revital Eres <revital.eres@linaro.org>
1048
1049 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1050 instead of PREV_INSN.
1051
1052 2011-05-11 Revital Eres <revital.eres@linaro.org>
1053
1054 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1055 * loop-doloop.c (doloop_condition_get): Likewise.
1056 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1057 (doloop_end): New.
1058 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1059
1060 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1061
1062 * tree.def (CASE_LABEL_EXPR): Add an operand.
1063 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1064
1065 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1066
1067 * c-decl.c (c_override_global_bindings_to_false): Remove.
1068 (global_bindings_p): Don't check
1069 c_override_global_bindings_to_false.
1070 * c-tree.h (c_override_global_bindings_to_false): Remove.
1071 * c-typeck.c (composite_type): Don't set
1072 c_override_global_bindings_to_false.
1073
1074 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1075
1076 PR target/48857, 48495
1077 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1078 (VSX_MODE): Ditto.
1079 (VSX_MOVE_MODE): Ditto.
1080 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1081 VSX vector types. Add V2DImode.
1082 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1083 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1084 (MODES_TIEABLE_P): Ditto.
1085
1086 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1087 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1088 VSX_VECTOR_MODE.
1089 (init_cumulative_args): Ditto.
1090 (rs6000_function_arg_boundary): Ditto.
1091 (rs6000_function_arg_advance_1): Ditto.
1092 (rs6000_function_arg): Ditto.
1093 (rs6000_function_ok_for_sibcall): Ditto.
1094 (emit_frame_save): Ditto.
1095 (rs6000_function_value): Ditto.
1096 (rs6000_libcall_value): Ditto.
1097
1098 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1099
1100 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1101 i386/darwin-lib.h to $libgcc_tm_file.
1102 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1103
1104 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1105
1106 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1107
1108 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1109
1110 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1111 * config/rs6000/rs6000-tables.opt: New file (generated).
1112 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1113 rs6000/rs6000-tables.opt to extra_options.
1114 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1115 * config/rs6000/rs6000.c (rs6000_select): Remove.
1116 (processor_target_table): Move contents to rs6000-cpus.def.
1117 (darwin_rs6000_override_options): Check
1118 global_options_set.x_rs6000_cpu_index instead of
1119 rs6000_select[1].string.
1120 (rs6000_option_override_internal): Likewise.
1121 (rs6000_handle_option): Don't assert that global structures are in
1122 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1123 (rs6000_default_cpu): New variable.
1124 (rs6000_file_start): Set it instead of local default_cpu. Check
1125 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1126 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1127 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1128 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1129 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1130 rs6000_select): Remove.
1131 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1132 Remove.
1133 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1134 * config/rs6000/t-rs6000
1135 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1136 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1137 global_options_set.x_rs6000_cpu_index instead of
1138 rs6000_select[1].string.
1139 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1140 global_options_set.x_rs6000_cpu_index instead of
1141 rs6000_select[1].string.
1142
1143 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1144
1145 * config.gcc (libgcc_tm_file): Define instead of including files
1146 from ../../libgcc/config/ in tm_file.
1147 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1148 * configure: Regenerate.
1149 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1150 libgcc_tm.h, cs-libgcc_tm.h): New.
1151 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1152 (clean): Remove libgcc_tm.h.
1153 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1154 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1155 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1156
1157 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1158
1159 PR target/48896
1160 * config/avr/avr.c (avr_ret_register): Return unsigned int
1161 instead of int.
1162 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1163 it to avr_libcall_value.
1164 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1165 expand_expr.
1166 (avr_expand_binop_builtin): Ditto.
1167 (avr_expand_unop_builtin): Ditto.
1168
1169 2011-05-10 DJ Delorie <dj@redhat.com>
1170
1171 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1172 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1173 * config/rx/rx.c (rx_align_for_label): Add label and
1174 uses_threshold parameters. Do not align when the label is not
1175 used enough.
1176 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1177
1178 2011-05-10 Richard Guenther <rguenther@suse.de>
1179
1180 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1181 a series of conversions and apply foldings similar to what
1182 fold-const does.
1183 (tree_ssa_forward_propagate_single_use_vars): Call it.
1184
1185 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1186
1187 PR tree-optimization/48611
1188 PR tree-optimization/48794
1189 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1190 referenced from RESX or EH_DISPATCH arguments.
1191
1192 PR debug/48928
1193 * dfp.c (decimal_to_decnumber): Handle conversion from
1194 dconst{1,2,m1,half}.
1195
1196 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1197
1198 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1199 for !flag_prefer_avx128.
1200 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1201
1202 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1203
1204 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1205 (fold_ternary_loc): Use expr_location_or.
1206
1207 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1208
1209 PR debug/48853
1210 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1211 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1212 Pmode and mem_mode is not VOIDmode.
1213
1214 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1215
1216 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1217 TYPE_QUAL_RESTRICT): Convert to enum.
1218
1219 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1220
1221 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1222 (const_pow2_1_to_8_operand): Ditto.
1223 (const_pow2_1_to_128_operand): Ditto.
1224 (const_pow2_1_to_32768_operand): Ditto.
1225 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1226 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1227 in insn constraint to check integer value of operand 3.
1228 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1229
1230 (PINSR_MODE): New mode iterator.
1231 (sse2p4_1): New mode attribute.
1232 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1233 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1234 iterator. Use const_int_operand instead of
1235 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1236 exact_log2 in insn constraint to check integer value of operand 3.
1237
1238 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1239
1240 * config/i386/sse.md (blendbits): Remove mode attribute.
1241 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1242 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1243 Check integer value of operand 3 in insn constraint.
1244
1245 2011-05-09 Richard Guenther <rguenther@suse.de>
1246
1247 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1248 for diagnostics.
1249 (lto_symtab_merge): Likewise. Do not register types here.
1250 (lto_symtab_merge_decls_2): Likewise.
1251 (lto_symtab_merge_decls_1): Likewise.
1252 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1253 * gimple.c (enum gtc_mode): Declare.
1254 (gimple_types_compatible_p): Make static.
1255
1256 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1257
1258 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1259 temporary register to match Pmode.
1260
1261 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1262
1263 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1264 and *vec_concatv4si_1_avx.
1265
1266 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1267
1268 PR rtl-optimization/48927
1269 * ira-conflicts.c (commutative_constraint_p): Use
1270 recog_data.alternative_enabled_p to disable alternatives where
1271 "enabled" attribute is false.
1272 (get_dup_num): Ditto.
1273 * ira-lives.c (single_reg_class): Ditto.
1274 (ira_implicitly_set_insn_hard_regs): Ditto.
1275
1276 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1277
1278 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1279 (dataflow_set_preserve_mem_locs): Likewise.
1280
1281 2011-05-09 Philipp Thomas <pth@suse.de>
1282
1283 * config/mep/mep.c (mep_validate_vliw): Syntax description
1284 should not be translated.
1285
1286 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1287
1288 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1289 * config/mips/mips-tables.opt: New file (generated).
1290 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1291 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1292 MIPS_ARCH_OPTION_NATIVE): Define.
1293 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1294 mips-cpus.def.
1295 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1296 mips_parse_cpu): Remove.
1297 (mips_cpu_info_from_opt, mips_default_arch): New.
1298 (mips_handle_option): Don't assert that global structures are in
1299 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1300 (mips_option_override): Use new variables and functions to set
1301 state of these options. Use strcmp to check for individual CPU names.
1302 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1303 definition.
1304 * config/mips/mips.opt (march=): Use ToLower and Enum.
1305 (mips): Use ToLower, Enum and Var.
1306 (mtune=): Use ToLower and Enum.
1307 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1308
1309 2011-05-08 Jan Hubicka <jh@suse.cz>
1310
1311 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1312 Arrange type pairs to be UID ordered.
1313 (gimple_lookup_type_leader): Make inline.
1314
1315 2011-05-09 Nick Clifton <nickc@redhat.com>
1316
1317 PR target/48899
1318 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1319 PROCESSOR_DEFAULT.
1320
1321 PR target/48897
1322 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1323 variable 's'.
1324
1325 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1326
1327 * combine.c (simplify_comparison): Abstract out parts into...
1328 (simplify_compare_const): ... new function.
1329 (try_combine): Generalize parallel arithmetic/compare combining
1330 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1331
1332 2011-05-08 Jan Hubicka <jh@suse.cz>
1333
1334 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1335 (cgraph_create_virtual_clone): Call hooks once virtual clone
1336 is finished.
1337 * cgraph.h (cgraph_clone_node): Update prototype.
1338 * ipa-cp.c (ipcp_estimate_growth): Use
1339 estimate_ipcp_clone_size_and_time.
1340 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1341 * lto-cgraph.c (input_node): Update.
1342 * ipa-inline.c (recursive_inlining): Update.
1343 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1344 (evaluate_conditions_for_known_args): Break out from ...
1345 (evaluate_conditions_for_edge): ... here.
1346 (evaluate_conditions_for_ipcp_clone): New function.
1347 (inline_node_duplication_hook): Update clone summary based
1348 on parameter map.
1349 (estimate_callee_size_and_time): Rename to ...
1350 (estimate_node_size_and_time): take NODE instead of EDGE;
1351 take POSSIBLE_TRUTHS as argument.
1352 (estimate_callee_size_and_time): Update.
1353 (estimate_ipcp_clone_size_and_time): New function.
1354 (do_estimate_edge_time): Update.
1355
1356 2011-05-08 Richard Guenther <rguenther@suse.de>
1357
1358 PR middle-end/48908
1359 PR middle-end/48905
1360 * expmed.c (expand_shift_1): Compute adjusted constant shift
1361 amount manually.
1362
1363 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1364
1365 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1366
1367 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1368
1369 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1370
1371 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1372
1373 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1374
1375 2011-05-07 Jan Hubicka <jh@suse.cz>
1376
1377 * ipa-inline-transform.c (inline_call): Account when program size
1378 decreases.
1379 * ipa-inline.c (relative_time_benefit): New function.
1380 (edge_badness): Reorganize to be power 2 based; fix thinko when
1381 computing badness for negative growth; update comments to match
1382 reality; better dumps.
1383
1384 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1385
1386 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1387 type to bool and adjust comment.
1388 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1389 (fold_mathfn_compare): Remove calls to global_bindings_p.
1390 (fold_inf_compare): Likewise.
1391 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1392 * c-tree.h (global_bindings_p): Adjust prototype.
1393 * c-decl.c (global_bindings_p): Return bool and simplify.
1394
1395 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1396
1397 PR tree-optimization/48837
1398 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1399 when accumulator transformation is performed.
1400
1401 2011-05-06 Jan Hubicka <jh@suse.cz>
1402
1403 * i386.h (ix86_tune_indices): Add
1404 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1405 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1406 * i386.c (initial_ix86_tune_features): Add
1407 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1408 (software_prefetching_beneficial_p): Remove predicate.
1409 (ix86_option_override_internal): Use new macro.
1410
1411 2011-05-06 Jan Hubicka <jh@suse.cz>
1412
1413 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1414
1415 2011-05-06 Jan Hubicka <jh@suse.cz>
1416
1417 * cgraph.c (cgraph_add_thunk): Create real function node instead
1418 of alias node; finalize it and mark needed/reachale; arrange visibility
1419 to be right and add it into the corresponding same comdat group list.
1420 (dump_cgraph_node): Dump thunks.
1421 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1422 cgraph_function_with_gimple_body_p,
1423 cgraph_first_function_with_gimple_body,
1424 cgraph_next_function_with_gimple_body): New functions.
1425 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1426 New macros.
1427 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1428 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1429 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1430 devirtualization when optimizing.
1431 (verify_cgraph_node): Verify thunks.
1432 (cgraph_analyze_function): Analyze thunks.
1433 (cgraph_mark_functions_to_output): Output thunks only in combination
1434 with function they are assigned to.
1435 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1436 alias into normal node.
1437 (assemble_thunks): New functoin.
1438 (cgraph_expand_function): Use it.
1439 * lto-cgraph.c (lto_output_node): Stream thunks.
1440 (input_overwrite_node): Stream in thunks.
1441 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1442 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1443 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1444 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1445 (inline_analyze_function): Do not care about thunk jump functions.
1446 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1447 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1448 cgraph_function_with_gimple_body_p.
1449 * passes.c (do_per_function_toporder): Use
1450 cgraph_function_with_gimple_body_p.
1451 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1452 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1453 (function_called_by_processed_nodes_p): Likewise.
1454
1455 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1456
1457 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1458 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1459 entries.
1460 (mabi=): Replace with separate entries for mabi=altivec,
1461 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1462 mabi=ieeelongdouble and mabi=ibmlongdouble.
1463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1464 check for -mabi=spe without SPE ABI support here.
1465 (rs6000_handle_option): Replace OPT_mabi_ handling with
1466 OPT_mabi_altivec and OPT_mabi_spe handling.
1467
1468 2011-05-06 Cary Coutant <ccoutant@google.com>
1469
1470 * dwarf2out.c (contains_subprogram_definition): New function.
1471 (should_move_die_to_comdat): Call it.
1472
1473 2011-05-06 Jeff Law <law@redhat.com>
1474
1475 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1476 remove_ctrl_stmt_and_useless_edges.
1477 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1478 (fixup_template_block, thread_single_edge): Likewise.
1479 (mark_threaded_blocks): Use THREAD_TARGET.
1480
1481 2011-05-06 Alan Modra <amodra@gmail.com>
1482
1483 PR target/48900
1484 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1485 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1486
1487 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1488
1489 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1490 constraint modifier to "r".
1491
1492 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1493
1494 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1495 fall through for OPT_mcmodel_.
1496
1497 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1498
1499 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1500 instruction sizes.
1501 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1502
1503 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1504
1505 PR target/47930
1506 * config/arm/arm.opt (marm): Document it.
1507 (mthumb): Reject negative variant.
1508
1509 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1510
1511 PR target/48898
1512 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1513 Fix typo in "ccvt" variable name.
1514
1515 2011-05-06 Tristan Gingold <gingold@adacore.com>
1516
1517 PR target/48895
1518 * config/vms/vms-ar.c (main): Remove cwd variable.
1519
1520 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1521
1522 PR debug/48902
1523 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1524
1525 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1526
1527 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1528 * gimplify.c (gimplify_switch_expr): Likewise.
1529 * omp-low.c (expand_omp_sections): Likewise.
1530 * tree-eh.c (lower_try_finally_switch): Likewise.
1531 (lower_eh_dispatch): Likewise.
1532 * tree.h (build_case_label): Declare.
1533 * tree.c (build_case_label): Define.
1534
1535 2011-05-05 Jason Merrill <jason@redhat.com>
1536
1537 PR c++/40975
1538 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1539 (copy_statement_list): Don't recurse.
1540 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1541 STATEMENT_LIST.
1542
1543 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1544
1545 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1546 through from -mfpu= handling.
1547 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1548
1549 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1550
1551 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1552 POST_MODIFY.
1553
1554 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1555
1556 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1557 for 11.31.
1558 (hppa[12]*-*-hpux11*): Ditto.
1559 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1560 * config/ia64/hpux-unix2003.h: New.
1561 * config/pa/pa-hpux1131.opt: New.
1562 * config/pa/pa-hpux1131.h: New.
1563 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1564 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1565 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1566
1567 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1568
1569 PR debug/48853
1570 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1571 instead of mode as 3rd argument to recursive call.
1572 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1573 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1574 VOIDmode.
1575 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1576 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1577 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1578 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1579
1580 2011-05-05 Julian Brown <julian@codesourcery.com>
1581
1582 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1583 parenthesis in D-register case.
1584
1585 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1586
1587 * opt-functions.awk (var_type_struct): Handle Enum options.
1588 * optc-gen.awk: Don't check range of variables of character type.
1589 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1590 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1591 rs6000_sdata_name, rs6000_explicit_options): Remove.
1592 (rs6000_option_override_internal): Check for -malign-power here.
1593 Use global_options_set instead of rs6000_explicit_options.
1594 (rs6000_parse_fpu_option): Remove.
1595 (rs6000_handle_option): Access variables via opts and opts_set
1596 pointers. Use error_at and warning_at. Add fall-through
1597 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1598 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1599 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1600 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1601 here. Don't use rs6000_parse_fpu_option.
1602 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1603 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1604 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1605 (mrecip=): Use Var.
1606 (mspe): Use Var and Save.
1607 (mtraceback=): Use Enum and Var.
1608 (rs6000_traceback_type): New Enum and EnumValue entries.
1609 (mfloat-gprs=): Use Enum, Var and Save.
1610 (rs6000_float_gprs): New Enum and EnumValue entries.
1611 (mlong-double-): use Var and Save.
1612 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1613 (malign-): Use Enum and Var.
1614 (rs6000_alignment_flags): New Enum and EnumValue entries.
1615 (mfpu=): Use Enum.
1616 (fpu_type_t): New Enum and EnumValue entries.
1617 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1618 global_options_set instead of rs6000_explicit_options.
1619 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1620 global_options_set instead of rs6000_explicit_options.
1621 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1622 global_options_set instead of rs6000_explicit_options.
1623 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1624 global_options_set instead of rs6000_explicit_options.
1625 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1626 global_options_set instead of rs6000_explicit_options.
1627 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1628 global_options_set instead of rs6000_explicit_options.
1629 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1630 definition.
1631 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1632 global_options_set instead of rs6000_explicit_options.
1633 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1634 (rs6000_cmodel): New Enum and EnumValue entries.
1635 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1636 global_options_set instead of rs6000_explicit_options.
1637 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1638 (mtls-size=): Use Enum and Var.
1639 (rs6000_tls_size): New Enum and EnumValue entries.
1640
1641 2011-05-05 Michael Matz <matz@suse.de>
1642
1643 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1644 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1645 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1646 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1647 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1648 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1649 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1650 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1651 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1652 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1653 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1654 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1655 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1656 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1657 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1658 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1659
1660 2011-05-05 Richard Guenther <rguenther@suse.de>
1661
1662 * expmed.c (expand_variable_shift): Rename to ...
1663 (expand_shift_1): ... this. Take an expanded shift amount.
1664 For rotates recurse directly not building trees for the shift amount.
1665 (expand_variable_shift): Wrap around expand_shift_1.
1666 (expand_shift): Adjust.
1667
1668 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1669
1670 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1671
1672 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1673
1674 * tree.h (get_pending_sizes): Remove prototype.
1675 (put_pending_size): Likewise.
1676 (put_pending_sizes): Likewise.
1677 * stor-layout.c (pending_sizes): Delete.
1678 (get_pending_sizes): Likewise.
1679 (put_pending_size): Likewise.
1680 (put_pending_sizes): Likewise.
1681 (variable_size): Do not call put_pending_size and tidy up.
1682 * function.h (struct function): Remove dont_save_pending_sizes_p.
1683 * lto-streamer-in.c (input_function): Do not stream it.
1684 * lto-streamer-out.c (output_function): Likewise.
1685 * tree-inline.c (initialize_cfun): Do not copy it.
1686 * c-decl.c (store_parm_decls): Do not set it.
1687 * omp-low.c (create_task_copyfn): Likewise.
1688 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1689
1690 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1691
1692 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1693 conditions.
1694 (*movdf_internal): Ditto.
1695 (*movdf_internal_nointeger): Ditto.
1696 (*movsf_internal): Ditto.
1697
1698 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1699
1700 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1701 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1702 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1703 (c_variable_size): Remove.
1704 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1705 call put_pending_sizes.
1706 (get_parm_info): Add parameter expr. Use it to set
1707 arg_info->pending_sizes.
1708 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1709 get_pending_sizes.
1710 * c-parser.c (c_parser_parms_declarator): Update call to
1711 c_parser_parms_list_declarator.
1712 (c_parser_parms_list_declarator): Take parameter expr. Update
1713 call to push_parm_decl. Update recursive call. Don't call
1714 get_pending_sizes. Update calls to get_parm_info.
1715 (c_parser_objc_method_definition): Update calls to
1716 c_parser_objc_method_decl and objc_start_method_definition.
1717 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1718 (c_parser_objc_method_decl): Add parameter expr. Update call to
1719 grokparm.
1720 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1721 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1722 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1723
1724 2011-05-05 Michael Hope <michael.hope@linaro.org>
1725
1726 PR pch/45979
1727 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1728 __ARM_EABI__ hosts.
1729
1730 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1731
1732 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1733 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1734 (spu_output_mi_thunk): New function.
1735
1736 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737
1738 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1739 targetm.asm_out.print_operand.
1740 * config/sol2.c: Include target.h.
1741
1742 2011-05-04 Jan Hubicka <jh@suse.cz>
1743
1744 * ipa-inline.c (reset_edge_caches): New function.
1745 (update_caller_keys): Add check_inlinablity_for; do not
1746 reset edge caches; remove now unnecesary loop.
1747 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1748 (update_all_callee_keys): Likewise.
1749 (inline_small_functions): Sanity check cache; update code
1750 recomputing it.
1751
1752 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1753
1754 PR rtl-optimization/47612
1755 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1756 as the last insn of the sequence to be moved.
1757
1758 2011-05-04 Tobias Burnus <burnus@net-b.de>
1759
1760 PR fortran/48864
1761 * doc/invoke.texi (Ofast): Document that it
1762 enables Fortran's -fno-protect-parens.
1763
1764 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1765
1766 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1767
1768 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1769
1770 * stor-layout.c (variable_size): Do not issue errors.
1771
1772 2011-05-04 Richard Guenther <rguenther@suse.de>
1773
1774 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1775 for array-ref indices.
1776 (tree_coverage_counter_addr): Likewise.
1777 (build_fn_info_type): Use size_int for index types.
1778 (build_gcov_info): Likewise.
1779
1780 2011-05-04 Richard Guenther <rguenther@suse.de>
1781
1782 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1783 to build_int_cst.
1784 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1785 for constructor indices.
1786 (push_init_level): Likewise.
1787
1788 2011-05-04 Richard Guenther <rguenther@suse.de>
1789
1790 * explow.c (promote_mode): Move variable declarations before code.
1791
1792 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1793
1794 * tree.h (build_function_type_array): Declare.
1795 (build_varargs_function_type_array): Declare.
1796 (build_function_type_vec, build_varargs_function_type_vec): Define.
1797 * tree.c (build_function_type_array_1): New function.
1798 (build_function_type_array): New function.
1799 (build_varargs_function_type_array): New function.
1800
1801 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1802
1803 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1804 before setting STMT_VINFO_TYPE.
1805
1806 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1807
1808 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1809 instead of spu_pass_by_reference.
1810
1811 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1812
1813 * calls.c (emit_library_call_value_1): Invoke
1814 promote_function_mode hook on libcall arguments.
1815 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1816 argument being NULL.
1817 * targhooks.c (default_promote_function_mode): Lisewise.
1818 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1819 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1820
1821 * doc/tm.texi: Document that TYPE argument might be NULL.
1822
1823 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1824
1825 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1826
1827 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1828
1829 From Bernd Schmidt
1830 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1831
1832 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1833
1834 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1835 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1836 Move ...
1837 * mips-tfile.c: ... here.
1838 Don't include coretypes.h, tm.h, filenames.h.
1839 (saber_stop): Remove definition and all calls.
1840 [__SABER__]: Remove.
1841 (__LINE__): Remove default.
1842 (Size_t, Ptrdiff_t): Remove definitions.
1843 Replace by size_t, ptrdiff_t.
1844 [!MIPS_DEBUGGING_INFO]: Remove.
1845 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1846 (progname): Add const.
1847 (STATIC): Remove.
1848 Replace all uses by static.
1849 (ALIGN_SYMTABLE_OFFSET): Remove default.
1850 * mips-tdump.c: Don't include coretypes.h, tm.h.
1851 Remove !MIPS_IS_STAB guard.
1852 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1853 $(TM_H), filenames.h dependencies.
1854 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1855
1856 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1857
1858 From Jie Zhang
1859 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1860 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1861
1862 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1863
1864 From Bernd Schmidt
1865 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1866 account and save/restore RETS.
1867 (PROFILE_BEFORE_PROLOGUE): Define.
1868 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1869 the push insn to use predecrement.
1870
1871 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1872
1873 From Jie Zhang
1874 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1875
1876 2011-05-04 Nick Clifton <nickc@redhat.com>
1877
1878 * config/mn10300/mn10300.c: Include cfgloop.h.
1879 (DUMP): New macro.
1880 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1881 Lcc or a FLcc insn into the instruction stream.
1882 (mn10300_block_contains_call): New function. Returns true if the
1883 given basic block contains a CALL insn.
1884 (mn10300_loop_contains_call_insn): New function. Returns true if
1885 the given loop contains a CALL insn.
1886 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1887 to use the SETLB and Lcc or FLcc insns.
1888 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1889 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1890 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1891 disable the SETLB optimization.
1892 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1893 __SETLB__ or __NO_SETLB__.
1894 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1895 (movsf_internal): Handle MDR register.
1896 (cmpsi): Make visible.
1897 (setlb): New pattern.
1898 (Lcc): New pattern.
1899 (FLcc): New pattern.
1900
1901 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1902
1903 PR target/48860
1904 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1905 for reg<->xmm moves.
1906 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1907 (vec_concatv2di_rex64_sse): Ditto.
1908 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1909 (*vec_extractv2di_1_rex64): Ditto.
1910
1911 Revert:
1912 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1913
1914 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1915 reg<->xmm moves.
1916 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1917
1918 2011-05-04 Richard Guenther <rguenther@suse.de>
1919
1920 * tree.h (int_const_binop): Remove notrunc argument.
1921 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1922 create integer constants that are properly truncated.
1923 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1924 (const_binop): Remove zero notrunc argument to int_const_binop.
1925 (size_binop_loc): Likewise.
1926 (fold_div_compare): Likewise.
1927 (maybe_canonicalize_comparison_1): Likewise.
1928 (fold_comparison): Likewise.
1929 (fold_binary_loc): Likewise.
1930 (multiple_of_p): Likewise.
1931 * expr.c (store_constructor): Likewise.
1932 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1933 (maybe_fold_stmt_addition): Likewise.
1934 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1935 * stor-layout.c (layout_type): Likewise.
1936 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1937 * tree-sra.c (build_ref_for_offset): Likewise.
1938 (build_user_friendly_ref_for_offset): Likewise.
1939 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1940 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1941 * tree-ssa-loop-niter.c (inverse): Likewise.
1942 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1943 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1944 * tree-switch-conversion.c (check_range): Likewise.
1945 (build_constructors): Likewise.
1946 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1947 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1948 (extract_range_from_assert): Likewise.
1949 (vrp_int_const_binop): Likewise.
1950 (extract_range_from_binary_expr): Likewise.
1951 (extract_range_from_unary_expr): Likewise.
1952 (check_array_ref): Likewise.
1953 (find_case_label_range): Likewise.
1954 (simplify_div_or_mod_using_ranges): Likewise.
1955 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1956 comparing case labels for merging.
1957
1958 2011-05-03 Mark Wielaard <mjw@redhat.com>
1959
1960 * dwarf2out.c (debug_str_hash_forced): Removed.
1961 (gen_label_for_indirect_string): Removed.
1962 (get_debug_string_label): Removed.
1963 (AT_string_form): Generate label directly.
1964 (output_indirect_string): Test indirect_string_node for
1965 DW_FORM_strp instead of checking label and refcount.
1966 (prune_indirect_string): Removed.
1967 (prune_unused_types): Don't check debug_str_hash_forced or
1968 call prune_indirect_string.
1969
1970 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1971
1972 PR other/48093
1973 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1974
1975 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1976
1977 PR debug/47994
1978 PR debug/47919
1979 * combine.c (try_combine): Skip debug insns at m_split tests.
1980
1981 2011-04-26 Mark Wielaard <mjw@redhat.com>
1982
1983 PR42288
1984 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1985 when info_section_emitted.
1986
1987 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1988
1989 * config/mips/mips-opts.h: New.
1990 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1991 to mips-opts.h.
1992 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1993 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1994 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1995 via opts pointer.
1996 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1997 mips-opts.h.
1998 (mips_abi, mips_code_readable): Don't declare.
1999 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2000 (mabi=): Use Enum and Var.
2001 (mips_abi): New Enum and EnumValue entries.
2002 (mcode-readable=): Use Enum and Var.
2003 (mips_code_readable_setting): New Enum and EnumValue entries.
2004 (mr10k-cache-barrier=): Use Enum and Var.
2005 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2006
2007 2011-05-03 Jan Hubicka <jh@suse.cz>
2008
2009 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2010 replace hash by pointer map.
2011 (cgraph_node_set_element_def, cgraph_node_set_element,
2012 const_cgraph_node_set_element, varpool_node_set_element_def,
2013 varpool_node_set_element, const_varpool_node_set_element): Remove.
2014 (free_cgraph_node_set, free_varpool_node_set): New function.
2015 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2016 * tree-emutls.c: Free varpool node set.
2017 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2018 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2019 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2020 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2021 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2022 Move here from ipa.c; implement using pointer_map
2023 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2024 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2025 debug_cgraph_node_set, varpool_node_set_new,
2026 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2027 dump_varpool_node_set, debug_varpool_node_set):
2028 Move to ipa-uitls.c.
2029 * passes.c (ipa_write_summaries): Update.
2030
2031 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2032
2033 From Mike Frysinger:
2034 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2035 bf542/bf544/bf547/bf548/bf549.
2036
2037 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2038
2039 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2040
2041 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2042
2043 From Bernd Schmidt:
2044 * config/bfin/bfin.md (MOVCC): New mode_macro.
2045 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2046 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2047 comments from generated assembly.
2048
2049 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2050
2051 From Bernd Schmidt
2052 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2053 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2054 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2055 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2056 * config/bfin/lib1funcs.asm (___muldi3): New function.
2057
2058 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2059
2060 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2061 build_function_type_list instead of build_function_type.
2062 Rearrange initialization of `args' to do so.
2063
2064 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2065
2066 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2067 instead of build_function_type.
2068
2069 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2070
2071 * config/rs6000/rs6000.c (spe_init_builtins): Call
2072 build_function_type_list instead of build_function_type.
2073 (paired_init_builtins, altivec_init_builtins): Likewise.
2074 (builtin_function_type): Likewise.
2075
2076 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2077
2078 * config/sh/sh.c (sh_media_init_builtins): Call
2079 build_function_type_list instead of build_function_type.
2080
2081 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2082
2083 * config/sparc/sparc.c (sparc_file_end): Call
2084 build_function_type_list instead of build_function_type.
2085
2086 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2087
2088 * config/alpha/alpha.c (alpha_init_builtins): Call
2089 build_function_type_list instead of build_function_type.
2090
2091 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2092
2093 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2094 build_function_type_list instead of build_function_type.
2095
2096 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2097
2098 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2099 build_function_type_list instead of build_function_type.
2100 Delete `endlink' variable.
2101
2102 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2103
2104 * config/avr/avr.c (avr_init_builtins): Call
2105 build_function_type_list instead of build_function_type.
2106
2107 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2108
2109 * config/picochip/picochip.c (picochip_init_builtins): Call
2110 build_function_type_list instead of build_function_type.
2111 Delete `endlink' variable.
2112
2113 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2114
2115 * config/bfin/bfin.c (bfin_init_builtins): Call
2116 build_function_type_list instead of build_function_type.
2117
2118 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2119
2120 From Bernd Schmidt
2121 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2122 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2123
2124 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2125
2126 From Jie Zhang:
2127 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2128 libbffastfp overrides libgcc when -mfast-fp.
2129
2130 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2131
2132 Originally from Bernd Schmidt
2133 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2134 * config/bfin/bfin.c (override_options): Test it and error if
2135 TARGET_FDPIC.
2136
2137 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2138
2139 Originally From Bernd Schmidt
2140 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2141 FD-PIC.
2142
2143 2011-05-03 Jeff Law <law@redhat.com>
2144
2145 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2146 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2147 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2148 than accessing AUX field directly. Free the AUX field before
2149 clearing it.
2150 (thread_block, thread_through_loop_header): Likewise.
2151 (thread_single_edge, mark_threaded_blocks): Likewise.
2152 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2153 (register_jump_thread): Do not attempt to thread to a NULL edge.
2154
2155 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2156
2157 * function.c (init_function_start): Call decide_function_section.
2158 * varasm.c (decide_function_section): New function.
2159 (assemble_start_function): When not using
2160 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2161 or first_function_block_is_cold.
2162 * rtl.h (decide_function_section): Declare.
2163
2164 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2165 Jakub Jelinek <jakub@redhat.com>
2166
2167 PR target/48774
2168 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2169 only succeed if req_mode is the same as set_mode.
2170
2171 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2172
2173 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2174 * genemit.c (gen_exp): Handle RETURN.
2175 * emit-rtl.c (verify_rtx_sharing): Likewise.
2176 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2177 * rtl.c (copy_rtx): RETURN is shared.
2178 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2179 (ret_rtx): New.
2180 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2181 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2182 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2183 * config/cris/cris.c (cris_expand_return): Likewise.
2184 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2185 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2186 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2187 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2188 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2189 Likewise.
2190 * config/v850/v850.c (expand_epilogue): Likewise.
2191 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2192 * config/arm/arm.md (epilogue): Likewise.
2193 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2194 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2195 variable to ret_reg.
2196
2197 2011-05-03 Richard Guenther <rguenther@suse.de>
2198
2199 PR lto/48846
2200 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2201 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2202 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2203
2204 2011-05-03 Richard Guenther <rguenther@suse.de>
2205
2206 * c-decl.c (grokdeclarator): Instead of looking at
2207 TREE_OVERFLOW check if the constant fits in the index type.
2208
2209 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2210
2211 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2212 (vec_store_lanes<mode><mode>): Likewise.
2213
2214 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2215
2216 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2217 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2218 convert_optab_index values.
2219 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2220 * genopinit.c (optabs): Initialize the new optabs.
2221 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2222 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2223 (expand_STORE_LANES): New functions.
2224 * tree.h (build_array_type_nelts): Declare.
2225 * tree.c (build_array_type_nelts): New function.
2226 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2227 (vect_model_load_cost): Likewise.
2228 (vect_store_lanes_supported, vect_load_lanes_supported)
2229 (vect_record_strided_load_vectors): Declare.
2230 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2231 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2232 (vect_transform_strided_load): Split out statement recording into...
2233 (vect_record_strided_load_vectors): ...this new function.
2234 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2235 (write_vector_array, create_array_ref): New functions.
2236 (vect_model_store_cost): Add store_lanes_p argument.
2237 (vect_model_load_cost): Add load_lanes_p argument.
2238 (vectorizable_store): Try to use store-lanes functions for
2239 interleaved stores.
2240 (vectorizable_load): Likewise load-lanes and loads.
2241 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2242 to vect_model_store_cost.
2243 (vect_build_slp_tree): Likewise vect_model_load_cost.
2244
2245 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2246
2247 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2248 * hooks.c (hook_bool_mode_uhwi_false): New function.
2249 * target.def (array_mode_supported_p): New hook.
2250 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2251 * doc/tm.texi: Regenerate.
2252 * stor-layout.c (mode_for_array): New function.
2253 (layout_type): Use it.
2254 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2255 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2256
2257 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2258
2259 PR target/48723
2260 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2261 for -fstack-check if the size to allocate is negative.
2262
2263 2011-05-02 Lawrence Crowl <crowl@google.com>
2264
2265 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2266 (timevar_cond_start): New for starting a timer only when it is not
2267 already running.
2268 (timevar_cond_stop): New for stopping a timer when it was not already
2269 running.
2270
2271 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2272 (timevar_cond_start): New as above.
2273 (timevar_cond_stop): New as above.
2274
2275 * timevar.def: Add start/stop timers for compiler phases,
2276 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2277 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2278 and TV_PHASE_FINALIZE.
2279 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2280 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2281 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2282 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2283 Make unused TV_OVERLOAD into a start/stop timer.
2284
2285 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2286 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2287 to indicate that they are start/stop timers.
2288
2289 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2290 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2291 Move initialization to do_compile.
2292 (do_compile): Add initialization from above.
2293 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2294
2295 * c-decl.c (c_write_global_declarations): Add start/stop of
2296 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2297
2298 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2299 or TV_PARSE_INLINE, as appropriate.
2300 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2301 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2302
2303 2011-05-02 Jason Merrill <jason@redhat.com>
2304
2305 PR c++/40975
2306 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2307
2308 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2309
2310 PR c/35445
2311 * c-decl.c (finish_decl): Only create a composite if the types are
2312 compatible.
2313
2314 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2315
2316 * config/fr30/fr30-protos.h (Mmode): Don't define.
2317 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2318 definition where used.
2319 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2320 define. Expand definitions where used.
2321 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2322 Expand definitions where used.
2323 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2324 rx_function_arg, rx_function_arg_advance,
2325 rx_function_arg_boundary): Expand definitions of those macros.
2326 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2327 definition where used.
2328
2329 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2330
2331 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2332 reg<->xmm moves.
2333 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2334 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2335 with *movv2sf_internal_rex64_avx.
2336 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2337 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2338 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2339 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2340 "vex" in "prefix" attribute calculation.
2341 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2342
2343 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2344
2345 PR target/47951
2346 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2347 inputs match the output.
2348
2349 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2350
2351 PR target/47955
2352 * config/m68k/m68k.c (m68k_expand_prologue): Set
2353 current_function_static_stack_size.
2354
2355 2011-05-02 Jan Hubicka <jh@suse.cz>
2356
2357 * lto-streamer.c (lto_streamer_cache_insert_1,
2358 lto_streamer_cache_lookup, lto_streamer_cache_create,
2359 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2360 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2361
2362 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2363
2364 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2365 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2366 config/m68k/t-opts: New files.
2367 * config/m68k/m68k-tables.opt: New file (generated).
2368 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2369 extra_options and m68k/t-opts to tmake_file.
2370 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2371 (all_isas): Initialize using m68k-isas.def.
2372 (all_microarchs): Initialize using m68k-microarchs.def.
2373 (m68k_find_selection): Remove.
2374 (m68k_handle_option): Don't assert that global structures are in
2375 use. Use error_at. Access variables via opts pointer. Don't
2376 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2377 directly for -m68020-40 and -m68020-60.
2378 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2379 m68k_tune_entry here.
2380 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2381 to m68k-opts.h.
2382 (m68k_library_id_string): Remove declaration.
2383 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2384 (m68k_library_id_string): New Variable.
2385 (march=, mcpu=, mtune=): Use Enum and Var.
2386
2387 2011-05-02 Richard Guenther <rguenther@suse.de>
2388
2389 * varasm.c (output_constructor_regular_field): Compute zero-based
2390 index with double-ints. Make sure to ICE instead of producing
2391 wrong code.
2392 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2393 in asserts. Properly use a signed type.
2394
2395 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2396
2397 * config/i386/sse.md (V): New mode iterator.
2398 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2399 TARGET_SSE2.
2400 (V_256): Rename from AVX256MODE.
2401 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2402 condition to all users.
2403 (VF1): Ditto.
2404 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2405 condition to all users.
2406 (VF_128): Make V4SF mode unconditional.
2407 (VF_256): Rename from AVX256MODEF2P.
2408 (VI4F_128): Rename from SSEMODE4S.
2409 (VI8F_128): Rename from SSEMODE2D.
2410 (VI4F_256): Rename from AVX256MODE8P.
2411 (VI8F_256): Rename from AVX256MODE4P.
2412 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2413 (ssescalarmodesuffix): Remove SF and DF modes.
2414 (SSEMODE124): Remove.
2415 (SSEMODE1248): Ditto.
2416 (SSEMODEF2P): Ditto.
2417 (AVXMODEF2P): Ditto.
2418 (AVXMODEFDP): Ditto.
2419 (AVXMODEFSP): Ditto.
2420 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2421 unconditional.
2422 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2423 unconditional.
2424 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2425 xop_pcmov_<mode>256. Use V mode iterator.
2426
2427 Adjust RTX patterns globally for renamed mode attributes.
2428
2429 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2430
2431 * haifa-sched.c (sched_emit_insn): Emit insn before first
2432 non-scheduled insn. Inform back-end about new insn. Add
2433 new insn to scheduled_insns list.
2434
2435 2011-05-02 Richard Guenther <rguenther@suse.de>
2436
2437 PR tree-optimization/48822
2438 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2439 (process_scc): Indicate which iteration we start.
2440
2441 2011-05-02 Jan Hubicka <jh@suse.cz>
2442
2443 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2444 (lto_section_overrun): New.
2445 * lto-section-out.c (append_block): Rename to ...
2446 (lto_append_block): ... this one; export.
2447 (lto_output_1_stream): Move lto lto-streamer.h
2448 (lto_output_data_stream): Update.
2449 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2450 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2451 functions.
2452
2453 2011-05-02 Richard Guenther <rguenther@suse.de>
2454
2455 * tree.c (tree_code_counts): New global array.
2456 (record_node_allocation_statistics): Count individual tree codes.
2457 (dump_tree_statistics): Dump individual code stats.
2458
2459 2011-05-01 Jan Hubicka <jh@suse.cz>
2460
2461 * ipa-inline.c (caller_growth_limits): Fix thinko when
2462 looking for largest stack frame.
2463 * ipa-inline.h (dump_inline_summary): Declare.
2464 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2465 on stack usage.
2466 (dump_inline_summary): Export.
2467 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2468
2469 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2470
2471 * reginfo.c (memory_move_cost): Change rclass argument type form
2472 'enum reg_class' to reg_class_t.
2473 * reload.h (memory_move_cost): Update prototype.
2474 * postreload.c reload_cse_simplify_set): Change type dclass var to
2475 reg_class_t.
2476 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2477 Update prototype.
2478 (ira_allocate_and_set_costs): Change aclass argument type form
2479 'enum reg_class' to reg_class_t.
2480 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2481 Change aclass argument type to reg_class_t.
2482 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2483 to reg_class_t.
2484 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2485 memory_move_cost call.
2486
2487 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2488 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2489 Change type tmp var to reg_class_t.
2490
2491 2011-04-30 Jan Hubicka <jh@suse.cz>
2492
2493 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2494 inlining into function with flatten attribute.
2495 (want_inline_small_function_p): Be more realistic about inlining
2496 cold calls where callee size grows.
2497
2498 2011-04-30 Jan Hubicka <jh@suse.cz>
2499
2500 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2501 flags.
2502
2503 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2504
2505 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2506 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2507 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2508 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2509 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2510 (print_operand): Rename to...
2511 (sparc_print_operand): ...this. Make static. Adjust
2512 sparc_print_operand function call.
2513 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2514 functions.
2515
2516 2011-04-30 Jan Hubicka <jh@suse.cz>
2517
2518 PR middle-end/48752
2519 * ipa-inline.c (early_inliner): Disable when doing late
2520 addition of function.
2521
2522 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2523
2524 * dwarf2out.c (get_address_mode): New inline.
2525 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2526 if not dwarf_strict emit
2527 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2528 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2529 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2530 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2531 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2532 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2533 mem_loc_descriptor callers.
2534 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2535 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2536 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2537 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2538 (base_types): New variable.
2539 (get_base_type_offset, calc_base_type_die_sizes,
2540 base_type_for_mode, mark_base_types, base_type_cmp,
2541 move_marked_base_types): New functions.
2542 (calc_die_sizes): Assert that die_offset is 0 or equal to
2543 next_die_offset.
2544 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2545 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2546 callers. If not dwarf_strict, call mem_loc_descriptor even for
2547 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2548 (gen_subprogram_die): Don't give up on call site parameters
2549 with non-integral or large integral modes. Adjust
2550 mem_loc_descriptor callers.
2551 (prune_unused_types): Call prune_unused_types_mark on base_types
2552 vector entries.
2553 (resolve_addr): Call mark_base_types.
2554 (dwarf2out_finish): Call move_marked_base_types.
2555
2556 PR tree-optimization/48809
2557 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2558 type.
2559 (gen_inbound_check): Don't compute index_expr - range_min in utype
2560 again, instead reuse SSA_NAME initialized in build_arrays.
2561 Remove two useless gsi_for_stmt calls.
2562
2563 2011-04-29 Jeff Law <law@redhat.com>
2564
2565 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2566
2567 2011-04-29 Martin Jambor <mjambor@suse.cz>
2568
2569 * cgraph.h (cgraph_postorder): Remove declaration.
2570 * ipa-utils.h (ipa_free_postorder_info): Declare.
2571 (ipa_reverse_postorder): Likewise.
2572 * cgraphunit.c: Include ipa-utils.h.
2573 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2574 * ipa-inline.c: Include ipa-utils.h.
2575 (ipa_inline): Update call to ipa_reverse_postorder.
2576 * ipa-pure-const.c (propagate_pure_const): Update call to
2577 ipa_reduced_postorder and ipa_print_order. Call
2578 ipa_free_postorder_info to clean up.
2579 (propagate_nothrow): Likewise.
2580 * ipa-reference.c (propagate): Removed a useless call to
2581 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2582 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2583 * ipa.c: Include ipa-utils.h.
2584 (ipa_profile): Update call to ipa_reverse_postorder.
2585 (cgraph_postorder): Moved to...
2586 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2587 (ipa_utils_print_order): Renamed to ipa_print_order.
2588 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2589 comments.
2590 (ipa_free_postorder_info): New function.
2591 * passes.c: Include ipa-utils.h.
2592 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2593 (ipa_write_summaries): Likewise.
2594 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2595 (cgraphunit.o): Likewise.
2596 (ipa.o): Likewise.
2597 (ipa-inline.o): Likewise.
2598
2599 2011-04-29 Jan Hubicka <jh@suse.cz>
2600
2601 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2602 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2603 * ipa-inline.h (clause_t): Turn into unsigned int.
2604 * ipa-inline-analysis.c (add_clause): Do more simplification.
2605 (and_predicates): Shortcut more cases.
2606 (predicates_equal_p): Move forward; check that clauses are properly
2607 ordered.
2608 (or_predicates): Shortcut more cases.
2609 (edge_execution_predicate): Rewrite as...
2610 (set_cond_stmt_execution_predicate): ... this function; handle
2611 __builtin_constant_p.
2612 (set_switch_stmt_execution_predicate): New .
2613 (compute_bb_predicates): New.
2614 (will_be_nonconstant_predicate): Update TODO.
2615 (estimate_function_body_sizes): Use compute_bb_predicates
2616 and free them later, always try to estimate if stmt is constant.
2617 (estimate_time_after_inlining, estimate_size_after_inlining):
2618 Gracefully handle optimized out edges.
2619 (read_predicate): Fix off by one error.
2620
2621 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2622
2623 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2624
2625 2011-04-27 Xinliang David Li <davidxl@google.com>
2626
2627 * tree-profile.c (init_ic_make_global_vars): Set
2628 tls attribute on ic vars.
2629 * coverage.c (coverage_end_function): Initialize
2630 function_list with zero.
2631
2632 2011-04-29 Richard Guenther <rguenther@suse.de>
2633
2634 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2635 for the type of the result.
2636 (fold_builtin_isascii): Likewise.
2637 (fold_builtin_toascii): Use integer_type_node where appropriate.
2638 (fold_builtin_logb): Likewise.
2639 (fold_builtin_frexp): Likewise.
2640 (fold_builtin_strstr): Likewise.
2641 (fold_builtin_strpbrk): Likewise.
2642 (fold_builtin_fputs): Likewise.
2643 (fold_builtin_sprintf): Likewise.
2644 (fold_builtin_snprintf): Likewise.
2645 (fold_builtin_printf): Likewise.
2646 (do_mpfr_remquo): Use a proper type for the assigned constant.
2647 (do_mpfr_lgamma_r): Likewise.
2648 * dwarf2out.c (resolve_one_addr): Use size_int.
2649 * except.c (init_eh): Likewise.
2650 (assign_filter_values): Use integer_type_node for filter values.
2651 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2652 indices.
2653 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2654 for EH region numbers.
2655 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2656 for the shift amount.
2657
2658 2011-04-29 Richard Guenther <rguenther@suse.de>
2659
2660 * expr.h (expand_shift): Rename to ...
2661 (expand_variable_shift): ... this.
2662 (expand_shift): Take a constant shift amount.
2663 * expmed.c (expand_shift): Rename to ...
2664 (expand_variable_shift): ... this.
2665 (expand_shift): New wrapper around expand_variable_shift.
2666 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2667 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2668 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2669 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2670 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2671 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2672 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2673 emit_store_flag_1, emit_store_flag): Likewise.
2674 * builtins.c (expand_builtin_signbit): Likewise.
2675 * calls.c (load_register_parameters): Likewise.
2676 * function.c (assign_parm_setup_block): Likewise.
2677 * lower-subreg.c (resolve_shift_zext): Likewise.
2678 * optabs.c (widen_bswap, expand_abs_nojump,
2679 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2680 * spu/spu.c (spu_expand_extv): Likewise.
2681 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2682
2683 2011-04-29 Richard Guenther <rguenther@suse.de>
2684
2685 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2686 for the remapped region number.
2687 * predict.c (build_predict_expr): Use integer_type_node for the
2688 predict kind.
2689 * fold-const.c (fold_binary_loc): Use integer_type_node for
2690 the shift amount. Use a proper type for the PLUS_EXPR operand.
2691
2692 2011-04-29 Michael Matz <matz@suse.de>
2693
2694 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2695 other trees that just builtins.
2696 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2697
2698 2011-04-29 Richard Guenther <rguenther@suse.de>
2699
2700 * tree-nested.c (get_trampoline_type): Use size_int.
2701 (get_nl_goto_field): Likewise.
2702 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2703 for all indexes.
2704 (lower_eh_constructs_2): Likewise.
2705 (lower_resx): Likewise.
2706 (lower_eh_dispatch): Likewise.
2707 * tree-mudflap.c (mf_build_string): Use size_int.
2708 (mudflap_register_call): Use integer_type_node for the flag.
2709 (mudflap_enqueue_constant): Use size_int.
2710 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2711 instead of rebuilding it.
2712
2713 2011-04-29 Richard Guenther <rguenther@suse.de>
2714
2715 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2716 Handle OBJ_TYPE_REF.
2717 (find_func_aliases_for_call): Use it more consistently.
2718
2719 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2720
2721 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2722 (rank_for_schedule): Use it.
2723 (schedule_block): Set it.
2724
2725 2011-04-28 David Li <davidxl@google.com>
2726
2727 * tree.c (crc32_string): Use crc32_byte.
2728 (crc32_byte): New function.
2729 * tree.h (crc32_byte): New function.
2730 * gcov.c (read_graph_file): Handle new cfg_cksum.
2731 (read_count_file): Ditto.
2732 * profile.c (instrument_values): Ditto.
2733 (get_exec_counts): Ditto.
2734 (read_profile_edge_counts): Ditto.
2735 (compute_branch_probabilities): Ditto.
2736 (compute_value_histograms): Ditto.
2737 (branch_prob): Ditto.
2738 (end_branch_prob): Ditto.
2739 * coverage.c (read_counts_file): Ditto.
2740 (get_coverage_counts): Ditto.
2741 (tree_coverage_counter_addr): Ditto.
2742 (coverage_checksum_string): Ditto.
2743 (coverage_begin_output): Ditto.
2744 (coverage_end_function): Ditto.
2745 (build_fn_info_type): Ditto.
2746 (build_fn_info_value): Ditto.
2747 * libgcov.c (gcov_exit): Ditto.
2748 * gcov-dump.c (tag_function): Ditto.
2749 (compute_checksum): Remove.
2750
2751 2011-04-29 Alan Modra <amodra@gmail.com>
2752
2753 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2754 unspec plus offset. Tidy macho code.
2755
2756 2011-04-29 Martin Jambor <mjambor@suse.cz>
2757
2758 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2759 node instead of a decl. Update all callers.
2760 * cgraph.h: Update declaration.
2761
2762 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2763
2764 PR tree-optimization/48765
2765 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2766 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2767 to indicate if loop aware SLP is being used. Scan the statements
2768 and update the vectorization factor according to the type of
2769 vectorization before statement analysis.
2770 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2771 pass it to vect_analyze_loop_operations.
2772 (vectorizable_reduction): Set number of copies to 1 in case of pure
2773 SLP statement.
2774 * tree-vect-stmts.c (vectorizable_conversion,
2775 vectorizable_assignment, vectorizable_shift,
2776 vectorizable_operation, vectorizable_type_demotion,
2777 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2778 Likewise.
2779 (vectorizable_condition): Move the check that it is not SLP
2780 vectorization before the number of copies check.
2781 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2782 to vectorize the loop using SLP.
2783
2784 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2785
2786 PR middle-end/48597
2787 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2788 inline asm.
2789
2790 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2791
2792 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2793 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2794 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2795 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2796 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2797 linux*.h headers.
2798 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2799 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2800 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2801 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2802 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2803 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2804 REG_NAME.
2805 * config/i386/linux.h (REG_NAME): Don't define.
2806 * config/i386/linux64.h (REG_NAME): Don't define.
2807 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2808 Undefine before defining.
2809
2810 2011-04-28 Jan Hubicka <jh@suse.cz>
2811
2812 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2813 nonconstant_names array.
2814 (estimate_function_body_sizes): Build nonconstant_names array; handle
2815 BUILT_IN_CONSTANT_P.
2816
2817 2011-04-28 Richard Guenther <rguenther@suse.de>
2818
2819 PR bootstrap/48804
2820 Revert
2821 2011-04-28 Richard Guenther <rguenther@suse.de>
2822
2823 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2824 as late as possible.
2825
2826 2011-04-28 Richard Guenther <rguenther@suse.de>
2827
2828 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2829 (debug_constraint): Do it here.
2830 (dump_constraints): And here.
2831 (rewrite_constraints): And here.
2832 (dump_constraint_edge): Remove.
2833 (dump_constraint_graph): Rewrite to produce DOT output.
2834 (solve_constraints): Build succ graph as late as possible.
2835 Dump constraint graphs before and after solving.
2836
2837 2011-04-28 Richard Guenther <rguenther@suse.de>
2838
2839 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2840 New function split out from ...
2841 (find_func_aliases): ... here. Call it.
2842 (find_func_aliases_for_call): Likewise.
2843
2844 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2845
2846 * internal-fn.h (internal_fn_name_array): Declare.
2847 (internal_fn_flags_array): Likewise.
2848
2849 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2850
2851 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2852 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2853 Move from sse.md.
2854 (ssemodefsuffix): Remove.
2855 (ssevecmodesuffix): New mode attribute.
2856 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2857 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2858 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2859 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2860 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2861 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2862 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2863 ssemodesuffix mode attribute.
2864 (float splitters): Use ssevecmodesuffix mode attribute.
2865 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2866 (sseinsmode): Rename from avxvecmode.
2867 (avxsizesuffix): Rename from avxmodesuffix.
2868 (sseintvecmode): Rename from avxpermvecmode.
2869 (ssedoublevecmode): Rename from ssedoublesizemode.
2870 (ssehalfvecmode): Rename from avxhalfvecmode.
2871 (ssescalarmode): Rename from avxscalarmode.
2872 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2873 templates for ssemodesuffix mode attribute.
2874 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2875 mode attribute.
2876
2877 Adjust RTX patterns globally for renamed mode attributes.
2878
2879 2011-04-27 Jan Hubcika <jh@suse.cz>
2880
2881 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2882 * ipa-inline-analysis.c: Include alloc-pool.h.
2883 (edge_predicate_pool): New.
2884 (trye_predicate_p): New function
2885 (false_predicate_p): New function.
2886 (add_clause): Sanity check that false clauses are "optimized";
2887 never add clauses to predicate that is already known to be false.
2888 (and_predicate): Use flase_predicate_p.
2889 (evaulate_predicate): Rename to ...
2890 (evaluate_predicate): ... this one; update all callers; assert
2891 that false is not listed among possible truths.
2892 (dump_predicate): Use true_predicate_p.
2893 (account_size_time): Use false_predicate_p.
2894 (evaulate_conditions_for_edge): Rename to ...
2895 (evaluate_conditions_for_edge) ... this one.
2896 (edge_set_predicate): New function.
2897 (inline_edge_duplication_hook): Duplicate edge predicates.
2898 (inline_edge_removal_hook): Free edge predicates.
2899 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2900 (dump_inline_summary): Update.
2901 (estimate_function_body_sizes): Set edge predicates.
2902 (estimate_calls_size_and_time): Handle predicates.
2903 (estimate_callee_size_and_time): Update.
2904 (remap_predicate): Add toplev_predicate; update comment.
2905 (remap_edge_predicates): New function.
2906 (inline_merge_summary): Compute toplev predicate; update.
2907 (read_predicate): New function.
2908 (read_inline_edge_summary): Use it.
2909 (inline_read_section): Likewise.
2910 (write_predicate): New function.
2911 (write_inline_edge_summary): Use it.
2912 (inline_write_summary): Likewise.
2913 (inline_free_summary): Free alloc pool and edge summary vec.
2914
2915 2011-04-27 Richard Guenther <rguenther@suse.de>
2916
2917 * tree-ssa-structalias.c (changed_count): Remove.
2918 (changed): Use a bitmap.
2919 (unify_nodes): Adjust.
2920 (do_sd_constraint): Likewise.
2921 (do_ds_constraint): Likewise.
2922 (do_complex_constraint): Likewise.
2923 (solve_graph): Likewise.
2924
2925 2011-04-27 Jan Hubicka <jh@suse.cz>
2926
2927 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2928
2929 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2930
2931 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2932 (avx_vperm2f128_*_operand): Ditto.
2933 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2934 Use avx_vpermilp_parallel in insn condition.
2935 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2936 Use avx_vperm2f128_parallel in insn condition.
2937
2938 2011-04-27 Richard Guenther <rguenther@suse.de>
2939
2940 * Makefile.in (tree-ssa-structalias.o): Remove
2941 gt-tree-ssa-structalias.h dependency.
2942 (GTFILES): Remove tree-ssa-structalias.c.
2943 * tree.c (allocate_decl_uid): New function.
2944 (make_node_stat): Use it.
2945 (copy_node_stat): Likewise.
2946 * tree.h (allocate_decl_uid): Declare.
2947 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2948 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2949 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2950 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2951 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2952 (struct heapvar_map): Likewise.
2953 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2954 heapvar_insert): Likewise.
2955 (make_heapvar_for): Rename to ...
2956 (make_heapvar): ... this. Simplify.
2957 (fake_var_decl_obstack): New global var.
2958 (build_fake_var_decl): New function.
2959 (make_constraint_from_heapvar): Adjust.
2960 (handle_lhs_call): Likewise.
2961 (create_function_info_for): Likewise.
2962 (intra_create_variable_infos): Likewise.
2963 (init_alias_vars): Allocate fake_var_decl_obstack.
2964 (init_alias_heapvars, delete_alias_heapvars): Remove.
2965 (compute_points_to_sets): Do not call init_alias_heapvars.
2966 (ipa_pta_execute): Likewise.
2967 (delete_points_to_sets): Free fake_var_decl_obstack.
2968
2969 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2970
2971 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2972 (si_from_UTItype, si_to_UTItype): New functions.
2973 (__udivmodti4): Use them to implement type-punning.
2974 * config/spu/multi3.c (union qword_TItype): New data type.
2975 (si_from_TItype, si_to_TItype): New functions.
2976 (__multi3): Use them to implement type-punning.
2977
2978 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2979
2980 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2981
2982 2011-04-27 Jan Hubicka <jh@suse.cz>
2983
2984 * ipa-prop.c (function_insertion_hook_holder): New holder.
2985 (ipa_add_new_function): New function.
2986 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2987 Register/deregister holder.
2988
2989 2011-04-27 Richard Guenther <rguenther@suse.de>
2990
2991 PR tree-optimization/48772
2992 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2993
2994 2011-04-27 Richard Guenther <rguenther@suse.de>
2995
2996 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2997 TARGET_MEM_REF handling.
2998
2999 2011-04-27 Nick Clifton <nickc@redhat.com>
3000
3001 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3002 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3003 (REG_CLASS_NAMES): Likewise.
3004 (REG_CLASS_CONTENTS): Likewise.
3005 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3006 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3007 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3008 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3009 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3010 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3011 duplicate register classes.
3012 (frv_class_likely_spilled_p): Likewise.
3013 (frv_register_move_cost): Likewise.
3014
3015 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3016 end of the regno_reg_class array.
3017
3018 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3019
3020 PR c/48742
3021 * c-typeck.c (build_binary_op): Don't wrap arguments if
3022 int_operands is true.
3023
3024 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3025
3026 PR target/48767
3027 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3028 targetm.calls.must_pass_in_stack for void type.
3029
3030 2011-04-26 Jan Hubicka <jh@suse.cz>
3031
3032 * cgraphbuild.c (build_cgraph_edges): Update call
3033 of cgraph_create_edge and cgraph_create_indirect_edge.
3034 * cgraph.c (cgraph_create_edge_including_clones,
3035 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3036 cgraph_update_edges_for_call_stmt_node): Do not take nest
3037 argument; do not initialize call_stmt_size/time.
3038 (dump_cgraph_node): Do not dump nest.
3039 (cgraph_clone_edge): Do not take loop_nest argument;
3040 do not propagate it; do not clone call_stmt_size/time.
3041 (cgraph_clone_node): Likewise.
3042 (cgraph_create_virtual_clone): Update.
3043 * cgraph.h (struct cgraph_edge): Remove
3044 call_stmt_size/call_stmt_time/loop_nest.
3045 (cgraph_create_edge, cgraph_create_indirect_edge,
3046 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3047 prototype.
3048 * tree-emutls.c (gen_emutls_addr): Update.
3049 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3050 loop_nest; handle indirect calls, too.
3051 (clone_inlined_nodes): Do not care about updating inline summaries.
3052 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3053 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3054 stream call_stmt_size/call_stmt_time/loop_nest.
3055 * ipa-inline.c (edge_badness): Update.
3056 (ipa_inline): dump summaries after inlining.
3057 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3058 New.
3059 (inline_edge_summary): New function.
3060 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3061 (inline_edge_removal_hook): Handle edge summaries.
3062 (inline_edge_duplication_hook): New hook.
3063 (inline_summary_alloc): Alloc hooks.
3064 (initialize_growth_caches): Do not register removal hooks.
3065 (free_growth_caches); Do not free removal hook.
3066 (dump_inline_edge_summary): New function.
3067 (dump_inline_summary): Use it.
3068 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3069 (inline_update_callee_summaries): New function.
3070 (inline_merge_summary): Use it.
3071 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3072 (read_inline_edge_summary): New function.
3073 (inline_read_section): Use it.
3074 (write_inline_edge_summary): New function.
3075 (inline_write_summary): Use it.
3076 (inline_free_summary): Free edge new holders.
3077 * tree-inline.c (copy_bb): Update.
3078
3079 2011-04-26 Jason Merrill <jason@redhat.com>
3080
3081 * tree-eh.c (lower_try_finally_switch): Create the label along with
3082 the CASE_LABEL_EXPR.
3083
3084 2011-04-26 David S. Miller <davem@davemloft.net>
3085 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3086
3087 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3088 * configure: Regenerate.
3089
3090 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3091
3092 PR target/48258
3093 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3094 reduction.
3095 (VEC_reduc): New code iterator and splitters for vector reduction.
3096 (VEC_reduc_name): Ditto.
3097 (VEC_reduc_rtx): Ditto.
3098 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3099 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3100
3101 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3102 support for extracting SF on VSX.
3103
3104 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3105 generating xscvspdp.
3106 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3107 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3108 double add, minimum, maximum vector reduction.
3109 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3110 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3111 optimize double vector reduction.
3112 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3113
3114 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3115
3116 * config/fr30/fr30.h (inhibit_libc): Don't define.
3117 * config/m32r/m32r-protos.h: Correct comment.
3118 * config/v850/v850.h (GHS_default_section_names,
3119 GHS_current_section_names): Use tree, not union tree_node *.
3120
3121 2011-04-26 Xinliang David Li <davidxl@google.com>
3122
3123 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3124 * c-family/c-opts.c (c_common_handle_option): Set
3125 warn_maybe_uninitialized.
3126 * opts.c (common_handle_option): Ditto.
3127 * common.opt: New option.
3128 * tree-ssa.c (warn_uninit): Add one more parameter.
3129 (warn_uninitialized_var): Pass warning code.
3130 * tree-flow.h: Interface change.
3131
3132
3133 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3134
3135 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3136 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3137 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3138
3139 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3140
3141 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3142 * config/mips/mips.opt (mmips-tfile): Remove.
3143
3144 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3145 mips-tdump reference to ...
3146 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3147 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3148 reference by Tru64 UNIX.
3149
3150 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3151
3152 PR debug/48768
3153 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3154 is error_mark_node, set value to NULL.
3155
3156 PR tree-optimization/48734
3157 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3158 if return value from maybe_fold_*_comparsions isn't something
3159 the code is prepared to handle.
3160
3161 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3162
3163 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3164 mode check.
3165 (ext_QIreg_nomode_operands): Remove.
3166 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3167 (*andsi_1): Ditto.
3168 (*andhi_1): Ditto.
3169
3170 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3171
3172 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3173
3174 2011-04-26 Richard Guenther <rguenther@suse.de>
3175
3176 * c-typeck.c (build_unary_op): Do not expand array-refs via
3177 pointer arithmetic. Only adjust qualifiers for function types.
3178
3179 2011-04-26 Richard Guenther <rguenther@suse.de>
3180
3181 PR middle-end/48694
3182 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3183 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3184 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3185 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3186
3187 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3188
3189 * doc/extend.texi: Document __underlying_type.
3190
3191 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3192
3193 * config/rs6000/titan.md (automata_option "progress"): Remove.
3194
3195 2011-04-25 Jeff Law <law@redhat.com>
3196
3197 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3198
3199 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3200
3201 * system.h (ENUM_BITFIELD): Remove.
3202
3203 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3204 Eric Botcazou <ebotcazou@adacore.com>
3205
3206 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3207 for STORE_FLAG_VALUE==-1 case.
3208
3209 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3210
3211 PR target/43804
3212 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3213 LEGITIMATE_PIC_OPERAND_P.
3214
3215 2011-04-24 Jan Hubicka <jh@suse.cz>
3216
3217 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3218 WPA hack.
3219 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3220 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3221 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3222 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3223 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3224 Sanity check predicate length.
3225 (remap_predicate): Likewise; sanity check jump functions.
3226 (inline_read_section, inline_write_summary): Sanity check
3227 predicate length.
3228
3229 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3230
3231 PR other/48748
3232 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3233 __is_literal_type, and __is_trivial; update throughout about
3234 possibly cv-qualified void types.
3235
3236 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3237
3238 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3239 testsuite and make it version agnostic.
3240
3241 2011-04-22 Jan Hubicka <jh@suse.cz>
3242
3243 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3244
3245 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3246
3247 PR c/48685
3248 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3249 to VOID_TYPE even around MODIFY_EXPR.
3250
3251 2011-04-22 Mike Stump <mikestump@comcast.net>
3252
3253 * gensupport.c (read_md_rtx): Fix typo in comment.
3254 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3255 comment.
3256
3257 2011-04-22 Jan Hubicka <jh@suse.cz>
3258
3259 * gengtype.c (open_base_files): Add ipa-inline.h include.
3260 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3261 ipa-prop.c; update all uses.
3262 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3263 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3264 merge summary of inlined function into former caller.
3265 * ipa-inline.c (max_benefit): Remove.
3266 (edge_badness): Compensate for removal of benefits.
3267 (update_caller_keys): Use
3268 reset_node_growth_cache/reset_edge_growth_cache.
3269 (update_callee_keys): Likewise.
3270 (update_all_callee_keys): Likewise.
3271 (inline_small_functions): Do not collect max_benefit; do not reset
3272 estimated_growth; call free_growth_caches and initialize_growth_caches.
3273 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3274 struct size_time_entry): New structures.
3275 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3276 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3277 and estimated_growth.
3278 (edge_growth_cache_entry): New structure.
3279 (node_growth_cache, edge_growth_cache): New global vars.
3280 (estimate_growth): Turn into inline.
3281 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3282 initialize_growth_caches, free_growth_caches): Declare.
3283 (estimate_edge_growth): Rewrite.
3284 (estimate_edge_time): Implement as inline cache lookup.
3285 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3286 functions.
3287 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3288 (NUM_CONDITIONS): New constant.
3289 (predicate_conditions): New enum.
3290 (IS_NOT_CONSTANT): New constant.
3291 (edge_removal_hook_holder): New var.
3292 (node_growth_cache, edge_growth_cache): New global vars.
3293 (true_predicate, single_cond_predicate, false_predicate,
3294 not_inlined_predicate, add_condition, add_clause, and_predicates,
3295 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3296 dump_clause, dump_predicate, account_size_time,
3297 evaulate_conditions_for_edge): New functions.
3298 (inline_summary_alloc): Move to heap.
3299 (inline_node_removal_hook): Clear condition and entry vectors.
3300 (inline_edge_removal_hook): New function.
3301 (initialize_growth_caches, free_growth_caches): New function.
3302 (dump_inline_summary): Update.
3303 (edge_execution_predicate): New function.
3304 (will_be_nonconstant_predicate): New function.
3305 (estimate_function_body_sizes): Compute BB and constantness predicates.
3306 (compute_inline_parameters): Do not clear estimated_growth.
3307 (estimate_edge_size_and_time): New function.
3308 (estimate_calls_size_and_time): New function.
3309 (estimate_callee_size_and_time): New function.
3310 (remap_predicate): New function.
3311 (inline_merge_summary): New function.
3312 (do_estimate_edge_time): New function based on...
3313 (estimate_edge_time): ... this one.
3314 (do_estimate_edge_growth): New function.
3315 (do_estimate_growth): New function based on....
3316 (estimate_growth): ... this one.
3317 (inline_analyze_function): Analyze after deciding on jump functions.
3318 (inline_read_section): New function.
3319 (inline_read_summary): Use it.
3320 (inline_write_summary): Write all the new data.
3321 * ipa-prop.c (ipa_get_param_decl_index): Export.
3322 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3323 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3324 Declare.
3325 (ipa_get_lattice): Move here from ipa-cp.c
3326 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3327 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3328 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3329 cgraph_edge_inlinable_p): Remove.
3330 * cgraphunit.c: Include ipainline.h
3331 (cgraph_process_new_functions): Update call of
3332 compute_inline_parameters.
3333
3334 2011-04-22 Richard Guenther <rguenther@suse.de>
3335
3336 * tree.c (build_int_cst): Properly create canonicalized integer
3337 constants.
3338 (build_int_cst_type): Remove scary comments.
3339
3340 2011-04-22 Xinliang David Li <davidxl@google.com>
3341
3342 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3343 by default when -Wno-error is not specified.
3344 * opts-global.c (decode_options): Remove call to
3345 control_warning_options.
3346
3347 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3348
3349 PR tree-optimization/48717
3350 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3351 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3352
3353 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3354
3355 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3356 definition where used.
3357
3358 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3359
3360 PR c/48716
3361 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3362 TREE_STATIC variables declared inside of some OpenMP construct.
3363
3364 2011-04-22 Martin Jambor <mjambor@suse.cz>
3365
3366 PR middle-end/48585
3367 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3368
3369 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3370
3371 PR c/36750
3372 * c-typeck.c (pop_init_level): Do not warn about initializing
3373 with ` = {0}'.
3374
3375 2011-04-22 Alan Modra <amodra@gmail.com>
3376
3377 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3378 when returning call_cookie.
3379 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3380 pointers, to functions with no more vector args than the current
3381 function, and some non-local calls for ABI_V4.
3382 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3383 sibcall_nonlocal_aix64): Combine to ..
3384 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3385 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3386 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3387 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3388 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3389 operand.
3390 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3391 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3392 sibcall_value_symbolic_64): Delete.
3393
3394 2011-04-21 Xinliang David Li <davidxl@google.com>
3395
3396 * cgraph.h: Remove pid.
3397 * cgraph.c: Remove pid.
3398 * value-prof.c (init_node_map): New function.
3399 (del_node_map): New function.
3400 (find_func_by_funcdef_no): New function.
3401 (gimple_ic_transform): Call new function.
3402 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3403 * function.c (get_last_funcdef_no): New function.
3404 * function.h (get_last_funcdef_no): New function.
3405 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3406 to libgcov function.
3407 (tree-profiling): Call node map init and delete function.
3408
3409 2011-04-21 Ian Lance Taylor <iant@google.com>
3410
3411 * godump.c (go_format_type): Use exported Go name for anonymous
3412 field name.
3413
3414 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3415
3416 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3417 Call builtin_function_type_list instead of builtin_function_type.
3418 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3419
3420 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3421
3422 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3423 build_function_type_list instead of build_function_type.
3424 Delete variable `endlink'.
3425
3426 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3427
3428 * config/s390/s390.c (s390_init_builtins): Call
3429 build_function_type_list instead of build_function_type.
3430
3431 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3432
3433 * config/ia64/ia64.c (ia64_init_builtins): Call
3434 build_function_type_list instead of builtin_function_type.
3435
3436 2011-04-21 Easwaran Raman <eraman@google.com>
3437
3438 * cfgexpand.c (stack_var): Remove OFFSET...
3439 (add_stack_var): ...and its reference here...
3440 (expand_stack_vars): ...and here.
3441 (stack_var_cmp): Sort by descending order of size.
3442 (partition_stack_vars): Change heuristic.
3443 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3444 (dump_stack_var_partition): Add newline after each partition.
3445
3446 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3447 Jeff Law <law@redhat.com>
3448
3449 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3450 * gengtype.c (matching_file_name_substitute): Likewise.
3451
3452 2011-04-21 Richard Guenther <rguenther@suse.de>
3453
3454 PR lto/48703
3455 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3456
3457 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3458
3459 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3460
3461 2011-04-21 Richard Guenther <rguenther@suse.de>
3462
3463 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3464 file name.
3465
3466 2011-04-21 Richard Guenther <rguenther@suse.de>
3467
3468 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3469 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3470 Use DECL_P, not SSA_VAR_P.
3471 (ptr_derefs_may_alias_p): Likewise.
3472 (ptr_deref_may_alias_ref_p_1): Likewise.
3473 (decl_refs_may_alias_p): Likewise.
3474 (refs_may_alias_p_1): Likewise.
3475 (ref_maybe_used_by_call_p_1): Likewise.
3476 (call_may_clobber_ref_p_1): Likewise.
3477 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3478 are either MEM_REF or TARGET_MEM_REF.
3479 (indirect_refs_may_alias_p): Likewise.
3480 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3481 for MEM_EXPR of indirect calls.
3482
3483 2011-04-21 Tristan Gingold <gingold@adacore.com>
3484
3485 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3486 (dst_file_info_struct): Remove flen field.
3487 (lookup_filename): Remove code that set flen field.
3488
3489 2011-04-21 Tristan Gingold <gingold@adacore.com>
3490
3491 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3492
3493 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3494
3495 PR target/48708
3496 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3497 vec_extract and vec_concat for non-SSE4_1 targets.
3498
3499 2011-04-21 Richard Guenther <rguenther@suse.de>
3500
3501 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3502 return statements.
3503
3504 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3505
3506 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3507 undefine.
3508 (FILE): Don't undefine.
3509
3510 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3511
3512 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3513 struct rtx_def *.
3514 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3515 struct rtx_def *.
3516 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3517 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3518 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3519 rtx_def *.
3520 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3521 definitions where used.
3522 * config/microblaze/microblaze.h (struct microblaze_args): Use
3523 rtx, not struct rtx_def *.
3524 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3525 rtx_def *.
3526 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3527 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3528 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3529 not struct rtx_def *.
3530 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3531 struct rtx_def *.
3532 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3533 rtx_def *.
3534 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3535
3536 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3537
3538 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3539 operand_equal_p to compare DR_BASE_ADDRESSes.
3540 (vect_check_interleaving): Likewise.
3541
3542 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3543
3544 PR target/46329
3545 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3546 for all Neon struct constants.
3547
3548 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3549
3550 * target.def (legitimate_constant_p): New hook.
3551 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3552 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3553 * doc/tm.texi: Regenerate.
3554 * hooks.h (hook_bool_mode_rtx_true): Declare.
3555 * hooks.c (hook_bool_mode_rtx_true): Define.
3556 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3557 * calls.c (precompute_register_parameters): Replace uses of
3558 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3559 (emit_library_call_value_1): Likewise.
3560 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3561 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3562 * ira-costs.c (scan_one_insn): Likewise.
3563 * recog.c (general_operand, immediate_operand): Likewise.
3564 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3565 * reload1.c (init_eliminable_invariants): Likewise.
3566
3567 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3568 mode argument.
3569 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3570 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3571 argument.
3572 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3573 * config/alpha/predicates.md (input_operand): Update call to
3574 alpha_legitimate_constant_p.
3575
3576 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3577 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3578 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3579 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3580 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3581 (arm_legitimate_constant_p): New functions.
3582 (arm_cannot_force_const_mem): Make static.
3583
3584 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3585
3586 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3587 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3588 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3589 instead of bfin_legitimate_constant_p.
3590 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3591 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3592
3593 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3594
3595 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3596
3597 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3598 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3599 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3600 (frv_legitimate_constant_p): Make static. Add a mode argument.
3601
3602 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3603 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3604 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3605
3606 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3607 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3608 * config/i386/i386.c (legitimate_constant_p): Rename to...
3609 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3610 argument.
3611 (ix86_cannot_force_const_mem): Update accordingly.
3612 (ix86_legitimate_address_p): Likewise.
3613 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3614 * config/i386/i386.md: Update commentary.
3615
3616 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3617 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3618 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3619 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3620
3621 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3622
3623 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3624 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3625 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3626 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3627
3628 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3629 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3630 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3631
3632 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3633 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3634 (m32r_legitimate_constant_p): New function.
3635
3636 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3637 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3638 LEGITIMATE_CONSTANT_P.
3639 (LEGITIMATE_CONSTANT_P): Delete.
3640 * config/m68k/m68k.c (m68k_expand_prologue): Call
3641 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3642 (m68k_legitimate_constant_p): New function.
3643 * config/m68k/m68k.md: Update comments.
3644
3645 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3646 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3647 (mcore_legitimate_constant_p): New function.
3648
3649 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3650 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3651 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3652 Add a mode argument.
3653 (mep_legitimate_address): Update accordingly.
3654 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3655
3656 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3657 Delete.
3658 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3659 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3660 static. Check OP's mode for VOIDmode.
3661 (microblaze_legitimate_constant_p): New function.
3662 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3663
3664 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3665 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3666 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3667 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3668 * config/mips/predicates.md: Update comments.
3669
3670 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3671 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3672 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3673 (mmix_legitimate_constant_p): Make static, return a bool, and take
3674 a mode argument.
3675 (mmix_print_operand_address): Update accordingly.
3676
3677 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3678 Delete.
3679 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3680 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3681 static. Add a mode argument.
3682 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3683
3684 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3685
3686 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3687 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3688 (pa_legitimate_constant_p): New function.
3689
3690 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3691
3692 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3693 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3694 (pdp11_legitimate_constant_p): New function.
3695
3696 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3697 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3698 (rs6000_legitimate_constant_p): New function.
3699
3700 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3701 (rx_legitimate_constant_p): ...this.
3702 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3703 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3704 (rx_legitimate_constant_p): ...this.
3705 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3706 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3707
3708 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3709 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3710 * config/s390/s390.c (legitimate_constant_p): Rename to...
3711 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3712 and add a mode argument.
3713 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3714
3715 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3716
3717 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3718 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3719 (sh_legitimate_constant_p): New function.
3720
3721 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3722 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3723 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3724 (legitimate_constant_p): Rename to...
3725 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3726 argument.
3727 (constant_address_p): Update accordingly.
3728
3729 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3730 argument and return a bool.
3731 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3732 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3733 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3734 (spu_rtx_costs): Update accordingly.
3735 * config/spu/predicates.md (vec_imm_operand): Likewise.
3736
3737 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3738
3739 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3740 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3741 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3742
3743 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3744 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3745 * config/vax/vax.c (legitimate_constant_p): Likewise.
3746
3747 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3748 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3749 (xtensa_legitimate_constant_p): New function.
3750
3751 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3752
3753 * target.def (cannot_force_const_mem): Add a mode argument.
3754 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3755 * doc/tm.texi: Regenerate.
3756 * hooks.h (hook_bool_mode_rtx_false): Declare.
3757 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3758 (hook_bool_mode_const_rtx_true): Likewise.
3759 (hook_bool_mode_rtx_false): New function.
3760 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3761 to be non-VOID. Update call to cannot_force_const_mem.
3762 (find_reloads): Update accordingly.
3763 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3764 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3765 argument.
3766 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3767 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3768 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3769 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3770 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3771 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3772 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3773 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3774 (m68k_cannot_force_const_mem): ...this new function.
3775 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3776 argument.
3777 (mips_const_insns, mips_legitimize_const_move): Update calls.
3778 (mips_secondary_reload_class): Likewise.
3779 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3780 (pa_cannot_force_const_mem): ...this new function.
3781 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3782 (rs6000_cannot_force_const_mem): ...this new function.
3783 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3784 argument.
3785 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3786 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3787 to...
3788 (xtensa_cannot_force_const_mem): ...this new function.
3789
3790 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3791
3792 * config/mips/mips.c (mips16_build_function_stub): Call
3793 build_function_type_list instead of build_function_type.
3794 (mips16_build_call_stub): Likewise.
3795
3796 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3797
3798 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3799 instead of build_function_type.
3800
3801 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3802
3803 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3804 instead of build_function_type.
3805
3806 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3807
3808 PR target/48678
3809 * config/i386/i386.md (insv): Change operand 0 constraint to
3810 "register_operand". Change operand 1 and 2 constraint to
3811 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3812 * config/i386/sse.md (sse4_1_pinsrb): Export.
3813 (sse2_pinsrw): Ditto.
3814 (sse4_1_pinsrd): Ditto.
3815 (sse4_1_pinsrq): Ditto.
3816 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3817 * config/i386/i386.c (ix86_expand_pinsr): New.
3818
3819 2011-04-20 Easwaran Raman <eraman@google.com>
3820
3821 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3822 containing union type only with -fstrict-aliasing.
3823
3824 2011-04-20 Jim Meyering <meyering@redhat.com>
3825
3826 Remove useless if-before-free tests.
3827 * calls.c (expand_call, save_area): Likewise.
3828 * cfgcleanup.c (try_forward_edges): Likewise.
3829 * collect2.c (collect_execute): Likewise.
3830 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3831 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3832 * coverage.c (coverage_checksum_string): Likewise.
3833 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3834 * cselib.c (cselib_init): Likewise.
3835 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3836 (df_set_clean_cfg): Likewise.
3837 * function.c (free_after_compilation): Likewise.
3838 * gcc.c (do_spec_1, main): Likewise.
3839 * gcov.c (create_file_names): Likewise.
3840 * gensupport.c (identify_predicable_attribute): Likewise.
3841 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3842 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3843 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3844 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3845 * ipa-pure-const.c (local_pure_const): Likewise.
3846 * ipa-reference.c (propagate): Likewise.
3847 * ira-costs.c (free_ira_costs): Likewise.
3848 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3849 * matrix-reorg.c (mat_free): Likewise.
3850 * prefix.c (get_key_value): Likewise.
3851 * profile.c (compute_value_histograms): Likewise.
3852 * reload1.c (free_reg_equiv): Likewise.
3853 * sched-deps.c (free_deps): Likewise.
3854 * sel-sched-ir.c (fence_clear): Likewise.
3855 * sese.c (set_rename, if_region_set_false_region): Likewise.
3856 * tree-data-ref.c (free_rdg): Likewise.
3857 * tree-eh.c (lower_try_finally): Likewise.
3858 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3859 * tree-ssa-live.c (delete_var_map): Likewise.
3860 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3861 * tree-ssa-pre.c (phi_trans_add): Likewise.
3862
3863 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3864
3865 PR tree-optimization/48611
3866 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3867 beyond ERT_MUST_NOT_THROW region.
3868
3869 2011-04-20 Catherine Moore <clm@codesourcery.com>
3870
3871 * config/mips/mips.opt (mfix-24k): New.
3872 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3873 * config/mips/mips.md (length): Increase by 4 for stores if
3874 fixing 24K errata.
3875 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3876 all noreorder if fixing 24K errata.
3877 * doc/invoke.texi: Document mfix-24k.
3878
3879 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3880
3881 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3882 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3883
3884 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3885
3886 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3887 (const_ok_for_op): ... to here.
3888
3889 2011-04-20 Kai Tietz <ktietz@redhat.com>
3890
3891 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3892 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3893
3894 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3895
3896 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3897
3898 2011-04-20 Richard Guenther <rguenther@suse.de>
3899
3900 PR tree-optimization/47892
3901 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3902 are if-convertible.
3903
3904 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3905
3906 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3907
3908 2011-04-20 Tristan Gingold <gingold@adacore.com>
3909
3910 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3911
3912 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3913
3914 PR target/18145
3915
3916 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3917 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3918 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3919 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3920 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3921
3922 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3923 New prototype.
3924
3925 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3926 (avr_asm_named_section, avr_asm_output_aligned_common,
3927 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3928 New functions to update...
3929 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3930 (avr_asm_init_sections): Overwrite section callbacks for
3931 data_section, bss_section.
3932 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3933 from here to...
3934 (avr_file_end): ...here.
3935
3936 2011-04-20 Richard Guenther <rguenther@suse.de>
3937
3938 PR middle-end/48695
3939 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3940 objects and types here. Adjust for their offset before comparing.
3941
3942 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3943
3944 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3945 statement per copy.
3946
3947 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3948
3949 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3950 (GIMPLE_H): Include $(INTERNAL_FN_H).
3951 (OBJS-common): Add internal-fn.o.
3952 (internal-fn.o): New rule.
3953 * internal-fn.def: New file.
3954 * internal-fn.h: Likewise.
3955 * internal-fn.c: Likewise.
3956 * gimple.h: Include internal-fn.h.
3957 (GF_CALL_INTERNAL): New gf_mask.
3958 (gimple_statement_call): Put fntype into a union with a new
3959 internal_fn field.
3960 (gimple_build_call_internal): Declare.
3961 (gimple_build_call_internal_vec): Likewise.
3962 (gimple_call_same_target_p): Likewise.
3963 (gimple_call_internal_p): New function.
3964 (gimple_call_internal_fn): Likewise.
3965 (gimple_call_fntype): Return null for internal calls.
3966 (gimple_call_set_fntype): Assert that the function is not internal.
3967 (gimple_call_set_fn): Likewise.
3968 (gimple_call_set_fndecl): Likewise.
3969 (gimple_call_set_internal_fn): New function.
3970 (gimple_call_addr_fndecl): Handle null functions.
3971 (gimple_call_return_type): Likewise null types.
3972 * gimple.c (gimple_build_call_internal_1): New function.
3973 (gimple_build_call_internal): Likewise.
3974 (gimple_build_call_internal_vec): Likewise.
3975 (gimple_call_same_target_p): Likewise.
3976 (gimple_call_flags): Handle calls to internal functions.
3977 (gimple_call_fnspec): New function.
3978 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3979 (gimple_has_side_effects): Handle null functions.
3980 (gimple_rhs_has_side_effects): Likewise.
3981 (gimple_call_copy_skip_args): Handle calls to internal functions.
3982 * cfgexpand.c (expand_call_stmt): Likewise.
3983 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3984 * gimple-fold.c (gimple_fold_call): Handle null functions.
3985 (gimple_fold_stmt_to_constant_1): Don't fold
3986 calls to internal functions.
3987 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3988 functions.
3989 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3990 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3991 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3992 (do_warn_unused_result): Likewise.
3993 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3994 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3995 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3996 the target of a call.
3997 (initialize_hash_element): Update accordingly.
3998 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3999 (iterative_hash_hashable_expr): Handle calls to internal functions.
4000 (print_expr_hash_elt): Likewise.
4001 * tree-ssa-pre.c (can_value_number_call): Likewise.
4002 (eliminate): Handle null functions.
4003 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4004 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4005 (find_func_aliases): Likewise.
4006 * value-prof.c (gimple_ic_transform): Likewise.
4007 (gimple_indirect_call_to_profile): Likewise.
4008 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4009 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4010
4011 2011-04-19 Jan Hubicka <jh@suse.cz>
4012
4013 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4014 * ipa-inline.c (inline_small_functions): Compute summaries first,
4015 populate heap later.
4016
4017 2011-04-19 Jan Hubicka <jh@suse.cz>
4018
4019 * cgraph.h (save_inline_function_body): Remove.
4020 * ipa-inline-transform.c: New file, broke out of...
4021 * ipa-inline.c: ... this one; Update toplevel comment.
4022 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4023 make global.
4024 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4025 (cgraph_mark_inline_edge): Rename to inline_call; move to
4026 ipa-inline-transform.c.
4027 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4028 move to ipa-inline-transform.c
4029 (recursive_inlining, inline_small_functions, flatten_function,
4030 ipa_inline, inline_always_inline_functions,
4031 early_inline_small_functions): Update.
4032 (inline_transform): Move to ipa-inline-transform.c.
4033 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4034 Declare.
4035 * Makefile.in (ipa-inline-transform.o): New file.
4036 * cgraphunit.c (save_inline_function_body): Move to
4037 ipa-inline-transform.c
4038
4039 2011-04-19 DJ Delorie <dj@redhat.com>
4040
4041 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4042 registers if we already know there aren't any.
4043 (m32c_emit_epilogue): Don't emit a barrier here.
4044 (m32c_emit_eh_epilogue): Likewise.
4045 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4046 operands at expand time.
4047 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4048 int" wchar type.
4049 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4050 duplicates. Provide aliases instead.
4051 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4052 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4053 the compiler.
4054
4055 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4056
4057 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4058 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4059 (general_or_i64_p, sparc_register_move_cost): New function.
4060
4061 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4062
4063 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4064 Add lynx, mipssde. Sort table.
4065
4066 2011-04-19 Xinliang David Li <davidxl@google.com>
4067
4068 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4069 not negative.
4070
4071 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4072
4073 PR target/48678
4074 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4075 is a SUBREG with non-MODE_INT mode inside of it.
4076
4077 2011-04-19 Martin Jambor <mjambor@suse.cz>
4078
4079 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4080 also according to actual contants.
4081 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4082 (gimple_fold_call): Use it.
4083 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4084
4085 2011-04-19 Martin Jambor <mjambor@suse.cz>
4086
4087 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4088 non-pointer assignments.
4089
4090 2011-04-19 Martin Jambor <mjambor@suse.cz>
4091
4092 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4093 account anc_offset and otr_type from the indirect edge info.
4094 * ipa-prop.c (get_ancestor_addr_info): New function.
4095 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4096 get_ancestor_addr_info, call it.
4097 (ipa_note_param_call): Do not initialize information about polymorphic
4098 calls, return the indirect call graph edge. Remove the last
4099 parameter, adjust all callers.
4100 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4101 parameters. Initialize polymorphic information in the indirect edge.
4102
4103 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4104
4105 PR lto/48148
4106 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4107 the types if they have different enumeration identifiers.
4108
4109 2011-04-19 Jan Hubicka <jh@suse.cz>
4110
4111 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4112 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4113 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4114 (optimize_function_for_size_p) ... here.
4115
4116 2011-04-19 Richard Guenther <rguenther@suse.de>
4117
4118 PR lto/48207
4119 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4120 langhook.
4121
4122 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4123
4124 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4125 if DECL_NO_INLINE_WARNING_P is set on the function.
4126
4127 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4128
4129 PR fortran/47976
4130 * reload1.c (inc_for_reload): Return void. All callers changed.
4131 (emit_input_reload_insns): Don't try to delete previous output
4132 reloads to a register, or record spill_reg_store for autoincs.
4133
4134 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4135
4136 * gengtype.h: Updated copyright year.
4137 (struct input_file_st): Add inpisplugin field.
4138 (type_fileloc): New function.
4139 * gengtype.c
4140 (write_typed_struct_alloc_def): Add gcc_assert.
4141 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4142 (write_typed_alloc_defns): Don't output for plugin files.
4143 (input_file_by_name): Clear inpisplugin field.
4144 (main): Set inpisplugin field for plugin files.
4145
4146 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4147
4148 * gengtype-state.c (string_eq): New.
4149 (read_state): Use string_eq instead of strcmp when creating the
4150 state_ident_tab.
4151
4152 2011-04-19 Wei Guozhi <carrot@google.com>
4153
4154 PR target/47855
4155 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4156 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4157 linkage.
4158 * config/arm/constraints.md (Uu): New constraint.
4159 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4160
4161 2011-04-19 Tristan Gingold <gingold@adacore.com>
4162
4163 * config.gcc (-*-*-*vms): Added.
4164 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4165 definitions moved.
4166 * config/vms/vms-ld.c: New file.
4167 * config/vms/vms-ar.c: New file.
4168 * config/vms/t-vmsnative: New file.
4169
4170 2011-04-18 Xinliang David Li <davidxl@google.com>
4171
4172 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4173
4174 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR middle-end/48661
4177 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4178 if TREE_TYPE (v) is non-NULL.
4179
4180 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4181 gimple_get_virt_mehtod_for_binfo.
4182 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4183 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4184 callers.
4185 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4186
4187 2011-04-18 Michael Matz <matz@suse.de>
4188 Steve Ellcey <sje@cup.hp.com>
4189
4190 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4191 use its mode as source mode if it isn't VOIDmode.
4192
4193 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4194
4195 * doc/passes.texi: Fill crossref nodes.
4196
4197 2011-04-18 Jim Meyering <meyering@redhat.com>
4198
4199 Fix doubled-word typos in comments and strings
4200 * config/alpha/vms-unwind.h: s/for for/for/
4201 * config/arm/unwind-arm.h: Likewise.
4202 * config/microblaze/microblaze.c: Likewise.
4203 * config/sh/constraints.md: s/in in/in/
4204 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4205
4206 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4207
4208 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4209 (AVX_FLOAT_MODE_P): Ditto.
4210 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4211 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4212 (AVX_VEC_FLOAT_MODE_P): Ditto.
4213 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4214 (UNSPEC_MASKSTORE): Ditto.
4215 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4216 Merge from <sse>_movmsk<ssemodesuffix> and
4217 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4218 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4219 iterator.
4220 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4221 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4222 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4223
4224 2011-04-18 Jan Hubicka <jh@suse.cz>
4225
4226 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4227
4228 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4229 (want_inline_function_called_once_p): Break out the logic from
4230 ipa_inline.
4231 (edge_badness): Ensure that profile is not misupdated.
4232 (lookup_recursive_calls): Prioritize by call frequencies.
4233 (inline_small_functions): Move program size estimates here;
4234 actually process whole queue even when unit growth has been
4235 met. (to properly compute inline_failed reasons and for the
4236 case unit size decrease.) Revisit comments on recursive inlining.
4237 (ipa_inline): Remove unit summary code; first inline hot calls
4238 of functions called once, cold calls next.
4239 (order, nnodes): Remove unused variables.
4240 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4241 (GTFILES): Remove ipa-inline.c
4242 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4243
4244 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4245
4246 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4247
4248 2011-04-18 Jie Zhang <jie@codesourcery.com>
4249 Richard Earnshaw <rearnsha@arm.com>
4250
4251 * arm.c (neon_builtin_type_bits): Remove.
4252 (typedef enum neon_builtin_mode): New.
4253 (T_MAX): Don't define.
4254 (typedef enum neon_builtin_datum): Remove bits, codes[],
4255 num_vars and base_fcode. Add mode, code and fcode.
4256 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4257 VAR10): Change accordingly.
4258 (neon_builtin_data[]): Change accordingly
4259 (arm_init_neon_builtins): Change accordingly.
4260 (neon_builtin_compare): Remove.
4261 (locate_neon_builtin_icode): Remove.
4262 (arm_expand_neon_builtin): Change accordingly.
4263
4264 * arm.h (enum arm_builtins): Move to ...
4265 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4266
4267 * arm.c (arm_builtin_decl): Declare.
4268 (TARGET_BUILTIN_DECL): Define.
4269 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4270 (arm_builtin_decls[]): New.
4271 (arm_init_neon_builtins): Store builtin declarations in
4272 arm_builtin_decls[].
4273 (arm_init_tls_builtins): Likewise.
4274 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4275 (arm_builtin_decl): New.
4276
4277 2011-04-18 Richard Guenther <rguenther@suse.de>
4278
4279 * tree.c (upper_bound_in_type): Build properly canonicalized
4280 INTEGER_CSTs.
4281 (lower_bound_in_type): Likewise.
4282
4283 2011-04-18 Richard Guenther <rguenther@suse.de>
4284
4285 * gimple.h (gimple_call_addr_fndecl): New function.
4286 (gimple_call_fndecl): Use it.
4287 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4288 for direct calls.
4289 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4290 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4291
4292 2011-04-18 Richard Guenther <rguenther@suse.de>
4293
4294 PR middle-end/48650
4295 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4296
4297 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4298
4299 PR lto/48492
4300 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4301 DECL_IN_CONSTANT_POOL without RTL.
4302
4303 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4304 Ira Rosen <ira.rosen@linaro.org>
4305
4306 PR target/48252
4307 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4308 to match neon_vzip/vuzp/vtrn_internal.
4309 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4310 outputs explicitly dependent on both inputs.
4311 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4312
4313 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4314
4315 PR tree-optimization/48616
4316 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4317 whether the shift is by scalar or vector based on whether all SLP
4318 scalar stmts have the same rhs.
4319
4320 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4321
4322 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4323 memory operands.
4324
4325 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4326
4327 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4328 registers.
4329
4330 2011-04-17 Jan Hubicka <jh@suse.cz>
4331
4332 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4333 * cgrpahunit.c (cgraph_finalize_function): Do not set
4334 finalized_by_frontend.
4335 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4336 finalized_by_frontend.
4337
4338 2011-04-17 Jan Hubicka <jh@suse.cz>
4339
4340 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4341 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4342 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4343 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4344 method.
4345 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4346 gimple-fold.c
4347 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4348
4349 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4350
4351 PR lto/48538
4352 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4353 is non-null before accessing it.
4354 (input_cgraph): Remove trailing spaces.
4355
4356 2011-04-17 Revital Eres <revital.eres@linaro.org>
4357
4358 * params.def (sms-min-sc): New param flag.
4359 * modulo-sched.c (sms_schedule): Use it.
4360 * doc/invoke.texi (sms-min-sc): Document it.
4361
4362 2011-04-17 Jan Hubicka <jh@suse.cz>
4363
4364 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4365 present, also set gimple_call_set_cannot_inline.
4366 * ipa-inline.c: Update toplevel comment.
4367 (MAX_TIME): Remove.
4368 (cgraph_clone_inlined_nodes): Fix linebreaks.
4369 (cgraph_check_inline_limits): Restructure to ...
4370 (caller_growth_limits): ... this one; be more tolerant
4371 on growth in nested inline chains; add explanatory comment;
4372 fix stack accounting thinko introduced by previous patch.
4373 (cgraph_default_inline_p): Remove.
4374 (report_inline_failed_reason): New function.
4375 (can_inline_edge_p): New function.
4376 (can_early_inline_edge_p): New function.
4377 (leaf_node_p): Move upwards in file.
4378 (want_early_inline_function_p): New function.
4379 (want_inline_small_function_p): New function.
4380 (want_inline_self_recursive_call_p): New function.
4381 (cgraph_edge_badness): Rename to ...
4382 (edge_badness) ... this one; fix linebreaks.
4383 (update_edge_key): Update call of edge_baddness; add
4384 detailed dump about queue updates.
4385 (update_caller_keys): Use can_inline_edge_p and
4386 want_inline_small_function_p.
4387 (cgraph_decide_recursive_inlining): Rename to...
4388 (recursive_inlining): Use can_inline_edge_p and
4389 want_inline_self_recursive_call_p; simplify and remove no longer
4390 valid FIXME.
4391 (cgraph_set_inline_failed): Remove.
4392 (add_new_edges_to_heap): Use can_inline_edge_p and
4393 want_inline_small_function_p.
4394 (cgraph_decide_inlining_of_small_functions): Rename to ...
4395 (inline_small_functions): ... this one; cleanup; use
4396 can/want predicates; cleanup debug ouput; work edges till fibheap
4397 is exhausted and do not stop once unit growth is reached; remove
4398 later loop processing remaining edges.
4399 (cgraph_flatten): Rename to ...
4400 (flatten_function): ... this one; use can_inline_edge_p
4401 and can_early_inline_edge_p predicates.
4402 (cgraph_decide_inlining): Rename to ...
4403 (ipa_inline): ... this one; remove unreachable nodes before
4404 inlining functions called once; simplify the pass.
4405 (cgraph_perform_always_inlining): Rename to ...
4406 (inline_always_inline_functions): ... this one; use
4407 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4408 (cgraph_decide_inlining_incrementally): Rename to ...
4409 (early_inline_small_functions): ... this one; simplify
4410 using new predicates; cleanup; make dumps prettier.
4411 (cgraph_early_inlining): Rename to ...
4412 (early_inliner): newer inline regular functions into always-inlines;
4413 fix updating of call stmt summaries.
4414 (pass_early_inline): Update for new names.
4415 (inline_transform): Fix formating.
4416 (gate_cgraph_decide_inlining): Rename to ...
4417 (pass_ipa_inline): ... this one.
4418 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4419 * ipa-inline-analysis.c (dump_inline_summary): Update.
4420 (compute_inline_parameters): Do not compute disregard_inline_limits;
4421 look for mismatching arguments.
4422 (estimate_growth): Fix handlig of non-trivial self recursion.
4423 (inline_read_summary): Do not read info->disregard_inline_limits.
4424 (inline_write_summary): Do not write info->disregard_inline_limits.
4425 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4426 and move all checks into can_inline_edge_p predicate; re-enable code
4427 comparing optimization levels.
4428 (expand_call_inline): Do not test inline_forbidden_into_p.
4429 * Makefile.in (ipa-inline.o): Update arguments.
4430
4431 2011-04-17 Revital Eres <revital.eres@linaro.org>
4432
4433 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4434
4435 2011-04-17 Revital Eres <revital.eres@linaro.org>
4436
4437 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4438
4439 2011-04-17 Michael Matz <matz@suse.de>
4440
4441 PR tree-optimization/48622
4442 PR lto/48645
4443 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4444 in same order as they're written.
4445
4446 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4447
4448 * config/pa/predicates.md: Reorganize and simplify predicates.
4449 Eliminate duplicate code checks.
4450 (arith_operand): Rename to arith14_operand
4451 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4452 * config/pa/pa.md: Use renamed operands.
4453 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4454 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4455 arith11_operand, adddi3_operand, indexed_memory_operand,
4456 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4457 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4458 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4459 move_dest_operand, move_src_operand, prefetch_cc_operand,
4460 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4461 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4462 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4463 div_operand, int5_operand, movb_comparison_operator,
4464 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4465 arith_double_operand, ireg_operand, lhs_lshift_operand,
4466 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4467 integer_store_memory_operand): Likewise.
4468 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4469 (integer_store_memory_operand, read_only_operand,
4470 function_label_operand, borx_reg_operand,
4471 non_hard_reg_operand): Likewise.
4472 (eq_neq_comparison_operator): Delete unused operator.
4473 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4474 function_label_operand.
4475 (emit_move_sequence): Likewise.
4476
4477 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4478
4479 * config/i386/sse.md (sseunpackmode): New mode attribute.
4480 (ssepackmode): Ditto.
4481 (vec_pack_trunc_<mode>): Macroize expander from
4482 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4483 (vec_unpacks_lo_<mode>): Macroize expander from
4484 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4485 (vec_unpacks_hi_<mode>): Macroize expander from
4486 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4487 (vec_unpacku_lo_<mode>): Macroize expander from
4488 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4489 (vec_unpacku_hi_<mode>): Macroize expander from
4490 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4491 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4492 ix86_expand_sse4_unpack.
4493 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4494
4495 2011-04-16 Jan Hubicka <jh@suse.cz>
4496
4497 * cgraphbuild.c: Include ipa-inline.h.
4498 (reset_inline_failed): Use initialize_inline_failed.
4499 * cgraph.c: Include ipa-inline.h.
4500 (cgraph_create_node_1): Do not initialize estimated_growth.
4501 (initialize_inline_failed): More to ipa-inline-analysis.c
4502 (dump_cgraph_node): Do not dump inline flags.
4503 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4504 and disregard_inline_limits flags.
4505 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4506 time, size, estimated_growth.
4507 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4508 Update.
4509 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4510 DECL_DISREGARD_INLINE_LIMITS.
4511 (cgraph_analyze_function): Do not initialize
4512 node->local.disregard_inline_limits.
4513 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4514 inlinable, versionable and disregard_inline_limits.
4515 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4516 cgraph_check_inline_limits, cgraph_default_inline_p,
4517 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4518 add_new_edges_to_heap): Update.
4519 (cgraph_decide_inlining_of_small_function): Update; set
4520 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4521 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4522 cgraph_decide_inlining_incrementally): Update.
4523 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4524 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4525 time, size and estimated_growth parameters.
4526 (estimate_edge_growth): Update.
4527 (initialize_inline_failed): Declare.
4528 * ipa-split.c: Include ipa-inline.h
4529 (execute_split_functions): Update.
4530 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4531 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4532 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4533 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4534 estimated_growth to INT_MIN.
4535 (inline_node_duplication_hook): Likewise.
4536 (dump_inline_summary): Dump new fields.
4537 (compute_inline_parameters): Update.
4538 (estimate_edge_time, estimate_time_after_inlining,
4539 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4540 inline_write_summary):
4541 (initialize_inline_failed): Move here from cgraph.c.
4542 * tree-sra.c: Include ipa-inline.h.
4543 (ipa_sra_preliminary_function_checks): Update.
4544 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4545 ipa-inline.h.
4546
4547 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4548
4549 * config/i386/sse.md (V16): New mode iterator.
4550 (VI1, VI8): Ditto.
4551 (AVXMODEQI, AVXMODEDI): Remove.
4552 (sse2, sse3): New mode attribute.
4553 (mov<mode>): Use V16 mode iterator.
4554 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4555 (push<mode>1): Use V16 mode iterator.
4556 (movmisalign<mode>): Ditto.
4557 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4558 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4559 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4560 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4561 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4562 avx_movdqu<avxmodesuffix>.
4563 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4564 *avx_movdqu<avxmodesuffix>.
4565 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4566 avx_lddqu<avxmodesuffix>.
4567 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4568 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4569 avx_movnt<AVXMODEDI:mode>.
4570 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4571 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4572
4573 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4574
4575 PR target/48629
4576 * haifa-sched.c (prune_ready_list, schedule_block): Use
4577 sched_pressure_p rather than flag_sched_pressure.
4578
4579 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4580
4581 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4582 cgraph_get_node instead of cgraph_get_create_node.
4583
4584 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4585
4586 * cfgexpand.c (expand_debug_expr): Use
4587 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4588
4589 2011-04-15 Michael Matz <matz@suse.de>
4590
4591 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4592 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4593 * function.c (gimplify_parameters): Ditto.
4594 * gimplify.c (gimplify_vla_decl): Ditto.
4595
4596 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4597 (gimple_call_set_alloca_for_var): New inline function.
4598 (gimple_call_alloca_for_var_p): Ditto.
4599 * gimple.c (gimple_build_call_from_tree): Remember
4600 CALL_ALLOCA_FOR_VAR_P state.
4601 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4602
4603 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4604 calls if they were for VLA objects.
4605
4606 2011-04-15 Martin Jambor <mjambor@suse.cz>
4607
4608 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4609 of ADR_EXPRs.
4610
4611 2011-04-15 Martin Jambor <mjambor@suse.cz>
4612
4613 PR middle-end/48601
4614 * tree-emutls.c (lower_emutls_function_body): Call
4615 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4616 result is non-NULL.
4617
4618 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4619
4620 * c-decl.c (detect_field_duplicates): Call
4621 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4622
4623 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4624
4625 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4626 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4627 * ipa-pure-const.c (check_stmt): Call it.
4628 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4629
4630 2011-04-15 Richard Guenther <rguenther@suse.de>
4631
4632 PR tree-optimization/48290
4633 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4634 Properly decide inhibiting propagation based on the valueized
4635 operand. Do loop-closed SSA form preserving here ...
4636 (init_copy_prop): ... not here.
4637
4638 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4639
4640 PR target/48612
4641 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4642 (*ieee_smax<mode>3): Likewise.
4643
4644 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4645
4646 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4647 Replace match_operand with match_dup for the third operand in
4648 these expanders.
4649
4650 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4651
4652 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4653 to track processing of conditionals. Update all callers.
4654 (try_combine, simplify_if_then_else): Update.
4655
4656 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4657
4658 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4659 -fsched-pressure.
4660
4661 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4662
4663 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4664 instead of match_operand for operand 3.
4665
4666 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4667
4668 * recog.h (insn_operand_data): Add an "allows_mem" field.
4669 * genoutput.c (output_operand_data): Initialize it.
4670 * optabs.c (maybe_legitimize_operand_same_code): New function.
4671 (maybe_legitimize_operand): Use it when matching the original
4672 op->value.
4673
4674 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4675
4676 * gimplify.c: Fix issues in comments throughout.
4677 (voidify_wrapper_expr): Fix long line.
4678 (build_stack_save_restore): Likewise.
4679 (gimplify_loop_expr): Likewise.
4680 (gimplify_compound_lval): Likewise.
4681 (gimplify_init_ctor_eval): Likewise.
4682 (gimplify_modify_expr_rhs): Likewise.
4683 (omp_notice_threadprivate_variable): Likewise.
4684
4685 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4686
4687 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4688 original one if this is not a builtin function.
4689
4690 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4691
4692 PR target/48605
4693 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4694 offset it as needed based on top 2 bits in operands[3], change
4695 MEM mode to SFmode and mask those 2 bits away from operands[3].
4696
4697 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4698
4699 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4700 change from objc_declare_protocols() to objc_declare_protocol().
4701
4702 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4703
4704 * config/i386/sse.md (sse4_1): New mode attribute.
4705 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4706 avx_blend<ssemodesuffix><avxmodesuffix> and
4707 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4708 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4709 avx_blendv<ssemodesuffix><avxmodesuffix> and
4710 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4711 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4712 avx_dp<ssemodesuffix><avxmodesuffix> and
4713 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4714 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4715 (sse4_1_packusdw): Merge with *avx_packusdw.
4716 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4717 (sse4_1_pblendw): Merge with *avx_pblendw.
4718 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4719 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4720 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4721 VF mode iterator.
4722 (sse4_1_round<ssescalarmodesuffix>): Merge with
4723 *avx_round<ssescalarmodesuffix>.
4724 (aesenc): Merge with *avx_aesenc.
4725 (aesenclast): Merge with *avx_aesenclast.
4726 (aesdec): Merge with *avx_aesdec.
4727 (aesdeclast): Merge with *avx_aesdeclast.
4728 (pclmulqdq): Merge with *pclmulqdq.
4729 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4730 New predicate.
4731 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4732
4733 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4734
4735 PR middle-end/48608
4736 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4737 (align_local_variable): This. Update DECL_ALIGN.
4738 (add_stack_var): Updated.
4739 (expand_one_stack_var): Likewise.
4740
4741 2011-04-14 Richard Guenther <rguenther@suse.de>
4742
4743 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4744 Remove.
4745 (dse_initialize_block_local_data, dse_leave_block,
4746 record_voperand_set, get_stmt_uid): Likewise.
4747 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4748 (dse_optimize_stmt): Remove voperand set handling code.
4749 Simplify and improve to handle any kind of killing stmt.
4750 (dse_record_phi): Remove.
4751 (dse_enter_block): Simplify.
4752 (tree_ssa_dse): Likewise.
4753 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4754
4755 2011-04-14 Jan Hubicka <jh@suse.cz>
4756
4757 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4758 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4759 (cgraph_local_info): Remove inline_summary.
4760 * ipa-cp.c: Include ipa-inline.h.
4761 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4762 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4763 accesor.
4764 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4765 (input_overwrite_node): Do not set inline summary.
4766 (input_node): Do not stream inline summary.
4767 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4768 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4769 growth; we do not have inline parameters computed for that anyway.
4770 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4771 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4772 (inline_summary_t): New type and VECtor.
4773 (debug_inline_summary, dump_inline_summaries): Declare.
4774 (inline_summary): Use VOCtor.
4775 (estimate_edge_growth): Kill hack computing call stmt size directly.
4776 * lto-section-in.c (lto_section_name): Add inline section.
4777 * ipa-inline-analysis.c: Include lto-streamer.h
4778 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4779 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4780 (inline_summary_vec): Define.
4781 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4782 dump_inline_summaries): New functions.
4783 (estimate_function_body_sizes): Properly compute size/time of outgoing
4784 calls.
4785 (compute_inline_parameters): Alloc inline_summary; do not compute
4786 size/time of incomming calls.
4787 (estimate_edge_time): Avoid missing time summary hack.
4788 (inline_read_summary): Read inline summary info.
4789 (inline_write_summary): Write inline summary info.
4790 (inline_free_summary): Free all hooks and inline summary vector.
4791 * lto-streamer.h: Add LTO_section_inline_summary section.
4792 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4793 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4794
4795 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4796
4797 * tree-vectorizer.h (vect_strided_store_supported): Add a
4798 HOST_WIDE_INT argument.
4799 (vect_strided_load_supported): Likewise.
4800 (vect_permute_store_chain): Return void.
4801 (vect_transform_strided_load): Likewise.
4802 (vect_permute_load_chain): Delete.
4803 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4804 count argument. Check that the count is a power of two.
4805 (vect_strided_load_supported): Likewise.
4806 (vect_permute_store_chain): Return void. Update after above changes.
4807 Assert that the access is supported.
4808 (vect_permute_load_chain): Likewise.
4809 (vect_transform_strided_load): Return void.
4810 * tree-vect-stmts.c (vectorizable_store): Update calls after
4811 above interface changes.
4812 (vectorizable_load): Likewise.
4813 (vect_analyze_stmt): Don't check for strided powers of two here.
4814
4815 2011-04-14 Richard Guenther <rguenther@suse.de>
4816
4817 PR tree-optimization/48590
4818 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4819 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4820 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4821 BUILT_IN_STACK_SAVE.
4822 * tree-ssa-dce.c (propagate_necessity): Handle
4823 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4824
4825 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4826
4827 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4828 objc_declare_class.
4829
4830 2011-04-14 Richard Guenther <rguenther@suse.de>
4831
4832 * tree.h (get_object_alignment_1): Declare.
4833 * builtins.c (get_object_alignment_1): Split out worker from ...
4834 (get_object_alignment): ... here.
4835 * fold-const.c (get_pointer_modulus_and_residue): Use
4836 get_object_alignment_1.
4837
4838 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4839
4840 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4841 type parameter.
4842 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4843 parameter. Generalise code to handle arrays as well as vectors.
4844 (vect_setup_realignment): Update accordingly.
4845 * tree-vect-stmts.c (vectorizable_store): Likewise.
4846 (vectorizable_load): Likewise.
4847
4848 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4849
4850 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4851 within the per-copy loop.
4852
4853 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4854
4855 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4856 in the dump file.
4857
4858 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4859
4860 * doc/options.texi (Negative): Explicitly mention that the
4861 Negative chain must be circular.
4862
4863 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4864
4865 * function.h (block_chainon): Declare.
4866 * function.c (block_chainon): Define.
4867
4868 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4869 Eric Weddington <eric.weddington@atmel.com>
4870 Georg-Johann Lay <avr@gjlay.de>
4871
4872 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4873 New Includes
4874 (avr_init_builtins, avr_expand_builtin,
4875 avr_expand_delay_cycles, avr_expand_unop_builtin,
4876 avr_expand_binop_builtin ): New functions.
4877 (avr_builtin_id): New enum
4878 (struct avr_builtin_description): New struct
4879 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4880 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4881
4882 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4883 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4884 UNSPECV_DELAY_CYCLES): new enumeration values
4885 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4886 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4887 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4888 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4889 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4890 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4891 "fmulsu"): New insns
4892
4893 * config/avr/avr-c.c: fix line endings
4894 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4895 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4896 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4897 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4898 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4899
4900 * doc/extend.texi (AVR Built-in Functions): New node
4901 (Target Builtins): Add documentation of AVR
4902 built-in functions.
4903
4904 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4905
4906 PR target/44643
4907 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4908 alone. Error if non-const data has attribute progmem.
4909
4910 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4911
4912 * tree.h (struct tree_constructor): Include tree_typed instead of
4913 tree_common.
4914 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4915 TS_TYPED instead of TS_COMMON.
4916
4917 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4918
4919 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4920 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4921 (sse2_psadbw): Merge with *avx_psadbw.
4922 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4923 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4924 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4925 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4926 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4927 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4928 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4929 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4930 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4931 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4932 (ssse3_palignrti): Merge with *avx_palignrti.
4933
4934 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4935
4936 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4937 * tree-ssanames.c (fini_ssanames): VEC_free it.
4938 (make_ssa_name_fn): Update for VECness of free_ssanames.
4939 (release_ssa_name, release_dead_ssa_names): Likewise.
4940 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4941 tree_common.
4942 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4943 TS_TYPED instead of TS_COMMON.
4944
4945 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4946
4947 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4948 statistics_counter_event.
4949 * tree-ssa-copyrename.c (stats): Define.
4950 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4951 statistics_counter_event.
4952 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4953 (bswap_stats, widen_mul_stats): Define.
4954 (insert_reciprocals): Increment rdivs_inserted.
4955 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4956 rfuncs_inserted. Add calls to statistics_counter_event.
4957 (execute_cse_sincos_1): Increment inserted.
4958 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4959 statistics_counter_event.
4960 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4961 of bswap_stats. Add calls to statistics_counter_event.
4962 (convert_mult_to_widen): Increment widen_mults_inserted.
4963 (convert_plusminus_to_widen): Increment maccs_inserted.
4964 (convert_mult_to_fma): Increment fmas_inserted.
4965 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4966 calls to statistics_counter_event.
4967
4968 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4969
4970 PR rtl-optimization/48455
4971 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4972 `temp_costs->mem_cost'.
4973
4974 2011-04-13 Jan Hubicka <jh@suse.cz>
4975
4976 * ipa-inline.h: New file.
4977 * ipa-inline-analysis.c: New file. Broken out of ...
4978 * ipa-inline.c: ... this file; update toplevel comment;
4979 include ipa-inline.h
4980 (inline_summary): Move to ipa-inline.h
4981 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4982 ipa-inline-analysis.c.
4983 (cgraph_estimate_time_after_inlining): Rename to
4984 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4985 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4986 to estimate_edge_growth.
4987 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4988 rename to estimate_size_after_inlining.
4989 (cgraph_mark_inline_edge): Update for new naming convention.
4990 (cgraph_check_inline_limits): Likewise.
4991 (cgraph_edge_badness): Likewise.
4992 (cgraph_decide_recursive_inlining): Likewise.
4993 (cgraph_decide_inlining_of_small_functions): Likewise.
4994 (cgraph_decide_inlining_incrementally): Likewise.
4995 (cgraph_estimate_growth): Rename to estimate_growth; move to
4996 ipa-inline-analysis.c.
4997 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4998 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4999 (compute_inline_parameters): Likewise.
5000 (compute_inline_parameters_for_current): Likewise.
5001 (pass_inline_parameters): Likewise.
5002 (inline_indirect_intraprocedural_analysis): Likewise.
5003 (analyze_function): Rename to inline_analyze_function; likewise.
5004 (add_new_function): Move to ipa-inline-analysis.c.
5005 (inline_generate_summary): Likewise.
5006 (inline_read_summary): Likewise.
5007 (inline_write_summary): Likewise.
5008 * Makefile.in (ipa-inline-analysis.c): New file.
5009
5010 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5011
5012 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5013 * configure: Regenerate.
5014
5015 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5016
5017 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5018 instead of tree_common.
5019 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5020 Likewise.
5021 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5022 TS_TYPED rather than TS_COMMON.
5023 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5024
5025 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5026
5027 PR target/45263
5028 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5029 r20 around calls of __tablejump_elpm__
5030
5031 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5032
5033 PR middle-end/48591
5034 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5035 NULL.
5036 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5037
5038 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5039
5040 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5041 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5042 (cfi_vec): New typedef.
5043 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5044 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5045 (cie_cfi_vec): New static variable.
5046 (cie_cfi_head): Delete.
5047 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5048 declaration changed. Use vector rather than list operations.
5049 (new_cfi): Don't initialize the dw_cfi_next field.
5050 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5051 rather than list operations.
5052 (lookup_cfa): Use vector rather than list operations.
5053 (output_cfis): New argument upto. Accept a cfi_vec rather than
5054 a dw_cfi_ref list head as argument. All callers changed.
5055 Iterate over the vector using upto as a maximum index.
5056 (output_all_cfis): New static function.
5057 (output_fde): Use vector rather than list operations. Use the
5058 new upto argument for output_cfis rather than manipulating a
5059 list.
5060 (dwarf2out_begin_prologue): Change initializations to match
5061 new struct members.
5062 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5063 from the vector length rather than searching for the end of a list.
5064 Use output_all_cfis.
5065 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5066
5067 2011-04-13 Nick Clifton <nickc@redhat.com>
5068
5069 * config/rx/rx.md (movmemsi): Do not use this pattern when
5070 volatile pointers are involved.
5071
5072 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5073
5074 * config/i386/sse.md (pinsrbits): Remove.
5075 (sse2_packsswb): Merge with *avx_packsswb.
5076 (sse2_packssdw): Merge with *avx_packssdw.
5077 (sse2_packuswb): Merge with *avx_packuswb.
5078 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5079 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5080 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5081 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5082 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5083 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5084 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5085 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5086 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5087 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5088 (sse2_loadld): Merge with *avx_loadld.
5089 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5090 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5091 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5092 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5093 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5094
5095 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5096
5097 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5098 calling TREE_CHAIN.
5099 * print-tree.c (print_node): Likewise.
5100 * tree-inline.c (copy_tree_r): Likewise.
5101 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5102 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5103 instead of TS_COMMON.
5104 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5105 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5106 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5107 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5108 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5109 ...and these...
5110 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5111 * tree.h: ...here.
5112 (TREE_CHAIN): Check for a TS_COMMON structure.
5113 (TREE_TYPE): Check for a TS_TYPED structure.
5114
5115 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5116
5117 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5118 cgraph_get_create_node instead of cgraph_node.
5119
5120 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5121
5122 * c-parser.c (c_parser_initelt): Updated call to
5123 objc_build_message_expr.
5124 (c_parser_postfix_expression): Likewise.
5125
5126 2011-04-12 Kai Tietz <ktietz@redhat.com>
5127
5128 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5129 MASK_MS_BITFIELD_LAYOUT bit.
5130
5131 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5132
5133 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5134 assert it is always true.
5135 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5136 moves.
5137
5138 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5139
5140 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5141 compiling Objective-C to be more efficient.
5142
5143 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5144
5145 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5146 argv_copied.
5147
5148 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5149
5150 * recog.h, genoutput.c, optabs.c: Revert last patch.
5151
5152 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5153
5154 PR target/48090
5155 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5156
5157 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5158
5159 * recog.h (insn_operand_data): Add an "allows_mem" field.
5160 * genoutput.c (output_operand_data): Initialize it.
5161 * optabs.c (maybe_legitimize_operand_same_code): New function.
5162 (maybe_legitimize_operand): Use it when matching the original
5163 op->value.
5164
5165 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5166
5167 * genpreds.c (process_define_predicate): Move most processing
5168 to gensupport.c. Continue to validate the expression.
5169 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5170 (process_define_predicate): Move processing to gensupport.c.
5171 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5172 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5173 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5174 argument.
5175 (valid_predicate_name_p): New function, split out from old
5176 genpreds.c:process_define_predicate.
5177 (process_define_predicate): New function, combining code from
5178 old genpreds.c and genrecog.c functions.
5179 (process_rtx): Call it for DEFINE_PREDICATE and
5180 DEFINE_SPECIAL_PREDICATE.
5181
5182 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5183
5184 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5185 size of a '%A' memory reference.
5186 (T_DREG, T_QREG): New neon_builtin_type_bits.
5187 (arm_init_neon_builtins): Assert that the load and store operands
5188 are neon_struct_operands.
5189 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5190 (NEON_ARG_MEMORY): New builtin_arg.
5191 (neon_dereference_pointer): New function.
5192 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5193 Handle NEON_ARG_MEMORY.
5194 (arm_expand_neon_builtin): Update after above interface changes.
5195 Use NEON_ARG_MEMORY for loads and stores.
5196 * config/arm/predicates.md (neon_struct_operand): New predicate.
5197 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5198 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5199 (V_four_elem): Tweak formatting.
5200 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5201 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5202 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5203 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5204 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5205 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5206 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5207 Use %A in the output template.
5208 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5209 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5210 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5211 the width of the memory access. Remove post-increment.
5212 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5213
5214 2011-04-12 Nick Clifton <nickc@redhat.com>
5215
5216 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5217 instruction for interrupt handlers if the target is the basic V850
5218 architecture.
5219 (expand_epilogue): Likewise.
5220
5221 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5222
5223 PR rtl-optimization/48549
5224 * combine.c (propagate_for_debug): Also stop after BB_END of
5225 this_basic_block. Process LAST and just stop processing after it.
5226 (combine_instructions): If last_combined_insn has been deleted,
5227 set last_combined_insn to its PREV_INSN.
5228
5229 2011-04-12 Richard Guenther <rguenther@suse.de>
5230
5231 PR tree-optimization/46076
5232 * gimple.h (struct gimple_statement_call): Add fntype field.
5233 (gimple_call_fntype): Adjust.
5234 (gimple_call_set_fntype): New function.
5235 * gimple.c (gimple_build_call_1): Set the call function type.
5236 * gimplify.c (gimplify_call_expr): Preserve the function
5237 type the frontend used for the call.
5238 (gimplify_modify_expr): Likewise.
5239 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5240 function type.
5241 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5242 function type.
5243 * tree-ssa.c (useless_type_conversion_p): Function pointer
5244 conversions are useless.
5245
5246 2011-04-12 Martin Jambor <mjambor@suse.cz>
5247
5248 * cgraph.h (cgraph_node): Remove function declaration.
5249 (cgraph_create_node): Declare.
5250 (cgraph_get_create_node): Likewise.
5251 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5252 Updated all callers.
5253 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5254 the decl does not already exist. Call cgraph_get_create_node instead
5255 of cgraph_node.
5256 (cgraph_get_create_node): New function.
5257 (cgraph_same_body_alias): Update comment.
5258 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5259 assert it does not return NULL.
5260 (cgraph_update_edges_for_call_stmt): Likewise.
5261 (cgraph_clone_edge): Likewise.
5262 (cgraph_create_virtual_clone): Likewise.
5263 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5264 instead of cgraph_node.
5265 (cgraph_add_new_function): Call cgraph_create_node or
5266 cgraph_get_create_node instead of cgraph_node.
5267 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5268 instead of cgraph_node.
5269 (record_eh_tables): Likewise.
5270 (mark_address): Likewise.
5271 (mark_load): Likewise.
5272 (build_cgraph_edges): Call cgraph_get_create_node instead
5273 of cgraph_node.
5274 (rebuild_cgraph_edges): Likewise.
5275 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5276 instead of cgraph_node.
5277 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5278 cgraph_node.
5279 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5280 cgraph_create_node instead of cgraph_node.
5281 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5282 of cgraph_node.
5283 * lto-cgraph.c (input_node): Likewise.
5284 * lto-streamer-in.c (input_function): Likewise.
5285 * varasm.c (mark_decl_referenced): Likewise.
5286 (assemble_alias): Likewise.
5287
5288 2011-04-12 Martin Jambor <mjambor@suse.cz>
5289
5290 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5291 instead of cgraph_node and assert it does not return NULL.
5292 * lto-streamer-in.c (lto_read_body): Likewise.
5293 * omp-low.c (new_omp_context): Likewise.
5294 (create_task_copyfn): Likewise.
5295 * tree-emutls.c (lower_emutls_function_body): Likewise.
5296 * matrix-reorg.c (transform_allocation_sites): Likewise.
5297
5298 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5299
5300 PR c/48552
5301 * c-typeck.c (build_asm_expr): Error out on attempts to use
5302 void type outputs or inputs for constraints that allow reg or
5303 don't allow memory.
5304
5305 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5306 Richard Earnshaw <rearnsha@arm.com>
5307
5308 PR target/48250
5309 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5310 to use sign-magnitude offsets. Reject unsupported unaligned
5311 cases. Add detailed description in comments.
5312 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5313 condition from TARGET_32BIT to TARGET_ARM.
5314
5315 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5316
5317 * tree.h (struct typed_tree): New.
5318 (struct tree_common): Include it instead of tree_base.
5319 (TREE_TYPE): Update for new location of type field.
5320 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5321 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5322 (union tree_node): Add typed field.
5323 * treestruct.def (TS_TYPED): New.
5324 * lto-streamer.c (check_handled_ts_structures): Handle it.
5325 * tree.c (MARK_TS_TYPED): New macro.
5326 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5327
5328 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5329
5330 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5331 (force_nonfallthru): Do not alter the loop nest if no basic block
5332 was created.
5333
5334 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5335
5336 * config/i386/sse.md (VI): New mode iterator.
5337 (SSEMODEI): Remove.
5338 (AVX256MODEI): Ditto.
5339 (AVXMODEF4P): Ditto.
5340 (avxvecpsmode): Ditto.
5341 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5342 (sse2_andnot<mode>3): New expander.
5343 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5344 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5345 (<any_logic:code><mode>3): Use VI mode iterator.
5346 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5347 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5348 (*andnottf3): Handle AVX three-operand constraints.
5349 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5350
5351 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5352 Robert Millan <rmh@gnu.org>
5353
5354 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5355 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5356 GNU_USER_DYNAMIC_LINKER64): Define.
5357 (REG_NAME): Don't undefine.
5358 (MD_UNWIND_SUPPORT): Undefine.
5359 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5360 (REG_NAME): Don't undefine.
5361 (MD_UNWIND_SUPPORT): Undefine.
5362 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5363
5364 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5365
5366 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5367 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5368
5369 2011-04-11 Xinliang David Li <davidxl@google.com>
5370
5371 * value-profile.c (check_ic_target): New function.
5372 (gimple_ic_transform): Sanity check indirect call target.
5373 * gimple-low.c (gimple_check_call_args): Interface change.
5374 (gimple_check_call_matching_types): New function.
5375 * tree-inline.c (tree_can_inline_p): Call new function.
5376
5377 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5378
5379 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5380 tree-pretty-print.h & realmpfr.h.
5381
5382 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5383
5384 PR middle-end/48464
5385 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5386 (setup_allocno_and_important_classes): Ditto.
5387
5388 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5389
5390 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5391 GNU_USER_DYNAMIC_LINKER.
5392 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5393 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5394 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5395 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5396 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5397 GNU_USER_TARGET_OS_CPP_BUILTINS.
5398 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5400 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5402 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5403 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5404 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5405 GNU_USER_TARGET_OS_CPP_BUILTINS.
5406 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5407 GNU_USER_DYNAMIC_LINKER.
5408 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5409 GNU_USER_TARGET_OS_CPP_BUILTINS.
5410 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5412 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5414 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5415 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5416 GNU_USER_DYNAMIC_LINKER64): Remove.
5417 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5418 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5419 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5420 GNU_USER_DYNAMIC_LINKER.
5421 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5422 GNU_USER_TARGET_OS_CPP_BUILTINS.
5423 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5424 GNU_USER_TARGET_OS_CPP_BUILTINS.
5425 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5426 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5427 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5428 GNU_USER_TARGET_OS_CPP_BUILTINS.
5429 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5430 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5431 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5432 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5433 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5434 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5435 GNU_USER_DYNAMIC_LINKER.
5436 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5437 GNU_USER_TARGET_OS_CPP_BUILTINS.
5438 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5439 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5440 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5441 GNU_USER_DYNAMIC_LINKER.
5442 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5443 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5444 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5445 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5446 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5447 GNU_USER_DYNAMIC_LINKER.
5448 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5449 GNU_USER_DYNAMIC_LINKERN32.
5450 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5451 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5452 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5453 GNU_USER_DYNAMIC_LINKER32.
5454 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5456 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5457 GNU_USER_DYNAMIC_LINKER.
5458 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5459 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5460 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5461 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5462 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5463 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5464 GNU_USER_DYNAMIC_LINKER32.
5465 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5466 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5467 GNU_USER_DYNAMIC_LINKER.
5468 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5469 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5470 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5471 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5472 GNU_USER_DYNAMIC_LINKER64.
5473 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5474 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5475 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5476 GNU_USER_DYNAMIC_LINKER.
5477 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5478 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5479 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5480 GNU_USER_DYNAMIC_LINKER.
5481 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5483 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5484 GNU_USER_DYNAMIC_LINKER32.
5485 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5486 GNU_USER_DYNAMIC_LINKER64.
5487 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5488 GNU_USER_DYNAMIC_LINKER64.
5489 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5491 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5492 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5493 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5494
5495 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5496
5497 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5498 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5499 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5500 GNU_USER_DYNAMIC_LINKER.
5501 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5502 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5503 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5504 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5505 GNU_USER_DYNAMIC_LINKER64.
5506 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5507 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5508 GNU_USER_LINK_EMULATION.
5509 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5510 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5511 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5512 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5513 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5514 CPP_SPEC, CC1_SPEC): Remove.
5515 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5516 (GNU_USER_DYNAMIC_LINKER): Define.
5517 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5518 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5519 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5520 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5521 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5522 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5523 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5524 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5525 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5526 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5527 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5528 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5529 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5530 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5531 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5532 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5533 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5534 GNU_USER_DYNAMIC_LINKER.
5535 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5536 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5537 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5538 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5539 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5540 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5541 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5542 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5543 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5544 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5545
5546 2011-04-11 Kai Tietz <ktietz@redhat.com>
5547
5548 PR target/9601
5549 PR target/11772
5550 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5551 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5552 comment.
5553 (ix86_is_msabi_thiscall): Removed.
5554 (ix86_is_type_thiscall): Likewise.
5555 (ix86_get_callcvt): New function.
5556 (ix86_comp_type_attributes): Simplify check.
5557 (ix86_function_regparm): Use ix86_get_callcvt for calling
5558 convention attribute checks.
5559 (ix86_return_pops_args): Likewise.
5560 (ix86_static_chain): Likewise.
5561 (x86_this_parameter): Likewise.
5562 (x86_output_mi_thunk): Likewise.
5563 (ix86_function_type_abi): Optimize check for types without attributes.
5564 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5565 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5566 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5567 by flag-values.
5568 (IX86_BASE_CALLCVT): Helper macro.
5569 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5570 Use ix86_get_callcvt for calling convention attribute checks and avoid
5571 symbol-decoration for stdcall in TARGET_RTD case.
5572 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5573 Likewise.
5574 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5575 for declaration.
5576
5577 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5578
5579 * config/i386/sse.md (VI_128): New mode iterator.
5580 (VI12_128): Rename from SSEMODE12.
5581 (VI14_128): Rename from SSEMODE14.
5582 (VI124_128): New mode iterator.
5583 (VI24_128): Rename from SSEMODE248.
5584 (VI248_128): Rename from SSEMODE248.
5585 (SSEMODE124C8): Remove.
5586 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5587 (*sse2_<plusminus_insn><mode>3): Merge with
5588 *avx_<plusminus_insn><mode>3.
5589 (*mulv8hi3): Merge with *avx_mulv8hi3.
5590 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5591 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5592 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5593 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5594 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5595 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5596 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5597 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5598 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5599 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5600 (*<smaxmin:code>v8hi3): Ditto.
5601 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5602 (*<smaxmin:code>v16qi3): Ditto.
5603 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5604 (*sse2_eq<mode>3): Ditto.
5605 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5606 (*sse2_gt<mode>3): Ditto.
5607 (vcondv2di): Split out of vcond<mode>.
5608 (vconduv2di): Split out of vcondu<mode>.
5609
5610 2011-04-11 Richard Guenther <rguenther@suse.de>
5611
5612 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5613 before calling tree_low_cst.
5614
5615 2011-04-11 Richard Guenther <rguenther@suse.de>
5616
5617 * stor-layout.c (layout_type): Compute all array index size operations
5618 in the original type.
5619 (initialize_sizetypes): Add comment.
5620 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5621
5622 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5623
5624 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5625
5626 2011-04-11 Martin Jambor <mjambor@suse.cz>
5627
5628 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5629 of cgraph_node, handle NULL return value.
5630 (cgraph_global_info): Likewise.
5631 (cgraph_rtl_info): Likewise.
5632 * tree-inline.c (estimate_num_insns): Likewise.
5633 * gimplify.c (unshare_body): Likewise.
5634 (unvisit_body): Likewise.
5635 (gimplify_body): Likewise.
5636 * predict.c (optimize_function_for_size_p): Likewise.
5637 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5638 (call_may_clobber_ref_p_1): Likewise.
5639 * varasm.c (function_section_1): Likewise.
5640 (assemble_start_function): Likewise.
5641
5642 2011-04-11 Martin Jambor <mjambor@suse.cz>
5643
5644 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5645 of cgraph_node.
5646 * final.c (rest_of_clean_state): Likewise.
5647 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5648 * passes.c (pass_init_dump_file): Likewise.
5649 (execute_all_ipa_transforms): Likewise.
5650 (function_called_by_processed_nodes_p): Likewise.
5651 * predict.c (maybe_hot_frequency_p): Likewise.
5652 (probably_never_executed_bb_p): Likewise.
5653 (compute_function_frequency): Likewise.
5654 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5655 (unnest_nesting_tree_1): Likewise.
5656 (lower_nested_functions): Likewise.
5657 * tree-optimize.c (execute_fixup_cfg): Likewise.
5658 (tree_rest_of_compilation): Likewise.
5659 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5660 * tree-sra.c (ipa_early_sra): Likewise.
5661 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5662 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5663 * ipa.c (record_cdtor_fn): Likewise.
5664 * ipa-inline.c (cgraph_early_inlining): Likewise.
5665 (compute_inline_parameters_for_current): Likewise.
5666 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5667 * ipa-pure-const.c (local_pure_const): Likewise.
5668 * ipa-split.c (split_function): Likewise.
5669 (execute_split_functions): Likewise.
5670 * cgraphbuild.c (build_cgraph_edges): Likewise.
5671 (rebuild_cgraph_edges): Likewise.
5672 (cgraph_rebuild_references): Likewise.
5673 (remove_cgraph_callee_edges): Likewise.
5674 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5675 (verify_cgraph_node): Likewise.
5676 (cgraph_analyze_functions): Likewise.
5677 (cgraph_preserve_function_body_p): Likewise.
5678 (save_inline_function_body): Likewise.
5679 (save_inline_function_body): Likewise.
5680 * tree-inline.c (copy_bb): Likewise.
5681 (optimize_inline_calls): Likewise.
5682
5683 2011-04-11 Martin Jambor <mjambor@suse.cz>
5684
5685 PR tree-optimization/48195
5686 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5687 ipa_check_create_edge_args.
5688 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5689 ipa_check_create_edge_args.
5690 * ipa-inline.c (inline_generate_summary): Do not call
5691 ipa_check_create_node_params and ipa_check_create_edge_args.
5692 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5693 ipa_check_create_edge_args.
5694
5695 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5696
5697 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5698 instead of loop.
5699 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5700 * function.c (record_hard_reg_sets): Likewise.
5701 * ira.c (compute_regs_asm_clobbered): Likewise.
5702 * sched-deps.c (sched_analyze_1): Likewise.
5703 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5704
5705 2011-04-09 Xinliang David Li <davidxl@google.com>
5706
5707 PR tree-optimization/PR48484
5708 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5709 has_valid_pred lazily
5710
5711 2011-04-09 Duncan Sands <baldrick@free.fr>
5712
5713 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5714
5715 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5716
5717 * combine.c (combine_validate_cost): Adjust comments. Set registered
5718 cost of I0 to zero at the end, if any.
5719
5720 2011-04-08 Xinliang David Li <davidxl@google.com>
5721
5722 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5723 to insane profile data.
5724
5725 2011-04-08 Xinliang David Li <davidxl@google.com>
5726
5727 * ipa-cp.c (ipcp_update_profiling): Correct
5728 negative scale factor due to insane profile data.
5729
5730 2011-04-08 Xinliang David Li <davidxl@google.com>
5731
5732 * final.c (dump_basic_block_info): New function.
5733 (final): Dump basic block.
5734 (final_scan_insn): Remove old dump.
5735
5736 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5737
5738 PR target/47829
5739 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5740 crtbegin/crtend.
5741
5742 2011-04-08 Michael Matz <matz@suse.de>
5743
5744 PR middle-end/48389
5745 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5746 functions.
5747 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5748 * rtl.h (rebuild_jump_labels_chain): Declare.
5749 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5750 insns inserted on edges.
5751
5752 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5753
5754 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5755 * config/arm/arm-arches.def: New.
5756 * config/arm/arm-opts.h: New.
5757 * config/arm/genopt.sh: New.
5758 * config/arm/arm-tables.opt: New (generated).
5759 * config/arm/arm.c (arm_handle_option, arm_target_help,
5760 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5761 (all_architectures): Get most table contents from arm-arches.def.
5762 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5763 arm_selected_tune here.
5764 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5765 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5766 (march=, mcpu=, mtune=): Use Enum and Var.
5767 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5768 (arm.o): Update dependencies.
5769
5770 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5771
5772 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5773 of header_file.
5774 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5775 (write_typed_alloc_defns): Likewise.
5776 (main): Calls write_typed_alloc_defns with output_header.
5777
5778 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5779
5780 PR inline-asm/48435
5781 * ira-color.c (setup_profitable_hard_regs): Add comments.
5782 Don't take prohibited hard regs into account.
5783 (setup_conflict_profitable_regs): Rename to
5784 get_conflict_profitable_regs.
5785 (check_hard_reg_p): Check prohibited hard regs.
5786
5787 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5788
5789 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5790 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5791 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5792
5793 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5794
5795 PR target/48366
5796 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5797 move from floating point to shift amount register.
5798 (emit_move_sequence): Remove secondary reload support for floating
5799 point to shift amount amount register copies.
5800 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5801 amount register copies.
5802 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5803 register, return false if mode isn't a scalar integer mode.
5804 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5805
5806 2011-04-08 Richard Guenther <rguenther@suse.de>
5807
5808 * gimple.c (gimple_call_flags): Remove kludge.
5809
5810 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5811
5812 * sel-sched.c (sel_region_init): Move call to
5813 sel_setup_region_sched_flags after setup_current_loop_nest.
5814
5815 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5816
5817 PR rtl-optimization/48272
5818 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5819 init_insn_reg_pressure_info. Adjust a caller.
5820 * sched-int.h (init_insn_reg_pressure_info): Declare.
5821 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5822 when sched-pressure is enabled.
5823
5824 2011-04-08 Richard Guenther <rguenther@suse.de>
5825
5826 * gimple.c (gimple_set_modified): Do not queue calls to
5827 MODIFIED_NORETURN_CALLS here ...
5828 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5829
5830 2011-04-08 Richard Guenther <rguenther@suse.de>
5831
5832 PR lto/48467
5833 * toplev.c (lang_dependent_init): Do not open asm_out_file
5834 in WPA mode, nor perform debug machinery initialization.
5835 (finalize): Do not unlink asm_out_file in WPA mode.
5836
5837 2011-04-08 Richard Guenther <rguenther@suse.de>
5838
5839 * gimple.h (gimple_call_fntype): New function.
5840 (gimple_call_return_type): Use it.
5841 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5842 * gimple-low.c (gimple_check_call_args): Likewise.
5843 * gimple.c (gimple_call_flags): Likewise.
5844 (gimple_call_arg_flags): Likewise.
5845 (gimple_call_return_flags): Likewise.
5846 * tree-cfg.c (verify_gimple_call): Likewise.
5847 (do_warn_unused_result): Likewise.
5848 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5849 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5850
5851 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5852
5853 PR rtl-optimization/48235
5854 * sel-sched.c (code_motion_process_successors): Recompute the last
5855 insn in basic block if control flow changed.
5856 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5857 Update condition for ilist_remove.
5858
5859 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5860
5861 PR rtl-optimization/48302
5862 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5863 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5864 it to record added preheader blocks.
5865 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5866 on to sel_add_loop_preheaders.
5867 (sel_region_init): Move call to setup_current_loop_nest after
5868 sel_init_bbs.
5869
5870 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5871
5872 PR target/48273
5873 * cfgloop.h (loop_has_exit_edges): New helper.
5874 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5875 non-clonable.
5876 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5877 that have no exit edges.
5878
5879 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5880
5881 PR rtl-optimization/48442
5882 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5883 all callers. Adjust assert.
5884
5885 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5886
5887 PR tree-optimization/48377
5888 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5889 is_packed to true even for types with smaller TYPE_ALIGN than
5890 TYPE_SIZE.
5891
5892 2011-04-08 Richard Guenther <rguenther@suse.de>
5893
5894 PR bootstrap/48513
5895 * doc/tm.texi: Re-generate.
5896
5897 2011-04-08 Wei Guozhi <carrot@google.com>
5898
5899 PR target/47855
5900 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5901 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5902 * config/arm/arm.md (*push_multi): Change the length computation to
5903 call a C function.
5904
5905 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5906
5907 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5908 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5909 * doc/tm.texi: Regenerate.
5910 * system.h (ASM_OUTPUT_BSS): Poison.
5911 * varasm.c (asm_output_bss): Remove function.
5912 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5913
5914 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5915 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5916 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5917 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5918 Likewise.
5919 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5920 Likewise.
5921 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5922 Likewise.
5923 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5924
5925 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5926
5927 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5928 EnumValue lines.
5929
5930 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5931
5932 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5933 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5934 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5935 OPT_mcpu32.
5936 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5937 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5938 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5939 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5940 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5941 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5942 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5943 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5944 options. Don't map other m68k options manually. Don't handle
5945 old-style options as canonical.
5946 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5947 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5948
5949 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5950
5951 * basic-block.h (force_nonfallthru): Move to...
5952 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5953 (force_nonfallthru): ...here.
5954 * cfghooks.c (force_nonfallthru): New function.
5955 * cfgrtl.c (force_nonfallthru): Rename into...
5956 (rtl_force_nonfallthru): ...this.
5957 (commit_one_edge_insertion): Do not set AUX field.
5958 (commit_edge_insertions): Do not discover new basic blocks.
5959 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5960 (cfg_layout_rtl_cfg_hooks): Likewise.
5961 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5962 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5963 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5964
5965 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5966
5967 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5968 Remove macros.
5969
5970 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5971
5972 * config/i386/sse.md: Update copyright year.
5973 (avxcvtvecmode): Remove.
5974 (sse_movhlps): Merge with *avx_movhlps.
5975 (sse_movlhps): Merge with *avx_movlhps.
5976 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5977 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5978 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5979 (sse_loadhps): Merge with *avx_loadhps.
5980 (sse_storelps): Merge with *avx_storelps.
5981 (sse_loadlps): Merge with *avx_loadlps.
5982 (sse_movss): Merge with *avx_movss.
5983 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5984 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5985 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5986 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5987 (vec_set<mode>_0): Ditto.
5988 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5989 (sse4_1_insertps): Merge with *avx_insertps.
5990 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5991 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5992 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5993 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5994 (sse2_storehpd): Merge with *avx_storehpd.
5995 (sse2_loadhpd): Merge with *avx_loadhpd.
5996 (sse2_loadlpd): Merge with *avx_loadlpd.
5997 (sse2_movsd): Merge with *avx_movsd.
5998 (*vec_concatv2df): Merge with *vec_concatv2df.
5999
6000 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6001
6002 PR debug/48343
6003 * combine.c (combine_instructions): Add last_combined_insn,
6004 update it if insn is after it, pass it to all try_combine calls.
6005 (try_combine): Add last_combined_insn parameter, pass it instead of
6006 i3 to propagate_for_debug.
6007
6008 2011-04-07 Nick Clifton <nickc@redhat.com>
6009
6010 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6011 to handle MDR <-> data register transfers.
6012 (movhi_internal): Likewise.
6013
6014 2011-04-07 Alan Modra <amodra@gmail.com>
6015
6016 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6017 previous stack info.
6018
6019 2011-04-07 Tom de Vries <tom@codesourcery.com>
6020
6021 PR target/43920
6022 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6023 flow_find_cross_jump. Swap variables to implement backward replacement.
6024 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6025
6026 2011-04-07 Tom de Vries <tom@codesourcery.com>
6027
6028 PR target/43920
6029 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6030 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6031 and bb2.
6032 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6033 src1 or src2. Redirect edges to the last basic block. Update
6034 frequency and count on multiple basic blocks in case of fallthru.
6035
6036 2011-04-07 Tom de Vries <tom@codesourcery.com>
6037
6038 PR target/43920
6039 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6040 function.
6041 (old_insns_match_p): Change return type. Replace return false/true
6042 with return dir_none/dir_both. Use can_replace_by.
6043 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6044 direction from dir_p. Register replacement direction in dir, last_dir
6045 and afterlast_dir. Handle new return type of old_insns_match_p using
6046 merge_dir. Return replacement direction in dir_p.
6047 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6048 return type of old_insns_match_p.
6049 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6050 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6051 flow_find_cross_jump.
6052 * basic-block.h (enum replace_direction): New type.
6053 (flow_find_cross_jump): Add parameter to declaration.
6054
6055 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6056
6057 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6058 (AVXMODEDCVTPS2DQ): Ditto.
6059 (VEC_FLOAT_MODE): Ditto.
6060 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6061 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6062 (<any_logic:code><mode>3): Use VF mode iterator.
6063 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6064 Use VF mode iterator.
6065 (copysign<mode>3): Use VF mode iterator.
6066 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6067 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6068 (*<any_logic:code><MODEF:mode>3): Merge with
6069 *avx_<any_logic:code><MODEF:mode>3.
6070 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6071 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6072 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6073 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6074 (sse2_cvtdq2ps): Use %v modifier.
6075 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6076 (avx_cvtps2dq<avxmodesuffix>): Remove.
6077 (sse2_cvtps2dq): Use %v modifier.
6078 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6079 (avx_cvttps2dq<avxmodesuffix>): Remove.
6080 (sse2_cvttps2dq): Use %v modifier.
6081 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6082 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6083 (sse2_cvtsd2siq): Fix insn template.
6084 (sse2_cvtsd2siq_2): Ditto.
6085 (sse2_cvttsd2siq): Ditto.
6086 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6087 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6088
6089 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6090
6091 * gcov-io.c: Use GCC Runtime Library Exception.
6092
6093 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6094
6095 PR debug/48466
6096 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6097 as base_reg whatever register reg has been eliminated to, instead
6098 of hardcoding STACK_POINTER_REGNUM.
6099
6100 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6101
6102 * doc/tm.texi.in: Document C target hooks as separate from general
6103 target hooks.
6104 * doc/tm.texi: Regenerate.
6105 * genhooks.c (struct hook_desc): Add docname field.
6106 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6107 docname field.
6108 (hook_array): Include c-target.def.
6109 (emit_documentation): Use docname field in output.
6110 (emit_init_macros): Take docname argument. Only emit definitions
6111 for hooks matching docname.
6112 (main): Expect additional arguments in all cases. Pass argument
6113 to emit_init_macros.
6114 * target.def: Move initial macro definitions and comments to
6115 target-hooks-macros.h.
6116 (gcc_targetcm): Move to c-family/c-target.def.
6117 * target.h (targetcm): Move declaration to c-family/c-target.h.
6118 * targhooks.c (default_handle_c_option): Move to
6119 c-family/c-opts.c.
6120 * targhooks.h (default_handle_c_option): Move declaration to
6121 c-family/c-common.h.
6122 * target-hooks-macros.h: New file.
6123 * config.gcc (target_has_targetcm): Define and use to add to
6124 c_target_objs and cxx_target_objs.
6125 * config/default-c.c: New file.
6126 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6127 of target.h and target-def.h.
6128 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6129 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6130 darwin_check_cfstring_format_arg): Make static.
6131 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6132 TARGET_STRING_OBJECT_REF_TYPE_P,
6133 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6134 * config/darwin-protos.h (darwin_objc_construct_string,
6135 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6136 declare.
6137 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6138 TARGET_STRING_OBJECT_REF_TYPE_P,
6139 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6140 * config/t-darwin (darwin-c.o): Update dependencies.
6141 * system.h (TARGET_HAS_TARGETCM): Poison.
6142 * Makefile.in (TARGET_H): Update.
6143 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6144 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6145 (default-c.o): New target.
6146 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6147 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6148 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6149 c-target.def.
6150 (build/genhooks.o): Update dependencies.
6151
6152 2011-04-06 Richard Guenther <rguenther@suse.de>
6153
6154 * ipa-inline.c (enum inlining_mode): Remove.
6155 (cgraph_flatten): Use some other token.
6156 (cgraph_edge_early_inlinable_p): New function, split out from ...
6157 (cgraph_perform_always_inlining): New function, split out from ...
6158 (cgraph_decide_inlining_incrementally): ... here.
6159 (cgraph_mark_inline_edge): Adjust.
6160 (cgraph_early_inlining): Re-structure.
6161 (pass_early_inline): Require SSA form.
6162
6163 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6164 Julian Brown <julian@codesourcery.com>
6165 Mark Shinwell <shinwell@codesourcery.com>
6166
6167 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6168 LO_REGS only for Thumb-1.
6169 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6170 be used in short instructions when optimising for size on Thumb-2.
6171
6172 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6173
6174 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6175 associated with user returns to be preserved.
6176
6177 2011-04-06 Tristan Gingold <gingold@adacore.com>
6178
6179 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6180 symbol_queue_size, DBXOUT_DECR_NESTING,
6181 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6182 if XCOFF_DEBUGGING_INFO.
6183
6184 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6185
6186 * config/i386/i386.md (attribute isa): New.
6187 (attribute enabled): New.
6188 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6189 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6190 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6191 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6192 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6193 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6194 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6195 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6196
6197 * config/i386/sse.md (VF): New mode iterator.
6198 (VF1): Ditto.
6199 (VF2): Ditto.
6200 (VF_128): Ditto.
6201 (SSEMODEF4): Remove.
6202 (attribute sse): Handle V8SF and V4DF modes.
6203 (<absneg:code><mode>2): Use VF mode iterator.
6204 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6205 mode iterator.
6206 (<plusminus_insn><mode>3): Use VF mode iterator.
6207 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6208 Use VF mode iterator.
6209 (<sse>_vm<plusminus_insn><mode>3): Merge with
6210 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6211 (mul<mode>3): Use VF mode iterator.
6212 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6213 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6214 mode iterator.
6215 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6216 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6217 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6218 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6219 mode iterator.
6220 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6221 Use VF1 mode iterator.
6222 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6223 (sqrt<VF2:mode>2): New expander.
6224 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6225 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6226 and sqrtv2df2. Use VF mode iterator.
6227 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6228 mode iterator.
6229 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6230 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6231 Use VF1 mode iterator.
6232 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6233 (<smaxmin:code><mode>3): Use VF mode iterator.
6234 (*<smaxmin:code><mode>3_finite): Merge with
6235 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6236 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6237 (<sse>_vm<smaxmin:code><mode>2): Merge with
6238 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6239 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6240 mode iterator.
6241 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6242 mode iterator.
6243 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6244 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6245 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6246 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6247 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6248 VF mode iterator.
6249 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6250 Use VF_128 mode iterator.
6251 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6252 mode iterator.
6253 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6254 VF_128 mode iterator.
6255 (vcond<mode>): Use VF mode iterator.
6256 * config/i386/predicates.md (sse_comparison_operator): Merge with
6257 avx_comparison_float_operator. Do not declare as special_predicate.
6258 * config/i386/i386.c (struct builtin_description): Update for renamed
6259 compare patterns.
6260 (ix86_expand_args_builtin): Ditto.
6261 (ix86_expand_sse_compare_mask): Ditto.
6262
6263 2011-04-06 Richard Guenther <rguenther@suse.de>
6264
6265 * tree-inline.c (estimate_num_insns): For calls simply account
6266 for all passed arguments and a used return value.
6267
6268 2011-04-06 Richard Guenther <rguenther@suse.de>
6269
6270 PR tree-optimization/47663
6271 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6272 call_stmt_time fields.
6273 (cgraph_edge_inlinable_p): Declare.
6274 (cgraph_edge_recursive_p): New inline function.
6275 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6276 (cgraph_clone_edge): Copy it.
6277 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6278 Account for call stmt time.
6279 (cgraph_estimate_time_after_inlining): Take edge argument.
6280 (cgraph_estimate_edge_growth): Account call stmt size.
6281 (cgraph_estimate_size_after_inlining): Take edge argument.
6282 (cgraph_mark_inline_edge): Adjust.
6283 (cgraph_check_inline_limits): Likewise.
6284 (cgraph_recursive_inlining_p): Remove.
6285 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6286 (cgraph_decide_recursive_inlining): Take edge argument and
6287 adjust.
6288 (cgraph_decide_inlining_of_small_functions): Do not avoid
6289 diags for recursive inlining here.
6290 (cgraph_flatten): Adjust.
6291 (cgraph_decide_inlining_incrementally): Likewise.
6292 (estimate_function_body_sizes): Remove call cost handling.
6293 (compute_inline_parameters): Initialize caller edge call costs.
6294 (cgraph_estimate_edge_growth): New function.
6295 (cgraph_estimate_growth): Use it.
6296 (cgraph_edge_badness): Likewise.
6297 (cgraph_check_inline_limits): Take an edge argument.
6298 (cgraph_decide_inlining_of_small_functions): Adjust.
6299 (cgraph_decide_inlining): Likewise.
6300 * tree-inline.c (estimate_num_insns): Only account for call
6301 return value if it is used.
6302 (expand_call_inline): Avoid diagnostics on recursive inline
6303 functions here.
6304 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6305 (input_edge): Input edge call costs.
6306
6307 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6308
6309 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6310
6311 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6312
6313 * doc/invoke.texi (Spec Files): Fix typo.
6314
6315 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6316
6317 * profile.c (branch_prob): Move declaration of local variable. Remove
6318 obsolete ??? comment. Expand the location explicitly instead of using
6319 the LOCATION_FILE and LOCATION_LINE macros.
6320
6321 2011-04-06 Wei Guozhi <carrot@google.com>
6322
6323 PR target/47855
6324 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6325 (arm_cond_branch): Likewise.
6326 (arm_cond_branch_reversed): Likewise.
6327 (arm_jump): Likewise.
6328 (push_multi): Likewise.
6329 * config/arm/constraints.md (Py): New constraint.
6330
6331 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6332
6333 PR bootstrap/48471
6334 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6335 Move these...
6336 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6337 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6338 #ifdef DBX_DEBUGGING_INFO.
6339
6340 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6341
6342 PR bootstrap/48403
6343 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6344 if old and new states differ.
6345
6346 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6347
6348 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6349 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6350 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6351 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6352 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6353 mcfv4e): Use Alias.
6354 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6355 ColdFire options to -mcpu= options.
6356
6357 2011-04-05 Jeff Law <law@redhat.com>
6358
6359 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6360 check if BB is a successor of LOOP->header and return
6361 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6362
6363 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6364
6365 * cprop.c (struct reg_use): Remove.
6366 (reg_use_table): Make an array of RTX.
6367 (find_used_regs, constprop_register, local_cprop_pass,
6368 bypass_block): Simplify users of reg_use_table.
6369 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6370 on one of the uses found by find_used_regs.
6371
6372 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6373
6374 PR bootstrap/48469
6375 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6376 declaration.
6377
6378 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6379
6380 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6381 as an rtx.
6382 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6383
6384 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6385
6386 PR middle-end/48441
6387 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6388
6389 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6390
6391 * combine.c: Include obstack.h.
6392 (struct insn_link): Define.
6393 (uid_log_links): Adjust type.
6394 (FOR_EACH_LOG_LINK): New macro.
6395 (insn_link_obstack): Declare.
6396 (alloc_insn_link): Define.
6397 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6398 type of link variables.
6399 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6400 (try_combine, record_promoted_values, distribute_notes): Likewise.
6401 (distribute_links): Likewise. Tweak prototype.
6402 (clear_log_links): Delete.
6403 (adjust_for_new_dest): Call alloc_insn_link.
6404 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6405
6406 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6407
6408 * gcse.c (modify_mem_list): Convert to an array of VECs.
6409 (canon_modify_mem_list, compute_transp): Tweak formatting.
6410 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6411 (load_killed_in_block_p): Likewise.
6412 (record_last_mem_set_info): Likewise.
6413 (clear_modify_mem_tables): Likewise.
6414
6415 2011-04-05 Tom de Vries <tom@codesourcery.com>
6416
6417 PR middle-end/48461
6418 * function.c (emit_use_return_register_into_block): Only define if
6419 HAVE_return.
6420
6421 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6422
6423 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6424
6425 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6426
6427 * config/rx/rx-opts.h: New.
6428 * config/rx/rx.c (rx_cpu_type): Remove.
6429 (rx_handle_option): Don't assert that global structures are in
6430 use. Access variables via opts pointer. Defer most handling of
6431 OPT_mint_register_. Use error_at.
6432 (rx_option_override): Handle deferred OPT_mint_register_ here.
6433 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6434 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6435 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6436 (rx_cpu_types): New Enum and EnumValue entries.
6437 (mint-register=): Use Defer and use Var accordingly.
6438
6439 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6440
6441 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6442 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6443 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6444 Move these...
6445 (debug_free_queue, debug_nesting, symbol_queue_index):
6446 ...and these...
6447 * dbxout.c: ...to here. Make static.
6448
6449 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6450
6451 * gcse.c (modify_pair): Define. Define a VEC of it.
6452 (canon_modify_mem_list): Convert to an array of VECs.
6453 (free_insn_expr_list_list): Delete.
6454 (clear_modify_mem_tables): Call VEC_free instead.
6455 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6456 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6457 (canon_list_insert, compute_transp): Likewise.
6458
6459 2011-04-05 Tom de Vries <tom@codesourcery.com>
6460
6461 PR target/43920
6462 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6463 for size.
6464
6465 2011-04-05 Tom de Vries <tom@codesourcery.com>
6466
6467 PR target/43920
6468 * function.c (emit_use_return_register_into_block): New function.
6469 (thread_prologue_and_epilogue_insns): Use
6470 emit_use_return_register_into_block.
6471
6472 2011-04-05 Tom de Vries <tom@codesourcery.com>
6473
6474 PR target/43920
6475 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6476 insn.
6477
6478 2011-04-05 Tom de Vries <tom@codesourcery.com>
6479
6480 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6481
6482 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6483
6484 * config/arm/arm.md (define_constants for unspec): Replace with
6485 define_c_enum.
6486 (define_constants for unspecv): Replace with define_c_enum.
6487 * config/arm/neon.md (define_constants for unspec): Replace with
6488 define_c_enum.
6489
6490 2011-04-04 Richard Henderson <rth@redhat.com>
6491
6492 PR bootstrap/48400
6493 * dwarf2out.c (output_line_info): Always emit line info from
6494 at least one section.
6495 (dwarf2out_init): Create text_section_line_info here ...
6496 (set_cur_line_info_table): ... not here.
6497
6498 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6499
6500 PR target/48380
6501 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6502 not called.
6503
6504 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6505
6506 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6507
6508 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6509 (expr_equiv_p): Remove.
6510 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6511 (hash_scan_set): Update call to insert_set_in_table.
6512 (dump_hash_table): Dump <dest, src> pair.
6513 (lookup_set): Simplify. Lookup <dest, src> pair.
6514 (compute_transp): Remove, fold heavily simplified code into...
6515 (compute_local_properties): ...here. Expect COMP and TRANSP
6516 unconditionally.
6517 (find_avail_set): Take set directly from struct expr.
6518 (find_bypass-set): Likewise.
6519 (bypass_block): Likewise.
6520 (cprop_insn): Likewise. Remove redundant INSN_P test.
6521
6522 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6523 checks on form of COND from find_implicit_sets to here.
6524 (find_implicit_sets): Cleanup control flow. Split critical edges
6525 if it exposes implicit sets. Allocate/resize implicit_sets as
6526 necessary.
6527 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6528 changed something. Run df_analyze after find_implicit_sets if any
6529 edges were split. Do not allocate implicit_sets here.
6530
6531 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6532 (gcse_obstack): Renamed to cprop_obstack.
6533 (GNEW, GNEWVEC, GNEWVAR): Remove.
6534 (gmalloc): Remove.
6535 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6536 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6537 (gcse_alloc): Likewise, and rename to cprop_alloc.
6538 (alloc_gcse_men, free_gcse_mem): Remove.
6539 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6540 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6541 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6542
6543 * cprop.c (oprs_not_set_p): Remove.
6544 (mark_set, mark_clobber): Remove.
6545 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6546 (reg_not_set_p): New function.
6547 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6548 (cprop_insn): Likewise.
6549 (cprop_jump): Use FOR_EACH_EDGE.
6550
6551 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6552
6553 PR bootstrap/48403
6554 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6555 (rank_for_schedule): Use scheduled_insns vector instead of
6556 last_scheduled_insn.
6557 (ok_for_early_queue_removal): Likewise.
6558 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6559 we have a dbg_cnt.
6560 (choose_ready): Likewise.
6561 (commit_schedule): Use VEC_iterate.
6562 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6563 a dbg_cnt, use it and ensure the first insn is in the ready list.
6564 (haifa_sched_init): Allocate scheduled_insns.
6565 (sched_extend_ready_list): Don't allocate it; reserve space.
6566 (haifa_sched_finish): Free it.
6567
6568 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6569
6570 * optc-gen.awk: Always remove type from Variable entry before
6571 recording in var_seen.
6572
6573 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6574
6575 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6576 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6577 call to tidy_fallthru_edges.
6578
6579 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6580
6581 * doc/options.texi (ToLower): Document.
6582 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6583 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6584 * opts.h (cl_option): Add cl_tolower field.
6585 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6586 arguments with lowercase strings.
6587 * config/rx/rx.opt (mcpu=): Add ToLower.
6588 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6589 argument.
6590
6591 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6592
6593 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6594
6595 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6596
6597 * config/vax/vax.c: Include reload.h.
6598
6599 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6600
6601 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6602 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6603 (sparc_preferred_reload_class): New function.
6604
6605 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6606
6607 PR debug/48401
6608 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6609 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6610
6611 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6612
6613 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6614 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6615
6616 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6617
6618 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6619 (ASM_OUTPUT_ALIGNED_BSS): Define.
6620
6621 2011-04-03 Michael Matz <matz@suse.de>
6622
6623 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6624 and next_slot members.
6625 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6626 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6627 (lto_streamer_cache_append): Declare.
6628 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6629 unsigned index, remove offset parameter, ensure that we append
6630 or update existing entries.
6631 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6632 parameter, update next_slot for append.
6633 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6634 parameter.
6635 (lto_streamer_cache_insert_at): Likewise.
6636 (lto_streamer_cache_append): New function.
6637 (lto_streamer_cache_lookup): Use unsigned index.
6638 (lto_streamer_cache_get): Likewise.
6639 (lto_record_common_node): Don't test tree_node_can_be_shared.
6640 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6641 (lto_streamer_cache_delete): Don't free offsets member.
6642 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6643 (lto_output_string_with_length): Use lto_output_data_stream.
6644 (lto_output_tree_header): Remove ix parameter, don't write it.
6645 (lto_output_builtin_tree): Likewise.
6646 (lto_write_tree): Adjust callers to above, don't track and write
6647 offset, write unsigned index.
6648 (output_unreferenced_globals): Don't emit all global vars.
6649 (write_global_references): Use unsigned indices.
6650 (lto_output_decl_state_refs): Likewise.
6651 (write_symbol): Likewise.
6652 * lto-streamer-in.c (lto_input_chain): Move earlier.
6653 (input_function): Use unsigned index.
6654 (input_alias_pairs): Don't read and then ignore all global vars.
6655 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6656 don't pass it back, use lto_streamer_cache_append.
6657 (lto_register_var_decl_in_symtab): Use unsigned index.
6658 (lto_register_function_decl_in_symtab): Likewise.
6659 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6660 index.
6661 (lto_get_builtin_tree): Don't read index, use
6662 lto_streamer_cache_append.
6663 (lto_read_tree): Adjust call to lto_materialize_tree.
6664
6665 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6666 don't use function calls in arguments to MIN.
6667
6668 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6669 twice.
6670
6671 * gimple.c (gimple_type_leader_entry): Mark deletable.
6672
6673 2011-04-03 Alan Modra <amodra@gmail.com>
6674
6675 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6676
6677 2011-04-03 Michael Matz <matz@suse.de>
6678
6679 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6680 an integer.
6681 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6682
6683 2011-04-03 Michael Matz <matz@suse.de>
6684
6685 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6686 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6687 without function context.
6688 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6689 current_function_decl and cfun.
6690
6691 2011-04-03 Michael Matz <matz@suse.de>
6692
6693 * tree.c (decl_init_priority_insert): Don't create entry for
6694 default priority.
6695 (decl_fini_priority_insert): Ditto.
6696 (fields_compatible_p, find_compatible_field): Remove.
6697 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6698 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6699
6700 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6701
6702 * combine.c (try_combine): Remove useless local variable.
6703
6704 2011-04-03 Richard Guenther <rguenther@suse.de>
6705 Ira Rosen <ira.rosen@linaro.org>
6706
6707 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6708 non-variable offsets and compare the remaining bases of the two
6709 accesses instead of looking for exact same data-ref.
6710
6711 2011-04-02 Kai Tietz <ktietz@redhat.com>
6712
6713 PR target/48416
6714 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6715
6716 * i386.c (ix86_is_msabi_thiscall): New helper function.
6717 (ix86_is_type_thiscall): New helper function.
6718 (ix86_comp_type_attributes): Handle thiscall for method-functions
6719 special.
6720 (init_cumulative_args): Likewise.
6721 (find_drap_reg): Likewise.
6722 (ix86_static_chain): Likewise.
6723 (x86_this_parameter): Likewise.
6724 (x86_output_mi_thunk): Likewise.
6725
6726 2011-04-01 Olivier Hainque <hainque@adacore.com>
6727 Nicolas Setton <setton@adacore.com>
6728 Eric Botcazou <ebotcazou@adacore.com>
6729
6730 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6731 (add_gnat_descriptive_type_attribute): New function.
6732 (gen_array_type_die): Call it.
6733 (gen_enumeration_type_die): Likewise.
6734 (gen_struct_or_union_type_die): Likewise.
6735 (modified_type_die): Likewise.
6736 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6737 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6738 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6739
6740 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6741
6742 PR bootstrap/48148
6743 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6744 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6745
6746 Revert:
6747 2011-03-17 Richard Guenther <rguenther@suse.de>
6748
6749 PR bootstrap/48148
6750 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6751 origin for decls in other ltrans units.
6752 (input_varpool_node): Likewise.
6753
6754 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6755
6756 PR middle-end/48335
6757 * expr.c (expand_assignment): Handle all possibilities
6758 if TO_RTX is CONCAT.
6759 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6760 (store_split_bit_field): If SUBREG_REG (op0) or
6761 op0 itself has smaller mode than word, return it
6762 for offset 0 and const0_rtx for out-of-bounds stores.
6763 If word is const0_rtx, skip it.
6764
6765 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6766
6767 * config/h8300/h8300.c (print_operand_address): Rename to...
6768 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6769 Call h8300_print_operand and h8300_print_operand_address instead of
6770 print_operand and print_operand_address. Declare.
6771 (print_operand): Renake to...
6772 (h8300_print_operand): ...this. Make static. Adjust comments.
6773 Call h8300_print_operand instead of print_operand. Declare.
6774 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6775 (h8300_register_move_cost): Likewise.
6776 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6777 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6778 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6779 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6780 * config/h8300/h8300-protos.h (print_operand): Delete.
6781 (print_operand_address): Delete.
6782
6783 2011-04-01 Richard Henderson <rth@redhat.com>
6784
6785 PR 48400
6786 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6787 in strict mode before dwarf4. Re-order tests to early out
6788 before switching sections.
6789
6790 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6791
6792 * config/h8300/constraints.md: New file.
6793 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6794 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6795 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6796 * config/h8300/predicates.md (bit_operand): Likewise.
6797 (incdec_operand): Use satisfies_constraint_M and
6798 satisfies_constraint_O. Don't use C code block.
6799 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6800 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6801 (compute_mov_length): Use satisfies_constraint_G.
6802 (fix_bit_operand): Use satisfies_constraint_U.
6803 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6804 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6805 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6806 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6807 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6808 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6809 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6810 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6811 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6812 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6813 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6814 (EXTRA_MEMORY_CONSTRAINT): Delete.
6815
6816 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6817 Michael Meissner <meissner@linux.vnet.ibm.com>
6818
6819 PR target/48262
6820 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6821 operands, as per the specifications.
6822
6823 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6824 (vec_extract_evenv4sf): Ditto.
6825 (vec_extract_evenv8hi): Ditto.
6826 (vec_extract_evenv16qi): Ditto.
6827 (vec_extract_oddv4si): Ditto.
6828
6829 2011-03-31 Mark Wielaard <mjw@redhat.com>
6830
6831 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6832 high_pc attribute if the CU has no associated code. Only output
6833 DW_AT_entry_pc for CU if not generating strict dwarf and
6834 dwarf_version < 4.
6835
6836 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6837
6838 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6839 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6840 out of ...
6841 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6842 * final.c (final_start_function): Call the new function rather
6843 than using a NULL argument for dwarf2out_frame_debug.
6844
6845 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6846 that contains the prologue.
6847
6848 * haifa-sched.c (queue_insn): New arg REASON. All callers
6849 changed. Print it in debugging output.
6850
6851 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6852
6853 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6854 Split most of the code into...
6855 (begin_move_insn): ... here. New function.
6856 (ebb_sched_info): Add a pointer to it.
6857 * haifa-sched.c (scheduled_insns): New static variable.
6858 (sched_extend_ready_list): Allocate it.
6859 (schedule_block): Use it to record the order of scheduled insns.
6860 Perform RTL changes to move insns only after all scheduling
6861 decisions have been made.
6862 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6863 begin_move_insn field.
6864 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6865 * sched-int.h (struct haifa_sched_info): Remove second argument
6866 from begin_schedule_ready hook. Add new member begin_move_insn.
6867 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6868 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6869
6870 * haifa-sched.c (prune_ready_list): New function, broken out of
6871 schedule_block.
6872 (schedule_block): Use it.
6873
6874 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6875
6876 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6877
6878 2011-04-01 Kai Tietz <ktietz@redhat.com>
6879
6880 * config.gcc (*-*-mingw*): Allow as option the
6881 posix threading model.
6882 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6883 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6884 definition.
6885 (CPP_SPEC): Add pthread/no-pthread handling.
6886 (LIB_SPEC): Likewise.
6887 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6888 (LIB_SPEC): Likewise.
6889 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6890 flag to pass -pthread option for shared libgcc build.
6891 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6892 for shared libgcc build.
6893 * config/i386/t-mingw-pthread: New file.
6894 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6895 New define to enable use of library pthread by default.
6896 * config/i386/mingw.opt (pthread): New driver option.
6897 (no-pthread): New driver option.
6898 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6899 * config/i386/mingw-w64.opt: Likewise.
6900
6901 2011-04-01 Gary Funck <gary@intrepid.com>
6902
6903 * c-decl.c (grokdeclarator): Fix formatting.
6904
6905 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6906
6907 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6908 instead of n_operands.
6909 (set_storage_via_setmem): Likewise.
6910 * optabs.c (maybe_gen_insn): Likewise.
6911 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6912 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6913 (mips_expand_builtin_direct): Likewise.
6914 * config/spu/spu.c (expand_builtin_args): Likewise.
6915
6916 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6917
6918 * recog.h (insn_data_d): Add n_generator_args.
6919 * genoutput.c (data): Likewise.
6920 (output_insn_data): Print it.
6921 (max_opno, num_dups): Delete.
6922 (scan_operands): Just fill in "d->operand[...]".
6923 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6924
6925 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6926
6927 * gensupport.h (pattern_stats): New structure.
6928 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6929 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6930 (max_operand_1, max_operand_vec): Delete.
6931 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6932
6933 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6934
6935 * emit-rtl.c (emit_pattern_after_setloc): New function.
6936 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6937 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6938 (emit_pattern_after): New function.
6939 (emit_insn_after, emit_jump_insn_after): Call it.
6940 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6941 (emit_pattern_before_setloc): New function.
6942 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6943 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6944 Likewise.
6945 (emit_pattern_before): New function.
6946 (emit_insn_before, emit_jump_insn_before): Call it.
6947 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6948
6949 2011-03-31 Richard Henderson <rth@redhat.com>
6950
6951 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6952 (dw_separate_line_info_entry): Remove.
6953 (enum dw_line_info_opcode): New.
6954 (dw_line_info_entry): Use it.
6955 (dw_line_info_table, dw_line_info_table_p): New.
6956 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6957 (line_info_table, line_info_label_num): Remove.
6958 (line_info_table_in_use): Remove.
6959 (separate_line_info_table): Remove.
6960 (separate_line_info_table_allocated): Remove.
6961 (separate_line_info_table_in_use): Remove.
6962 (LINE_INFO_TABLE_INCREMENT): Remove.
6963 (line_info_label_num): New.
6964 (cur_line_info_table): New.
6965 (text_section_line_info, cold_text_section_line_info): New.
6966 (separate_line_info): New.
6967 (SEPARATE_LINE_CODE_LABEL): Remove.
6968 (print_dwarf_line_table): Remove.
6969 (debug_dwarf): Don't dump it.
6970 (output_one_line_info_table): New.
6971 (output_line_info): Use it.
6972 (new_line_info_table): New.
6973 (set_cur_line_info_table): New.
6974 (dwarf2out_switch_text_section): Use it.
6975 (dwarf2out_begin_function): Likewise.
6976 (push_dw_line_info_entry): New.
6977 (dwarf2out_source_line): Rewrite for new line info tables.
6978 (dwarf2out_init): Remove dead initailizations.
6979
6980 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6981
6982 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6983 various flags.
6984 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6985 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6986 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6987 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6988 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6989 * opt-functions.awk (flag_init, switch_bit_fields): New.
6990 (switch_flags): Don't handle flags moved to bit-fields. Don't
6991 generate CL_MISSING_OK or CL_SAVE.
6992 * optc-gen.awk: Update to generate bit-field output as well as
6993 flags field.
6994 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6995 bit-field instead of CL_REJECT_DRIVER flag.
6996 * opts-common.c (generate_canonical_option,
6997 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6998 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6999 instead of CL_REJECT_NEGATIVE flag.
7000 * toplev.c (print_switch_values): Use cl_report bit-field instead
7001 of CL_REPORT flag.
7002
7003 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7004
7005 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7006 a zero minimum index only if it is redundant.
7007
7008 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7009
7010 PR rtl-optimization/48381
7011 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7012 instead of ira_class_hard_reg_index for calculating conflicting
7013 hard registers.
7014
7015 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7016
7017 * cprop.c: Clean up hash table building.
7018 (reg_avail_info): Remove.
7019 (oprs_available_p): Remove.
7020 (record_last_reg_set_info): Remove.
7021 (record_last_set_info): Remove.
7022 (reg_available_p): New function.
7023 (gcse_constant_p): Do not treat unfolded conditions as constants.
7024 (make_set_regs_unavailable): New function.
7025 (hash_scan_set): Simplify with new reg_available_p.
7026 (compute_hash_table_work): Traverse insns stream only once.
7027 Do not compute reg_avail_info. Traverse insns in reverse order.
7028 Record implicit sets after recording explicit sets from the block.
7029
7030 2011-03-31 Michael Matz <matz@suse.de>
7031
7032 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7033
7034 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7035
7036 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7037 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7038 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7039 (h8300_mode_dependent_address_p): New function.
7040 (h8300_get_index): Make static.
7041
7042 2011-03-31 Jeff Law <law@redhat.com>
7043
7044 * reload1.c (elimination_effects): Fix typo in recent change.
7045
7046 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7047 typo potentially leading to null pointer dereference.
7048
7049 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7050 (setup_save_areas): Corresponding changes to avoid useless
7051 assignments.
7052
7053 * jump.c (reversed_comparison_code_parts): Avoid successive return
7054 statements when REVERSE_CONDITION is defined.
7055
7056 * expr.c (expand_assignment): Avoid useless assignments.
7057 (expand_expr_real_1): Likewise.
7058 (expand_expr_real_2): Avoid useless statements.
7059
7060 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7061
7062 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7063
7064 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7065 statements.
7066
7067 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7068
7069 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7070
7071 PR target/47109
7072 * doc/tm.texi.in (TARGET_VERSION): Remove.
7073 * doc/tm.texi: Regenerate.
7074 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7075 * collect2.c (main): Don't use TARGET_VERSION.
7076 * mips-tdump.c (main): Don't use TARGET_VERSION.
7077 * mips-tfile.c (main): Don't use TARGET_VERSION.
7078 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7079 * config/rs6000/vxworksae.h: Remove.
7080 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7081 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7082 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7083 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7084 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7085 * config/arm/arm.h (TARGET_VERSION): Remove.
7086 * config/arm/coff.h (TARGET_VERSION): Remove.
7087 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7088 * config/arm/elf.h (TARGET_VERSION): Remove.
7089 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7090 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7091 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7092 * config/arm/pe.h (TARGET_VERSION): Remove.
7093 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7094 * config/arm/semi.h (TARGET_VERSION): Remove.
7095 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7096 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7097 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7098 * config/avr/avr.h (TARGET_VERSION): Remove.
7099 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7100 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7101 * config/frv/frv.h (TARGET_VERSION): Remove.
7102 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7103 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7104 * config/i386/darwin.h (TARGET_VERSION): Remove.
7105 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7106 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7107 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7108 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7109 * config/i386/gnu.h (TARGET_VERSION): Remove.
7110 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7111 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7112 * config/i386/linux.h (TARGET_VERSION): Remove.
7113 * config/i386/linux64.h (TARGET_VERSION): Remove.
7114 * config/i386/lynx.h (TARGET_VERSION): Remove.
7115 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7116 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7117 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7118 * config/i386/netware.h (TARGET_VERSION): Remove.
7119 * config/i386/nto.h (TARGET_VERSION): Remove.
7120 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7121 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7122 * config/ia64/elf.h (TARGET_VERSION): Remove.
7123 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7124 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7125 * config/ia64/linux.h (TARGET_VERSION): Remove.
7126 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7127 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7128 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7129 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7130 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7131 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7132 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7133 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7134 * config/m68k/linux.h (TARGET_VERSION): Remove.
7135 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7136 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7137 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7138 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7139 * config/mep/mep.h (TARGET_VERSION): Remove.
7140 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7141 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7142 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7143 * config/mips/linux.h (TARGET_VERSION): Remove.
7144 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7145 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7146 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7147 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7148 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7149 * config/pa/pa.h (TARGET_VERSION): Remove.
7150 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7151 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7152 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7153 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7154 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7155 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7156 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7157 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7158 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7159 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7160 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7161 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7162 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7163 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7164 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7165 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7166 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7167 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7168 * config/s390/linux.h (TARGET_VERSION): Remove.
7169 * config/s390/s390.h (TARGET_VERSION): Remove.
7170 * config/s390/tpf.h (TARGET_VERSION): Remove.
7171 * config/score/score.h (TARGET_VERSION): Remove.
7172 * config/sh/linux.h (TARGET_VERSION): Remove.
7173 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7174 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7175 * config/sh/sh.h (TARGET_VERSION): Remove.
7176 * config/sh/sh64.h (TARGET_VERSION): Remove.
7177 * config/sh/superh.h (TARGET_VERSION): Remove.
7178 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7179 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7180 * config/sparc/linux.h (TARGET_VERSION): Remove.
7181 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7182 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7183 TARGET_NAME32, TARGET_NAME): Remove.
7184 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7185 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7186 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7187 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7188 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7189 * config/spu/spu.h (TARGET_VERSION): Remove.
7190 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7191 * config/v850/v850.h (TARGET_VERSION): Remove.
7192 * config/vax/linux.h (TARGET_VERSION): Remove.
7193 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7194 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7195 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7196
7197 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7198
7199 PR target/48142
7200 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7201 frame-related from frame-unrelated adjustments to the stack pointer.
7202
7203 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7204
7205 * common.opt (fdebug-types-section): Move earlier.
7206 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7207
7208 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7209
7210 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7211 var.
7212
7213 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7214
7215 * tree.h (CASE_CHAIN): Define.
7216 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7217 (gimple_redirect_edge_and_branch): Likewise.
7218
7219 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7220
7221 PR middle-end/48367
7222 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7223 calculation.
7224
7225 2011-03-30 Jeff Law <law@redhat.com>
7226
7227 * PR bootstrap/48371
7228 * reload1.c (reload): Fix botch in last change.
7229
7230 * reload.h (struct reload): Fix typo introduced in last change.
7231
7232 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7233
7234 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7235 Undocumented. Remove help text.
7236 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7237 -mhard-float.
7238
7239 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7240
7241 * doc/options.texi (NegativeAlias): Document.
7242 (Alias): Mention NegativeAlias.
7243 * opt-functions.awk: Handle NegativeAlias.
7244 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7245 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7246 * opts.h (CL_NEGATIVE_ALIAS): Define.
7247 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7248 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7249 OPT_mspe_.
7250 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7251 Alias entries.
7252 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7253 mno-spe and mno-isel instead of mspe=no and -misel=no.
7254
7255 2011-03-29 Mark Wielaard <mjw@redhat.com>
7256
7257 * common.opt (fdebug-types-section): New flag.
7258 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7259 * dwarf2out.c (use_debug_types): New define.
7260 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7261 (print_die): Guard output of type unit signatures using
7262 use_debug_types.
7263 (build_abbrev_table): Replace assert of dwarf_version >= 4
7264 with assert on use_debug_types.
7265 (size_of_die): Likewise.
7266 (unmark_dies): Likewise.
7267 (value_format): Decide AT_ref_external form on use_debug_types.
7268 (output_die): Replace dwarf_version version check guard with
7269 use_debug_types where appropriate.
7270 (modified_type_die): Likewise.
7271 (gen_reference_type_die): Likewise.
7272 (dwarf2out_start_source_file): Likewise.
7273 (dwarf2out_end_source_file): Likewise.
7274 (prune_unused_types_walk_attribs): Likewise.
7275 (dwarf2out_finish): Likewise.
7276
7277 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7278
7279 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7280
7281 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7282
7283 PR rtl-optimization/48332
7284 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7285 mode of input operand N and modeN to its actual mode.
7286
7287 2011-03-30 Jeff Law <law@redhat.com>
7288
7289 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7290 define accessor macro.
7291 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7292 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7293 (reg_equiv_init): Likewise.
7294 (reg_equivs_size): New variable.
7295 (reg_equiv_init_size): Remove.
7296 (allocate_initial_values): Move prototype to here from....
7297 * integrate.h (allocate_initial_values): Remove prototype.
7298 * integrate.c: Include reload.h.
7299 (allocate_initial_values): Corresponding changes.
7300 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7301 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7302 (update_equiv_regs): Corresponding changes.
7303 (ira): Corresponding changes.
7304 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7305 (push_secondary_reload): Corresponding changes.
7306 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7307 (make_memloc, find_reloads_address): Corresponding changes.
7308 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7309 (find_reloads_address_1): Corresponding changes.
7310 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7311 (refers_to_regno_for_reload_p): Corresponding changes.
7312 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7313 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7314 * reload1.c: Include ggc.h.
7315 (grow_reg_equivs): New function.
7316 (replace_pseudos_in, reload): Corresponding changes.
7317 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7318 (eliminate_regs_1, elimination_effects): Corresponding changes.
7319 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7320 (delete_output_reload): Likewise.
7321 * caller-save.c (mark_referenced_regs): Corresponding changes.
7322 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7323 * frv/predicates.md (frv_load_operand): Corresponding changes.
7324 * microblaze/microblaze.c (double_memory_operand): Corresponding
7325 changes.
7326 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7327 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7328 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7329 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7330 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7331 changes.
7332 * pa/pa.c (emit_move_sequence): Corresponding changes.
7333 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7334
7335 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7336
7337 PR target/47551
7338 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7339 structure modes. Don't check neon_vector_mem_operand for
7340 vector or structure modes.
7341
7342 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7343 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7344
7345 PR target/43590
7346 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7347 operand 1 and reshuffle the operands to match.
7348 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7349
7350 2011-03-30 Christian Schüler <cschueler@gmx.de>
7351
7352 PR driver/48208
7353 * config/c.opt (F): Added 'Driver' to -F option.
7354
7355 PR driver/48260
7356 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7357 handler function.
7358 * config/darwin.opt: Added '-arch' option.
7359
7360 2011-03-30 Nick Clifton <nickc@redhat.com>
7361
7362 * config/rx/rx.md: Add peepholes and patterns to combine
7363 extending loads and simple arithmetic instructions.
7364 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7365 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7366 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7367 modes to use pre-decrement and post-increment addressing.
7368 (rx_is_restricted_memory_address): Add range checking of REG+INT
7369 addresses.
7370 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7371 (rx_memory_move_cost): Adjust cost of stores.
7372 (rx_adjust_insn_length): New function.
7373
7374 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7375
7376 PR c/48305
7377 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7378 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7379 matching arg00/arg01 types.
7380
7381 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7382
7383 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7384 last_location to UNKNOWN_LOCATION.
7385
7386 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7387
7388 PR target/48349
7389 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7390 FLOAT_SSE_REGS.
7391
7392 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7393 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7394
7395 PR bootstrap/48337
7396 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7397 Init(PROCESSOR_V7).
7398 (sparc_cpu): Likewise.
7399 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7400 PROCESSOR_V7.
7401
7402 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7403
7404 PR target/48336
7405 PR middle-end/48342
7406 PR rtl-optimization/48345
7407 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7408 hard regs for given mode from profitable regs when doing secondary
7409 allocation.
7410
7411 2011-03-29 Jeff Law <law@redhat.com>
7412
7413 PR bootstrap/48327
7414 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7415 do_not_duplicate field.
7416 (lookup_redirection_data): Corresponding changes.
7417 (create_duplicates): Always create a template block.
7418 (redirect_edges): Remove code which reused the original block
7419 when it was going to become unreachable code.
7420 (thread_block): Don't set do_not_duplicate field.
7421
7422 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7423
7424 * lto-opts.c (register_user_option_p, lto_register_user_option):
7425 Make type argument unsigned.
7426 * lto-streamer.h (lto_register_user_option): Make type argument
7427 unsigned.
7428 * opth-gen.awk: Make CL_* macros unsigned.
7429 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7430 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7431 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7432 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7433 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7434 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7435 (find_opt): Make lang_mask argument unsigned.
7436
7437 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7438
7439 PR rtl-optimization/48331
7440 PR rtl-optimization/48334
7441 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7442 for any used algorithm.
7443
7444 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7445
7446 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7447 to parent_max.
7448
7449 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7450
7451 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7452 (alpha_option_override): Don't set alpha_sr_alias_set.
7453 (emit_frame_store_1): Use gen_frame_mem rather than calling
7454 set_mem_alias_set.
7455 (alpha_expand_epilogue): Ditto.
7456
7457 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7458
7459 PR tree-optimization/48290
7460 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7461 vectorization, check that relevant phis in the basic block after
7462 the inner loop are really inner loop's exit phis.
7463
7464 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7465
7466 PR debug/48190
7467 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7468 (cached_dw_loc_list_def): New structure.
7469 (cached_dw_loc_list): New typedef.
7470 (cached_dw_loc_list_table): New variable.
7471 (cached_dw_loc_list_table_hash): New function.
7472 (cached_dw_loc_list_table_eq): Likewise.
7473 (add_location_or_const_value_attribute): Take a bool cache_p.
7474 Cache the list when the parameter is true.
7475 (gen_formal_parameter_die): Update caller.
7476 (gen_variable_die): Likewise.
7477 (dwarf2out_finish): Likewise.
7478 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7479 while generating debug info for the decl.
7480 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7481 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7482 (resolve_addr): Cache the result of resolving a chain of
7483 location lists.
7484
7485 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7486
7487 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7488 conflict object hard regset nodes have intersecting hard reg sets.
7489
7490 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7491 after regstat_init_n_sets_and_refs.
7492
7493 * ira.c: Add more comments at the top.
7494 (setup_stack_reg_pressure_class, setup_pressure_classes):
7495 Add comments how we compute the register pressure classes.
7496 (setup_allocno_and_important_classes): Add more comments.
7497 (setup_class_translate_array, reorder_important_classes)
7498 (setup_reg_class_relations): Add comments.
7499
7500 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7501 start of the file.
7502
7503 * ira-color.c: Add 2011 to the Copyright line.
7504 (assign_hard_reg): Add more comments.
7505 (improve_allocation): Ditto.
7506
7507 * ira-costs.c: Add 2011 to the Copyright line.
7508 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7509 comments.
7510 (setup_regno_cost_classes_by_mode): Ditto.
7511
7512 Initial patches from ira-improv branch:
7513
7514 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7515
7516 * ira-build.c (ira_create_object): Remove initialization of
7517 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7518 (ira_create_allocno): Remove initialization of
7519 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7520 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7521 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7522 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7523 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7524 Initialize ALLOCNO_ADD_DATA.
7525 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7526 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7527 ALLOCNO_REG.
7528 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7529 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7530
7531 * ira.c (ira_reallocate): Remove.
7532 (setup_pressure_classes): Call
7533 ira_init_register_move_cost_if_necessary. Use
7534 ira_register_move_cost instead of ira_get_register_move_cost.
7535 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7536 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7537
7538 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7539 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7540 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7541 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7542 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7543 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7544 Fix formatting.
7545 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7546 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7547 (struct allocno_color_data): New.
7548 (allocno_color_data_t): New typedef.
7549 (allocno_color_data): New definition.
7550 (ALLOCNO_COLOR_DATA): New macro.
7551 (struct object_color_data): New.
7552 (object_color_data_t): New typedef.
7553 (object_color_data): New definition.
7554 (OBJECT_COLOR_DATA): New macro.
7555 (update_copy_costs, calculate_allocno_spill_cost): Call
7556 ira_init_register_move_cost_if_necessary. Use
7557 ira_register_move_cost instead of ira_get_register_move_cost.
7558 (move_spill_restore, update_curr_costs): Ditto.
7559 (allocno_spill_priority): Make it inline.
7560 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7561 (struct coalesce_data, coalesce_data_t): New.
7562 (allocno_coalesce_data): New definition.
7563 (ALLOCNO_COALESCE_DATA): New macro.
7564 (merge_allocnos, coalesced_allocno_conflict_p): Use
7565 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7566 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7567 (coalesce_allocnos): Ditto.
7568 (setup_coalesced_allocno_costs_and_nums): Ditto.
7569 (collect_spilled_coalesced_allocnos): Ditto.
7570 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7571 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7572 (coalesce_spill_slots): Ditto.
7573 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7574 free allocno_coalesce_data.
7575
7576 * ira-conflicts.c: Fix formatting.
7577 (process_regs_for_copy): Call
7578 ira_init_register_move_cost_if_necessary. Use
7579 ira_register_move_cost instead of ira_get_register_move_cost.
7580 (build_object_conflicts): Optimize.
7581
7582 * ira-costs.c (record_reg_classes): Optimize. Call
7583 ira_init_register_move_cost_if_necessary. Use
7584 ira_register_move_cost, ira_may_move_in_cost, and
7585 ira_may_move_out_cost instead of ira_get_register_move_cost and
7586 ira_get_may_move_cost.
7587 (record_address_regs): Ditto.
7588 (scan_one_insn): Optimize.
7589 (find_costs_and_classes): Optimize.
7590 (process_bb_node_for_hard_reg_moves): Call
7591 ira_init_register_move_cost_if_necessary. Use
7592 ira_register_move_cost instead of ira_get_register_move_cost.
7593
7594 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7595 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7596 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7597 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7598 definitions.
7599 (ira_initiate_emit_data, ira_finish_emit_data)
7600 (create_new_allocno): New functions.
7601 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7602 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7603 Use ira_register_move_cost instead of ira_get_register_move_cost.
7604
7605 * ira-int.h: Fix some comments.
7606 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7607 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7608 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7609 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7610 add_data.
7611 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7612 bitfield after mode. Make hard_regno a short int. Make
7613 hard_regno short. Remove first_coalesced_allocno and
7614 next_coalesced_allocno. Move mem_optimized_dest_p,
7615 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7616 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7617 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7618 temp, colorable_p. Add new member add_data.
7619 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7620 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7621 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7622 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7623 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7624 (ALLOCNO_ADD_DATA): New macro.
7625 (ira_emit_data_t): New typedef.
7626 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7627 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7628 from struct ira_allocno.
7629 (ALLOCNO_EMIT_DATA): New macro.
7630 (ira_allocno_emit_data, allocno_emit_reg): New.
7631 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7632 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7633 (OBJECT_ADD_DATA): New macro.
7634 (ira_reallocate): Remove.
7635 (ira_initiate_emit_data, ira_finish_emit_data): New.
7636 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7637 (ira_init_register_move_cost_if_necessary): New.
7638 (ira_object_conflict_iter_next): Merge into
7639 ira_object_conflict_iter_cond.
7640 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7641
7642 * ira-live.c (process_single_reg_class_operands): Call
7643 ira_init_register_move_cost_if_necessary. Use
7644 ira_register_move_cost instead of ira_get_register_move_cost.
7645
7646 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7647
7648 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7649
7650 * ira-costs.c: Fix formatting.
7651 (cost_classes, cost_classes_num): Remove.
7652 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7653 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7654 (cost_classes_del, cost_classes_htab): New.
7655 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7656 (initiate_regno_cost_classes, setup_cost_classes): New.
7657 (setup_regno_cost_classes_by_aclass): New.
7658 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7659 (record_reg_classes): Use regno_cost_classes instead of
7660 cost_classes. Move checking opposite operand up.
7661 (record_address_regs): Use regno_cost_classes
7662 instead of cost_classes.
7663 (scan_one_insn): Ditto. Use always general register.
7664 (print_allocno_costs): Use regno_cost_classes instead of
7665 cost_classes.
7666 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7667 (find_costs_and_classes): Set up cost classes for each registers.
7668 Use also their mode for this. Use regno_cost_classes instead of
7669 cost_classes.
7670 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7671 cost_classes.
7672 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7673 (ira_costs, ira_set_pseudo_classes): Call
7674 initiate_regno_cost_classes and finish_regno_cost_classes.
7675
7676 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7677
7678 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7679
7680 * target.def (ira_cover_classes): Remove.
7681
7682 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7683
7684 * doc/tm.texi.in: Ditto.
7685
7686 * ira-conflicts.c: Remove mentioning cover classes from the file.
7687 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7688 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7689
7690 * targhooks.c (default_ira_cover_classes): Remove.
7691
7692 * targhooks.h (default_ira_cover_classes): Ditto.
7693
7694 * haifa-sched.c: Remove mentioning cover classes from the file.
7695 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7696 ira_pressure_classes and ira_pressure_classes_num instead of
7697 ira_reg_class_cover_size and ira_reg_class_cover. Use
7698 sched_regno_pressure_class instead of sched_regno_cover_class.
7699 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7700 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7701
7702 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7703 classes from the file.
7704 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7705 (struct object_hard_regs, struct object_hard_regs_node): New.
7706 (struct ira_object): New members profitable_hard_regs,
7707 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7708 (struct ira_allocno): Rename cover_class to aclass. Rename
7709 cover_class_cost and updated_cover_class_cost to class_cost and
7710 updated_class_cost. Remove splay_removed_p and
7711 left_conflict_size. Add new members colorable_p.
7712 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7713 (ALLOCNO_COLORABLE_P): New macro.
7714 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7715 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7716 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7717 (OBJECT_...): Rename parameter C to O.
7718 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7719 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7720 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7721 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7722 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7723 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7724 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7725 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7726 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7727 x_ira_reg_class_subunion.
7728 (ira_max_memory_move_cost, ira_max_register_move_cost)
7729 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7730 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7731 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7732 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7733 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7734 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7735 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7736 (ira_tune_allocno_costs_and_cover_classes): Rename to
7737 ira_tune_allocno_costs.
7738 (ira_debug_hard_regs_forest): New.
7739 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7740 (ira_object_conflict_iter_next): Fix comments.
7741 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7742 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7743 cover_class to aclass.
7744 (ira_allocate_and_accumulate_costs): Ditto.
7745 (ira_allocate_and_set_or_copy_costs): Ditto.
7746
7747 * opts.c (decode_options): Remove ira_cover_class check.
7748
7749 * ira-color.c: Remove mentioning cover classes from the file. Use
7750 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7751 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7752 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7753 (splay-tree.h): Remove include.
7754 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7755 before copy_freq_compare_func.
7756 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7757 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7758 New definitions.
7759 (hard_regs_roots, hard_regs_node_vec): Ditto.
7760 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7761 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7762 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7763 (create_new_object_hard_regs_node): Ditto.
7764 (add_new_object_hard_regs_node_to_forest): Ditto.
7765 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7766 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7767 Ditto.
7768 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7769 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7770 (remove_unused_object_hard_regs_nodes): Ditto.
7771 (enumerate_object_hard_regs_nodes): Ditto.
7772 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7773 (object_hard_regs_subnode_t): Ditto.
7774 (struct object_hard_regs_subnode): Ditto.
7775 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7776 (setup_object_hard_regs_subnode_index): Ditto.
7777 (get_object_hard_regs_subnodes_num): Ditto.
7778 (form_object_hard_regs_nodes_forest): Ditto.
7779 (finish_object_hard_regs_nodes_tree): Ditto.
7780 (finish_object_hard_regs_nodes_forest): Ditto.
7781 (allocnos_have_intersected_live_ranges_p): Rename to
7782 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7783 (pseudos_have_intersected_live_ranges_p): Rename to
7784 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7785 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7786 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7787 (update_copy_costs): Remove assert. Skip cost update if the hard
7788 reg does not belong the class.
7789 (assign_hard_reg): Process only profitable hard regs.
7790 (uncolorable_allocnos_num): Make it scalar.
7791 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7792 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7793 and ira_reg_class_max_nregs.
7794 (bucket_allocno_compare_func): Check frequency first.
7795 (sort_bucket): Add compare function as a parameter.
7796 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7797 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7798 (push_allocno_to_stack): Rewrite for checking new allocno
7799 colorability.
7800 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7801 (push_only_colorable): Pass new parameter to sort_bucket.
7802 (push_allocno_to_spill): Remove.
7803 (allocno_spill_priority_compare): Make it inline and rewrite.
7804 (splay_tree_allocate, splay_tree_free): Remove.
7805 (allocno_spill_sort_compare): New function.
7806 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7807 build and use splay tree. Choose first allocno in uncolorable
7808 allocno bucket to spill. Remove setting spill cost.
7809 (all_conflicting_hard_regs): Remove.
7810 (setup_allocno_available_regs_num): Check only profitable hard
7811 regs. Print info about hard regs nodes.
7812 (setup_allocno_left_conflicts_size): Remove.
7813 (put_allocno_into_bucket): Don't call
7814 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7815 (improve_allocation): New.
7816 (color_allocnos): Call setup_profitable_hard_regs,
7817 form_object_hard_regs_nodes_forest, improve_allocation,
7818 finish_object_hard_regs_nodes_forest. Setup spill cost.
7819 (print_loop_title): Use pressure classes.
7820 (color_allocnso): Ditto.
7821 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7822 and allocnos_for_spilling.
7823 (ira_sort_regnos_for_alter_reg): Don't setup members
7824 {first,next}_coalesced_allocno.
7825 (color): Remove allocating and freeing removed_splay_allocno_vec.
7826 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7827 prohibited_class_mode_regs.
7828
7829 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7830 formatting.
7831 (update_allocno_pressure_excess_length): Use pressure classes.
7832 (inc_register_pressure, dec_register_pressure): Check for pressure
7833 class.
7834 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7835 pressure class. Use ira_reg_class_nregs instead of
7836 ira_reg_class_max_nregs.
7837 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7838 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7839 (single_reg_class): Use ira_reg_class_nregs instead of
7840 ira_reg_class_max_nregs.
7841 (process_bb_node_lives): Use pressure classes.
7842
7843 * ira-emit.c: Remove mentioning cover classes from the file. Use
7844 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7845 (change_loop): Use pressure classes.
7846 (modify_move_list): Call ira_set_allocno_class instead of
7847 ira_set_allocno_cover_class.
7848
7849 * ira-build.c: Remove mentioning cover classes from the file. Use
7850 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7851 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7852 ALLOCNO_UPDATED_CLASS_COST instead of
7853 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7854 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7855 (ira_create_allocno): Remove initialization of
7856 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7857 ALLOCNO_COLORABLE_P.
7858 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7859 Update conflict regs for the objects.
7860 (create_cap_allocno): Remove assert. Don't propagate
7861 ALLOCNO_AVAILABLE_REGS_NUM.
7862 (ira_free_allocno_costs): New function.
7863 (finish_allocno): Change a part of code into call of
7864 ira_free_allocno_costs.
7865 (low_pressure_loop_node_p): Use pressure classes.
7866 (object_range_compare_func): Don't compare classes.
7867 (setup_min_max_conflict_allocno_ids): Ditto.
7868
7869 * loop-invariant.c: Remove mentioning cover classes from the file.
7870 Use ira_pressure_classes and ira_pressure_classes_num instead of
7871 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7872 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7873 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7874 Use reg_allocno_class instead of reg_cover_class.
7875 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7876 STACK_REG_COVER_CLASS.
7877 (get_regno_cover_class): Rename to get_regno_pressure_class.
7878 (move_loop_invariants): Initialize and finalize regstat.
7879
7880 * ira.c: Remove mentioning cover classes from the file. Add
7881 comments about coloring without cover classes. Use ALLOCNO_CLASS
7882 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7883 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7884 setup_class_subset_and_memory_move_costs.
7885 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7886 (setup_cover_and_important_classes): Rename to
7887 setup_allocno_and_important_classes.
7888 (setup_class_translate_array): New.
7889 (setup_class_translate): Call it for allocno and pressure classes.
7890 (cover_class_order): Rename to allocno_class_order.
7891 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7892 of ira_class_translate.
7893 (reorder_important_classes): Set up ira_important_class_nums.
7894 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7895 (print_class_cover): Rename to print_classes. Add parameter.
7896 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7897 Print pressure classes too.
7898 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7899 setup_reg_subclasses.
7900 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7901 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7902 (setup_prohibited_class_mode_regs): Use
7903 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7904 (clarify_prohibited_class_mode_regs): New function.
7905 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7906 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7907 (ira_init_once): Initialize them.
7908 (free_register_move_costs): Process them.
7909 (ira_init): Move calls of find_reg_classes and
7910 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7911 Call clarify_prohibited_class_mode_regs.
7912 (ira_no_alloc_reg): Remove.
7913 (too_high_register_pressure_p): Use pressure classes.
7914
7915 * sched-deps.c: Remove mentioning cover classes from the file.
7916 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7917 ira_pressure_classes and ira_pressure_classes_num instead of
7918 ira_reg_class_cover_size and ira_reg_class_cover.
7919 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7920 sched_regno_pressure_class instead of sched_regno_cover_class.
7921 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7922 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7923
7924 * ira.h: Add 2010 to Copyright.
7925 (ira_no_alloc_reg): Remove external.
7926 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7927 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7928 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7929 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7930 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7931 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7932 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7933 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7934 x_ira_no_alloc_regs.
7935 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7936 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7937 ira_allocno_classes_num and ira_allocno_classes.
7938 (ira_class_translate): Rename to ira_allocno_class_translate.
7939 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7940 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7941 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7942 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7943 (ira_no_alloc_regs): New.
7944
7945 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7946 classes from the file. Use ALLOCNO_CLASS instead of
7947 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7948 ALLOCNO_COVER_CLASS_COST.
7949 (regno_cover_class): Rename to regno_aclass.
7950 (record_reg_classes): Use ira_reg_class_subunion instead of
7951 ira_reg_class_union.
7952 (record_address_regs): Check overflow.
7953 (scan_one_insn): Ditto.
7954 (print_allocno_costs): Print total mem cost fore regional allocation.
7955 (print_pseudo_costs): Use REG_N_REFS.
7956 (find_costs_and_classes): Use classes intersected with them on the
7957 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7958 ira_reg_class_union. Use ira_allocno_class_translate and
7959 regno_aclass instead of ira_class_translate and regno_cover_class.
7960 Modify code for finding regno_aclass. Setup preferred classes for
7961 the next pass.
7962 (setup_allocno_cover_class_and_costs): Rename to
7963 setup_allocno_class_and_costs. Use regno_aclass instead of
7964 regno_cover_class. Use ira_set_allocno_class instead of
7965 ira_set_allocno_cover_class.
7966 (init_costs, finish_costs): Use regno_aclass instead of
7967 regno_cover_class.
7968 (ira_costs): Use setup_allocno_class_and_costs instead of
7969 setup_allocno_cover_class_and_costs.
7970 (ira_tune_allocno_costs_and_cover_classes): Rename to
7971 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7972 by processing objects. Use ira_reg_class_max_nregs instead of
7973 ira_reg_class_nregs.
7974
7975 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7976
7977 * sched-int.h: Remove mentioning cover classes from the file.
7978 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7979
7980 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7981 classes from the file.
7982 (struct reg_pref): Rename coverclass into allocnoclass.
7983 (reg_cover_class): Rename to reg_allocno_class.
7984
7985 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7986
7987 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7988
7989 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7990
7991 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7992
7993 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7994
7995 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7996
7997 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7998
7999 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8000
8001 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8002
8003 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8004
8005 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8006 (i386_ira_cover_classes): Ditto.
8007
8008 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8009
8010 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8011
8012 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8013
8014 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8015
8016 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8017
8018 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8019
8020 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8021 (mips_ira_cover_classes): Ditto.
8022
8023 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8024
8025 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8026
8027 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8028
8029 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8030
8031 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8032
8033 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8034 (IRA_COVER_CLASSES_VSX): Ditto.
8035
8036 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8037 (rs6000_ira_cover_classes): Ditto.
8038
8039 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8040
8041 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8042
8043 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8044
8045 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8046
8047 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8048
8049 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8050
8051 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8052
8053 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8054
8055 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8056
8057 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8058
8059 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8060
8061 PR debug/48253
8062 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8063 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8064 dw_fde_unlikely_section_end_label, cold_in_std_section,
8065 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8066 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8067 fields.
8068 (output_fde): Use dw_fde_second_{begin,end} if second is
8069 true, otherwise dw_fde_{begin,end}.
8070 (output_call_frame_info): Test dw_fde_second_begin != NULL
8071 instead of dw_fde_switched_sections.
8072 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8073 fields, initialize new fields. Initialize in_std_section
8074 unconditionally from the first partition.
8075 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8076 dw_fde_second_begin is non-NULL.
8077 (dwarf2out_switch_text_section): Stop initializing removed
8078 dw_fde_struct fields, initialize new fields, initialize
8079 also dw_fde_end here. Set dw_fde_switch_cfi even when
8080 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8081 (struct var_loc_list_def): Add last_before_switch field.
8082 (arange_table, arange_table_allocated, arange_table_in_use,
8083 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8084 (size_of_aranges): Count !in_std_section and !second_in_std_section
8085 hunks in fdes, instead of looking at arange_table_in_use.
8086 (output_aranges): Add aranges_length argument, don't call
8087 size_of_aranges here. Instead of using aranges_table*
8088 emit ranges for fdes when !in_std_section resp.
8089 !second_in_std_section.
8090 (dw_loc_list): Break ranges crossing section switch.
8091 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8092 use dw_fde_second_end instead of dw_fde_end as end of last range.
8093 (gen_subprogram_die): Don't call add_arange. Use
8094 dw_fde_{begin,end} for first partition and if switched
8095 section dw_fde_second_{begin,end} for the second.
8096 (var_location_switch_text_section_1,
8097 var_location_switch_text_section): New functions.
8098 (dwarf2out_begin_function): Initialize cold_text_section even
8099 when function_section () isn't text_section.
8100 (prune_unused_types): Don't walk arange_table.
8101 (dwarf2out_finish): Don't needlessly test
8102 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8103 If info_section_emitted, call size_of_aranges and if it indicates
8104 non-empty .debug_aranges, call output_aranges with the computed
8105 size. Stop using removed dw_fde_struct fields, use
8106 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8107 for second.
8108
8109 PR debug/48203
8110 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8111 create ENTRY_VALUE if incoming or address of incoming's MEM
8112 is a hard REG.
8113 * dwarf2out.c (mem_loc_descriptor): Don't emit
8114 DW_OP_GNU_entry_value of DW_OP_fbreg.
8115 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8116 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8117 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8118 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8119 ENTRY_VALUE_EXPs.
8120 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8121 is a REG_P or MEM_P with REG_P address, compute hash directly
8122 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8123 (preserve_only_constants): Don't clear VALUES forwaring
8124 ENTRY_VALUE to some other VALUE.
8125
8126 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8127
8128 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8129 instead of GEN_INT.
8130
8131 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8132
8133 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8134 block before expanding the statement.
8135 (expand_gimple_stmt_1): Likewise. Set them here...
8136 (expand_gimple_stmt): ...and not here. Tidy.
8137 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8138 unknown.
8139
8140 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8141
8142 * Makefile.in: New rule for cprop.o.
8143 * gcse.c: Move constant/copy propagation to cprop.c.
8144 (compute_local_properties): Only handle expression tables.
8145 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8146 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8147 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8148 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8149 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8150 compute_cprop_data, find_used_regs, try_replace_reg,
8151 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8152 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8153 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8154 find_bypass_set, reg_killed_on_edge, bypass_block,
8155 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8156 execute_rtl_cprop, pass_rtl_cprop): Move to...
8157 * cprop.c: ...here. New file, constant/copy propagation for RTL
8158 moved from gcse.c to here with minor cleanups in duplicated code.
8159
8160 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8161
8162 * config/i386/i386.c (flag_opts): Fix a typo in
8163 -mavx256-split-unaligned-store.
8164
8165 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8166
8167 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8168 LIBCALL_VALUE): Remove macros.
8169 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8170 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8171 (h8300_function_value, h8300_libcall_value,
8172 h8300_function_value_regno_p): New functions.
8173
8174 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8175
8176 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8177
8178 2011-03-28 Jeff Law <law@redhat.com>
8179
8180 * tree-ssa-threadupdate.c (redirect_edges): Call
8181 create_edge_and_update_destination_phis as needed.
8182 (create_edge_and_update_destination_phis): Accept new BB argument.
8183 All callers updated.
8184 (thread_block): Do not update the profile when threading around
8185 intermediate blocks.
8186 (thread_single_edge): Likewise.
8187 (determine_bb_domination_status): If BB is not a successor of the
8188 loop header, return NONDOMINATING.
8189 (register_jump_thread): Note when we register a jump thread around
8190 an intermediate block.
8191 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8192 (thread_across_edge): Use it.
8193
8194 2011-03-28 Tristan Gingold <gingold@adacore.com>
8195
8196 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8197 when for_return is 2.
8198
8199 2011-03-28 Jeff Law <law@redhat.com>
8200
8201 * var-tracking.c (canonicalize_values_mark): Delete unused
8202 lhs assignment.
8203 (canonicalize_values_star, set_variable_part): Likewise.
8204 (clobber_variable_part, delete_variable_part): Likewise.
8205
8206 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8207
8208 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8209
8210 2011-03-28 Martin Jambor <mjambor@suse.cz>
8211
8212 * tree-inline.c (expand_call_inline): Do not check that destination
8213 node is analyzed.
8214 (optimize_inline_calls): Assert that destination node is analyzed.
8215 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8216 not call tree_lowering_passes.
8217 * cgraph.h (cgraph_analyze_function): Declare.
8218 * cgraphunit.c (cgraph_analyze_function): Make public.
8219
8220 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8221
8222 * config/sparc/sparc-opts.h: New.
8223 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8224 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8225 (sparc_option_override): Store processor_type enumeration rather
8226 than string in cpu_default. Remove name and enumeration from
8227 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8228 without using sparc_select. Use target_flags_explicit instead of
8229 fpu_option_set.
8230 * config/sparc/sparc.h (enum processor_type): Move to
8231 sparc-opts.h.
8232 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8233 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8234 HeaderInclude entry.
8235 (mcpu=, mtune=): Use Var and Enum.
8236 (sparc_processor_type): New Enum and EnumValue entries.
8237
8238 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8239 Iain Sandoe <iains@gcc.gnu.org>
8240
8241 PR target/48245
8242 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8243
8244 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8245
8246 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8247 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8248 Insert new statements at it in lieu of STMT.
8249 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8250 * tree-vect-stmts.c (vectorizable_store): Likewise.
8251 (vectorizable_load): Likewise.
8252
8253 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8254
8255 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8256 (divtf3): Ditto.
8257 (multf3): Ditto.
8258 (subtf3): Ditto.
8259
8260 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8261
8262 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8263 unaligned 256bit load/store.
8264 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8265 (*avx_movdqu<avxmodesuffix>): Likewise.
8266
8267 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8268
8269 PR target/48288
8270 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8271 * config/pa/pa.md (iordi3): Use new predicate in expander.
8272 (iorsi3): Likewise.
8273
8274 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8275
8276 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8277 FUNCTION_VALUE_REGNO_P): Remove macros.
8278 * config/mips/mips-protos.h (mips_function_value): Remove.
8279 * config/mips/mips.c (mips_function_value): Rename to...
8280 (mips_function_value_1): ... this. Make static. Handle receiving
8281 the function type in 'fn_decl_or_type' argument.
8282 (mips_function_value, mips_libcall_value,
8283 mips_function_value_regno_p): New function.
8284 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8285 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8286
8287 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8288
8289 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8290 and -mavx256-split-unaligned-store.
8291 (ix86_option_override_internal): Split 32-byte AVX unaligned
8292 load/store by default.
8293 (ix86_avx256_split_vector_move_misalign): New.
8294 (ix86_expand_vector_move_misalign): Use it.
8295
8296 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8297 -mavx256-split-unaligned-store.
8298
8299 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8300 256bit load/store. Generate unaligned store on misaligned memory
8301 operand.
8302 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8303 256bit load/store.
8304 (*avx_movdqu<avxmodesuffix>): Likewise.
8305
8306 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8307 -mavx256-split-unaligned-store.
8308
8309 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8310
8311 PR target/38598
8312 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8313 Update commentary.
8314
8315 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8316
8317 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8318 opno arguments with an expand_operand. Use create_input_operand.
8319 (mips_prepare_builtin_target): Delete.
8320 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8321 functions.
8322 (mips_expand_builtin_direct): Use create_output_operand and
8323 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8324 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8325 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8326
8327 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8328
8329 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8330 function.
8331 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8332
8333 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8334
8335 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8336 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8337 basic blocks and call commit_edge_insertions directly.
8338 (fixup_abnormal_edges): Move from here to...
8339 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8340 on the edges and return whether some have actually been inserted.
8341 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8342 compensation code.
8343
8344 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8345
8346 PR rtl-optimization/48144
8347 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8348 (merge_expr_data): ... here.
8349 (av_set_intersect): Rename to av_set_code_motion_filter.
8350 Update all callers. Call merge_history_vect when an expression
8351 is found in both sets.
8352 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8353
8354 2011-03-26 Alan Modra <amodra@gmail.com>
8355
8356 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8357 cmodel medium addresses.
8358 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8359 64-bit gpr loads and stores.
8360 (rs6000_secondary_reload_ppc64): New function.
8361 * config/rs6000/rs6000-protos.h: Declare it.
8362 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8363
8364 2011-03-26 Alan Modra <amodra@gmail.com>
8365
8366 PR target/47487
8367 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8368 GNU Go in traceback table.
8369
8370 2011-03-25 Richard Henderson <rth@redhat.com>
8371
8372 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8373 if there are exactly 6 operands.
8374 (set_storage_via_setmem): Similarly.
8375
8376 2011-03-25 Kai Tietz <ktietz@redhat.com>
8377
8378 * collect2.c (write_c_file_stat): Handle backslash
8379 as right-hand directory separator.
8380 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8381 checking just for slash.
8382 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8383 instead of checking for trailing slash.
8384 * gcc.c (record_temp_file): Use filename_cmp instead
8385 of strcmp.
8386 (do_spec_1): Likewise.
8387 (replace_outfile_spec_function): Likewise.
8388 (is_directory): Use filename_ncmp instead of strncmp.
8389 (print_multilib_info): Likewise.
8390 * gcov.c (find_source): Use filename_cmp instead
8391 instead of strcmp.
8392 (make_gcov_file_name): Fix order of slash/backslash
8393 checks.
8394 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8395 (add_standard_paths): Likewise.
8396 * mips-tfile.c (saber_stop): Handle backslash.
8397 * prefix.c (update_path): Use filename_ncmp instead of
8398 strncmp.
8399 * profile.c (output_location): Use filename_cmp instead
8400 of strcmp.
8401 * read-md.c (handle_toplevel_file): Handle backslash.
8402 * tlink.c (frob_extension): Likewise.
8403 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8404 strcmp.
8405 * tree-dump.c (dequeue_and_dump): Handle backslash.
8406 * tree.c (get_file_function_name): Likewise.
8407 * gengtype.c (read_input_list): Likewise.
8408 (get_file_realbasename): Likewise.
8409 (get_output_file_with_visibility): Use filename_cmp
8410 instead of strcmp.
8411
8412 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8413
8414 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8415 case to VFPv1.
8416
8417 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8418
8419 * fold-const.c (expr_location_or): New function.
8420 (fold_truth_not_expr): Call it.
8421
8422 2011-03-25 Jeff Law <law@redhat.com>
8423
8424 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8425 va_end.
8426 * c-family/c-common.c (def_fn_type): Likewise.
8427 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8428 * emit-rtl.c (gen_rtvec): Likewise.
8429 * lto/lto-lang.c (def_fn_type): Likewise.
8430
8431 2011-03-25 Richard Guenther <rguenther@suse.de>
8432
8433 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8434 also generate copies.
8435 (fini_copy_prop): Handle constant values properly.
8436
8437 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8438
8439 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8440 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8441 (hash_loc_operands, compare_loc_operands): Handle
8442 DW_OP_GNU_entry_value.
8443
8444 2011-03-25 Kai Tietz <ktietz@redhat.com>
8445
8446 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8447 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8448 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8449 comment and use macro TARGET_64BIT_MS_ABI instead.
8450 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8451 and change default behavior for 32-bit MS_ABI.
8452 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8453 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8454 32-bit, too.
8455 (ix86_cfun_abi): Likewise.
8456 (ix86_maybe_switch_abi): Adjust comment.
8457 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8458 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8459 instead of checking for SYSV_ABI.
8460 (ix86_nsaved_sseregs): Likewise.
8461 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8462 to 16 bytes.
8463 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8464 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8465 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8466 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8467 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8468
8469 2011-03-25 Richard Guenther <rguenther@suse.de>
8470
8471 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8472 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8473 (verify_gimple): Remove.
8474 * tree-cfg.c (verify_gimple_call): Merge verification
8475 from verify_stmts.
8476 (verify_gimple_phi): Merge verification from verify_stmts.
8477 (verify_gimple_label): New function.
8478 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8479 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8480 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8481 (verify_stmts): Rename to verify_gimple_in_cfg.
8482 (verify_gimple_in_cfg): New function.
8483 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8484 * tree-ssa.c (verify_ssa): Likewise.
8485 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8486
8487 2011-03-25 Richard Guenther <rguenther@suse.de>
8488
8489 * passes.c (init_optimization_passes): Add FRE pass after
8490 early SRA.
8491
8492 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8493 Andrew Stubbs <ams@codesourcery.com>
8494
8495 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8496 for Cortex-A8.
8497 (arm_movdi_vfp_cortexa8): New pattern.
8498 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8499 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8500 instructions when tuning for Cortex-A8. Set attribute "arch".
8501 * config/arm/arm.md: Move include arm-tune.md up a bit.
8502 (define_attr "arch"): Add "onlya8" and "nota8" values.
8503 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8504
8505 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8506
8507 PR bootstrap/48282
8508 Revert:
8509 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8510
8511 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8512 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8513 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8514 * passes.c (init_optimization_passes): Move
8515 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8516
8517 2011-03-25 Kai Tietz <ktietz@redhat.com>
8518
8519 * c-typeck.c (comptypes_internal): Replace target
8520 hook call of comp_type_attributes by version in tree.c file.
8521 * gimple.c (gimple_types_compatible_p_1): Likewise.
8522 * tree-ssa.c (useless_type_conversion_p): Likewise.
8523 * tree.c (build_type_attribute_qual_variant): Likewise.
8524 (attribute_value_equal): New static helper function.
8525 (comp_type_attributes): New function.
8526 (merge_attributes): Use attribute_value_equal for comparison.
8527 (attribute_list_contained): Likewise.
8528 * tree.h (comp_type_attributes): New prototype.
8529
8530 2011-03-25 Richard Guenther <rguenther@suse.de>
8531
8532 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8533 of complex types at -O0.
8534 (verify_gimple_assign_binary): Likewise.
8535 (verify_gimple_assign_ternary): Likewise.
8536
8537 2011-03-24 Mark Wielaard <mjw@redhat.com>
8538
8539 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8540 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8541
8542 2011-03-24 Mark Wielaard <mjw@redhat.com>
8543
8544 PR debug/48041
8545 * dwarf2out.c (output_abbrev_section): Only write table when
8546 abbrev_die_table_in_use > 1.
8547
8548 2011-02-24 Richard Henderson <rth@redhat.com>
8549
8550 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8551 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8552 (alpha_expand_unaligned_load_words): Use extql.
8553 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8554 (emit_insxl): Handle all modes for consistency.
8555
8556 2011-02-24 Richard Henderson <rth@redhat.com>
8557
8558 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8559 (alpha_expand_unaligned_load): Likewise.
8560 (alpha_expand_unaligned_store): Likewise.
8561 (alpha_expand_unaligned_load_words): Likewise.
8562 (alpha_expand_unaligned_store_words): Likewise.
8563 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8564 (alpha_split_lock_test_and_set_12): Likewise.
8565 (print_operand, alpha_fold_builtin_extxx): Likewise.
8566 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8567 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8568 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8569 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8570 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8571 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8572 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8573 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8574 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8575 (extwl, extll, extql): Similarly.
8576 (inswh, inslh, insqh): Similarly.
8577 (mskbl, mskwl, mskll, mskql): Similarly.
8578 (mskwh, msklh, mskqh): Similarly.
8579
8580 2011-02-24 Richard Henderson <rth@redhat.com>
8581
8582 * config/alpha/alpha.md (attribute isa): Add er, ner.
8583 (attribute enabled): Handle them.
8584 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8585
8586 2011-02-24 Richard Henderson <rth@redhat.com>
8587
8588 * config/alpha/alpha.md (attribute isa): Add vms.
8589 (attribute enabled): Handle it.
8590 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8591 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8592 (*movtf): Rename from *movtf_internal for consistency.
8593 (*movsi): Merge with *movsi_nt_vms.
8594 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8595 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8596 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8597 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8598
8599 2011-02-24 Richard Henderson <rth@redhat.com>
8600
8601 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8602 (extendqisi2, extendhisi2): Likewise.
8603 (extendqidi2): Simplify BWX/non-BWX expansions.
8604 (extendhidi2): Similarly.
8605
8606 2011-02-24 Richard Henderson <rth@redhat.com>
8607
8608 * config/alpha/alpha.md (attribute isa): New.
8609 (attribute enabled): New.
8610 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8611 (zero_extendqisi2, zero_extendqidi2): Similarly.
8612 (zero_extendhisi2, zero_extendhidi2): Similarly.
8613 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8614
8615 2011-02-24 Richard Henderson <rth@redhat.com>
8616
8617 * config/alpha/predicates.md (input_operand): Revert last change;
8618 update comment to mention 32-bit VMS rather than Windows.
8619
8620 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8621
8622 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8623 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8624 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8625 * passes.c (init_optimization_passes): Move
8626 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8627
8628 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8629
8630 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8631
8632 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8633
8634 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8635 correctly.
8636
8637 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8638
8639 PR debug/48204
8640 * simplify-rtx.c (simplify_const_unary_operation): Call
8641 real_convert when changing mode class with FLOAT_EXTEND.
8642
8643 2011-03-24 Nick Clifton <nickc@redhat.com>
8644
8645 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8646 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8647 * config/rx/rx.c (rx_option_override): Set align_jumps,
8648 align_loops and align_labels if not set by the user.
8649 (rx_align_for_label): New function.
8650 (rx_max_skip_for_label): New function.
8651 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8652 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8653 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8654 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8655 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8656
8657 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8658
8659 PR rtl-optimization/48263
8660 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8661 and original commutative_p handling. Use maybe_gen_insn.
8662
8663 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8664
8665 * reload.c (find_reloads_subreg_address): Add address_reloaded
8666 parameter and return true there if the full address has been
8667 reloaded.
8668 (find_reloads_toplev): Pass address_reloaded flag.
8669 (find_reloads_address_1): Don't use address_reloaded parameter.
8670
8671 2011-03-24 Jeff Law <law@redhat.com>
8672
8673 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8674 unused variable "ann".
8675 (remove_unused_locals): Likewise.
8676
8677 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8678 statement.
8679
8680 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8681 after it is freed.
8682
8683 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8684
8685 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8686 for invalid symbolic addresses.
8687 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8688 larl operands.
8689
8690 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8691
8692 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8693 the argument in calls to fold_truth_not_expr.
8694
8695 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8696
8697 * tree.c (record_node_allocation_statistics): New function.
8698 (make_node_stat, copy_node_stat, build_string): Call it.
8699 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8700 (build1_stat, build_omp_clause): Likewise.
8701
8702 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8703
8704 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8705 last commit.
8706
8707 2011-03-24 Richard Guenther <rguenther@suse.de>
8708
8709 PR tree-optimization/48271
8710 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8711 blocks that still exist.
8712
8713 2011-03-24 Richard Guenther <rguenther@suse.de>
8714
8715 PR tree-optimization/48270
8716 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8717 not free datarefs before ddrs.
8718
8719 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8720
8721 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8722 from the address built for a reference with variable offset.
8723
8724 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8725
8726 PR target/48237
8727 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8728 alternatives that can be handled with movq or movabsq insn.
8729 (*movdf_internal): Disable for !TARGET_64BIT.
8730 (*movdf_internal_nointeger): Ditto.
8731 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8732
8733 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8734
8735 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8736 (FUNCTION_ARG_ADVANCE): Likewise.
8737 * tm.texi.in: Change references to them to hook references.
8738 * tm.texi: Regenerate.
8739 * targhooks.c (default_function_arg): Eliminate check for target macro.
8740 (default_function_incoming_arg): Likewise.
8741 (default_function_arg_advance): Likewise.
8742 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8743 (function_arg_advance): Likewise.
8744 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8745
8746 2011-03-24 Richard Guenther <rguenther@suse.de>
8747
8748 PR middle-end/48269
8749 * tree-object-size.c (addr_object_size): Do not double-account
8750 for MEM_REF offsets.
8751
8752 2011-03-24 Diego Novillo <dnovillo@google.com>
8753
8754 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8755 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8756 (lto_input_data_block): Move from lto-opts.c. Make extern.
8757 Update all users.
8758 (lto_input_string): Rename from input_string. Make extern.
8759 Update all users.
8760 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8761 output_string_with_length.
8762 Output 0 to indicate a non-NULL string. Update all callers to
8763 not emit 0.
8764 (lto_output_string): Rename from output_string. Make extern.
8765 Update all users.
8766 (lto_output_decl_state_streams): Make extern.
8767 (lto_output_decl_state_refs): Make extern.
8768 * lto-streamer.h (lto_input_string): Declare.
8769 (lto_input_data_block): Declare.
8770 (lto_output_string): Declare.
8771 (lto_output_string_with_length): Declare.
8772 (lto_output_decl_state_streams): Declare.
8773 (lto_output_decl_state_refs): Declare.
8774
8775 2011-03-24 Richard Guenther <rguenther@suse.de>
8776
8777 PR tree-optimization/46562
8778 * tree.c (build_invariant_address): New function.
8779 * tree.h (build_invariant_address): Declare.
8780 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8781 a renamed function moved ...
8782 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8783 Take valueization callback parameter.
8784 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8785 * gimple-fold.h: New file.
8786 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8787 (ccp_fold, fold_const_aggregate_ref,
8788 fold_ctor_reference, fold_nonarray_ctor_reference,
8789 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8790 get_base_constructor): Move ...
8791 * gimple-fold.c: ... here.
8792 (gimple_fold_stmt_to_constant_1): New function
8793 split out from ccp_fold. Take a valueization callback parameter.
8794 Valueize all operands.
8795 (gimple_fold_stmt_to_constant): New wrapper function.
8796 (fold_const_aggregate_ref_1): New function split out from
8797 fold_const_aggregate_ref. Take a valueization callback parameter.
8798 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8799 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8800 invariant POINTER_PLUS_EXPRs to invariant form.
8801 (vn_valueize): New function.
8802 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8803 * tree-vrp.c (vrp_valueize): New function.
8804 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8805 to fold statements to constants.
8806 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8807 function declarations.
8808 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8809 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8810
8811 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8812
8813 * config/h8300/predicates.md (jump_address_operand): Fix register
8814 mode check.
8815
8816 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8817
8818 * doc/invoke.texi (max-stores-to-sink): Document.
8819 * params.h (MAX_STORES_TO_SINK): Define.
8820 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8821 if either vectorization or if-conversion is disabled.
8822 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8823 tree-vect-data-refs.c vect_equal_offsets.
8824 (dr_equal_offsets_p): New function.
8825 (find_data_references_in_bb): Remove static.
8826 * tree-data-ref.h (find_data_references_in_bb): Declare.
8827 (dr_equal_offsets_p): Likewise.
8828 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8829 (vect_drs_dependent_in_basic_block): Update calls to
8830 vect_equal_offsets.
8831 (vect_check_interleaving): Likewise.
8832 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8833 (cond_if_else_store_replacement): Rename to...
8834 (cond_if_else_store_replacement_1): ... this. Change arguments and
8835 documentation.
8836 (cond_if_else_store_replacement): New function.
8837 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8838 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8839
8840 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8841
8842 PR target/46934
8843 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8844 to subtract lower bound instead of GEN_INT().
8845
8846 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8847
8848 PR other/48179
8849 PR other/48221
8850 PR other/48234
8851 * doc/extend.texi (Alignment): Move section to match order in TOC.
8852 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8853 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8854
8855 2011-03-23 Jeff Law <law@redhat.com>
8856
8857 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8858 before removing the edge.
8859
8860 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8861 it may have been freed by redirect_branch_edge or
8862 redirect_edge_succ_nodup.
8863
8864 2011-03-23 Richard Guenther <rguenther@suse.de>
8865
8866 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8867 (check_va_list_escapes): Likewise.
8868 (check_all_va_list_escapes): Likewise.
8869
8870 2011-03-23 Richard Guenther <rguenther@suse.de>
8871
8872 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8873 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8874 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8875 (alias.o): Likewise.
8876 (ipa-type-escape.o): Remove.
8877 (ipa-struct-reorg.o): Likewise.
8878 (GTFILES): Remove ipa-struct-reorg.c.
8879 * alias.c: Do not include ipa-type-escape.h.
8880 * tree-ssa-alias.c: Likewise.
8881 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8882 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8883 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8884 and ipa-type-escape passes.
8885 * tree-pass.h (pass_ipa_type_escape): Remove.
8886 (pass_ipa_struct_reorg): Likewise.
8887 * ipa-struct-reorg.h: Remove.
8888 * ipa-struct-reorg.c: Likewise.
8889 * ipa-type-escape.h: Likewise.
8890 * ipa-type-escape.c: Likewise.
8891 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8892 (--param struct-reorg-cold-struct-ratio): Likewise.
8893 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8894 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8895 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8896
8897 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8898
8899 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8900 cpu attribute value.
8901 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8902 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8903 * config/s390/s390.c (processor_flags_table): New constant array.
8904 (s390_handle_arch_option): Remove.
8905 (s390_handle_option): Remove s390_handle_arch_option invocations
8906 and OPT_mwarn_framesize_ handling.
8907 (s390_option_override): Remove s390_handle_arch_option invocation.
8908 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8909 warnings.
8910 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8911 * config/s390/s390.opt (s390_tune, s390_arch)
8912 (march=): Replace s390_arch_option enum and values with
8913 processor_type. Set variable name to s390_arch. Set
8914 initialization value.
8915 (mtune=): Replace s390_arch_option with processor_type. Set
8916 variable name to s390_tune. Set initialization value.
8917
8918 2011-03-23 Julian Brown <julian@codesourcery.com>
8919
8920 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8921 accesses which are not naturally aligned.
8922
8923 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8924
8925 PR target/47553
8926 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8927
8928 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8929
8930 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8931 parameter from "int" to "enum insn_code".
8932 (expand_operand_type): New enum.
8933 (expand_operand): New structure.
8934 (create_expand_operand): New function.
8935 (create_fixed_operand, create_output_operand): Likewise
8936 (create_input_operand, create_convert_operand_to): Likewise.
8937 (create_convert_operand_from, create_address_operand): Likewise.
8938 (create_integer_operand): Likewise.
8939 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8940 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8941 (expand_insn, expand_jump_insn): Likewise.
8942 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8943 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8944 (expand_movstr, expand_builtin___clear_cache): Likewise.
8945 (expand_builtin_lock_release): Likewise.
8946 * explow.c (allocate_dynamic_stack_space): Likewise.
8947 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8948 and use the default handling in that case.
8949 * expmed.c (check_predicate_volatile_ok): Delete.
8950 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8951 (emit_cstore): Likewise.
8952 * expr.c (emit_block_move_via_movmem): Likewise.
8953 (set_storage_via_setmem, expand_assignment): Likewise.
8954 (emit_storent_insn, try_casesi): Likewise.
8955 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8956 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8957 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8958 (expand_twoval_unop, expand_twoval_binop): Likewise.
8959 (expand_unop_direct, emit_indirect_jump): Likewise.
8960 (emit_conditional_move, vector_compare_rtx): Likewise.
8961 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8962 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8963 (expand_sync_lock_test_and_set): Likewise.
8964 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8965 (emit_unop_insn): Likewise.
8966 (expand_copysign_absneg): Change icode to an insn_code.
8967 (create_convert_operand_from_type): New function.
8968 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8969 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8970 (expand_insn, expand_jump_insn): Likewise.
8971 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8972 than const_int_operand for operand 2.
8973
8974 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8975
8976 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8977 if possible.
8978
8979 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8980
8981 * emit-rtl.c (emit_pattern_before_noloc): New function.
8982 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8983 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8984 (emit_pattern_after_noloc): New function.
8985 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8986 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8987
8988 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8989
8990 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8991 (__ffsDI2): Likewise.
8992
8993 2011-03-22 Richard Henderson <rth@redhat.com>
8994
8995 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8996 of !TARGET_ABI_OPEN_VMS.
8997 (alpha_trampoline_init, alpha_start_function): Likewise.
8998 (alpha_expand_epilogue, alpha_file_start): Likewise.
8999 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9000 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9001 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9002 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9003 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9004
9005 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9006
9007 * config/s390/s390-opts.h: New.
9008 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9009 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9010 s390_stack_guard): Remove.
9011 (s390_handle_arch_option): Return void. Take enum
9012 s390_arch_option value instead of string and searching array.
9013 (s390_handle_option): Don't assert that global structures are in
9014 use. Access variables via opts pointer. Use error_at. Don't use
9015 sscanf for -mstack-guard= or -mstack-size=. Update call to
9016 s390_handle_arch_option.
9017 (s390_option_override): Update call to s390_handle_arch_option.
9018 (s390_emit_prologue): Use %d format for s390_stack_size in
9019 diagnostic. Use %wd for HOST_WIDE_INT.
9020 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9021 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9022 * config/s390/s390.opt (config/s390/s390-opts.h): New
9023 HeaderInclude entry.
9024 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9025 s390_arch_flags, s390_warn_framesize): New Variable entries.
9026 (s390_arch_option): New Enum and EnumValue entries.
9027 (march=): Use Enum instead of Var.
9028 (mstack-guard=, mstack-size=): Use UInteger and Var.
9029 (mtune=): Use Enum.
9030
9031 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9032
9033 * config/score/score.c (score_handle_option): Don't assert that
9034 global structures are in use. Access target_flags via opts
9035 pointer. Use value of -march= option to determine target_flags
9036 settings.
9037 * config/score/score.opt (march=): Use Enum.
9038 (score_arch): New Enum and EnumValue entries.
9039
9040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9041
9042 * config/mep/mep.c (option_mtiny_specified): Remove.
9043 (mep_option_override): Move register handling for -mivc2 from
9044 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9045 instead of option_mtiny_specified.
9046 (mep_handle_option): Access target_flags via opts pointer. Don't
9047 assert that global structures are in use. Defer part of -mivc2
9048 handling and move it to mep_option_override.
9049 * config/mep/mep.opt (IVC2): New Mask entry.
9050 (mivc2): Use Var and Defer instead of Mask.
9051
9052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9053
9054 * config/v850/v850-opts.h: New.
9055 * config/v850/v850.c (small_memory): Replace with
9056 small_memory_physical_max array. Make that array static const.
9057 (v850_handle_memory_option): Take integer value of argument. Take
9058 gcc_options pointer, option text and location. Return void.
9059 Update for changes to small memory structures.
9060 (v850_handle_option): Access target_flags via opts pointer. Don't
9061 assert that global structures are in use. Update calls to
9062 v850_handle_memory_option.
9063 (v850_encode_data_area): Update references to small memory settings.
9064 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9065 (enum small_memory_type): Move to v850-opts.h.
9066 * config/v850/v850.opt (config/v850/v850-opts.h): New
9067 HeaderInclude entry.
9068 (small_memory_max): New Variable entry.
9069 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9070 (mtda, mzda): Likewise.
9071
9072 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9073
9074 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9075 pointer. Don't assert that global structures are in use.
9076
9077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9078
9079 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9080 via opts pointer. Don't assert that global structures are in use.
9081
9082 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9083
9084 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9085 (munix=93): Use Var.
9086 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9087 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9088 * config/pa/pa-opts.h: New.
9089 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9090 (pa_handle_option): Don't assert that global structures are in
9091 use. Access target_flags via opts pointer. Don't handle
9092 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9093 OPT_munix_98 here.
9094 (pa_option_override): Handle deferred OPT_mfixed_range_.
9095
9096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9097
9098 * config/mn10300/mn10300-opts.h: New.
9099 * config/mn10300/mn10300.c (mn10300_processor,
9100 mn10300_tune_string): Remove.
9101 (mn10300_handle_option): Don't assert that global structures are
9102 in use. Access mn10300_processor via opts pointer. Don't handle
9103 OPT_mtune_ here.
9104 * config/mn10300/mn10300.h (enum processor_type): Move to
9105 mn10300-opts.h.
9106 (mn10300_processor): Remove.
9107 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9108 HeaderInclude entry.
9109 (mn10300_processor): New Variable entry.
9110 (mtune=): Use Var.
9111
9112 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9113
9114 * config/microblaze/microblaze.c: Don't include opts.h.
9115 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9116 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9117 (mno-clearbss): Use Var and Warn.
9118
9119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9120
9121 * config/m32r/m32r-opts.h: New.
9122 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9123 (m32r_handle_option): Don't assert that global structures are in
9124 use. Access target_flags and m32r_cache_flush_func via opts
9125 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9126 OPT_mno_flush_trap here.
9127 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9128 include of m32r-opts.h.
9129 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9130 HeaderInclude entry.
9131 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9132 (mmodel=): Use Enum and Var.
9133 (m32r_model): New Enum and EnumValue entries.
9134 (mno-flush-trap): Use Var.
9135 (msdata=): Use Enum and Var.
9136 (m32r_sdata): New Enum and EnumValue entries.
9137
9138 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9139
9140 * config/m32c/m32c.c: Don't include opts.h.
9141 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9142 m32c_handle_option): Remove.
9143 (m32c_option_override): Check global_options_set.x_target_memregs
9144 instead of target_memregs_set.
9145 * config/m32c/m32c.h (target_memregs): Remove.
9146 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9147 variable.
9148
9149 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9150
9151 * config/iq2000/iq2000-opts.h: New.
9152 * config/iq2000/iq2000.c: Don't include opts.h.
9153 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9154 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9155 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9156 HeaderInclude entry.
9157 (iq2000_tune): New Variable entry.
9158 (march=): Add comment. Use Enum.
9159 (iq2000_arch): New Enum and EnumValue entries.
9160 (mcpu=): Use Enum and Var.
9161 (iq2000_tune): New Enum and EnumValue entries.
9162
9163 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9164
9165 * config/ia64/ia64-opts.h: New.
9166 * config/ia64/ia64.c (ia64_tune): Remove.
9167 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9168 here. Use error_at.
9169 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9170 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9171 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9172 HeaderInclude entry.
9173 (ia64_tune): New Variable entry.
9174 (mfixed-range=): Use Defer and Var.
9175 (mtune=): Use Enum and Var.
9176 (ia64_tune): New Enum and EnumValue entries.
9177
9178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9179
9180 * config/frv/frv-opts.h: New.
9181 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9182 frv-opts.h.
9183 (frv_cpu_type): Remove.
9184 * config/frv/frv.c: Don't include opts.h.
9185 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9186 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9187 (frv_cpu_type): New Variable entry.
9188 (frv_cpu): New Enum and EnumValue entries.
9189
9190 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9191
9192 * config/cris/cris.c (cris_handle_option): Access target_flags via
9193 opts pointer. Don't assert that global structures are in use.
9194 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9195 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9196
9197 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9198
9199 * config/bfin/bfin-opts.h: New.
9200 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9201 bfin_si_revision, bfin_workarounds): Remove.
9202 (bfin_cpus): Make static const.
9203 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9204 not bfin_lib_id_given.
9205 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9206 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9207 pointer. Use error_at. Don't assert that global structures are in use.
9208 * config/bfin/bfin.h: Include bfin-opts.h.
9209 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9210 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9211 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9212 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9213 entries.
9214
9215 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9216
9217 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9218 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9219 or -msoft-float here.
9220 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9221 -msoft-float and -mhard-float.
9222 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9223 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9224 msoft-float.
9225 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9226 -msoft-float.
9227 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9228 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9229 not mhard-float.
9230 (LIBGCC_SPEC): Don't handle -msoft-float.
9231 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9232 -mhard-float.
9233 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9234 msoft-float.
9235 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9236 -mfloat-abi=*, not -msoft-float and -mhard-float.
9237 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9238 -msoft-float.
9239 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9240 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9241 mhard-float and msoft-float.
9242 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9243 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9244 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9245 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9246 mhard-float.
9247 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9248 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9249 msoft-float.
9250 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9251 not mhard-float.
9252 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9253 not msoft-float.
9254
9255 2011-03-22 Richard Henderson <rth@redhat.com>
9256
9257 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9258 TARGET_ABI_WINDOWS_NT.
9259 (alpha_output_function_end_prologue): Likewise.
9260 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9261 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9262 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9263 (trap, *movsi_nt_vms): Likewise.
9264 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9265 (*tablejump_osf_nt_internal): Remove.
9266 * config/alpha/predicates.md (input_operand): Only test Pmode.
9267
9268 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9269
9270 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9271 via opts pointer. Use error_at. Don't assert that global
9272 structures are in use.
9273
9274 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9275
9276 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9277 (ix86_handle_option): Access ix86_isa_flags and
9278 ix86_isa_flags_explicit via opts pointer. Don't assert that
9279 global structures are in use.
9280 (ix86_function_specific_save, ix86_function_specific_restore):
9281 Update ix86_isa_flags_explicit field name.
9282 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9283 (ix86_isa_flags_explicit): Rename TargetSave entry to
9284 x_ix86_isa_flags_explicit.
9285
9286 2011-03-22 Richard Henderson <rth@redhat.com>
9287
9288 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9289 (alpha_option_override, direct_return): Likewise.
9290 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9291 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9292 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9293 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9294 (alpha_expand_epilogue, alpha_end_function): Likewise.
9295 (alpha_init_libfuncs): Likewise.
9296 (struct machine_function): Remove unicosmk members.
9297 (print_operand) ['t']: Remove.
9298 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9299 unicosmk_output_module_name, unicosmk_output_common,
9300 current_section_align, unicosmk_output_text_section_asm_op,
9301 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9302 unicosmk_section_type_flags, unicosmk_unique_section,
9303 unicosmk_asm_named_section, unicosmk_insert_attributes,
9304 unicosmk_output_align, unicosmk_defer_case_vector,
9305 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9306 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9307 unicosmk_output_ssib, unicosmk_add_call_info_word,
9308 unicosmk_extern_head, unicosmk_output_default_externs,
9309 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9310 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9311 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9312 * config/alpha/alpha-protos.h: Update.
9313 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9314 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9315 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9316 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9317 (*mulsi_se, mulvsi3): Likewise.
9318 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9319 (*divmodsi_internal, call, call_value, realign): Likewise.
9320 (moddi3, umoddi3): Likewise; remove duplicate expander.
9321 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9322 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9323 (*movdi_nofix): Remove r/U alternative.
9324 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9325 * config/alpha/constraints.md ("U"): Remove.
9326 * config/alpha/predicates.md (call_operand"): Don't test
9327 TARGET_ABI_UNICOSMK.
9328
9329 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9330
9331 * target.def (handle_option): Take gcc_options and
9332 cl_decoded_option pointers and location_t.
9333 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9334 * doc/tm.texi: Regenerate.
9335 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9336 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9337 * lto-opts.c (lto_reissue_options): Generate option structure for
9338 targetm.handle_option call.
9339 * opts.c (target_handle_option): Update call to
9340 targetm.handle_option. Remove assertions about values now passed
9341 down to hook.
9342 * targhooks.c (default_target_handle_option): New.
9343 * targhooks.h (default_target_handle_option): Declare.
9344 * config/alpha/alpha.c: Include opts.h.
9345 (alpha_handle_option): Update to new hook interface.
9346 * config/arm/arm.c: Include opts.h.
9347 (arm_handle_option): Update to new hook interface.
9348 * config/arm/t-arm (arm.o): Update dependencies.
9349 * config/bfin/bfin.c: Include opts.h.
9350 (bfin_handle_option): Update to new hook interface.
9351 * config/cris/cris.c: Include opts.h.
9352 (cris_handle_option): Update to new hook interface.
9353 * config/frv/frv.c: Include opts.h.
9354 (frv_handle_option): Update to new hook interface.
9355 * config/i386/i386.c: Include opts.h.
9356 (ix86_handle_option): Update to new hook interface.
9357 (ix86_valid_target_attribute_inner_p): Generate option structure
9358 for call to ix86_handle_option.
9359 * config/i386/t-i386 (i386.o): Update dependencies.
9360 * config/ia64/ia64.c: Include opts.h.
9361 (ia64_handle_option): Update to new hook interface.
9362 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9363 * config/iq2000/iq2000.c: Include opts.h.
9364 (iq2000_handle_option): Update to new hook interface.
9365 * config/m32c/m32c.c: Include opts.h.
9366 (m32c_handle_option): Update to new hook interface.
9367 * config/m32r/m32r.c: Include opts.h.
9368 (m32r_handle_option): Update to new hook interface.
9369 * config/m68k/m68k.c: Include opts.h.
9370 (m68k_handle_option): Update to new hook interface.
9371 * config/mep/mep.c: Include opts.h.
9372 (mep_handle_option): Update to new hook interface.
9373 * config/microblaze/microblaze.c: Include opts.h.
9374 (microblaze_handle_option): Update to new hook interface.
9375 * config/mips/mips.c: Include opts.h.
9376 (mips_handle_option): Update to new hook interface.
9377 * config/mn10300/mn10300.c: Include opts.h.
9378 (mn10300_handle_option): Update to new hook interface.
9379 * config/pa/pa.c: Include opts.h.
9380 (pa_handle_option): Update to new hook interface.
9381 * config/pdp11/pdp11.c: Include opts.h.
9382 (pdp11_handle_option): Update to new hook interface.
9383 * config/rs6000/rs6000.c: Include opts.h.
9384 (rs6000_handle_option): Update to new hook interface.
9385 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9386 * config/rx/rx.c: Include opts.h.
9387 (rx_handle_option): Update to new hook interface.
9388 * config/s390/s390.c: Include opts.h.
9389 (s390_handle_option): Update to new hook interface.
9390 * config/score/score.c: Include opts.h.
9391 (score_handle_option): Update to new hook interface.
9392 * config/sh/sh.c: Include opts.h.
9393 (sh_handle_option): Update to new hook interface.
9394 * config/sparc/sparc.c: Include opts.h.
9395 (sparc_handle_option): Update to new hook interface.
9396 * config/v850/v850.c: Include opts.h.
9397 (v850_handle_option): Update to new hook interface.
9398
9399 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9400
9401 * gcc.c (driver_unknown_option_callback): Only permit and save
9402 unknown -Wno- options.
9403 (driver_wrong_lang_callback): Save options directly instead of via
9404 driver_unknown_option_callback.
9405
9406 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9407
9408 * combine.c (simplify_set): Try harder to find the best CC mode when
9409 simplifying a nested COMPARE on the RHS.
9410
9411 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9412
9413 * config/alpha/gnu.h: Remove.
9414 * config/arc: Remove directory.
9415 * config/arm/netbsd.h: Remove.
9416 * config/arm/t-pe: Remove.
9417 * config/crx: Remove directory.
9418 * config/i386/netbsd.h: Remove.
9419 * config/m68hc11: Remove directory.
9420 * config/m68k/uclinux-oldabi.h: Remove.
9421 * config/mcore/mcore-pe.h: Remove.
9422 * config/mcore/t-mcore-pe: Remove.
9423 * config/netbsd-aout.h: Remove.
9424 * config/rs6000/gnu.h: Remove.
9425 * config/sh/sh-symbian.h: Remove.
9426 * config/sh/symbian-base.c: Remove.
9427 * config/sh/symbian-c.c: Remove.
9428 * config/sh/symbian-cxx.c: Remove.
9429 * config/sh/symbian-post.h: Remove.
9430 * config/sh/symbian-pre.h: Remove.
9431 * config/sh/t-symbian: Remove.
9432 * config/svr3.h: Remove.
9433 * config/vax/netbsd.h: Remove.
9434 * config.build: Don't handle i[34567]86-*-pe.
9435 * config.gcc: Remove handling of deprecations for most deprecated
9436 targets.
9437 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9438 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9439 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9440 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9441 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9442 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9443 Remove cases.
9444 * config.host: Don't handle i[34567]86-*-pe.
9445 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9446 (ASM_SPEC32): Don't handle -mcall-gnu.
9447 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9448 -mcall-gnu.
9449 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9450 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9451 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9452 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9453 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9454 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9455 conditional on SYMBIAN.
9456 * configure.ac: Don't handle powerpc*-*-gnu*.
9457 * configure: Regenerate.
9458 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9459 * doc/install-old.texi (m6811, m6812): Don't mention.
9460 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9461 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9462 (m68k-uclinuxoldabi): Don't mention.
9463 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9464 Remove.
9465 (-mcall-gnu): Remove.
9466 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9467 families): Remove constraint documentation.
9468
9469 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9470
9471 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9472 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9473 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9474
9475 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9476
9477 PR target/48226
9478 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9479 vector when peeking at the next token for vector, don't expand the
9480 keywords.
9481
9482 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9483
9484 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9485 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9486 * config/avr/avr.c (init_cumulative_args)
9487 (avr_function_arg_advance): Use it.
9488 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9489 sibcall epilogues.
9490 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9491 (avr_function_ok_for_sibcall): ...this new function.
9492 (avr_lookup_function_attribute1): New static Function.
9493 (avr_naked_function_p, interrupt_function_p)
9494 (signal_function_p, avr_OS_task_function_p)
9495 (avr_OS_main_function_p): Use it.
9496 * config/avr/avr.md ("sibcall", "sibcall_value")
9497 ("sibcall_epilogue"): New expander.
9498 ("*call_insn", "*call_value_insn"): New insn.
9499 ("call_insn", "call_value_insn"): Remove
9500 ("call", "call_value", "epilogue"): Change expander to handle
9501 sibling calls.
9502
9503 2011-03-21 Nick Clifton <nickc@redhat.com>
9504
9505 * doc/invoke.texi (Overall Options): Move closing brace to end of
9506 options list.
9507 (Optimization Options): Add missing @gol.
9508 (Directory Options): Likewise.
9509 (i386 and x86-64 Options): Likewise.
9510 (RS6000 and PowerPC Options): Likewise.
9511 (i386 and x86-64 Windows Options): Likewise.
9512 (V850 Options): Add text missing from descriptions.
9513
9514 2011-03-22 Richard Henderson <rth@redhat.com>
9515
9516 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9517 (avr_incoming_return_addr_rtx): New.
9518 (emit_push_byte): New.
9519 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9520 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9521 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9522 (emit_pop_byte): New.
9523 (expand_epilogue): Use it. Pop frame pointer by bytes.
9524 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9525 (INCOMING_RETURN_ADDR_RTX): New.
9526 (INCOMING_FRAME_SP_OFFSET): New.
9527 (ARG_POINTER_CFA_OFFSET): New.
9528 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9529 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9530 (pophi): Remove.
9531
9532 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9533
9534 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9535
9536 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9537 (FUNCTION_ARG_ADVANCE): Likewise.
9538 * tm.texi.in: Change references to them to hook references.
9539 * tm.texi: Regenerate.
9540 * targhooks.c (default_function_arg): Eliminate check for target
9541 macro.
9542 (default_function_incoming_arg): Likewise.
9543 (default_function_arg_advance): Likewise.
9544 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9545 (function_arg_advance): Likewise.
9546 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9547
9548 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9549
9550 * tree.c (build_call_1): New function.
9551 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9552
9553 2011-03-22 Richard Guenther <rguenther@suse.de>
9554
9555 PR tree-optimization/48228
9556 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9557 for single-arg PHIs.
9558
9559 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9560
9561 PR rtl-optimization/48143
9562 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9563 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9564 sse2_cvtps2pd): Likewise.
9565
9566 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9567
9568 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9569
9570 2011-03-22 Richard Guenther <rguenther@suse.de>
9571
9572 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9573 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9574 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9575 and REALIGN_LOAD_EXPR.
9576 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9577 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9578 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9579 DOT_PROD_EXPR case ...
9580 (expand_expr_real_2): ... here.
9581 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9582 and REALIGN_LOAD_EXPR.
9583 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9584 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9585 (vect_create_epilog_for_reduction): Likewise.
9586 (vectorizable_reduction): Likewise.
9587 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9588 * tree-vect-stmts.c (vectorizable_load): Likewise.
9589
9590 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9591
9592 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9593
9594 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9595
9596 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9597 handling for PLTOFF/GOTOFF.
9598
9599 2011-03-22 Nick Clifton <nickc@redhat.com>
9600
9601 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9602 trailing backslash from the end of the macro definition.
9603
9604 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9605
9606 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9607 and PLT unspecs.
9608
9609 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9610
9611 * expr.h (prepare_operand): Move to...
9612 * optabs.h (prepare_operand): ...here and change the insn code
9613 parameter from "int" to "enum insn_code".
9614 (insn_operand_matches): Declare.
9615 * expr.c (init_expr_target): Use insn_operand_matches.
9616 (compress_float_constant): Likewise.
9617 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9618 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9619 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9620 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9621 Likewise.
9622 (gen_cond_trap): Likewise.
9623 (prepare_operand): Likewise. Change icode to an insn_code.
9624 (insn_operand_matches): New function.
9625 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9626 * reload1.c (gen_reload): Likewise.
9627 * targhooks.c (default_secondary_reload): Likewise.
9628
9629 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9630
9631 * config/alpha/alpha.md (unspec): New define_c_enum.
9632 (unspecv): Ditto.
9633
9634 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9635
9636 PR debug/48214
9637 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9638 between a call and its CALL_ARG_LOCATION note.
9639
9640 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9641
9642 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9643
9644 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9645
9646 PR c/42544
9647 PR c/48197
9648 * c-common.c (shorten_compare): If primopN is first sign-extended
9649 to opN and then zero-extended to result type, set primopN to opN.
9650
9651 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9652
9653 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9654 for barrier handlers.
9655
9656 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9657
9658 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9659 UNSPEC constants to be in the unspec enumeration, and redefine
9660 all UNSPECV constants to be in the unspecv enumeration, so that
9661 dumps print which unspec/unspec_volatile this is.
9662 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9663 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9664 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9665 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9666 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9667
9668 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9669 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9670 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9671 * config/rs6000/sync.md (isync, lwsync): Ditto.
9672
9673 2011-03-21 Richard Guenther <rguenther@suse.de>
9674
9675 * params.def (lto-min-partition): Fix typo.
9676
9677 2011-03-21 Richard Guenther <rguenther@suse.de>
9678
9679 PR c/47939
9680 * c-decl.c (grokdeclarator): Drop to the main variant only
9681 for array types. Drop flag_gen_aux_info check.
9682
9683 2011-03-21 Richard Guenther <rguenther@suse.de>
9684
9685 PR translation/47911
9686 * params.def (lto-partitions): Fix typo.
9687 (lto-min-partition): Fix wording.
9688
9689 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9690
9691 * config/rs6000/t-freebsd: Remove duplication from file.
9692
9693 2011-03-21 Richard Guenther <rguenther@suse.de>
9694
9695 PR middle-end/47661
9696 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9697
9698 2011-03-21 Richard Guenther <rguenther@suse.de>
9699
9700 PR lto/48210
9701 * params.def (lto-partitions): Require at least 1 partition.
9702
9703 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9704
9705 * gthr-solaris.h: Remove.
9706 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9707 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9708 (LIB_SPEC): Likewise.
9709 * config/sol2.opt (threads): Remove.
9710 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9711 (sparc*-*-solaris2*): Likewise.
9712 * configure.ac (enable_threads): Enable solaris support.
9713 * configure: Regenerate.
9714 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9715 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9716 solaris.
9717
9718 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9719
9720 * config.gcc: Obsolete *-*-solaris2.8*.
9721 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9722
9723 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9724
9725 PR bootstrap/48135
9726 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9727 reference. Solaris 8 perl works.
9728
9729 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9730
9731 PR bootstrap/48135
9732 * doc/install.texi (Prerequisites): Move jar etc. up.
9733 Explain support library version requirements.
9734
9735 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9736
9737 PR bootstrap/48135
9738 * doc/install.texi (Prerequisites): Move Perl to build
9739 requirements. Always necessary on Solaris 2 with Sun ld.
9740
9741 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9742
9743 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9744 binutils 2.21.
9745 (Specific, i?86-*-solaris2.[89]): Likewise.
9746 (Specific, i?86-*-solaris2.10): Likewise.
9747 (Specific, mips-sgi-irix6): Likewise.
9748 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9749 Update for binutils 2.21.
9750
9751 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9752
9753 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9754 Allow -fuse-linker-plugin for non-default plugin linker.
9755 * configure: Regenerate.
9756
9757 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9758
9759 PR bootstrap/48167
9760 * gengtype.c (files_rules): Added rule for cp/parser.h.
9761
9762 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9763
9764 PR target/48213
9765 * config/s390/s390.c (s390_delegitimize_address): Don't call
9766 lowpart_subreg if orig_x has BLKmode.
9767
9768 2011-03-21 Kai Tietz <ktietz@redhat.com>
9769
9770 PR target/12171
9771 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9772 * tree.h (attribute_spec): Add new member affects_type_identity.
9773 * attribs.c (empty_attribute_table): Adjust attribute_spec
9774 initializers.
9775 * config/alpha/alpha.c: Likewise.
9776 * config/arc/arc.c: Likewise.
9777 * config/arm/arm.c: Likewise.
9778 * config/avr/avr.c: Likewise.
9779 * config/bfin/bfin.c: Likewise.
9780 * config/crx/crx.c: Likewise.
9781 * config/darwin.h: Likewise.
9782 * config/h8300/h8300.c: Likewise.
9783 * config/i386/cygming.h: Likewise.
9784 * config/i386/i386.c: Likewise.
9785 * config/ia64/ia64.c: Likewise.
9786 * config/m32c/m32c.c: Likewise.
9787 * config/m32r/m32r.c: Likewise.
9788 * config/m68hc11/m68hc11.c: Likewise.
9789 * config/m68k/m68k.c: Likewise.
9790 * config/mcore/mcore.c: Likewise.
9791 * config/mep/mep.c: Likewise.
9792 * config/microblaze/microblaze.c: Likewise.
9793 * config/mips/mips.c: Likewise.
9794 * config/rs6000/rs6000.c: Likewise.
9795 * config/rx/rx.c: Likewise.
9796 * config/sh/sh.c: Likewise.
9797 * config/sol2.h: Likewise.
9798 * config/sparc/sparc.c: Likewise.
9799 * config/spu/spu.c: Likewise.
9800 * config/stormy16/stormy16.c: Likewise.
9801 * config/v850/v850.c: Likewise.
9802
9803 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9804
9805 * simplify-rtx.c (simplify_binary_operation_1): Handle
9806 (xor (and A B) C) case when B and C are both constants.
9807
9808 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9809
9810 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9811
9812 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9813
9814 PR bootstrap/48168
9815 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9816
9817 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9818
9819 PR rtl-optimization/48156
9820 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9821 assume df and df_lr are not NULL.
9822
9823 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9824
9825 PR debug/48023
9826 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9827 between a call and its CALL_ARG_LOCATION note.
9828
9829 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9830
9831 PR debug/48178
9832 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9833 between a call and its corresponding CALL_ARG_LOCATION note.
9834
9835 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9836
9837 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9838 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9839 * haifa-sched.c (setup_ref_regs): Ditto.
9840 * caller-save.c (add_used_regs_1): Ditto.
9841 * dse.c (look_for_hardregs): Ditto.
9842 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9843 * sched-rgn.c (check_live_1): Ditto.
9844
9845 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9846
9847 * c-decl.c (diagnose_mismatched_decls): Give an error for
9848 redefining a typedef with variably modified type.
9849
9850 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9851
9852 * c-decl.c (grokfield): Don't allow typedefs for structures or
9853 unions with no tag by default.
9854 * doc/extend.texi (Unnamed Fields): Update.
9855
9856 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9857
9858 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9859 Rewrite using indirect functions.
9860 (lwp_slwpcb): Ditto.
9861 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9862 (avx_vinsertf128<mode>): Ditto.
9863
9864 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9865
9866 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9867 unspecs.
9868
9869 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9870
9871 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9872 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9873
9874 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9875
9876 PR rtl-optimization/48170
9877 * gcse.c (hoist_code): Remove bogus asserts.
9878
9879 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9880
9881 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9882 computation for prologue/epilogue.
9883
9884 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9885
9886 * Makefile.in (check-consistency): Remove.
9887
9888 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9889
9890 PR debug/48176
9891 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9892 arange_table_in_use is 0, but either text_section_used or
9893 cold_text_section_used is true. Don't call it if
9894 !info_section_emitted.
9895
9896 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9897
9898 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9899 FUNCTION_VALUE_REGNO_P): Remove.
9900 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9901 Remove.
9902 * config/avr/avr.c (avr_ret_register): Make static inline.
9903 (avr_function_value_regno_p): New function.
9904 (avr_libcall_value): Make static. Add 'func' argument.
9905 (avr_function_value): Make static. Rename 'func' argument to
9906 'fn_decl_or_type', forward it to avr_libcall_value. Call
9907 avr_ret_register function instead of RET_REGISTER macro.
9908 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9909
9910 2011-03-18 Jason Merrill <jason@redhat.com>
9911
9912 PR c++/23372
9913 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9914
9915 2011-03-18 Richard Guenther <rguenther@suse.de>
9916
9917 * doc/install.texi (--enable-gold): Remove.
9918 (--with-plugin-ld): Document.
9919 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9920
9921 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9922
9923 PR middle-end/47790
9924 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9925 again after expansion changes.
9926
9927 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9928
9929 * combine.c (try_combine): Do simplification only call of
9930 subst() on i2 even when i1 is present. Update comments.
9931
9932 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9933
9934 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9935 and UNSPEC_PCREL_SYMOFF.
9936
9937 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9938
9939 * config/s390/s390.md: Use define_c_enum for the unspec constant
9940 definitions.
9941
9942 2011-03-18 Richard Henderson <rth@redhat.com>
9943 Jakub Jelinek <jakub@redhat.com>
9944
9945 PR bootstrap/48161
9946 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9947 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9948
9949 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9950
9951 PR middle-end/47725
9952 * combine.c (cant_combine_insn_p): Don't check zero/sign
9953 extended hard registers.
9954
9955 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9956
9957 PR middle-end/47725
9958 * combine.c (cant_combine_insn_p): Check zero/sign extended
9959 hard registers.
9960
9961 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9962
9963 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9964 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9965 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9966 Change return type to bool.
9967 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9968
9969 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9970
9971 PR debug/48163
9972 * var-tracking.c (prepare_call_arguments): If CALL target
9973 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9974 pc instead of looking it up using cselib_lookup and use
9975 Pmode for it if x has VOIDmode.
9976 * dwarf2out.c (gen_subprogram_die): If also both first and
9977 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9978
9979 PR debug/48163
9980 * function.c (assign_parms): For data.passed_pointer parms
9981 use MEM of data.entry_parm instead of data.entry_parm itself
9982 as DECL_INCOMING_RTL.
9983 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9984 also when passed and declared mode is the same, DECL_RTL
9985 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9986 a MEM too.
9987
9988 2011-03-16 Jeff Law <law@redhat.com>
9989
9990 PR rtl-optimization/37273
9991 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9992 handle them like argument loads from stack slots. Do not double
9993 count memory for memory constants and argument loads from stack slots.
9994
9995 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9996
9997 PR debug/48160
9998 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9999
10000 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10001
10002 PR target/48171
10003 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10004
10005 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10006
10007 PR bootstrap/48153
10008 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10009 if dwarf_strict.
10010 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10011 Clear call_arg_locations and call_arg_loc_last always.
10012
10013 PR middle-end/48152
10014 * var-tracking.c (prepare_call_arguments): If argument needs to be
10015 passed by reference, adjust argtype and mode.
10016
10017 2011-03-17 Richard Guenther <rguenther@suse.de>
10018
10019 PR middle-end/48134
10020 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10021 a value make sure to fold the statement.
10022
10023 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10024
10025 PR target/43872
10026 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10027 return condition with !cfun->calls_alloca.
10028
10029 2011-03-17 Richard Guenther <rguenther@suse.de>
10030
10031 PR bootstrap/48148
10032 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10033 origin for decls in other ltrans units.
10034 (input_varpool_node): Likewise.
10035
10036 2011-03-17 Richard Guenther <rguenther@suse.de>
10037
10038 PR middle-end/48165
10039 * tree-object-size.c (compute_object_offset): Properly return
10040 the offset operand of MEM_REFs as sizetype.
10041
10042 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10043
10044 PR rtl-optimization/48141
10045 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10046 * dse.c: Include params.h.
10047 (active_local_stores_len): New variable.
10048 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10049 to NULL.
10050 (record_store, check_mem_read_rtx): Decrease it when removing
10051 from the chain.
10052 (scan_insn): Likewise. Increase it when adding to chain, if it
10053 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10054 set active_local_stores to NULL before the addition.
10055 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10056
10057 PR rtl-optimization/48141
10058 * dse.c (record_store): If no positions are needed in an insn
10059 that cannot be deleted, at least unchain it from active_local_stores.
10060
10061 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10062
10063 PR debug/47510
10064 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10065 (lookup_type_die_strip_naming_typedef): ... here.
10066 (get_context_die): Use it.
10067 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10068 the anonymous struct named by the naming typedef.
10069
10070 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10071
10072 PR target/48154
10073 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10074 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10075
10076 2011-03-16 Jeff Law <law@redhat.com>
10077
10078 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10079 check for operands of conditional. Allow type to be a pointer.
10080
10081 2011-03-16 Richard Guenther <rguenther@suse.de>
10082
10083 PR tree-optimization/48149
10084 * fold-const.c (fold_binary_loc): Fold
10085 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10086
10087 2011-03-16 Richard Guenther <rguenther@suse.de>
10088
10089 PR tree-optimization/26134
10090 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10091 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10092 (non_rewritable_mem_ref_base): Handle complex type component
10093 accesses, constrain offsets for vector and complex extracts
10094 more properly.
10095
10096 2011-03-16 Richard Guenther <rguenther@suse.de>
10097
10098 PR tree-optimization/48146
10099 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10100 operands avoiding the need for renaming.
10101
10102 2011-03-16 Richard Guenther <rguenther@suse.de>
10103
10104 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10105 constant folding. Move MEM_REF canonicalization first.
10106 Rely on fold_const_aggregate_ref for initializer folding.
10107 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10108
10109 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10110
10111 PR middle-end/48136
10112 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10113 arg0/arg1 or their arguments are always fold converted to matching
10114 types.
10115
10116 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10117 to nargs.
10118
10119 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10120
10121 PR lto/46944
10122 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10123 Handle in-tree gold.
10124 (ld_vers): Extract binutils version for gold.
10125 (gcc_cv_ld_hidden): Handle gold here.
10126 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10127 * configure: Regenerate.
10128 * config.in: Regenerate.
10129 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10130 -fuse-linker-plugin otherwise.
10131 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10132 (LINK_COMMAND_SPEC): Use it.
10133 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10134
10135 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10136
10137 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10138 * calls.c: Remove debug.h include.
10139 (emit_call_1): Don't call virtual_call_token debug hook.
10140 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10141 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10142 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10143 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10144 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10145 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10146 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10147 dwarf2out_virtual_call): Remove.
10148 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10149 copy_call_info and virtual_call hooks.
10150 (dwarf2out_init): Don't initialize vcall_insn_table,
10151 debug_dcall_section and debug_vcall_section.
10152 (prune_unused_types): Don't mark nodes from dcall_table.
10153 (dwarf2out_finish): Don't output dcall or vcall tables.
10154 * final.c (final_scan_insn): Don't call direct_call or
10155 virtual_call debug hooks.
10156 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10157 virtual_call_token, copy_call_info and virtual_call hooks.
10158 (debug_nothing_uid): Remove prototype.
10159 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10160 copy_call_info and virtual_call hooks.
10161 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10162 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10163 * debug.c (do_nothing_debug_hooks): Likewise.
10164 (debug_nothing_uid): Remove.
10165 * doc/invoke.texi (-fenable-icf-debug): Remove.
10166 * common.opt (-fenable-icf-debug): Likewise.
10167
10168 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10169 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10170 call's MEM. Handle functions returning aggregate through a hidden
10171 first pointer. For virtual calls add clobbered pc to call arguments
10172 chain.
10173 * dwarf2out.c (gen_subprogram_die): Emit
10174 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10175 can't be emitted.
10176
10177 PR debug/45882
10178 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10179 * rtl.h (ENTRY_VALUE_EXP): Define.
10180 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10181 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10182 * print-rtl.c (print_rtx): Likewise.
10183 * gengtype.c (adjust_field_rtx_def): Likewise.
10184 * var-tracking.c (vt_add_function_parameter): Adjust
10185 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10186 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10187 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10188 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10189 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10190
10191 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10192 Call var_location debug hook even on CALL_INSNs.
10193 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10194 * rtl.def (ENTRY_VALUE): New.
10195 * dwarf2out.c: Include cfglayout.h.
10196 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10197 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10198 (struct call_arg_loc_node): New type.
10199 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10200 tail_call_site_count): New variables.
10201 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10202 DW_TAG_GNU_call_site_parameter.
10203 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10204 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10205 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10206 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10207 and DW_AT_GNU_all_source_call_sites.
10208 (mem_loc_descriptor): Handle ENTRY_VALUE.
10209 (add_src_coords_attributes): Don't add enything if
10210 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10211 (dwarf2out_abstract_function): Save and clear call_arg_location,
10212 call_site_count and tail_call_site_count around dwarf2out_decl call.
10213 (gen_call_site_die): New function.
10214 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10215 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10216 (dwarf2out_function_decl): Clear call_arg_locations,
10217 call_arg_loc_last, set call_site_count and tail_call_site_count
10218 to -1 and free block_map.
10219 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10220 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10221 followed by any real instructions.
10222 (dwarf2out_begin_function): Set call_site_count and
10223 tail_call_site_count to 0.
10224 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10225 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10226 attempt to force a DIE for it and worst case remove the attribute.
10227 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10228 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10229 the decl itself.
10230 * var-tracking.c: Include tm_p.h.
10231 (vt_stack_adjustments): For calls call note_register_arguments.
10232 (argument_reg_set): New variable.
10233 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10234 ensure the VALUE is resolved.
10235 (call_arguments): New variable.
10236 (prepare_call_arguments): New function.
10237 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10238 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10239 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10240 always use the best expression.
10241 (vt_expand_loc): Add ignore_cur_loc argument.
10242 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10243 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10244 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10245 note for all calls.
10246 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10247 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10248 argument. Don't call cselib_preserve_only_values and
10249 cselib_reset_table.
10250 (note_register_arguments): New function.
10251 (vt_initialize): Compute argument_reg_set. Call
10252 vt_add_function_parameters before processing basic blocks instead of
10253 afterwards. For calls call prepare_call_arguments before calling
10254 cselib_process_insn.
10255 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10256 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10257 (var-tracking.o): Depend on $(TM_P_H).
10258 * cfglayout.h (insn_scope): New prototype.
10259 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10260 * cfglayout.c (insn_scope): No longer static.
10261 * insn-notes.def (CALL_ARG_LOCATION): New.
10262 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10263 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10264 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10265 nothing for DECL_EXTERNAL BLOCK_VARS.
10266
10267 2011-03-16 Alan Modra <amodra@gmail.com>
10268
10269 PR target/45844
10270 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10271 create invalid offset address for vsx splat insn.
10272 * config/rs6000/predicates.md (splat_input_operand): New.
10273 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10274
10275 2011-03-15 Xinliang David Li <davidxl@google.com>
10276
10277 PR c/47837
10278 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10279 (normalize_preds): New function.
10280 (is_use_properly_guarded): Normalize def predicates.
10281
10282 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10283
10284 PR target/46788
10285 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10286 in the output template.
10287
10288 2011-03-15 Richard Guenther <rguenther@suse.de>
10289
10290 PR middle-end/47650
10291 * tree-pretty-print.c (dump_function_declaration): Properly
10292 dump unprototyped and varargs function types.
10293
10294 2011-03-15 Richard Guenther <rguenther@suse.de>
10295
10296 PR tree-optimization/13954
10297 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10298 and friends.
10299
10300 2011-03-15 Richard Guenther <rguenther@suse.de>
10301
10302 PR tree-optimization/48037
10303 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10304 selects into BIT_FIELD_REFs.
10305 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10306 vector select.
10307
10308 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10309
10310 PR tree-optimization/48129
10311 * builtins.c (fold_builtin_snprintf): Convert to type of
10312 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10313 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10314
10315 2011-03-15 Richard Guenther <rguenther@suse.de>
10316
10317 PR tree-optimization/41490
10318 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10319 value but with VUSE.
10320 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10321 return statements.
10322 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10323 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10324 * tree-tailcall.c (find_tail_calls): Ignore returns.
10325
10326 2011-03-15 Richard Guenther <rguenther@suse.de>
10327
10328 PR middle-end/48031
10329 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10330 or variable-indexed array accesses when in gimple form.
10331
10332 2011-03-15 Richard Guenther <rguenther@suse.de>
10333
10334 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10335
10336 2011-03-15 Alan Modra <amodra@gmail.com>
10337
10338 PR target/48032
10339 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10340 presume symbol_refs without a symbol_ref_decl are suitably
10341 aligned, nor other trees we may see here. Handle anchor symbols.
10342 (legitimate_constant_pool_address_p): Comment. Add mode param.
10343 Check cmodel=medium addresses. Adjust all calls.
10344 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10345 creating cmodel=medium optimized access to locals.
10346 * config/rs6000/constraints.md (R): Pass QImode to
10347 legitimate_constant_pool_address_p.
10348 * config/rs6000/predicates.md (input_operand): Pass mode to
10349 legitimate_constant_pool_address_p.
10350 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10351 Update prototype.
10352
10353 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10354
10355 PR target/48053
10356 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10357 64-bit constants being loaded into registers other than GPRs such
10358 as loading 0 into a VSX register.
10359
10360 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10361
10362 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10363
10364 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10365
10366 PR middle-end/47917
10367 * builtins.c (fold_builtin_snprintf): New function.
10368 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10369 (fold_builtin_4): Likewise.
10370
10371 PR middle-end/38878
10372 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10373 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10374 and C - X == X also strip nops from +/-/p+ operand.
10375 When optimizing -X == C, fold C to arg0's type.
10376
10377 PR debug/47946
10378 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10379 emit it as add_AT_int instead of add_AT_unsigned.
10380
10381 2011-03-14 Tom Tromey <tromey@redhat.com>
10382
10383 * unwind-dw2.c: Include sys/sdt.h if it exists.
10384 (_Unwind_DebugHook): Use STAP_PROBE2.
10385 * config.in, configure: Rebuild.
10386 * configure.ac: Check for sys/sdt.h.
10387
10388 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10389
10390 * config/i386/i386.md (ROUND_FLOOR): New constant.
10391 (ROUND_CEIL): Ditto.
10392 (ROUND_TRUNC): Ditto.
10393 (ROUND_MXCSR): Ditto.
10394 (ROUND_NO_EXC): Ditto.
10395 (rint<mode>2): Use new defines instead of numerical constants.
10396 (floor<mode>2): Ditto.
10397 (ceil<mode>2): Ditto.
10398 (btrunc<mode>2): Ditto.
10399 * config/i386/i386-builtin-types.def: Define ROUND function type
10400 aliases.
10401 * config/i386/i386.c (enum ix86_builtins): Add
10402 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10403 (struct builtin_description): Add
10404 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10405 (ix86_expand_sse_round): New static function.
10406 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10407 function types.
10408 (ix86_builtin_vectorized_function): Handle
10409 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10410
10411 2011-03-14 Tom Tromey <tromey@redhat.com>
10412
10413 * c-parser.c (c_parser_asm_string_literal): Clear
10414 warn_overlength_strings.
10415
10416 2011-03-14 Tom Tromey <tromey@redhat.com>
10417
10418 * c-parser.c (disable_extension_diagnostics): Save
10419 warn_overlength_strings.
10420 (restore_extension_diagnostics): Restore warn_overlength_strings.
10421
10422 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10423
10424 * BASE-VER: Change to 4.7.0.
10425
10426 2011-03-14 Richard Guenther <rguenther@suse.de>
10427
10428 PR middle-end/48098
10429 * tree.c (build_vector_from_val): Adjust assert to requirements
10430 and reality.
10431
10432 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10433
10434 PR bootstrap/48102
10435 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10436
10437 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10438
10439 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10440 terms of target_flags_explicit. Adjust copyright year.
10441
10442 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10443 * config/rs6000/t-freebsd: New file. Add override for
10444 LIB2FUNCS_EXTRA.
10445
10446 2011-03-13 Chris Demetriou <cgd@google.com>
10447
10448 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10449 (-fno-diagnostics-show-option): this, to reflect current default.
10450 (-Werror=): Update text about -fno-diagnostics-show-option.
10451
10452 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10453
10454 PR target/48053
10455 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10456 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10457 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10458 mode is not V2DImode or V2DFmode.
10459 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10460 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10461 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10462 registers to 0.
10463 (movdi_internal64): Likewise.
10464
10465 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10466
10467 PR tree-optimization/47127
10468 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10469 parameter.
10470 (set_cloog_options): Same.
10471 (scop_to_clast): Same.
10472 (print_clast_stmt): Do not call cloog_state_malloc and
10473 cloog_state_free.
10474 (print_generated_program): Same.
10475 (gloog): Same.
10476 * graphite-clast-to-gimple.h (cloog_state): Declared.
10477 (scop_to_clast): Adjust declaration.
10478 * graphite.c (cloog_state): Defined here.
10479 (graphite_initialize): Call cloog_state_malloc.
10480 (graphite_finalize): Call cloog_state_free.
10481
10482 2011-03-11 Jason Merrill <jason@redhat.com>
10483
10484 * attribs.c (lookup_attribute_spec): Take const_tree.
10485 * tree.h: Adjust.
10486
10487 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10488
10489 * config/sparc/sparc.c (sparc_option_override): Use
10490 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10491
10492 2011-03-11 Richard Guenther <rguenther@suse.de>
10493
10494 PR tree-optimization/48067
10495 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10496 multiplication result will be only used once on the target
10497 stmt.
10498
10499 2011-03-11 Richard Guenther <rguenther@suse.de>
10500
10501 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10502
10503 2011-03-11 Richard Guenther <rguenther@suse.de>
10504
10505 PR lto/48073
10506 * tree.c (find_decls_types_r): Do not walk types only reachable
10507 from IDENTIFIER_NODEs.
10508
10509 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10510
10511 PR middle-end/48044
10512 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10513 all vnode->force_output nodes as needed.
10514
10515 2011-03-11 Jason Merrill <jason@redhat.com>
10516
10517 PR c++/48069
10518 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10519 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10520
10521 2011-03-11 Martin Jambor <mjambor@suse.cz>
10522
10523 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10524 cgraph_node.
10525
10526 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10527
10528 PR tree-optimization/48063
10529 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10530 inline functions called once if !tree_can_inline_p (node->callers).
10531
10532 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10533
10534 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10535 extra_objs.
10536 * config/score/score3.c: Delete.
10537 * config/score/score3.h: Delete.
10538 * config/score/mul-div.S: Delete.
10539 * config/score/sfp-machine.h: Add new file.
10540 * config/score/constraints.md: Add new file.
10541 * config/score/t-score-softfp: Add new file.
10542 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10543 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10544 (score7_extra_constraint): Delete.
10545 (score7_option_override): Remove unused code.
10546 * config/score/score.c: Remove score3 and score5 define and code.
10547 * config/score/score.h: Remove score3 and score5 define and code.
10548 * config/score/score.md: Remove score3 template and unusual insn.
10549 * config/score/score.opt: Remove score3 and score5 options.
10550
10551 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10552
10553 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10554 when _HPUX_SOURCE is defined.
10555 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10556
10557 2011-03-10 Jason Merrill <jason@redhat.com>
10558
10559 PR c++/48029
10560 * stor-layout.c (layout_type): Don't set structural equality
10561 on arrays of incomplete type.
10562 * tree.c (type_hash_eq): Handle comparing them properly.
10563
10564 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10565
10566 PR debug/48043
10567 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10568 result mode matches original rtl mode.
10569
10570 2011-03-10 Nick Clifton <nickc@redhat.com>
10571
10572 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10573 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10574
10575 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10576
10577 PR rtl-optimization/47866
10578 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10579 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10580 if target wasn't scalar.
10581 * function.c (assign_stack_temp_for_type): Assert that neither
10582 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10583 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10584 macro.
10585 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10586
10587 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10588
10589 * config/s390/s390-protos.h (s390_label_align): New prototype.
10590 * config/s390/s390.c (s390_label_align): New function.
10591 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10592
10593 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10594
10595 PR target/47755
10596 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10597 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10598 (output_vec_const_move): Ditto.
10599
10600 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10601
10602 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10603 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10604 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10605 Change 'rclass' argument and result type to reg_class_t.
10606 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10607
10608 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10609
10610 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10611 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10612 (TARGET_MEMORY_MOVE_COST): Define.
10613 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10614
10615 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10616
10617 PR debug/47881
10618 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10619 removed anything.
10620
10621 PR tree-optimization/48022
10622 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10623 for EQ/NE_EXPR.
10624
10625 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10626
10627 PR debug/47991
10628 * var-tracking.c (find_use_val): Return NULL for
10629 cui->sets && cui->store_p BLKmode MEMs.
10630
10631 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10632
10633 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10634 Remove.
10635 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10636 xstormy16_print_operand_address): Remove.
10637 * config/stormy16/stormy16.c (xstormy16_print_operand,
10638 xstormy16_print_operand_address): Make static.
10639 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10640
10641 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10642
10643 PR target/47862
10644 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10645 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10646 before definition.
10647
10648 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10649
10650 PR bootstrap/48000
10651 * cfgloopmanip.c (fix_bb_placements): Return immediately
10652 if FROM is BASE_LOOP's header.
10653
10654 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10655
10656 * gimplify.c (gimplify_function_tree): Fix building calls
10657 to __builtin_return_address.
10658
10659 2011-03-07 Alan Modra <amodra@gmail.com>
10660
10661 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10662 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10663 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10664 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10665 return_mode args.
10666 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10667 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10668 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10669 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10670 * config/rs6000/rs6000.c
10671 (rs6000_elf_end_indicate_exec_stack): Rename to..
10672 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10673 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10674 (rs6000_file_start): ..here.
10675 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10676 file scope variables.
10677 (call_ABI_of_interest): New function.
10678 (init_cumulative_args): Set above vars when function return value
10679 is a float, vector, or small struct.
10680 (rs6000_function_arg_advance_1): Likewise for function args.
10681 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10682 references float args.
10683
10684 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10685
10686 * doc/cfg.texi: Remove "See" before @ref.
10687 * doc/invoke.texi: Likewise.
10688
10689 2011-03-05 Jason Merrill <jason@redhat.com>
10690
10691 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10692
10693 2011-03-05 Anthony Green <green@moxielogic.com>
10694
10695 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10696
10697 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10698
10699 PR rtl-optimization/47899
10700 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10701 to flow_loop_nested_p when moving the loop upward.
10702
10703 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10704
10705 PR target/47719
10706 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10707
10708 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10709
10710 PR tree-optimization/47967
10711 * ipa-cp.c (build_const_val): Return NULL instead of creating
10712 VIEW_CONVERT_EXPR for mismatching sizes.
10713 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10714 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10715 give up on versioning.
10716
10717 2011-03-05 Alan Modra <amodra@gmail.com>
10718
10719 PR target/47986
10720 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10721 full cmodel medium/large lo_sum + high addresses.
10722
10723 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10724
10725 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10726 pool references in UNSPEC_LTREL_OFFSET.
10727
10728 2011-03-04 Jan Hubicka <jh@suse.cz>
10729
10730 PR lto/47497
10731 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10732 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10733 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10734 Add node pointers.
10735 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10736 cgraph_add_thunk): Add node pointers.
10737 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10738 associated to right node.
10739 (input_node): Update use of cgraph_same_body_alias
10740 and cgraph_add_thunk.
10741
10742 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10743
10744 * config/i386/i386.opt (mprefer-avx128): New flag.
10745 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10746 modes when the flag -mprefer-avx128 is on.
10747
10748 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10749
10750 * dwarf2out.c (compare_loc_operands): Fix address handling.
10751
10752 2011-03-04 Alan Modra <amodra@gmail.com>
10753
10754 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10755
10756 2011-03-04 Richard Guenther <rguenther@suse.de>
10757
10758 PR middle-end/47968
10759 * expmed.c (extract_bit_field_1): Prefer vector modes that
10760 vec_extract patterns can handle.
10761
10762 2011-03-04 Richard Guenther <rguenther@suse.de>
10763
10764 PR middle-end/47975
10765 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10766
10767 2011-03-04 Richard Henderson <rth@redhat.com>
10768
10769 * explow.c (emit_stack_save): Remove 'after' parameter.
10770 (emit_stack_restore): Likewise.
10771 * expr.h: Update to match.
10772 * builtins.c, calls.c, stmt.c: Likewise.
10773 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10774 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10775 * function.c (expand_function_end): Insert the emit_stack_save
10776 sequence before parm_birth_insn instead of after.
10777
10778 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10779
10780 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10781 (ssse3_pmaddubsw128): Ditto.
10782 (ssse3_pmaddubsw): Ditto.
10783
10784 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10785
10786 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10787
10788 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10789
10790 PR c/47963
10791 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10792 on TYPE_SIZE_UNIT if it is a DECL.
10793
10794 PR debug/47283
10795 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10796 first operand is not is_gimple_mem_ref_addr, try to fold it.
10797 If the operand still isn't is_gimple_mem_ref_addr, clear
10798 MEM_EXPR on op0.
10799
10800 2011-03-03 Richard Guenther <rguenther@suse.de>
10801
10802 PR middle-end/47283
10803 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10804 match comment.
10805 (refs_may_alias_p_1): For release branches return true if
10806 we are confused by our input.
10807
10808 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10809
10810 * config/s390/s390.c (s390_function_value): Rename to ...
10811 (s390_function_and_libcall_value): ... this.
10812 (s390_function_value): New function.
10813 (s390_libcall_value): New function.
10814 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10815 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10816 target macro definitions.
10817 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10818
10819 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10820
10821 * config/i386/freebsd64.h (CC1_SPEC): Define.
10822 * config/i386/linux64.h (CC1_SPEC): Define.
10823 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10824
10825 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10826
10827 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10828 Remove.
10829 * config/stormy16/stormy16.c: Include reload.h.
10830 (xstormy16_memory_move_cost): New function.
10831 (TARGET_MEMORY_MOVE_COST): Define.
10832
10833 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10834
10835 PR rtl-optimization/47925
10836 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10837 with side effects. Remove the more-specific check for volatile asms.
10838
10839 2011-03-02 Alan Modra <amodra@gmail.com>
10840
10841 PR target/47935
10842 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10843 toc relative addresses for valid offsets.
10844
10845 2011-03-01 Richard Guenther <rguenther@suse.de>
10846
10847 PR tree-optimization/47890
10848 * tree-vect-loop.c (get_initial_def_for_induction): Set
10849 related stmt properly.
10850
10851 2011-03-01 Richard Guenther <rguenther@suse.de>
10852
10853 PR lto/47924
10854 * lto-streamer.c (lto_record_common_node): Also register
10855 the canonical type.
10856
10857 2011-03-01 Richard Guenther <rguenther@suse.de>
10858
10859 PR lto/46911
10860 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10861 Do not stream DECL_ABSTRACT_ORIGIN.
10862 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10863 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10864 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10865 Do not stream DECL_ABSTRACT_ORIGIN.
10866 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10867 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10868
10869 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10870
10871 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10872 FUNCTION_VALUE_REGNO_P): Remove.
10873 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10874 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10875 Add 'outgoing' argument.
10876 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10877 function.
10878 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10879 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10880
10881 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10882
10883 PR debug/28047
10884 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10885 (lookup_filename): Likewise.
10886 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10887
10888 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10889 Jakub Jelinek <jakub@redhat.com>
10890
10891 PR middle-end/47893
10892 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10893 (assign_stack_local_1): Change last argument type to int.
10894 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10895 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10896 don't record padding space into frame_space_list nor use those areas.
10897 (assign_stack_local): Adjust caller.
10898 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10899 of assign_stack_local, pass 0 as last argument.
10900 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10901 callers.
10902
10903 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10904
10905 PR debug/47283
10906 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10907 Use target address_mode and pointer_mode hooks instead of hardcoded
10908 Pmode and ptr_mode. Handle some simple cases of extending if
10909 POINTERS_EXTEND_UNSIGNED < 0.
10910 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10911 Call convert_debug_memory_address.
10912 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10913 convert_debug_memory_address.
10914
10915 PR middle-end/46790
10916 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10917 * configure: Regenerated.
10918 * config.in: Regenerated.
10919 * varasm.c (default_function_section): Return NULL
10920 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10921
10922 2011-02-28 Martin Jambor <mjambor@suse.cz>
10923
10924 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10925 the description to match the printed values.
10926
10927 2011-02-28 Richard Guenther <rguenther@suse.de>
10928
10929 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10930 of the copied scope tree.
10931
10932 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10933
10934 * doc/extend.texi (Function Attributes): Avoid deeply (and
10935 wrongly) nested tables.
10936
10937 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10938
10939 PR middle-end/47903
10940 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10941 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10942 r isn't op0 nor op1.
10943
10944 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10945
10946 * config/avr/avr.md: Remove magic comment for emacs.
10947
10948 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10949
10950 PR target/45261
10951 * config/avr/avr.c (avr_option_override): Use error on bad options.
10952 (avr_help): New function.
10953 (TARGET_HELP): Define.
10954
10955 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10956
10957 PR target/42240
10958 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10959 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10960
10961 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10962
10963 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10964 (ARM Options): Ditto.
10965 (i386 and x86-64 Options): Ditto.
10966 (RX Options): Ditto.
10967 (SPARC Options): Ditto.
10968
10969 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10970
10971 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10972 FreeBSD 6 and later. Generally use cpu generic.
10973
10974 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10975
10976 * doc/cpp.texi: Update copyright years.
10977
10978 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10979
10980 PR target/46898
10981 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10982
10983 2011-02-25 Jon Beniston <jon@beniston.com>
10984
10985 PR target/46898
10986 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10987 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10988 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10989 (lm32_block_move_inline): Add type cast to remove warning.
10990 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10991 (gen_int_relational): Move declarations to start of function.
10992
10993 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10994
10995 PR tree-optimization/45470
10996 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10997 can throw internally only.
10998 * tree-vect-stmts.c (vectorizable_call): Likewise.
10999
11000 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11001
11002 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11003 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11004 * config/stormy16/stormy16-protos.h
11005 (xstormy16_preferred_reload_class): Remove.
11006 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11007 static. Change 'rclass' argument and return type to reg_class_t.
11008 (TARGET_PREFERRED_RELOAD_CLASS,
11009 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11010
11011 2011-02-24 Richard Guenther <rguenther@suse.de>
11012
11013 * lto-streamer-in.c (input_bb): Do not find referenced vars
11014 in debug statements.
11015
11016 2011-02-23 Jason Merrill <jason@redhat.com>
11017
11018 * common.opt (fabi-version): Document v5 and v6.
11019
11020 2011-02-23 Richard Guenther <rguenther@suse.de>
11021
11022 PR tree-optimization/47849
11023 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11024
11025 2011-02-23 Jie Zhang <jie@codesourcery.com>
11026
11027 * opts-common.c (decode_cmdline_option): Print empty string
11028 argument as "" in decoded->orig_option_with_args_text.
11029 * gcc.c (execute): Print empty string argument as ""
11030 in the verbose output.
11031 (do_spec_1): Keep empty string argument.
11032
11033 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11034
11035 * config.gcc: Declare score-* and crx-* obsolete.
11036
11037 2011-02-23 Jie Zhang <jie@codesourcery.com>
11038
11039 PR rtl-optimization/47763
11040 * web.c (web_main): Ignore naked clobber when replacing register.
11041
11042 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11043
11044 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11045 Remove.
11046
11047 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11048
11049 PR doc/47848
11050 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11051
11052 2011-02-22 Mike Stump <mikestump@comcast.net>
11053
11054 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11055 assembler.
11056 * configure: Regenerate.
11057
11058 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11059
11060 PR rtl-optimization/46002
11061 * ira-color.c (update_copy_costs): Change class intersection
11062 test to reg_class_contents[] test of 'hard_regno'.
11063
11064 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11065
11066 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11067 than Driver option.
11068 * config/hpux11.opt (mt): Likewise.
11069 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11070 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11071 * config/vax/elf.opt (mno-asm-pic): Likewise.
11072 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11073
11074 2011-02-21 Mike Stump <mikestump@comcast.net>
11075
11076 PR target/47822
11077 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11078 tree so we can get save the type.
11079 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11080 for CFString instead of trying to use past the end of the builtins.
11081 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11082 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11083 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11084 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11085 Rename to darwin_builtin_cfstring.
11086 (darwin_init_cfstring_builtins): Return the built type.
11087
11088 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11089
11090 PR target/47840
11091 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11092 (_mm256_insert_epi64): Use _mm_insert_epi64.
11093
11094 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11095
11096 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11097 * config/stormy16/stormy16-protos.h
11098 (xstormy16_mode_dependent_address_p): Remove.
11099 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11100 Make static. Change return type to bool. Change argument type to
11101 const_rtx. Remove dead code.
11102 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11103
11104 2011-02-21 Richard Guenther <rguenther@suse.de>
11105
11106 PR lto/47820
11107 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11108 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11109 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11110 TUs context.
11111 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11112 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11113
11114 2011-02-20 Richard Guenther <rguenther@suse.de>
11115
11116 PR lto/47822
11117 * tree.c (free_lang_data_in_decl): Clean builtins from
11118 the TU decl BLOCK_VARS.
11119
11120 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11121
11122 PR debug/47620
11123 PR debug/47630
11124 * haifa-sched.c (fix_tick_ready): Skip tick computation
11125 for debug insns.
11126
11127 2011-02-19 Richard Guenther <rguenther@suse.de>
11128
11129 PR lto/47647
11130 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11131 Remove lazy BLOCK_VARS streaming.
11132 (lto_input_ts_block_tree_pointers): Likewise.
11133 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11134
11135 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11136
11137 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11138
11139 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11140
11141 * config/i386/biarch32.h, config/i386/mach.h,
11142 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11143
11144 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11145
11146 PR target/47800
11147 * config/i386/i386.md (peephole2 for shift and plus): Use
11148 operands[1] original mode in the first insn.
11149
11150 2011-02-18 Mike Stump <mikestump@comcast.net>
11151
11152 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11153
11154 2011-02-18 Jan Hubicka <jh@suse.cz>
11155
11156 PR middle-end/47788
11157 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11158 to zero when the function is not inlinable at all.
11159
11160 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11161
11162 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11163 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11164 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11165 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11166 * config/pa/t-pa64: Likewise.
11167 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11168
11169 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11170
11171 PR driver/47787
11172 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11173
11174 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11175
11176 PR target/47792
11177 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11178
11179 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11180
11181 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11182 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11183 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11184 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11185 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11186 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11187 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11188 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11189 m32r_legitimate_address_p): New functions.
11190 * config/m32r/constraints.md (constraint "S"): Don't use
11191 STORE_PREINC_PREDEC_P.
11192 (constraint "U"): Don't use LOAD_POSTINC_P.
11193
11194 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11195
11196 PR rtl-optimization/46178
11197 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11198 compute ira_hard_regno_cover_class[].
11199
11200 2011-02-18 Richard Guenther <rguenther@suse.de>
11201
11202 PR lto/47798
11203 * lto-streamer.h (lto_global_var_decls): Declare.
11204 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11205 statics for global var processing.
11206
11207 2011-02-18 Richard Guenther <rguenther@suse.de>
11208
11209 PR tree-optimization/47737
11210 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11211 edge dominance check.
11212
11213 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11214
11215 PR debug/47780
11216 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11217 avoid invalid rtx sharing.
11218
11219 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11220
11221 * doc/cpp.texi (Obsolete Features): Add background on the
11222 origin of assertions.
11223
11224 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11225
11226 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11227 objc_abi == 2.
11228 * config/darwin.c (output_objc_section_asm_op): Added support for
11229 ABI v1 and v2.
11230 (is_objc_metadata): New.
11231 (darwin_objc2_section): New.
11232 (darwin_objc1_section): New.
11233 (machopic_select_section): Added support for ABI v1 and v2.
11234 (darwin_emit_objc_zeroed): New.
11235 (darwin_output_aligned_bss): Detect objc metadata and treat it
11236 appropriately.
11237 (darwin_asm_output_aligned_decl_common): Same.
11238 (darwin_asm_output_aligned_decl_local): Same.
11239 * config/darwin-sections.def: Updated for ABI v1 and v2.
11240 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11241 compiling Objective-C code for the NeXT runtime, default to using
11242 ABI version 0 for 32-bit, and version 2 for 64-bit.
11243
11244 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11245
11246 * common.opt (optimize_fast): New Variable.
11247 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11248 instead of local variable ofast.
11249
11250 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11251
11252 * doc/invoke.texi (fobjc-abi-version): Documented.
11253 (fobjc-nilcheck): Documented.
11254 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11255 version.
11256
11257 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11258
11259 PR driver/47390
11260 * common.opt (export-dynamic): New Driver option.
11261 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11262
11263 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11264
11265 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11266
11267 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11268 Jan Hubicka <jh@suse.cz>
11269
11270 PR debug/47106
11271 PR debug/47402
11272 * cfgexpand.c (account_used_vars_for_block): Remove.
11273 (estimated_stack_frame_size): Use referenced vars.
11274 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11275 that were referenced in the original function. Test src_fn
11276 rather than cfun. Drop redundant get_var_ann.
11277 (setup_one_parameter): Drop redundant get_var_ann.
11278 (declare_return_variable): Likewise.
11279 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11280 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11281 * ipa-inline.c (compute_inline_parameters): Do not compute
11282 disregard_inline_limits here.
11283 (compute_inlinable_for_current, pass_inlinable): New.
11284 (pass_inline_parameters): Require PROP_referenced_vars.
11285 * cgraphunit.c (cgraph_process_new_functions): Don't run
11286 compute_inline_parameters explicitly unless function is in SSA form.
11287 (cgraph_analyze_function): Set .disregard_inline_limits.
11288 * tree-sra.c (convert_callers): Compute inliner parameters
11289 only for functions already in SSA form.
11290
11291 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11292
11293 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11294 -mlittle-endian-data.
11295
11296 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11297
11298 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11299 -mno-fpu, not -fpu and -no-fpu.
11300 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11301 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11302
11303 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11304
11305 PR target/43653
11306 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11307 input reload with PLUS RTX.
11308
11309 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11310
11311 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11312 of InverseVar(MDMX).
11313
11314 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11315
11316 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11317 --m4-340.
11318
11319 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11320
11321 * config/mn10300/mn10300.opt (mno-crt0): New.
11322
11323 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11324
11325 * config/m68k/uclinux.opt (static-libc): New Driver option.
11326
11327 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11328
11329 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11330
11331 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11332
11333 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11334 %{muser-extend-enabled}.
11335
11336 2011-02-16 Richard Guenther <rguenther@suse.de>
11337
11338 PR tree-optimization/47738
11339 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11340 the TODO from tree_predictive_commoning.
11341
11342 2011-02-15 Jeff Law <law@redhat.com>
11343
11344 Revert
11345 2011-01-25 Jeff Law <law@redhat.com>
11346
11347 PR rtl-optimization/37273
11348 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11349 handle them like argument loads from stack slots. Do not double
11350 count memory for memory constants and argument loads from stack slots.
11351
11352 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11353
11354 PR middle-end/47725
11355 * combine.c (cant_combine_insn_p): Revert the last change.
11356
11357 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11358
11359 PR target/47755
11360 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11361 mode for vector constants. Remove code that checks for TImode.
11362
11363 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11364
11365 PR debug/47106
11366 PR debug/47402
11367 * cgraph.h (compute_inline_parameters): Return void.
11368 * ipa-inline.c (compute_inline_parameters): Adjust.
11369
11370 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11371
11372 PR debug/47106
11373 PR debug/47402
11374 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11375 rather than decl.
11376 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11377 * ipa-inline.c (compute_inline_parameters): Adjust.
11378
11379 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11380
11381 PR debug/47106
11382 PR debug/47402
11383 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11384 Adjust all users. Pass FN to...
11385 * tree-flow-inline.h (first_referenced_var): ... this. Add
11386 fn argument.
11387 * ipa-struct-reorg.c: Adjust.
11388 * tree-dfa.c: Adjust.
11389 * tree-into-ssa.c: Adjust.
11390 * tree-sra.c: Adjust.
11391 * tree-ssa-alias.c: Adjust.
11392 * tree-ssa-live.c: Adjust.
11393 * tree-ssa.c: Adjust.
11394 * tree-ssanames.c: Adjust.
11395 * tree-tailcall.c: Adjust.
11396
11397 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11398
11399 PR debug/47106
11400 PR debug/47402
11401 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11402 Adjust all callers.
11403 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11404 * tree-flow-inline.h: Adjust.
11405 * gimple-pretty-print.c: Adjust.
11406 * tree-into-ssa.c: Adjust.
11407 * tree-ssa.c: Adjust.
11408 * cfgexpand.c: Adjust.
11409
11410 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11411
11412 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11413 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11414 (EXTRA_CONSTRAINT): Delete.
11415 * config/iq2000/constraints.md: New file.
11416 * config/iq2000/iq2000.md: Include it.
11417 (define_insn ""): Delete.
11418 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11419 unsupported constraint letters from patterns.
11420 (call_value, call_value_internal1): Likewise.
11421 (call_value_multiple_internal1): Likewise.
11422
11423 2011-02-15 Nick Clifton <nickc@redhat.com>
11424
11425 * config/mn10300/mn10300.c: Include tm-constrs.h.
11426 (struct liw_data): New data structure describing an LIW candidate
11427 instruction.
11428 (extract_bundle): Use struct liw_data. Allow small integer
11429 operands for some instructions.
11430 (check_liw_constraints): Use struct liw_data. Remove swapped
11431 parameter. Add comments describing the checks. Fix bug when
11432 assigning the source of liw1 to the source of liw2.
11433 (liw_candidate): Delete. Code moved into extract_bundle.
11434 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11435 before swapping.
11436 * config/mn10300/predicates.md (liw_operand): New predicate.
11437 Allows registers and small integer constants.
11438 * config/mn10300/constraints.md (O): New constraint. Accetps
11439 integers in the range -8 to +7 inclusive.
11440 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11441 for moving a small integer into a register. Give this alternative
11442 LIW attributes.
11443 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11444 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11445 using the J,K,L and M constraints,
11446 (liw): Remove SI mode on second operands to allow for HI and QI
11447 mode values.
11448 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11449 instruction.
11450
11451 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11452
11453 PR middle-end/47725
11454 * combine.c (cant_combine_insn_p): Check zero/sign extended
11455 hard registers.
11456
11457 2011-02-15 Richard Guenther <rguenther@suse.de>
11458
11459 PR tree-optimization/47743
11460 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11461 for a non-type-compatible VN lookup bail out.
11462
11463 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11464
11465 * config/fr30/constraints.md: New file.
11466 * config/fr30/fr30.md: Include it.
11467 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11468 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11469 (EXTRA_CONSTRAINT): Delete.
11470
11471 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11472
11473 * config/frv/constraints.md: New file.
11474 * config/frv/predicates.md: Include it.
11475 * config/frv/frv.c (reg_class_from_letter): Delete.
11476 (frv_option_override): Don't initialize it.
11477 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11478 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11479 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11480 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11481 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11482 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11483 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11484 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11485 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11486 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11487 (REG_CLASS_FROM_CONSTRAINT): Delete.
11488
11489 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR middle-end/47581
11492 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11493 if frame size is 0 in a leaf function.
11494
11495 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11496
11497 PR pch/14940
11498 * config/alpha/host-osf.c: New file.
11499 * config/alpha/x-osf: New file.
11500 * config.host (alpha*-dec-osf*): Use it.
11501
11502 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11503
11504 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11505 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11506 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11507 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11508 type to const_rtx.
11509 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11510
11511 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11512
11513 * config/stormy16/constraints.md: New file.
11514 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11515 Use satisfies_constraint_Q and satisfies_constraint_R.
11516 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11517 Delete.
11518 (xstormy16_legitiamte_address_p): Declare.
11519 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11520 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11521 (EXTRA_CONSTRAINT): Delete.
11522 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11523 Un-staticize.
11524 (xstormy16_extra_constraint_p): Delete.
11525
11526 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11527
11528 PR tree-optimization/46494
11529 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11530 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11531 (pass_rtl_loop_done): Add TODO_verify_flow.
11532 * fwprop.c (pass_rtl_fwprop): Likewise.
11533 * modulo-sched.c (pass_sms): Likewise.
11534 * tree-ssa-dom.c (pass_dominator): Likewise.
11535 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11536 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11537 (pass_tree_loop_done): Likewise.
11538 * tree-ssa-pre.c (execute_pre): Likewise.
11539 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11540 * tree-ssa-sink.c (pass_sink_code): Likewise.
11541 * tree-vrp.c (pass_vrp): Likewise.
11542
11543 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11544
11545 * config/v850/constraints.md: New file.
11546 * config/v850/v850.md: Include it.
11547 * config/v850/predicates.md (reg_or_0_operand): Use
11548 satisfies_constraint_G.
11549 (special_symbolref_operand): Use satisfies_constraint_K.
11550 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11551 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11552 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11553 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11554 (EXTRA_CONSTRAINT): Delete.
11555 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11556 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11557 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11558
11559 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11560
11561 PR target/47696
11562 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11563 description.
11564
11565 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11566
11567 * config/mcore/constraints.md: New file.
11568 * config/mcore/mcore.md: Include it.
11569 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11570 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11571 (REG_CLASS_FROM_LETTER): Delete.
11572 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11573 insn_const_int_ok_for_constraint.
11574 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11575 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11576 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11577 (EXTRA_CONSTRAINT): Delete.
11578
11579 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11580
11581 PR ada/41929
11582 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11583 (IS_SIGHANDLER): Define.
11584 (sparc64_is_sighandler): New function, split off from
11585 sparc64_fallback_frame_state.
11586 (sparc_is_sighandler): New function, split off from
11587 sparc_fallback_frame_state.
11588 (sparc64_fallback_frame_state): Merge with ...
11589 (sparc_fallback_frame_state): ... this into ...
11590 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11591 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11592 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11593 stack instead of hardcoded offsets.
11594
11595 2011-02-14 Andriy Gapon <avg@freebsd.org>
11596
11597 PR target/45808
11598 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11599
11600 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11601
11602 * configure: Regenerate.
11603
11604 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11605
11606 PR driver/45731
11607 * gcc.c (asm_options): Correct spec matching --target-help.
11608
11609 2011-02-12 Martin Jambor <mjambor@suse.cz>
11610
11611 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11612 to gimple call error.
11613
11614 2011-02-12 Mike Stump <mikestump@comcast.net>
11615
11616 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11617 comments in backslash regions.
11618
11619 2011-02-12 Mike Stump <mikestump@comcast.net>
11620 Jakub Jelinek <jakub@redhat.com>
11621 Iain Sandoe <iains@gcc.gnu.org>
11622
11623 PR target/47324
11624 * dwarf2out.c (output_cfa_loc): When required, apply the
11625 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11626 (output_loc_sequence): Likewise.
11627 (output_loc_operands_raw): Likewise.
11628 (output_loc_sequence_raw): Likewise.
11629 (output_cfa_loc): Likewise.
11630 (output_loc_list): Suppress register number adjustment when
11631 calling output_loc_sequence()
11632 (output_die): Likewise.
11633
11634 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11635
11636 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11637 Remove macros.
11638 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11639 xtensa_memory_move_cost): New functions.
11640 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11641
11642 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11643
11644 PR lto/47225
11645 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11646 in the current directory.
11647 * configure: Rebuilt.
11648
11649 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11650
11651 * config/darwin.c (darwin_override_options): Add a hunk missed
11652 from the commit of r168571. Trim comment line lengths and
11653 correct indents of the preceding block.
11654
11655 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11656
11657 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11658 the switch.
11659
11660 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11661
11662 * common.opt (nostartfiles): New Driver option.
11663
11664 2011-02-11 Xinliang David Li <davidxl@google.com>
11665
11666 PR tree-optimization/47707
11667 * tree-chrec.c (convert_affine_scev): Keep type precision.
11668
11669 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11670
11671 PR tree-optimization/47420
11672 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11673
11674 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11675
11676 PR rtl-optimization/47614
11677 * rtl.h (check_for_inc_dec): Declare.
11678 * dse.c (check_for_inc_dec): Externalize...
11679 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11680 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11681
11682 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11683
11684 PR driver/47678
11685 * gcc.c (main): Do not compile inputs if there were errors in
11686 option handling.
11687 * opts-common.c (read_cmdline_option): Check for wrong language
11688 after other error checks.
11689
11690 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11691
11692 * cgraph.c: Fix comment typos.
11693 * cgraph.h: Likewise.
11694 * cgraphunit.c: Likewise.
11695 * ipa-cp.c: Likewise.
11696 * ipa-inline.c: Likewise.
11697 * ipa-prop.c: Likewise.
11698 * ipa-pure-const.c: Likewise.
11699 * ipa-ref.c: Likewise.
11700 * ipa-reference.c: Likewise.
11701
11702 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11703
11704 PR debug/47684
11705 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11706
11707 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11708
11709 PR testsuite/47400
11710 * doc/sourcebuild.texi (Require Support): Document
11711 dg-require-ascii-locale.
11712
11713 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11714
11715 * doc/lto.texi (Write summary): Fix missing parentheses.
11716
11717 2011-02-10 DJ Delorie <dj@redhat.com>
11718
11719 * config/m32c/m32c.c (m32c_option_override): Disable
11720 -fcombine-stack-adjustments until flag value tracking and compare
11721 optimization can be rewritten.
11722
11723 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11724
11725 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11726 PROCESSOR_POWER7.
11727 (PROCESSOR_DEFAULT64): Likewise.
11728
11729 2011-02-10 Richard Henderson <rth@redhat.com>
11730
11731 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11732 change from 2011-02-03.
11733 * config/rx/rx.c (flags_from_code): Likewise.
11734 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11735 is valid, n/pz otherwise.
11736 (rx_select_cc_mode): Return CCmode if Y is not zero.
11737
11738 2011-02-10 Richard Guenther <rguenther@suse.de>
11739
11740 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11741
11742 2011-02-10 Richard Guenther <rguenther@suse.de>
11743
11744 PR tree-optimization/47677
11745 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11746
11747 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11748
11749 PR target/47665
11750 * combine.c (make_compound_operation): Only change shifts into
11751 multiplication for SCALAR_INT_MODE_P.
11752
11753 2011-02-10 Jie Zhang <jie@codesourcery.com>
11754
11755 PR testsuite/47622
11756 Revert
11757 2011-02-05 Jie Zhang <jie@codesourcery.com>
11758 PR debug/42631
11759 * web.c (entry_register): Don't clobber the number of the
11760 first uninitialized reference in used[].
11761
11762 2011-02-09 Richard Guenther <rguenther@suse.de>
11763
11764 PR tree-optimization/47664
11765 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11766 all edges again.
11767
11768 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11769
11770 PR target/46481
11771 PR target/47032
11772 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11773 PROCESSOR_POWER7.
11774 (PROCESSOR_DEFAULT64): Same.
11775 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11776
11777 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11778
11779 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11780
11781 2011-02-09 Martin Jambor <mjambor@suse.cz>
11782
11783 PR middle-end/45505
11784 * tree-sra.c (struct access): New flags grp_scalar_read and
11785 grp_scalar_write. Changed description of assignment read and write
11786 flags.
11787 (dump_access): Dump new flags, reorder all of them.
11788 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11789 to detect multiple scalar reads.
11790 (analyze_access_subtree): Use the new scalar read write flags instead
11791 of the old flags. Adjusted comments.
11792
11793 2011-02-08 DJ Delorie <dj@redhat.com>
11794
11795 PR target/47548
11796 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11797 patterns.
11798
11799 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11800
11801 * config/m68k/uclinux.opt: New.
11802 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11803
11804 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11805
11806 * config/cris/elf.opt (sim): New Driver option.
11807
11808 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11809
11810 * config/xtensa/elf.opt: New.
11811 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11812
11813 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11814
11815 * config/vax/elf.opt: New.
11816 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11817
11818 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11819
11820 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11821
11822 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11823
11824 * config/gnu-user.opt: New.
11825 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11826 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11827 *-*-uclinux*): Use gnu-user.opt.
11828
11829 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11830
11831 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11832 * config/i386/gnu.h (CPP_SPEC): Likewise.
11833
11834 2011-02-08 Ian Lance Taylor <iant@google.com>
11835
11836 * common.opt (fcx-limited-range): Add SetByCombined flag.
11837 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11838 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11839 (fassociative-math, freciprocal-math): Likewise.
11840 (funsafe-math-optimizations): Likewise.
11841 * opth-gen.awk: Handle SetByCombined.
11842 * optc-gen.awk: Likewise.
11843 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11844 (set_unsafe_math_optimizations_flags): Likewise.
11845 * doc/options.texi (Option properties): Document SetByCombined.
11846
11847 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11848
11849 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11850 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11851 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11852 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11853 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11854
11855 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11856
11857 PR tree-optimization/46834
11858 PR tree-optimization/46994
11859 PR tree-optimization/46995
11860 * graphite-sese-to-poly.c (used_outside_reduction): New.
11861 (detect_commutative_reduction): Call used_outside_reduction.
11862 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11863 translate_scalar_reduction_to_array only when at least one
11864 loop-phi/close-phi tuple has been detected.
11865
11866 2011-02-08 Richard Guenther <rguenther@suse.de>
11867
11868 PR middle-end/47639
11869 * tree-vect-generic.c (expand_vector_operations_1): Update
11870 stmts here ...
11871 (expand_vector_operations): ... not here. Cleanup EH info
11872 and the CFG if required.
11873
11874 2011-02-08 Richard Guenther <rguenther@suse.de>
11875
11876 PR tree-optimization/47641
11877 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11878 require type compatibility.
11879
11880 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11881
11882 * gimple-low.c (lower_function_body): Don't remove the location of
11883 the return statement here.
11884 (lower_gimple_return): Do it here instead but only if the return
11885 statement is actually used twice.
11886
11887 2011-02-08 Richard Guenther <rguenther@suse.de>
11888
11889 PR tree-optimization/47632
11890 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11891 unused up_to_stmt parameter, return whether cfg-cleanup is
11892 necessary, remove EH info properly.
11893 (forward_propagate_into_gimple_cond): Adjust caller.
11894 (forward_propagate_into_cond): Likewise.
11895 (forward_propagate_comparison): Likewise.
11896 (tree_ssa_forward_propagate_single_use_vars): Make
11897 forward_propagate_comparison case similar to the two others.
11898
11899 2011-02-08 Nick Clifton <nickc@redhat.com>
11900
11901 * config/mn10300/mn10300.opt (mliw): New command line option.
11902 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11903 (liw_bundling): New automaton.
11904 (liw): New attribute.
11905 (liw_op): New attribute.
11906 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11907 (movsi_internal): Add LIW attributes.
11908 (andsi3): Likewise.
11909 (iorsi3): Likewise.
11910 (xorsi3): Likewise.
11911 (addsi3): Separate register and immediate alternatives.
11912 Add LIW attributes.
11913 (subsi3): Likewise.
11914 (cmpsi): Likewise.
11915 (aslsi3): Likewise.
11916 (lshrsi3): Likewise.
11917 (ashrsi3): Likewise.
11918 (liw): New pattern.
11919 * config/mn10300/mn10300.c (liw_op_names): New
11920 (mn10300_print_operand): Handle 'W' operand descriptor.
11921 (extract_bundle): New function.
11922 (check_liw_constraints): New function.
11923 (liw_candidate): New function.
11924 (mn10300_bundle_liw): New function.
11925 (mn10300_reorg): New function.
11926 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11927 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11928 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11929 __LIW__ or __NO_LIW__.
11930 * doc/invoke.texi: Describe the -mliw command line option.
11931
11932 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11933
11934 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11935 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11936 pthread_mutex_unlock): Remove.
11937 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11938 * config/pa/t-pa64: Likewise.
11939 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11940 shared libc if not linking against libpthread.
11941 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11942
11943 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11944
11945 PR target/47558
11946 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11947 on 10.6 and later to ensure that we always use the unwinder from
11948 the system. Only add -no_compact_unwind when tarteting darwin
11949 10.6 or later.
11950
11951 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11952
11953 PR target/46997
11954 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11955 (vec_interleave_lowv2sf): Ditto.
11956 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11957 (vec_extract_oddv2sf): Ditto.
11958
11959 2011-02-07 Mike Stump <mikestump@comcast.net>
11960
11961 PR target/42333
11962 Add __ieee_divdc3 entry point.
11963 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11964 entry point.
11965 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11966 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11967 * config/darwin.c (darwin_rename_builtins): Add.
11968 * config/darwin-protos.h (darwin_rename_builtins): Add.
11969
11970 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11971
11972 PR target/47636
11973 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11974 for the condition.
11975
11976 2011-02-07 Mike Stump <mikestump@comcast.net>
11977
11978 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11979
11980 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11981
11982 PR target/47534
11983 * config/avr/libgcc.S (exit): Move .endfunc
11984
11985 2011-02-07 Richard Guenther <rguenther@suse.de>
11986
11987 PR tree-optimization/47615
11988 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11989 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11990 (run_scc_vn): Initialize it.
11991 (visit_reference_op_load): Use it.
11992 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11993
11994 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11995
11996 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11997 DImode trapping arithmetic libfuncs.
11998
11999 2011-02-07 Richard Guenther <rguenther@suse.de>
12000
12001 PR tree-optimization/47621
12002 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12003 two duplicates ...
12004 (execute_update_addresses_taken): ... here. Make it more
12005 conservative in what we accept.
12006
12007 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12008
12009 * config/sparc/freebsd.h (ASM_SPEC): Define.
12010 * config/sparc/vxworks.h (ASM_SPEC): Define.
12011
12012 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12013
12014 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12015
12016 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12017
12018 * doc/invoke.texi: Remove reference to compiler internals from
12019 user documentation.
12020
12021 * reg-notes.def: Remove REG_VALUE_PROFILE.
12022 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12023
12024 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12025
12026 PR middle-end/47610
12027 * varasm.c (default_section_type_flags): If decl is NULL,
12028 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12029
12030 2011-02-05 Jie Zhang <jie@codesourcery.com>
12031
12032 PR debug/42631
12033 * web.c (entry_register): Don't clobber the number of the
12034 first uninitialized reference in used[].
12035
12036 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12037
12038 PR tree-optimization/46194
12039 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12040 (build_classic_dist_vector_1): Do not represent classic distance
12041 vectors when the access functions are variating in different loops.
12042
12043 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12044
12045 * config/mips/iris6.opt: New.
12046 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12047
12048 2011-02-04 Richard Henderson <rth@redhat.com>
12049 Steve Ellcey <sje@cup.hp.com>
12050
12051 PR target/46997
12052 * config/ia64/predicates.md (mux1_brcst_element): New.
12053 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12054 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12055 (ia64_unpack_sign): New.
12056 (ia64_expand_unpack): Rewrite using new routines.
12057 (ia64_expand_widen_sum): Ditto.
12058 (ia64_expand_dot_prod_v8qi): Ditto.
12059 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12060 routines, add endian check.
12061 (pmpy2_even): Rename from pmpy2_r, add endian check.
12062 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12063 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12064 (vec_widen_smult_hi_v4hi): Ditto.
12065 (vec_widen_umult_lo_v4hi): Ditto.
12066 (vec_widen_umult_hi_v4hi): Ditto.
12067 (mulv2si3): Change endian checks.
12068 (sdot_prodv4hi): Rewrite with new calls.
12069 (udot_prodv4hi): New.
12070 (vec_pack_ssat_v4hi): Add endian check.
12071 (vec_pack_usat_v4hi): Ditto.
12072 (vec_pack_ssat_v2si): Ditto.
12073 (max1_even): Rename from max1_r, add endian check.
12074 (max1_odd): Rename from max1_l, add endian check.
12075 (*mux1_rev): Format change.
12076 (*mux1_mix): Ditto.
12077 (*mux1_shuf): Ditto.
12078 (*mux1_alt): Ditto.
12079 (*mux1_brcst_v8qi): Use new predicate.
12080 (vec_extract_evenv8qi): Remove endian check.
12081 (vec_extract_oddv8qi): Ditto.
12082 (vec_interleave_lowv4hi): Format change.
12083 (vec_interleave_highv4hi): Ditto.
12084 (mix2_even): Rename from mix2_r, add endian check.
12085 (mix2_odd): Rename from mux2_l, add endian check.
12086 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12087 (vec_extract_evenodd_helper): Format change.
12088 (vec_extract_evenv4hi): Remove endian check.
12089 (vec_extract_oddv4hi): Remove endian check.
12090 (vec_interleave_lowv2si): Format change.
12091 (vec_interleave_highv2si): Format change.
12092 (vec_initv2si): Remove endian check.
12093 (vecinit_v2si): Add endian check.
12094 (reduc_splus_v2sf): Add endian check.
12095 (reduc_smax_v2sf): Ditto.
12096 (reduc_smin_v2sf): Ditto.
12097 (vec_initv2sf): Remove endian check.
12098 (fpack): Add endian check.
12099 (fswap): Add endian check.
12100 (vec_interleave_highv2sf): Add endian check.
12101 (vec_interleave_lowv2sf): Add endian check.
12102 (fmix_lr): Add endian check.
12103 (vec_setv2sf): Format change.
12104 (*vec_extractv2sf_0_be): Use shift to extract operand.
12105 (*vec_extractv2sf_1_be): New.
12106 (vec_pack_trunc_v4hi): Add endian check.
12107 (vec_pack_trunc_v2si): Format change.
12108
12109 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12110
12111 PR inline-asm/23200
12112 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12113 do bb, locus and block comparison and disallow loads if it is not set.
12114 (stmt_is_replaceable_p): New function.
12115 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12116 callers.
12117 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12118 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12119 SSA_NAME_DEF_STMT.
12120 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12121
12122 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12123
12124 * config/rs6000/xilinx.opt: New.
12125 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12126
12127 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12128
12129 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12130
12131 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12132
12133 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12134 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12135 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12136 secondary_reload_info, xtensa_secondary_reload): Remove.
12137 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12138 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12139 (xtensa_preferred_reload_class): Make static. Change return and
12140 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12141 Use CONST_DOUBLE_P predicate.
12142 (xtensa_preferred_output_reload_class): New function.
12143 (xtensa_secondary_reload): Make static.
12144
12145 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12146
12147 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12148 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12149 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12150
12151 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12152
12153 PR middle-end/31490
12154 * output.h (SECTION_RELRO): Define.
12155 (SECTION_MACH_DEP): Adjust.
12156 (get_variable_section): New prototype.
12157 * varpool.c (varpool_finalize_named_section_flags): New function.
12158 (varpool_assemble_pending_decls): Call it.
12159 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12160 * cgraphunit.c (cgraph_output_in_order): Call
12161 varpool_finalize_named_section_flags.
12162 * varasm.c (get_section): Allow section flags conflicts between
12163 relro and read-only sections if the section hasn't been declared yet.
12164 Set SECTION_OVERRIDE after diagnosing section type conflict.
12165 (get_variable_section): No longer static.
12166 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12167 readonly sections that need relocations.
12168 (decl_readonly_section_1): New function.
12169 (decl_readonly_section): Use it.
12170
12171 Revert:
12172 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12173 Steve Ellcey <sje@cup.hp.com>
12174
12175 PR middle-end/31490
12176 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12177 if section attribute used.
12178
12179 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12180
12181 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12182 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12183 (darwin_init_sections): Remove assertion.
12184
12185 2011-02-03 Nick Clifton <nickc@redhat.com>
12186
12187 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12188 lt and ge.
12189 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12190 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12191 instead of "n" and "pz".
12192 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12193 CC_FLAG_S.
12194
12195 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12196
12197 PR target/47312
12198 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12199 fma, expand FMA_EXPR as fma{,f,l} call.
12200
12201 PR lto/47274
12202 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12203 copy them into a unsigned char variable and pass address of it to
12204 lto_output_data_stream.
12205
12206 PR target/47564
12207 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12208 around backend_init_target and lang_dependent_init_target calls.
12209 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12210 (verify_cgraph_node): Don't call set_cfun here. Use
12211 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12212 Set error_found for incorrectly represented calls to thunks.
12213
12214 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12215
12216 PR debug/43092
12217 PR rtl-optimization/43494
12218 * rtl.h (for_each_inc_dec_fn): New type.
12219 (for_each_inc_dec): Declare.
12220 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12221 (for_each_inc_dec_find_inc_dec): New fn.
12222 (for_each_inc_dec_find_mem): New fn.
12223 (for_each_inc_dec): New fn.
12224 * dse.c (struct insn_size): Remove.
12225 (replace_inc_dec, replace_inc_dec_mem): Remove.
12226 (emit_inc_dec_insn_before): New fn.
12227 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12228 (canon_address): Pass mem modes to cselib_lookup.
12229 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12230 (cselib_lookup_from_insn): Likewise.
12231 (cselib_subst_to_values): Likewise.
12232 * cselib.c (find_slot_memmode): New var.
12233 (cselib_find_slot): New fn. Use it instead of
12234 htab_find_slot_with_hash everywhere.
12235 (entry_and_rtx_equal_p): Use find_slot_memmode.
12236 (autoinc_split): New fn.
12237 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12238 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12239 Deal with autoinc. Special-case recursion into MEMs.
12240 (cselib_hash_rtx): Likewise.
12241 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12242 address and MEM modes.
12243 (cselib_subst_to_values): Add memmode, pass it on.
12244 Deal with autoinc.
12245 (cselib_lookup): Add memmode argument, pass it on.
12246 (cselib_lookup_from_insn): Add memmode.
12247 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12248 (struct cselib_record_autoinc_data): New.
12249 (cselib_record_autoinc_cb): New fn.
12250 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12251 mode to cselib_lookup. Reset autoinced REGs here instead of...
12252 (cselib_process_insn): ... here.
12253 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12254 to cselib_lookup.
12255 (add_uses): Likewise, also to cselib_subst_to_values.
12256 (add_stores): Likewise.
12257 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12258 cselib_subst_to_values.
12259 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12260 * gcse.c (do_local_cprop): Adjusted.
12261 * postreload.c (reload_cse_simplify_set): Adjusted.
12262 (reload_cse_simplify_operands): Adjusted.
12263 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12264
12265 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12266
12267 PR tree-optimization/45122
12268 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12269 unsafe assumptions when there's more than one loop exit.
12270
12271 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12272
12273 PR target/47272
12274 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12275 Document using vector double with the load/store builtins, and
12276 that the load/store builtins always use Altivec instructions.
12277
12278 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12279 to use altivec memory instructions, even on VSX.
12280 (vector_altivec_store_<mode>): Ditto.
12281
12282 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12283 function.
12284
12285 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12286 V2DF, V2DI support to load/store overloaded builtins.
12287
12288 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12289 altivec load/store builtins for V2DF/V2DI types.
12290
12291 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12292 set avoid indexed addresses on power6 if -maltivec.
12293 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12294 vector_altivec_load/vector_altivec_store builtins.
12295 (altivec_expand_st_builtin): Ditto.
12296 (altivec_expand_builtin): Add VSX memory builtins.
12297 (rs6000_init_builtins): Add V2DI types to internal types.
12298 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12299 load/store builtins.
12300 (rs6000_address_for_altivec): Insure memory address is appropriate
12301 for Altivec.
12302
12303 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12304 vec_vsx_ld and vec_vsx_st.
12305 (vsx_store_<mode>): Ditto.
12306
12307 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12308 variables to hold long long types for VSX vector memory builtins.
12309 (RS6000_BTI_unsigned_long_long): Ditto.
12310 (long_long_integer_type_internal_node): Ditti.
12311 (long_long_unsigned_type_internal_node): Ditti.
12312
12313 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12314 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12315 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12316
12317 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12318 short cuts.
12319 (vec_vsx_st): Ditto.
12320
12321 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12322
12323 * config/pa/pa-hpux10.opt: New.
12324 * config/hpux11.opt (pthread): New Driver option.
12325 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12326 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12327
12328 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12329
12330 * config/ia64/vms.opt: New.
12331 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12332
12333 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12334
12335 PR target/47580
12336 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12337 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12338 generator functions.
12339 (vsx_floatuns<VSi><mode>2): Ditto.
12340 (vsx_fix_trunc<mode><VSi>2): Ditto.
12341 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12342
12343 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12344
12345 * config/i386/djgpp.opt (posix): New Driver option.
12346
12347 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12348
12349 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12350 Move to the unsupported targets list.
12351
12352 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12353
12354 PR rtl-optimization/47525
12355 * df-scan.c: Update copyright years.
12356 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12357 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12358
12359 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12360
12361 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12362 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12363 (ASM_OUTPUT_ASCII): Remove.
12364 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12365
12366 2011-02-02 Jeff Law <law@redhat.com>
12367
12368 PR middle-end/47543
12369 * reload.c (find_reloads_address): Handle reg+d address where both
12370 components are invalid by reloading the entire address.
12371
12372 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12373 Richard Guenther <rguenther@suse.de>
12374
12375 PR tree-optimization/40979
12376 PR bootstrap/47044
12377 * passes.c (init_optimization_passes): After LIM call copy_prop
12378 and DCE to clean up.
12379 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12380
12381 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12382
12383 PR tree-optimization/47576
12384 PR tree-optimization/47555
12385 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12386 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12387 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12388 * tree-scalar-evolution.c (follow_ssa_edge): Use
12389 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12390
12391 2011-02-02 Richard Guenther <rguenther@suse.de>
12392
12393 PR tree-optimization/47566
12394 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12395
12396 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12397
12398 PR debug/47106
12399 PR debug/47402
12400 * tree-inline.c (declare_return_variable): Remove unused caller
12401 variable.
12402
12403 PR debug/47106
12404 PR debug/47402
12405 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12406 * cfgexpand.c (account_used_vars_for_block): Use them.
12407 * tree-nrv.c (tree_nrv): Likewise.
12408 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12409 (dump_scope_block): Likewise.
12410 (remove_unused_locals): Likewise.
12411
12412 PR debug/47106
12413 PR debug/47402
12414 * tree-inline.c (declare_return_variable): Add result decl to
12415 local decls only once.
12416 * gimple-low.c (record_vars_into): Mark newly-created variables
12417 as referenced.
12418
12419 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12420
12421 PR debug/47498
12422 PR debug/47501
12423 PR debug/45136
12424 PR debug/45130
12425 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12426 debug insns.
12427 (no_real_insns_p, schedule_block, set_priorities): Drop special
12428 treatment of boundary debug insns.
12429 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12430 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12431 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12432 (BOUNDARY_DEBUG_INSN_P): Likewise.
12433 (SCHEDULE_DEBUG_INSN_P): Likewise.
12434 * sched-rgn.c (init_ready_list): Drop special treatment of
12435 boundary debug insns.
12436 * final.c (rest_of_clean_state): Clear notes' BB.
12437
12438 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12439
12440 * config/openbsd.opt (assert=): New Driver option.
12441
12442 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12443
12444 * config/i386/nto.opt: New.
12445 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12446
12447 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12448
12449 * config/i386/netware.opt: New.
12450 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12451
12452 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12453
12454 * config/interix.opt (posix): New Driver option.
12455
12456 2011-02-01 DJ Delorie <dj@redhat.com>
12457
12458 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12459
12460 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12461 class for A0/A1.
12462
12463 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12464
12465 PR tree-optimization/47561
12466 * toplev.c (process_options): Print the Graphite flags. Add
12467 flag_loop_flatten to the list of options requiring Graphite.
12468
12469 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12470
12471 * config/i386/cygming.opt (posix): New Driver option.
12472
12473 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12474
12475 * config/arm/vxworks.opt: New.
12476 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12477
12478 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12479
12480 * config/alpha/elf.opt: New.
12481 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12482 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12483
12484 2011-02-01 Richard Guenther <rguenther@suse.de>
12485
12486 PR tree-optimization/47559
12487 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12488 store-motion on references that can throw.
12489
12490 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12491
12492 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12493 * tree-pass.h (TDF_CSELIB): New macro.
12494 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12495 cselib_lookup): Check for it rather than for TDF_DETAILS.
12496
12497 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12498
12499 PR driver/47547
12500 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12501 is HOST_BIT_BUCKET.
12502
12503 * opts.c (finish_options): Don't add x_aux_base_name if it is
12504 HOST_BIT_BUCKET.
12505
12506 2011-02-01 Richard Guenther <rguenther@suse.de>
12507
12508 PR tree-optimization/47555
12509 Revert
12510 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12511
12512 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12513
12514 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12515
12516 PR gcc/46692
12517 * config/lm32/t-lm32: Add multilib for all CPU options.
12518
12519 2011-02-01 Richard Guenther <rguenther@suse.de>
12520
12521 PR tree-optimization/47541
12522 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12523 sure to have a field at offset zero.
12524
12525 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12526
12527 * config/arc/arc.opt (EB, EL): New Driver options.
12528
12529 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12530
12531 * config/alpha/osf5.opt: New.
12532 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12533
12534 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12535
12536 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12537
12538 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12539
12540 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12541 -floop-interchange.
12542 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12543 is an alias of -floop-interchange and that it requires the
12544 Graphite infrastructure.
12545 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12546 flag_loop_interchange based on the value of flag_tree_loop_linear.
12547
12548 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12549 Richard Guenther <rguenther@suse.de>
12550
12551 PR tree-optimization/47538
12552 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12553 type instead of r1type, except for comparisons. For right
12554 shifts and comparisons punt if there are mismatches in
12555 sizetype vs. non-sizetype types.
12556
12557 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12558
12559 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12560 avx_runtime.
12561
12562 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12563
12564 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12565 version number.
12566 * configure: Regenerate.
12567
12568 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12569
12570 * configure.ac (gcc_cv_ld_static_option): Define.
12571 (gcc_cv_ld_dynamic_option): Define.
12572 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12573 instead.
12574 (HAVE_LD_STATIC_DYNAMIC): Update message.
12575 (LD_STATIC_OPTION): Define.
12576 (LD_DYNAMIC_OPTION): Define.
12577 * configure: Regenerate.
12578 * config.in: Regenerate.
12579 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12580 HAVE_LD_STATIC_DYNAMIC]: Use them.
12581
12582 2011-01-31 Nick Clifton <nickc@redhat.com>
12583
12584 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12585 registers inside interrupt handlers if the handler is not a leaf
12586 function.
12587
12588 2011-01-31 Nick Clifton <nickc@redhat.com>
12589
12590 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12591 reg_renumber returning an INVALID_REGNUM.
12592
12593 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12594
12595 PR libgcj/44341
12596 * doc/install.texi: Document host options discarded when cross
12597 configuring target libraries.
12598
12599 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12600
12601 Reverted:
12602 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12603 PR debug/45136
12604 PR debug/45130
12605 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12606 debug insns.
12607 (no_real_insns_p, schedule_block, set_priorities): Drop special
12608 treatment of boundary debug insns.
12609 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12610 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12611 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12612 (BOUNDARY_DEBUG_INSN_P): Likewise.
12613 (SCHEDULE_DEBUG_INSN_P): Likewise.
12614 * sched-rgn.c (init_ready_list): Drop special treatment of
12615 boundary debug insns.
12616 * final.c (rest_of_clean-state): Clear notes' BB.
12617
12618 2011-01-31 Alan Modra <amodra@gmail.com>
12619
12620 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12621 toc relative expressions as we do in print_operand_address.
12622
12623 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12624
12625 * doc/extend.texi: Follow spelling conventions.
12626 * doc/invoke.texi: Fix a typo.
12627
12628 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12629
12630 * config/hpux11.opt: New.
12631 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12632 ia64*-*-hpux*): Use hpux11.opt.
12633
12634 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12635
12636 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12637 to tmake_file.
12638
12639 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12640
12641 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12642 support sites.
12643
12644 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12645
12646 * doc/install.texi (Binaries): Remove outdated reference for
12647 Motorola 68HC11/68HC12 downloads.
12648
12649 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12650
12651 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12652 Drepper's paper.
12653
12654 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12655
12656 PR bootstrap/47147
12657 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12658 used by NetBSD.
12659
12660 2011-01-28 Ahmad Sharif <asharif@google.com>
12661
12662 * value-prof.c (check_counter): Corrected error message.
12663
12664 2011-01-29 Jie Zhang <jie@codesourcery.com>
12665
12666 * config/arm/arm.c (arm_legitimize_reload_address): New.
12667 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12668 arm_legitimize_reload_address.
12669 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12670
12671 2011-01-28 Ian Lance Taylor <iant@google.com>
12672
12673 * godump.c (go_define): Ignore macros whose definitions include
12674 two adjacent operands.
12675
12676 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12677
12678 PR target/42894
12679 * varasm.c (force_const_mem): Store copy of x in desc->constant
12680 instead of x itself.
12681 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12682 itself into REG_EQUAL note.
12683
12684 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12685
12686 * config/freebsd.opt (posix, rdynamic): New Driver options.
12687
12688 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12689
12690 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12691 -Bstatic/-Bdynamic.
12692 * configure: Regenerate.
12693
12694 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12695
12696 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12697 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12698
12699 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12700
12701 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12702 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12703 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12704 (s390_preferred_reload_class): Make static. Change return and
12705 'rclass' argument type to reg_class_t.
12706
12707 2011-01-27 Jan Hubicka <jh@suse.cz>
12708
12709 PR middle-end/46949
12710 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12711 (process_function_and_variable_attributes): Check defined weakrefs.
12712
12713 2011-01-27 Martin Jambor <mjambor@suse.cz>
12714
12715 PR tree-optimization/47228
12716 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12717 build_ref_for_offset.
12718
12719 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12720
12721 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12722
12723 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12724
12725 PR rtl-optimization/46856
12726 * postreload.c (reload_combine_recognize_const_pattern): Do not
12727 separate cc0 setter and user on cc0 targets.
12728
12729 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12730
12731 PR c/43082
12732 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12733 passed a VOID_TYPE expression, immediately emit an error and
12734 return error_mark_node.
12735
12736 2011-01-26 Jeff Law <law@redhat.com>
12737
12738 PR rtl-optimization/47464
12739 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12740 rather than may_trap_p as needed.
12741
12742 2011-01-26 DJ Delorie <dj@redhat.com>
12743
12744 PR rtl-optimization/46878
12745 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12746 setter/user dependency as well.
12747
12748 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12749
12750 PR rtl-optimization/44469
12751 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12752 after removing trivially dead basic blocks.
12753
12754 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12755
12756 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12757 * config/frv/frv.h (LINK_SPEC): Likewise.
12758 * config/i386/netware.h (LINK_SPEC): Likewise.
12759 * config/m68k/linux.h (ASM_SPEC): Likewise.
12760 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12761 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12762 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12763 * config/sparc/linux.h (ASM_SPEC): Likewise.
12764 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12765 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12766
12767 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12768
12769 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12770 * config/frv/frv.h (ASM_SPEC): Likewise.
12771 * config/m68k/linux.h (ASM_SPEC): Likewise.
12772 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12773 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12774 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12775 * config/sparc/linux.h (ASM_SPEC): Likewise.
12776 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12777 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12778
12779 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12780
12781 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12782 * config/frv/frv.h (LINK_SPEC): Likewise.
12783 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12784
12785 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12786
12787 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12788 * config/frv/frv.h (ASM_SPEC): Likewise.
12789 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12790 * config/m68k/linux.h (ASM_SPEC): Likewise.
12791 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12792 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12793 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12794 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12795 * config/sparc/linux.h (ASM_SPEC): Likewise.
12796 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12797 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12798 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12799
12800 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12801
12802 PR target/46997
12803 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12804 (*mux2): Ditto.
12805 (vec_extract_evenodd_help): Ditto.
12806 (vec_extract_evenv4hi): Ditto.
12807 (vec_extract_oddv4hi): Ditto.
12808 (vec_interleave_lowv2si): Ditto.
12809 (vec_interleave_highv2si): Ditto.
12810 (vec_extract_evenv2si): Ditto.
12811 (vec_extract_oddv2si: Ditto.
12812 (vec_pack_trunc_v2si): Ditto.
12813
12814 2011-01-22 Jan Hubicka <jh@suse.cz>
12815
12816 PR target/47237
12817 * cgraph.h (cgraph_local_info): New field can_change_signature.
12818 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12819 signature can change.
12820 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12821 can change.
12822 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12823 (cgraph_function_versioning): We can not change signature of functions
12824 that don't allow that.
12825 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12826 (lto_input_node): Likewise.
12827 * ipa-inline.c (compute_inline_parameters): Compute
12828 local.can_change_signature.
12829 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12830 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12831 functions that can not change signature.
12832 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12833 init_cumulative_args): Do not use local calling conventions
12834 for functions that can not change signature.
12835
12836 2011-01-22 Jan Hubicka <jh@suse.cz>
12837
12838 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12839
12840 2011-01-26 Richard Guenther <rguenther@suse.de>
12841
12842 PR tree-optimization/47190
12843 * cgraphunit.c (process_common_attributes): New function.
12844 (process_function_and_variable_attributes): Use it.
12845
12846 2011-01-26 Richard Guenther <rguenther@suse.de>
12847
12848 PR lto/47423
12849 * cgraphbuild.c (record_eh_tables): Record reference to personality
12850 function.
12851
12852 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12853
12854 PR debug/45454
12855 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12856 non-debug insns from moving up.
12857
12858 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12859
12860 PR target/40125
12861 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12862 t-dlldir{,-x} fragment for build and add it to tmake_file.
12863 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12864 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12865 * config/i386/t-dlldir: New file.
12866 (SHLIB_DLLDIR): Define.
12867 * config/i386/t-dlldir-x: New file.
12868 (SHLIB_DLLDIR): Define.
12869 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12870 (SHLIB_INSTALL): Use it.
12871
12872 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12873
12874 PR target/47246
12875 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12876 lower bound of the allowed Thumb-2 coprocessor load/store
12877 index range to -256. Add explaining comment.
12878
12879 2011-01-25 Ian Lance Taylor <iant@google.com>
12880
12881 * godump.c (go_define): Improve lexing of macro expansion to only
12882 accept expressions which match Go spec.
12883
12884 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12885
12886 PR c++/43601
12887 * tree.c (handle_dll_attribute): Handle it.
12888 * doc/extend.texi (@item dllexport): Mention it.
12889 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12890
12891 2011-01-25 Ian Lance Taylor <iant@google.com>
12892
12893 PR tree-optimization/26854
12894 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12895 (decl_jump_unsafe): Move higher in file, with no other change.
12896 (bind): Set has_jump_unsafe_decl if appropriate.
12897 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12898 (check_earlier_gotos): Likewise.
12899 (c_check_switch_jump_warnings): Likewise.
12900
12901 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12902
12903 * doc/invoke.texi (Warning Options): Add missing hyphen.
12904 (-fprofile-dir): Minor grammatical fixes.
12905 (-fbranch-probabilities): Likewise.
12906
12907 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12908
12909 PR debug/45136
12910 PR debug/45130
12911 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12912 debug insns.
12913 (no_real_insns_p, schedule_block, set_priorities): Drop special
12914 treatment of boundary debug insns.
12915 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12916 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12917 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12918 (BOUNDARY_DEBUG_INSN_P): Likewise.
12919 (SCHEDULE_DEBUG_INSN_P): Likewise.
12920 * sched-rgn.c (init_ready_list): Drop special treatment of
12921 boundary debug insns.
12922 * final.c (rest_of_clean-state): Clear notes' BB.
12923
12924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12925
12926 * Makefile.in (LAMBDA_H): Removed.
12927 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12928 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12929 lambda-trans.o, and tree-loop-linear.o.
12930 (lto-symtab.o): Remove dependence on LAMBDA_H.
12931 (tree-loop-linear.o): Remove rule.
12932 (lambda-mat.o): Same.
12933 (lambda-trans.o): Same.
12934 (lambda-code.o): Same.
12935 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12936 (tree-vect-slp.o): Same.
12937 * hwint.h (gcd): Moved here.
12938 (least_common_multiple): Same.
12939 * lambda-code.c: Removed.
12940 * lambda-mat.c: Removed.
12941 * lambda-trans.c: Removed.
12942 * lambda.h: Removed.
12943 * tree-loop-linear.c: Removed.
12944 * lto-symtab.c: Do not include lambda.h.
12945 * omega.c (gcd): Removed.
12946 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12947 * tree-data-ref.c (print_lambda_vector): Moved here.
12948 (lambda_vector_copy): Same.
12949 (lambda_matrix_copy): Same.
12950 (lambda_matrix_id): Same.
12951 (lambda_vector_first_nz): Same.
12952 (lambda_matrix_row_add): Same.
12953 (lambda_matrix_row_exchange): Same.
12954 (lambda_vector_mult_const): Same.
12955 (lambda_vector_negate): Same.
12956 (lambda_matrix_row_negate): Same.
12957 (lambda_vector_equal): Same.
12958 (lambda_matrix_right_hermite): Same.
12959 * tree-data-ref.h: Do not include lambda.h.
12960 (lambda_vector): Moved here.
12961 (lambda_matrix): Same.
12962 (dependence_level): Same.
12963 (lambda_transform_legal_p): Removed declaration.
12964 (lambda_collect_parameters): Same.
12965 (lambda_compute_access_matrices): Same.
12966 (lambda_vector_gcd): Same.
12967 (lambda_vector_new): Same.
12968 (lambda_vector_clear): Same.
12969 (lambda_vector_lexico_pos): Same.
12970 (lambda_vector_zerop): Same.
12971 (lambda_matrix_new): Same.
12972 * tree-flow.h (least_common_multiple): Removed declaration.
12973 * tree-parloops.c (lambda_trans_matrix): Moved here.
12974 (LTM_MATRIX): Same.
12975 (LTM_ROWSIZE): Same.
12976 (LTM_COLSIZE): Same.
12977 (LTM_DENOMINATOR): Same.
12978 (lambda_trans_matrix_new): Same.
12979 (lambda_matrix_vector_mult): Same.
12980 (lambda_transform_legal_p): Same.
12981 * tree-pass.h (pass_linear_transform): Removed declaration.
12982 * tree-ssa-loop.c (tree_linear_transform): Removed.
12983 (gate_tree_linear_transform): Removed.
12984 (pass_linear_transform): Removed.
12985 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12986 flag_loop_interchange.
12987
12988 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12989
12990 PR tree-optimization/47265
12991 PR tree-optimization/47443
12992 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12993 if name still has some uses.
12994
12995 2011-01-25 Martin Jambor <mjambor@suse.cz>
12996
12997 PR tree-optimization/47382
12998 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12999 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13000
13001 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13002
13003 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13004 sjlj_except_unwind_info.
13005
13006 2011-01-25 Richard Guenther <rguenther@suse.de>
13007
13008 PR tree-optimization/47426
13009 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13010 visible functions results escape.
13011
13012 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13013
13014 PR target/45701
13015 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13016 (arm_get_frame_offsets): Use it.
13017
13018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13019 Jakub Jelinek <jakub@redhat.com>
13020
13021 PR tree-optimization/47271
13022 * tree-if-conv.c (bb_postdominates_preds): New.
13023 (if_convertible_bb_p): Call bb_postdominates_preds.
13024 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13025 (predicate_scalar_phi): Call bb_postdominates_preds.
13026
13027 2011-01-25 Nick Clifton <nickc@redhat.com>
13028
13029 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13030 * config/rx/rx.c (rx_function_value): Likewise.
13031 (rx_promote_function_mode): Likewise.
13032 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13033 in order to make it legitimate.
13034 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13035 make sure that the first operand is the same as the result register.
13036 (addsi3_unspec): Delete.
13037 (subdi3): Do not accept immediate operands.
13038 (subdi3_internal): Likewise.
13039
13040 2011-01-25 Jeff Law <law@redhat.com>
13041
13042 PR rtl-optimization/37273
13043 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13044 handle them like argument loads from stack slots. Do not double
13045 count memory for memory constants and argument loads from stack slots.
13046
13047 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13048
13049 PR tree-optimization/47427
13050 PR tree-optimization/47428
13051 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13052 coalesce if the new root var would be TREE_READONLY.
13053
13054 2011-01-25 Richard Guenther <rguenther@suse.de>
13055
13056 PR middle-end/47414
13057 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13058 correct type for TBAA.
13059
13060 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13061
13062 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13063 (close_phi_written_to_memory): Call for_each_index with
13064 dr_indices_valid_in_loop.
13065
13066 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13067
13068 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13069 when it is initialized.
13070
13071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13072
13073 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13074 call to graphite_find_data_references_in_stmt.
13075 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13076 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13077 call to graphite_find_data_references_in_stmt.
13078 (analyze_drs_in_stmts): Same.
13079 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13080 in which the scalar analysis of indices is performed.
13081 (create_data_ref): Same. Update call to dr_analyze_indices.
13082 (find_data_references_in_stmt): Update call to create_data_ref.
13083 (graphite_find_data_references_in_stmt): Same.
13084 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13085 declaration.
13086 (create_data_ref): Same.
13087 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13088 call to create_data_ref.
13089
13090 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13091
13092 * graphite-sese-to-poly.c (build_poly_scop): Move
13093 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13094
13095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13096
13097 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13098 VAR_DECL, PARM_DECL, and RESULT_DECL.
13099
13100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13101
13102 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13103 in a reduction PBB.
13104 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13105 that have already been marked as PBB_IS_REDUCTION.
13106
13107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13108
13109 * graphite-scop-detection.c (same_close_phi_node): New.
13110 (remove_duplicate_close_phi): New.
13111 (make_close_phi_nodes_unique): New.
13112 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13113
13114 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13115
13116 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13117 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13118 of both data references to be the same.
13119
13120 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13121
13122 * graphite-dependences.c (build_lexicographical_constraint): Remove
13123 the gdim parameter.
13124 (build_lexicographical_constraint): Adjust call to
13125 ppl_powerset_is_empty.
13126 (dependence_polyhedron): Same.
13127 (graphite_legal_transform_dr): Same.
13128 (graphite_carried_dependence_level_k): Same.
13129 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13130 parameter.
13131 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13132
13133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13134
13135 * graphite-sese-to-poly.c
13136 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13137 (close_phi_written_to_memory): New.
13138 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13139 and unshare_expr.
13140
13141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13142
13143 * doc/install.texi: Update the expected version number of PPL to 0.11.
13144 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13145 #if PPL_VERSION_MINOR < 11.
13146
13147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13148
13149 * graphite-dependences.c: Include graphite-cloog-util.h.
13150 (new_poly_ddr): Inlined into dependence_polyhedron.
13151 (free_poly_ddr): Moved close by new_poly_ddr.
13152 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13153 Early return NULL when ppl_powerset_is_empty returns true.
13154 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13155 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13156 (graphite_legal_transform_dr): Call new_poly_ddr.
13157 (graphite_carried_dependence_level_k): Same.
13158 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13159 (dot_transformed_deps_stmt_1): Removed.
13160 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13161 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13162 (dot_deps_1): Call dot_deps_2.
13163 * Makefile.in (graphite-dependences.o): Add missing dependence on
13164 graphite-cloog-util.h.
13165
13166 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13167
13168 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13169 (build_lexicographical_constraint): Same.
13170 (dependence_polyhedron_1): Same.
13171 (graphite_legal_transform_dr): Same.
13172 (graphite_carried_dependence_level_k): Same.
13173 * graphite-ppl.c (ppl_powerset_is_empty): New.
13174 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13175 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13176
13177 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13178
13179 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13180 the "a followed by b" relation and document it.
13181
13182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13183
13184 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13185 iteration when the bag of constraints is empty.
13186
13187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13188
13189 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13190
13191 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13192
13193 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13194 nest and two loop depths as parameters.
13195 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13196 lst_perfect_nestify.
13197
13198 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13199
13200 * graphite-dependences.c (print_pddr): Call
13201 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13202
13203 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13204
13205 * graphite-ppl.c (debug_gmp_value): New.
13206 * graphite-ppl.h (debug_gmp_value): Declared.
13207
13208 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13209
13210 * doc/install.texi: Document availability of cloog-0.16.
13211
13212 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13213
13214 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13215 invalid postdominance info.
13216
13217 2011-01-24 Jan Hubicka <jh@suse.cz>
13218
13219 PR c/21659
13220 * doc/extend.texi (weak pragma): Drop claim that it must
13221 appear before definition.
13222 * varasm.c (merge_weak, declare_weak): Only sanity check
13223 that DECL is not output at a time it is declared weak.
13224
13225 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13226
13227 * machmode.def: Fixed comments.
13228
13229 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13230
13231 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13232
13233 2011-01-24 Paul Koning <ni1d@arrl.net>
13234
13235 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13236 WORDS_BIG_ENDIAN.
13237
13238 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13239
13240 PR target/46519
13241 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13242 (block_info): Add scanned and prev.
13243 (move_or_delete_vzeroupper_2): Return if the basic block
13244 has been scanned and the upper 128bit state is unchanged
13245 from the last scan.
13246 (move_or_delete_vzeroupper_1): Return true if the exit
13247 state is changed.
13248 (move_or_delete_vzeroupper): Visit basic blocks using the
13249 work-list based algorithm based on vt_find_locations in
13250 var-tracking.c.
13251
13252 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13253
13254 2011-01-24 Nick Clifton <nickc@redhat.com>
13255
13256 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13257 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13258 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13259 then define __v850e1__.
13260 * doc/invoke.texi: Document -mv850es.
13261
13262 2011-01-24 Richard Henderson <rth@redhat.com>
13263
13264 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13265 compound unordered comparisons.
13266 * config/rx/rx.c (rx_split_fp_compare): Remove.
13267 * config/rx/rx-protos.h: Update.
13268 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13269 (cbranchsf4): Don't call rx_split_fp_compare.
13270 (*cbranchsf4): Use rx_split_cbranch.
13271 (*cmpsf): Don't accept "i" constraint.
13272 (*conditional_branch): Only valid after reload.
13273 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13274
13275 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13276
13277 PR target/47385
13278 * config/rs6000/altivec.md (vector constant splitters): Add
13279 support for creating vector single precision constants if -mvsx is
13280 used and we would create the constant using Altivec primitives.
13281
13282 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13283 Richard Sandiford <rdsandiford@googlemail.com>
13284
13285 PR rtl-optimization/47166
13286 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13287 mechanism for PRE_MODIFY and POST_MODIFY.
13288 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13289 reloadreg.
13290
13291 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13292
13293 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13294
13295 2011-01-22 Jan Hubicka <jh@suse.cz>
13296
13297 PR lto/47333
13298 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13299
13300 2011-01-22 Jan Hubicka <jh@suse.cz>
13301
13302 PR tree-optimization/43884
13303 PR lto/44334
13304 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13305 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13306
13307 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13308
13309 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13310 * config/s390/s390.c (s390_register_move_cost,
13311 s390_memory_move_cost): New.
13312 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13313
13314 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13315
13316 PR middle-end/47401
13317 * except.c (sjlj_assign_call_site_values): Move setting the
13318 crtl->uses_eh_lsda flag to ...
13319 (sjlj_mark_call_sites): ... here.
13320 (sjlj_emit_function_enter): Support NULL dispatch label.
13321 (sjlj_build_landing_pads): In a function with no landing pads
13322 that still has must-not-throw regions, generate code to register
13323 a personality function with empty LSDA.
13324
13325 2011-01-21 Richard Henderson <rth@redhat.com>
13326
13327 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13328
13329 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13330
13331 * compare-elim.c: New file.
13332 * Makefile.in (OBJS-common): Add it.
13333 (compare-elim.o): New.
13334 * common.opt (fcompare-elim): New.
13335 * opts.c (default_options_table): Add OPT_fcompare_elim.
13336 * tree-pass.h (pass_compare_elim_after_reload): New.
13337 * passes.c (init_optimization_passes): Add it.
13338 * recog.h: Protect against re-inclusion.
13339 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13340 * doc/invoke.texi (-fcompare-elim): Document it.
13341 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13342 * doc/tm.texi: Rebuild.
13343
13344 2011-01-22 Nick Clifton <nickc@redhat.com>
13345
13346 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13347 rx_split_fp_compare.
13348
13349 2011-01-22 Nick Clifton <nickc@redhat.com>
13350
13351 * config/rx/rx.md (UNSPEC_CONST): New.
13352 (deallocate_and_return): Wrap the amount popped off the stack in
13353 an UNSPEC_CONST in order to stop it being rejected by
13354 -mmax-constant-size.
13355 (pop_and_return): Add a "(return)" rtx.
13356 (call): Drop the immediate operand.
13357 (call_internal): Likewise.
13358 (call_value): Likewise.
13359 (call_value_internal): Likewise.
13360 (sibcall_internal): Likewise.
13361 (sibcall_value_internal): Likewise.
13362 (sibcall): Likewise. Generate an explicit call using
13363 sibcall_internal.
13364 (sibcall_value): Likewise.
13365 (mov<>): FAIL if a constant operand is not legitimate.
13366 (addsi3_unpsec): New pattern.
13367
13368 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13369 (ok_for_max_constant): New function.
13370 (gen_safe_add): New function.
13371 (rx_expand_prologue): Use gen_safe_add.
13372 (rx_expand_epilogue): Likewise.
13373 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13374 UNSPEC CONSTs.
13375
13376 2011-01-21 Jeff Law <law@redhat.com>
13377
13378 PR tree-optimization/47053
13379 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13380 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13381 statements are deleted.
13382 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13383 is nonempty, then purge dead edges and cleanup the CFG.
13384
13385 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13386
13387 PR debug/47402
13388 Temporarily revert:
13389 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13390 PR debug/47106
13391 * tree-dfa.c (create_var_ann): Mark variable as used.
13392
13393 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13394
13395 PR middle-end/45566
13396 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13397 notes from other section in hot/cold partitioning even if
13398 last_action is -3. Increment call_site_base.
13399
13400 PR rtl-optimization/47366
13401 * fwprop.c (forward_propagate_into): Return bool. If
13402 any changes are made, -fnon-call-exceptions is used and
13403 REG_EH_REGION note is present, call purge_dead_edges
13404 and return true if it purged anything.
13405 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13406 any EH edges were purged.
13407
13408 2011-01-21 Jeff Law <law@redhat.com>
13409
13410 PR rtl-optimization/41619
13411 * caller-save.c (setup_save_areas): Break out code to determine
13412 which hard regs are live across calls by examining the reload chains
13413 so that it is always used.
13414 Eliminate code which checked REG_N_CALLS_CROSSED.
13415
13416 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13417
13418 PR tree-optimization/47355
13419 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13420 NOP has non-debug uses beyond PHIs in new_bb.
13421
13422 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13423
13424 PR debug/47106
13425 * cfgexpand.c (account_used_vars_for_block): Only account vars
13426 that are annotated as used.
13427 (estimated_stack_frame_size): Don't set TREE_USED.
13428 * tree-dfa.c (create_var_ann): Mark variable as used.
13429
13430 2011-01-21 Richard Guenther <rguenther@suse.de>
13431
13432 PR middle-end/47395
13433 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13434
13435 2011-01-21 Richard Guenther <rguenther@suse.de>
13436
13437 PR tree-optimization/47365
13438 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13439 (vn_reference_lookup_pieces): Adjust.
13440 (vn_reference_lookup): Likewise.
13441 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13442 (vn_reference_lookup_3): Only look through kills if in
13443 VN_WALKREWRITE mode.
13444 (vn_reference_lookup_pieces): Adjust.
13445 (vn_reference_lookup): Likewise.
13446 (visit_reference_op_load): Likewise.
13447 (visit_reference_op_store): Likewise.
13448 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13449 (compute_avail): Likewise.
13450 (eliminate): Likewise.
13451
13452 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13453
13454 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13455 DECL_IGNORED_P non-reg vars if they are used.
13456
13457 PR tree-optimization/47391
13458 * varpool.c (const_value_known_p): Return false if
13459 decl is volatile.
13460
13461 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13462
13463 PR bootstrap/47215
13464 * config/i386/i386.c (ix86_local_alignment): Handle
13465 case for va_list_type_node is nil.
13466 (ix86_canonical_va_list_type): Likewise.
13467
13468 2011-01-21 Alan Modra <amodra@gmail.com>
13469
13470 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13471 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13472
13473 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13474
13475 * config/arm/arm.md (define_attr type): Rename f_load
13476 and f_store to f_fpa_load and f_fpa_store. Update.
13477 (write_conflict): Deal with rename fallout.
13478 (*push_fp_multi): Likewise.
13479 * config/arm/fpa.md (f_load): Use f_fpa_load.
13480 (f_store): Use f_fpa_store.
13481 (*movsf_fpa): Likewise.
13482 (*movdf_fpa): Likewise.
13483 (*movxf_fpa): Likewise.
13484 (*thumb2_movsf_fpa): Likewise.
13485 (*thumb2_movdf_fpa): Likewise.
13486 (*thumb2_movxf_fpa): Likewise.
13487 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13488 f_loadd and f_stored.
13489 (*thumb2_movdi_vfp): Likewise.
13490 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13491 (*thumb2_movsi_vfp): Likewise.
13492 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13493 Use f_loads instead of f_load.
13494 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13495
13496 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13497
13498 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13499 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13500 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13501 (xtensa_mode_dependent_address_p): New function.
13502 (constantpool_address_p): Make static. Change return type to bool.
13503 Change argument type to const_rtx. Use CONST_INT_P predicate.
13504
13505 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13506
13507 PR debug/46583
13508 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13509
13510 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13511
13512 PR debug/47283
13513 * cfgexpand.c (expand_debug_expr): Instead of generating
13514 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13515 etc. handling.
13516
13517 2011-01-20 Richard Guenther <rguenther@suse.de>
13518
13519 PR middle-end/47370
13520 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13521 the pointer operand of MEM_REFs.
13522
13523 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13524
13525 PR tree-optimization/46130
13526 * ipa-split.c (consider_split): If return_bb contains non-virtual
13527 PHIs other than for retval or if split_function would not adjust it,
13528 refuse to split.
13529
13530 2011-01-20 Richard Guenther <rguenther@suse.de>
13531
13532 PR tree-optimization/47167
13533 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13534 Revert previous change, only avoid enumeral type changes.
13535
13536 2011-01-19 Mike Stump <mikestump@comcast.net>
13537
13538 * doc/tm.texi.in (BRANCH_COST): Englishify.
13539 * doc/tm.texi (BRANCH_COST): Likewise.
13540
13541 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13542
13543 PR c++/47291
13544 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13545 (gen_scheduled_generic_parms_dies): New functions.
13546 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13547 generation for the end of CU compilation.
13548 (dwarf2out_finish): Generate template parameters DIEs here.
13549
13550 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13551
13552 PR debug/46240
13553 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13554 debug bind stmt on merge edges.
13555
13556 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13557
13558 PR debug/47079
13559 PR debug/46724
13560 * function.c (instantiate_expr): Instantiate incoming rtl of
13561 implicit arguments, and recurse on VALUE_EXPRs.
13562 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13563 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13564
13565 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13566
13567 * c-parser.c (c_parser_for_statement): Initialize
13568 collection_expression.
13569
13570 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13571
13572 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13573
13574 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13575
13576 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13577 (LINK_SHLIB_SPEC): Don't use %(link_path).
13578 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13579
13580 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13581
13582 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13583 (NO_SHARED_LIB_SUPPORT): Remove.
13584 (LINK_SHLIB_SPEC): Remove one conditional definition.
13585
13586 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13587
13588 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13589 %{call_shared}.
13590 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13591 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13592 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13593 %{call_shared} and conditionals on these options not being passed.
13594 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13595 %{call_shared}.
13596
13597 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13598
13599 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13600 simplify.
13601
13602 * ipa-split.c: Spelling fixes.
13603
13604 2011-01-19 Richard Henderson <rth@redhat.com>
13605
13606 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13607 (*mulsi3): Likewise.
13608
13609 * longlong.h [__mn10300__] (count_leading_zeros): New.
13610 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13611 [__mn10300__] (add_ssaaaa, subddmmss): New.
13612 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13613 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13614
13615 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13616
13617 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13618
13619 2011-01-19 Richard Henderson <rth@redhat.com>
13620
13621 * config/mn10300/mn10300.md (addsi3_flags): New.
13622 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13623 (subsi3_flags, subc_internal, subdi3): New.
13624 (subdi3_internal, *subdi3_degenerate): New.
13625 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13626
13627 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13628 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13629 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13630 * config/mn10300/mn10300-protos.h: Update.
13631 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13632 (return_ret): Likewise. Rename from return_internal_regs.
13633 (return_internal): Remove.
13634
13635 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13636 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13637 (mn10300_legitimate_constant_p): Likewise.
13638 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13639 (mn10300_frame_size): New.
13640 (mn10300_expand_prologue): Use it.
13641 (mn10300_expand_epilogue): Likewise.
13642 (mn10300_initial_offset): Likewise.
13643 * config/mn10300/mn10300-protos.h: Update.
13644 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13645 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13646 (prologue, epilogue, return_internal): Tidy output code.
13647 (mn10300_store_multiple_operation, return): Likewise.
13648 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13649 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13650 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13651 (load_pic, am33_load_pic): New.
13652 (mn10300_load_pic0, mn10300_load_pic1): New.
13653
13654 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13655 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13656 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13657 (cc_flags_for_mode, cc_flags_for_code): New.
13658 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13659 overflow flag is not valid. Validate that the flags we need
13660 for the comparison are valid.
13661 (mn10300_output_cmp): Remove.
13662 (mn10300_output_add): New.
13663 (mn10300_select_cc_mode): Use cc_flags_for_code.
13664 (mn10300_split_cbranch): New.
13665 (mn10300_match_ccmode): New.
13666 (mn10300_split_and_operand_count): New.
13667 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13668 to the function.
13669 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13670 (addsi3): ... here. Use mn10300_output_add.
13671 (*addsi3_flags): New.
13672 (*am33_subsi3, *mn10300_subsi3): Merge...
13673 (subsi3): ... here. Use attribute isa.
13674 (*subsi3_flags): New.
13675 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13676 when possible.
13677 (*am33_andsi3, *mn10300_andsi3): Merge...
13678 (andsi3): ... here.
13679 (*andsi3_flags): New.
13680 (andsi3 splitters): New.
13681 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13682 (iorsi3): ... here.
13683 (*iorsi3_flags): New.
13684 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13685 (xorsi3): ... here.
13686 (*xorsi3_flags): New.
13687 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13688 (one_cmplsi2): ... here.
13689 (*one_cmplsi2_flags): New.
13690 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13691 instead of "dax" in constraints. Use mn10300_split_cbranch.
13692 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13693 use matching constraints to eliminate a self-comparison.
13694 (*integer_conditional_branch): Rename from integer_conditional_branch.
13695 Use int_mode_flags to match CC_REG.
13696 (*cbranchsi4_btst, *btstsi): New.
13697 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13698 mn10300_split_cbranch.
13699 (*am33_cmpsf): Rename from am33_cmpsf.
13700 (*float_conditional_branch): Rename from float_conditional_branch.
13701 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13702 (zero_extendqisi2): ... here.
13703 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13704 (zero_extendhisi2): ... here.
13705 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13706 (extendqisi2): ... here.
13707 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13708 (extendhisi2): ... here.
13709 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13710 (ashlsi3): ... here.
13711 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13712 (lshrsi3): ... here.
13713 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13714 (ashrsi3): ... here.
13715 (consecutive add peephole): Remove.
13716 * config/mn10300/predicates.md (label_ref_operand): New.
13717 (int_mode_flags): New.
13718 (CCZN_comparison_operator): New.
13719
13720 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13721 (throughput_42_latency_43): New reservation.
13722 (mulsidi3, umulsidi3): New expanders.
13723 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13724 the MDR register to allocation; separately allocate the low and
13725 high parts of the DImode result.
13726 (umulsidi3_internal): Similarly.
13727 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13728 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13729 (udivsi3, umodsi3): Remove.
13730 (udivmodsi4, divmodsi4): New expanders.
13731 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13732 (*divmodsi4): Simiarly.
13733 (ext_internal): New.
13734
13735 * config/mn10300/constraints.md ("z"): New constraint.
13736 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13737 (FIXED_REGISTERS): Don't fix MDR.
13738 (CALL_USED_REGSITERS): Reformat nicely.
13739 (REG_ALLOC_ORDER): Add MDR.
13740 (enum regclass): Add MDR_REGS.
13741 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13742 (IRA_COVER_CLASSES): Add MDR_REGS.
13743 (REGNO_REG_CLASS): Handle MDR_REG.
13744 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13745 (mn10300_register_move_cost): Likewise.
13746 * config/mn10300/mn10300.md (MDR_REG): New.
13747 (*movsi_internal): Handle moves to/from MDR_REGS.
13748
13749 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13750 POST_MODIFY.
13751 (mn10300_secondary_reload): Tidy combination reload classes.
13752 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13753 addresses for AM33. Allow symbolic offsets for reg+imm.
13754 (mn10300_regno_in_class_p): New.
13755 (mn10300_legitimize_reload_address): New.
13756 * config/mn10300/mn10300.h (enum reg_class): Remove
13757 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13758 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13759 SP_OR_GENERAL_REGS.
13760 (REG_CLASS_NAMES): Update to match.
13761 (REG_CLASS_CONTENTS): Likewise.
13762 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13763 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13764 (REGNO_IN_RANGE_P): Remove.
13765 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13766 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13767 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13768 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13769 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13770 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13771 (REGNO_GENERAL_P): New.
13772 (HAVE_POST_MODIFY_DISP): New.
13773 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13774 (LEGITIMIZE_RELOAD_ADDRESS): New.
13775 * config/mn10300/mn10300-protos.h: Update.
13776
13777 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13778 DATA_REGS for AM33 stack-pointer destination.
13779 (mn10300_preferred_output_reload_class): Likewise.
13780 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13781 into a form appropriate for ...
13782 (TARGET_SECONDARY_RELOAD): New.
13783 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13784 * config/mn10300/mn10300-protos.h: Update.
13785 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13786 reload_insi; use the "A" constraint for the scratch; handle AM33
13787 moves of sp to non-address registers.
13788
13789 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13790 (*movqi_internal): ... here.
13791 (*am33_movhi, *mn10300_movhi): Merge into...
13792 (*movhi_internal): ... here.
13793 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13794 as the source/destination of moves from/to SP.
13795 (movsf): Only allow for AM33-2.
13796 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13797 any integer constant constraint. Only allow for AM33-2. Tidy
13798 all of the alternative outputs.
13799 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13800 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13801 for MN103.
13802 (udivsi3, umodsi3): New patterns for MN103 only.
13803
13804 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13805
13806 * doc/tm.texi.in: Spell out that a lack of register class unions
13807 can lead to ICEs.
13808 * doc/tm.texi: Regenerate.
13809
13810 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13811
13812 PR rtl-optimization/47337
13813 * dce.c (check_argument_store): New function.
13814 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13815
13816 PR tree-optimization/47290
13817 * tree-eh.c (infinite_empty_loop_p): New function.
13818 (cleanup_empty_eh): Use it.
13819
13820 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13821
13822 PR target/46997
13823 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13824 (a64_expand_widen_sum): Ditto.
13825 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13826 (vec_extract_evenodd_help): Ditto.
13827 (vec_extract_evenv4hi): Ditto.
13828 (vec_extract_oddv4hi): Ditto.
13829 (vec_extract_evenv2si): Ditto.
13830 (vec_extract_oddv2si): Ditto.
13831 (vec_extract_evenv2sf): Ditto.
13832 (vec_extract_oddv2sf): Ditto.
13833 (vec_pack_trunc_v4hi: Ditto.
13834 (vec_pack_trunc_v2si): Ditto.
13835 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13836 (vec_interleave_highv8qi): Ditto.
13837 (mix1_r): Ditto.
13838 (vec_extract_oddv8qi): Ditto.
13839 (vec_interleave_lowv4hi): Ditto.
13840 (vec_interleave_highv4hi): Ditto.
13841 (vec_interleave_lowv2si): Ditto.
13842 (vec_interleave_highv2si): Ditto.
13843
13844 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13845
13846 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13847 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13848 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13849 (pa_c_mode_for_suffix): New.
13850 (TARGET_EXPAND_BUILTIN): Define.
13851 (TARGET_C_MODE_FOR_SUFFIX): Define.
13852 (pa_builtins): Define.
13853 (pa_init_builtins): Register __float128 type and init new support
13854 builtins.
13855 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13856 * config/pa/quadlib.c (_U_Qfcopysign): New.
13857
13858 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13859
13860 PR middle-end/46894
13861 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13862 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13863 are defined.
13864
13865 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13866
13867 PR tree-optimization/47179
13868 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13869 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13870
13871 2011-01-18 Richard Guenther <rguenther@suse.de>
13872
13873 PR rtl-optimization/47216
13874 * emit-rtl.c: Include tree-flow.h.
13875 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13876 of replicating it with different semantics.
13877 * Makefile.in (emit-rtl.o): Adjust.
13878
13879 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13880
13881 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13882 (cortex_a9_dp): Handle neon types correctly.
13883
13884 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13885
13886 PR rtl-optimization/47299
13887 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13888 subtarget. Use normal multiplication if both operands are constants.
13889 * expmed.c (expand_widening_mult): Don't try to optimize constant
13890 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13891 before using it.
13892
13893 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13894
13895 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13896 spacing after 'e.g.', typos, comma, hyphenation.
13897
13898 2011-01-17 Richard Henderson <rth@redhat.com>
13899
13900 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13901 (rx_restricted_mem_operand): New.
13902 (rx_shift_operand): Use register_operand.
13903 (rx_source_operand, rx_compare_operand): Likewise.
13904 * config/rx/rx.md (addsi3_flags): New expander.
13905 (adddi3): Rewrite as expander.
13906 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13907 (subsi3_flags): New expander.
13908 (subdi3): Rewrite as expander.
13909 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13910
13911 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13912 (rx_init_builtins): Remove sat builtin.
13913 (rx_expand_builtin): Likewise.
13914 * config/rx/rx.md (ssaddsi3): New.
13915 (*sat): Rename from sat. Represent the CC_REG input.
13916
13917 * config/rx/predicates.md (rshift_operator): New.
13918 * config/rx/rx.c (rx_expand_insv): Remove.
13919 * config/rx/rx-protos.h: Update.
13920 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13921 operand to the canonical position.
13922 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13923 (*bitclr, *bitclr_in_memory): Similarly.
13924 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13925 (insv): Retain the zero_extract in the expansion.
13926
13927 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13928 (bswaphi2, bitinvert, revw): Likewise.
13929
13930 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13931 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13932 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13933 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13934 (bitset, bitset_in_memory): Likewise.
13935 (bitinvert, bitinvert_in_memory): Likewise.
13936 (bitclr, bitclr_in_memory): Likewise.
13937 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13938 (rx_strend, rx_cmpstrn): Likewise.
13939 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13940 (bitop peep2 patterns): Remove.
13941
13942 * config/rx/rx.c (rx_match_ccmode): New.
13943 * config/rx/rx-protos.h: Update.
13944 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13945 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13946 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13947 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13948 (fix_truncsfsi2, floatsisf2): Likewise.
13949 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13950 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13951 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13952 (*subsi3_flags, *xorsi3_flags): New.
13953
13954 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13955
13956 * config/rx/rx.c (rx_print_operand): Remove workaround for
13957 unsplit comparison operations.
13958
13959 * config/rx/rx.md (movsicc): Split after reload.
13960 (*movsicc): Merge *movsieq and *movsine via match_operator.
13961 (*stcc): New pattern.
13962
13963 * config/rx/rx.c (rx_float_compare_mode): Remove.
13964 * config/rx/rx.h (rx_float_compare_mode): Remove.
13965 * config/rx/rx.md (cstoresi4): Split after reload.
13966 (*sccc): New pattern.
13967
13968 * config/rx/predicates.md (label_ref_operand): New.
13969 (rx_z_comparison_operator): New.
13970 (rx_zs_comparison_operator): New.
13971 (rx_fp_comparison_operator): New.
13972 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13973 Validate that the flags are set properly for the comparison.
13974 (rx_gen_cond_branch_template): Remove.
13975 (rx_cc_modes_compatible): Remove.
13976 (mode_from_flags): New.
13977 (flags_from_code): Rename from flags_needed_for_conditional.
13978 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13979 (rx_select_cc_mode): Likewise.
13980 (rx_split_fp_compare): New.
13981 (rx_split_cbranch): New.
13982 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13983 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13984 (*cbranchsf4): Similarly.
13985 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13986 match_operator and rx_split_cbranch.
13987 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13988 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13989 (*cmpsi): Rename from cmpsi.
13990 (*tstsi): Rename from tstsi.
13991 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13992 (*conditional_branch): Rename from conditional_branch.
13993 (*reveresed_conditional_branch): Remove.
13994 (b<code>): Remove expander.
13995 * config/rx/rx-protos.h: Update.
13996
13997 * config/rx/rx.c (rx_compare_redundant): Remove.
13998 * config/rx/rx.md (cmpsi): Don't use it.
13999 * config/rx/rx-protos.h: Update.
14000
14001 * config/rx/rx-modes.def (CC_F): New mode.
14002 * config/rx/rx.c (rx_select_cc_mode): New.
14003 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14004 * config/rx/rx-protos.h: Update.
14005
14006 2011-01-17 Richard Henderson <rth@redhat.com>
14007
14008 * except.c (dump_eh_tree): Fix stray ; after for statement.
14009
14010 2011-01-17 Richard Guenther <rguenther@suse.de>
14011
14012 PR tree-optimization/47313
14013 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14014 handling before copying the body. Properly deal with
14015 by-reference result in SSA form.
14016
14017 2011-01-17 Ian Lance Taylor <iant@google.com>
14018
14019 PR target/47219
14020 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14021 (struct_value_alias_set): Don't define.
14022 (sparc_option_override): Don't set sparc_sr_alias_set and
14023 struct_value_alias_set.
14024 (save_or_restore_regs): Use gen_frame_mem rather than calling
14025 set_mem_alias_set.
14026 (sparc_struct_value_rtx): Likewise.
14027
14028 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14029
14030 PR target/47318
14031 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14032 (_mm_maskstore_pd): Likewise.
14033 (_mm_maskload_ps): Likewise.
14034 (_mm_maskstore_ps): Likewise.
14035 (_mm256_maskload_pd): Change mask to __m256i.
14036 (_mm256_maskstore_pd): Likewise.
14037 (_mm256_maskload_ps): Likewise.
14038 (_mm256_maskstore_ps): Likewise.
14039
14040 * config/i386/i386-builtin-types.def: Updated.
14041 (ix86_expand_special_args_builtin): Likewise.
14042
14043 * config/i386/i386.c (bdesc_special_args): Update
14044 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14045 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14046 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14047 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14048
14049 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14050 Use <avxpermvecmode> on mask register.
14051 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14052
14053 2011-01-17 Olivier Hainque <hainque@adacore.com>
14054 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14055 Eric Botcazou <ebotcazou@adacore.com>
14056
14057 PR target/46655
14058 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14059 if <= USHRT_MAX in 32-bit mode.
14060
14061 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14062
14063 * doc/install.texi (Configuration, Specific): Wrap long
14064 lines in examples. Allow line wrapping in long options
14065 and URLs where beneficial for PDF output.
14066
14067 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14068
14069 * config/mips/mips.c (mips_classify_symbol): Don't return
14070 SYMBOL_PC_RELATIVE for nonlocal labels.
14071
14072 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14073
14074 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14075
14076 2011-01-15 Jan Hubicka <jh@suse.cz>
14077
14078 PR tree-optimization/47276
14079 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14080 declarations as needed.
14081
14082 2011-01-15 Martin Jambor <mjambor@suse.cz>
14083
14084 * common.opt (fdevirtualize): New flag.
14085 * doc/invoke.texi (Option Summary): Document it.
14086 * opts.c (default_options_table): Add devirtualize flag.
14087 * ipa-prop.c (detect_type_change): Return immediately if
14088 devirtualize flag is not set.
14089 (detect_type_change_ssa): Likewise.
14090 (compute_known_type_jump_func): Likewise.
14091 (ipa_analyze_virtual_call_uses): Likewise.
14092
14093 2011-01-14 Martin Jambor <mjambor@suse.cz>
14094
14095 PR tree-optimization/45934
14096 PR tree-optimization/46302
14097 * ipa-prop.c (type_change_info): New type.
14098 (stmt_may_be_vtbl_ptr_store): New function.
14099 (check_stmt_for_type_change): Likewise.
14100 (detect_type_change): Likewise.
14101 (detect_type_change_ssa): Likewise.
14102 (compute_complex_assign_jump_func): Check for dynamic type change.
14103 (compute_complex_ancestor_jump_func): Likewise.
14104 (compute_known_type_jump_func): Likewise.
14105 (compute_scalar_jump_functions): Likewise.
14106 (ipa_analyze_virtual_call_uses): Likewise.
14107 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14108
14109 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14110
14111 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14112 * config/i386/i386.opt (msse5): New Alias.
14113
14114 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14115
14116 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14117 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14118 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14119 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14120
14121 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14122
14123 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14124 -mcpu options.
14125 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14126 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14127 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14128 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14129 Likewise.
14130 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14131
14132 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14133
14134 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14135
14136 2011-01-14 Mike Stump <mikestump@comcast.net>
14137
14138 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14139 * config/fr30/fr30.md: Likweise
14140 (movsi_push): Likewise.
14141 (movsi_pop): Likewise.
14142 (enter_func): Likewise.
14143 * config/moxie/moxie.md (movsi_push): Likewise.
14144 (movsi_pop): Likewise.
14145
14146 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14147
14148 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14149 %{no_archive} %{exact_version}.
14150 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14151 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14152 %{no_archive} %{exact_version}.
14153 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14154 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14155 * config/mips/vxworks.h: Likewise.
14156
14157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14158
14159 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14160
14161 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14162
14163 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14164 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14165
14166 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14167
14168 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14169 -nodefaultlib.
14170
14171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14172
14173 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14174 for mcpu not cpu.
14175 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14176 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14177 not cpu.
14178 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14179 Don't handle -shlib.
14180
14181 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14182
14183 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14184 (CC1_SPEC): Don't handle -profile.
14185
14186 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14187
14188 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14189 * config/mips/mips.h (CC1_SPEC): Likewise.
14190
14191 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14192
14193 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14194 * config/mips/mips.h (CC1_SPEC): Likewise.
14195
14196 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14197
14198 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14199 * config/m32r/linux.h (LINK_SPEC): Likewise.
14200 * config/mips/linux.h (LINK_SPEC): Likewise.
14201 * config/mips/linux64.h (LINK_SPEC): Likewise.
14202 * config/sparc/linux.h (LINK_SPEC): Likewise.
14203 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14204 LINK_SPEC): Likewise.
14205 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14206
14207 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14208
14209 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14210 %{version:-v}.
14211 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14212
14213 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14214
14215 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14216 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14217
14218 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14219
14220 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14221
14222 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14223
14224 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14225 supports -Bstatic/-Bdynamic.
14226 * configure: Regenerate.
14227
14228 2011-01-14 Jan Hubicka <jh@suse.cz>
14229 Jack Howarth <howarth@bromo.med.uc.edu>
14230
14231 PR target/46037
14232 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14233 when checking debug_info_level. Test write_symbols instead of
14234 debug_hooks->var_location when setting flag_var_tracking_uninit.
14235
14236 2011-01-14 Richard Guenther <rguenther@suse.de>
14237
14238 PR tree-optimization/47179
14239 * target.def (ref_may_alias_errno): New target hook.
14240 * targhooks.h (default_ref_may_alias_errno): Declare.
14241 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14242 (default_ref_may_alias_errno): New function.
14243 * target.h (struct ao_ref_s): Declare.
14244 * tree-ssa-alias.c: Include target.h.
14245 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14246 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14247 (targhooks.o): Likewise.
14248 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14249 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14250
14251 2011-01-14 Richard Guenther <rguenther@suse.de>
14252
14253 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14254
14255 2011-01-14 Richard Guenther <rguenther@suse.de>
14256
14257 PR tree-optimization/47280
14258 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14259 return CFG changes.
14260 (tree_ssa_forward_propagate_single_use_vars): Deal with
14261 CFG changes from associate_plusminus.
14262
14263 2011-01-14 Richard Guenther <rguenther@suse.de>
14264
14265 PR middle-end/47281
14266 Revert
14267 2011-01-11 Richard Guenther <rguenther@suse.de>
14268
14269 PR tree-optimization/46076
14270 * tree-ssa.c (useless_type_conversion_p): Conversions from
14271 unprototyped to empty argument list function types are useless.
14272
14273 2011-01-14 Richard Guenther <rguenther@suse.de>
14274
14275 PR tree-optimization/47286
14276 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14277
14278 2011-01-14 Martin Jambor <mjambor@suse.cz>
14279
14280 PR middle-end/46823
14281 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14282
14283 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14284
14285 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14286 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14287 * config/xtensa/xtensa.c (xtensa_libcall_value,
14288 xtensa_function_value_regno_p): New functions.
14289 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14290
14291 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14292
14293 PR c++/47213
14294 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14295 PE specific hook.
14296 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14297 New function prototype.
14298 * config/i386/winnt.c (i386_pe_assemble_visibility):
14299 Warn only if attribute was specified by user.
14300
14301 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14302
14303 PR target/47251
14304 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14305 floating point.
14306 (floatunsdidf2_fcfidu): Ditto.
14307
14308 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14309
14310 * config/s390/s390.c (print_operand_address): Replace 'error' with
14311 'output_operand_lossage'.
14312 (print_operand): Likewise.
14313
14314 2011-01-13 Jeff Law <law@redhat.com>
14315
14316 PR rtl-optimization/39077
14317 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14318 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14319 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14320 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14321 * gcse.c (prune_insertions_deletions): New function.
14322 (compute_pre_data): Use it.
14323
14324 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14325
14326 PR debug/PR46973
14327 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14328 static function.
14329 (prune_unused_types_mark): Use it.
14330
14331 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14332
14333 PR rtl-optimization/45352
14334 * sel-sched.c: Update copyright years.
14335 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14336 in the advancing loop when we have issued issue_rate insns.
14337
14338 2011-01-12 Richard Henderson <rth@redhat.com>
14339
14340 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14341 (TARGET_MD_ASM_CLOBBERS): New.
14342
14343 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14344 (TARGET_DELEGITIMIZE_ADDRESS): New.
14345
14346 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14347 (clzsi2, *bsch): New patterns.
14348
14349 * config/mn10300/mn10300.md (INT): New mode iterator.
14350 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14351
14352 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14353 flag_split_wide_types.
14354
14355 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14356 (mn10300_trampoline_init): Rewrite without a template, an immediate
14357 load and a direct branch.
14358 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14359
14360 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14361
14362 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14363 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14364 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14365 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14366
14367 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14368
14369 PR debug/47209
14370 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14371 of type.
14372
14373 2011-01-12 Jan Hubicka <jh@suse.cz>
14374
14375 PR driver/47244
14376 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14377 (PLUGIN_COND_CLOSE): New macro.
14378 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14379
14380 2011-01-12 Richard Guenther <rguenther@suse.de>
14381
14382 PR lto/47259
14383 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14384 register variables in a MEM_REF.
14385
14386 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14387
14388 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14389 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14390 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14391 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14392 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14393 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14394 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14395 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14396 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14397 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14398 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14399 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14400 * config/gnu-user.h: New. Copied from linux.h.
14401 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14402 GNU_USER_TARGET_STARTFILE_SPEC.
14403 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14404 GNU_USER_TARGET_ENDFILE_SPEC.
14405 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14406 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14407 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14408 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14409 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14410 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14411 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14412 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14413 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14414 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14415 * config/arm/linux-eabi.h (CC1_SPEC): Use
14416 GNU_USER_TARGET_CC1_SPEC.
14417 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14418 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14419 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14420 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14421 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14422 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14423 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14424 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14425
14426 2011-01-12 Richard Guenther <rguenther@suse.de>
14427
14428 PR other/46946
14429 * doc/invoke.texi (ffast-math): Document it is turned on
14430 with -Ofast.
14431
14432 2011-01-12 Jan Hubicka <jh@suse.cz>
14433
14434 PR tree-optimization/47233
14435 * opts.c (common_handle_option): Disable ipa-reference with profile
14436 feedback.
14437
14438 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14439
14440 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14441 error message.
14442
14443 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14444
14445 * c-parser.c (c_lex_one_token): Updated and reindented some
14446 comments. No changes in code.
14447
14448 2011-01-11 Ian Lance Taylor <iant@google.com>
14449
14450 * godump.c (go_output_var): Don't output the variable if there is
14451 already a type with the same name.
14452
14453 2011-01-11 Ian Lance Taylor <iant@google.com>
14454
14455 * godump.c (go_format_type): Don't generate float80.
14456
14457 2011-01-11 Richard Henderson <rth@redhat.com>
14458
14459 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14460 declaration. Rewrite for both speed and size.
14461 (mn10300_address_cost_1): Remove.
14462 (mn10300_register_move_cost): New.
14463 (mn10300_memory_move_cost): New.
14464 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14465 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14466 extensions, shifts, BSWAP, CLZ.
14467 (mn10300_wide_const_load_uses_clr): Remove.
14468 (TARGET_REGISTER_MOVE_COST): New.
14469 (TARGET_MEMORY_MOVE_COST): New.
14470 * config/mn10300/mn10300-protos.h: Update.
14471 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14472
14473 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14474 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14475 * config/mn10300/mn10300-protos.h: Update.
14476 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14477 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14478 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14479 (*test_int_bitfield, *test_byte_bitfield): Remove.
14480 (*bit_test, *subreg_bit_test): Remove.
14481 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14482
14483 * config/mn10300/constraints.md ("c"): Rename from "A".
14484 ("A", "D"): New constraint letters.
14485 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14486 (fmssf4, fnmasf4, fnmssf4): Likewise.
14487
14488 * config/mn10300/mn10300.md (isa): New attribute.
14489 (enabled): New attribute.
14490
14491 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14492 (abssf2, negsf2): Define only for hardware fp.
14493 (sqrtsf2): Reformat.
14494 (addsf3, subsf3, mulsf3): Merge expander and insn.
14495
14496 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14497 (DEBUGGER_AUTO_OFFSET): Remove.
14498 (DEBUGGER_ARG_OFFSET): Remove.
14499
14500 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14501 Emit register stores with the same offsets as the hardware.
14502 (mn10300_store_multiple_operation): Don't check that the register
14503 save offsets are monotonic.
14504 * config/mn10300/mn10300-protos.h: Update.
14505
14506 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14507
14508 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14509 in terms of the value on the stack, not the MDR register.
14510
14511 2011-01-11 Jan Hubicka <jh@suse.cz>
14512
14513 PR lto/45721
14514 PR lto/45375
14515 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14516 (symbol_alias_set_destroy, symbol_alias_set_contains,
14517 propagate_aliases_backward): Declare.
14518 * lto-streamer-out.c (struct sets): New sturcture.
14519 (trivally_defined_alias): New function.
14520 (output_alias_pair_p): Rewrite.
14521 (output_unreferenced_globals): Fix output of alias pairs.
14522 (produce_symtab): Likewise.
14523 * ipa.c (function_and_variable_visibility): Set weak alias destination
14524 as needed in lto.
14525 * varasm.c (symbol_alias_set_t): Remove.
14526 (symbol_alias_set_destroy): Export.
14527 (propagate_aliases_forward, propagate_aliases_backward): New functions
14528 based on ...
14529 (compute_visible_aliases): ... this one; remove.
14530 (trivially_visible_alias): New
14531 (trivially_defined_alias): New.
14532 (remove_unreachable_alias_pairs): Rewrite.
14533 (finish_aliases_1): Reorganize code checking if alias is defined.
14534 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14535 in LTO mode.
14536
14537 2011-01-11 Richard Guenther <rguenther@suse.de>
14538
14539 PR tree-optimization/46076
14540 * tree-ssa.c (useless_type_conversion_p): Conversions from
14541 unprototyped to empty argument list function types are useless.
14542
14543 2011-01-11 Richard Guenther <rguenther@suse.de>
14544
14545 PR middle-end/45235
14546 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14547 volatile MEMs as MEM_READONLY_P.
14548
14549 2011-01-11 Richard Guenther <rguenther@suse.de>
14550
14551 PR tree-optimization/47239
14552 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14553
14554 2011-01-11 Jeff Law <law@redhat.com>
14555
14556 PR tree-optimization/47086
14557 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14558 IVs from statements that might throw.
14559
14560 2011-01-10 Jan Hubicka <jh@suse.cz>
14561
14562 PR lto/45375
14563 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14564
14565 2011-01-10 Jan Hubicka <jh@suse.cz>
14566
14567 PR lto/45375
14568 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14569 when correcting profile.
14570
14571 2011-01-10 Jan Hubicka <jh@suse.cz>
14572
14573 PR lto/46083
14574 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14575 DECL_FINI_PRIORITY.
14576 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14577 Restore DECL_FINI_PRIORITY.
14578
14579 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14580
14581 * doc/gimple.texi: Fix quoting of multi-word return values in
14582 @deftypefn statements. Ensure presence of return value. Wrap
14583 overlong @deftypefn lines.
14584 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14585 descriptions of removed functions.
14586 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14587 of multi-word return value in @deftypefn statement.
14588
14589 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14590
14591 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14592 (Conditional Expressions, Logical Operators)
14593 (Statement and operand traversals): Do not indent smallexample
14594 code. Fix duplicate function argument in example.
14595
14596 2011-01-10 Jeff Law <law@redhat.com>
14597
14598 PR tree-optimization/47141
14599 * ipa-split.c (split_function): Handle case where we are
14600 returning a value and the return block has a virtual operand phi.
14601
14602 2011-01-10 Jan Hubicka <jh@suse.cz>
14603
14604 PR tree-optimization/47234
14605 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14606 (pass_feedback_split_functions): Declare.
14607 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14608 tree-profile.
14609 * ipa-split.c (gate_split_functions): Update comments; disable
14610 split-functions for profile_arc_flag and branch_probabilities.
14611 (gate_feedback_split_functions): New function.
14612 (execute_feedback_split_functions): New function.
14613 (pass_feedback_split_functions): New global var.
14614
14615 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14616
14617 PR lto/46760
14618 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14619 calling gimple_call_set_cannot_inline.
14620
14621 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14622
14623 * config/darwin-sections.def: Remove unused section.
14624
14625 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14626
14627 PR c++/47218
14628 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14629
14630 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14631
14632 PR objc/47232
14633 * c-parser.c (c_parser_declaration_or_fndef): Improved
14634 error message.
14635
14636 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14637
14638 * config/i386/winnt.c (i386_pe_start_function): Make sure
14639 to switch back to function's section.
14640
14641 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14642
14643 PR gcc/46902
14644 PR testsuite/46912
14645 * plugin.c: Move include of dlfcn.h from here...
14646 * system.h: ... to here.
14647
14648 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14649
14650 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14651 file name.
14652 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14653 two extra empty pages in PDF output.
14654
14655 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14656
14657 PR objc/47078
14658 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14659 for error recovery purposes behave as if it was not specified so
14660 that the default type is usd.
14661
14662 2011-01-07 Jan Hubicka <jh@suse.cz>
14663
14664 PR tree-optmization/46469
14665 * ipa.c (function_and_variable_visibility): Clear needed flags on
14666 nodes with external decls; handle weakrefs merging correctly.
14667
14668 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14669
14670 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14671 not false.
14672
14673 2011-01-07 Jan Hubicka <jh@suse.cz>
14674
14675 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14676 and no longer claim that gold is required for linker plugin.
14677 * configure: Regenerate.
14678 * gcc.c (PLUGIN_COND): New macro.
14679 (LINK_COMMAND_SPEC): Use it.
14680 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14681 * config.in (HAVE_LTO_PLUGIN): New.
14682 * configure.ac (--with-lto-plugin): New parameter; autodetect
14683 HAVE_LTO_PLUGIN.
14684
14685 2011-01-07 Jan Hubicka <jh@suse.cz>
14686
14687 PR tree-optimization/46367
14688 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14689 when we can update original.
14690 (cgraph_mark_inline_edge): Sanity check.
14691 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14692
14693 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14694
14695 * config/spu/spu.h (ASM_COMMENT_START): Define.
14696
14697 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14698
14699 PR driver/42445
14700 * gcc.c (%>S): New.
14701 (SWITCH_KEEP_FOR_GCC): Likewise.
14702 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14703 (do_spec_1): Handle "%>".
14704
14705 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14706
14707 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14708
14709 PR target/47201
14710 * config/i386/i386.c (ix86_delegitimize_address): If
14711 simplify_gen_subreg fails, return orig_x.
14712
14713 PR bootstrap/47187
14714 * value-prof.c (gimple_stringop_fixed_value): Handle
14715 lhs of the call properly.
14716
14717 2011-01-07 Jan Hubicka <jh@suse.cz>
14718
14719 PR lto/45375
14720 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14721
14722 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14723
14724 * target.def (function_switched_text_sections): New hook.
14725 * doc/tm.texi: Regenerated.
14726 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14727 * final.c (default_function_switched_text_sections): New.
14728 (final_scan_insn): Call function_switched_text_sections when a
14729 mid-function section change occurs.
14730 * output.h (default_function_switched_text_sections): Declare.
14731 * config/darwin-protos.h (darwin_function_switched_text_sections):
14732 Likewise.
14733 * config/darwin.c (darwin_function_switched_text_sections): New.
14734 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14735
14736 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14737
14738 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14739 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14740 the secondary code fragment when outputting for DWARF == 2.
14741
14742 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14743
14744 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14745 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14746 Remove.
14747 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14748 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14749
14750 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14751
14752 PR debug/46704
14753 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14754 when it is not empty.
14755
14756 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14757
14758 Bobcat Enablement
14759 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14760 (case ${target}): Add btver1.
14761 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14762 -march=native recognize btver1 processors.
14763 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14764 btver1 def_and_undef
14765 * config/i386/i386.c (struct processor_costs btver1_cost): New
14766 btver1 cost table.
14767 (m_BTVER1): New definition.
14768 (m_AMD_MULTIPLE): Includes m_BTVER1.
14769 (initial_ix86_tune_features): Add btver1 tune.
14770 (processor_target_table): Add btver1 entry.
14771 (static const char *const cpu_names): Add btver1 entry.
14772 (software_prefetching_beneficial_p): Add btver1.
14773 (ix86_option_override_internal): Add btver1 instruction sets.
14774 (ix86_issue_rate): Add btver1.
14775 (ix86_adjust_cost): Add btver1.
14776 * config/i386/i386.h (TARGET_BTVER1): New definition.
14777 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14778 (enum processor_type): Add PROCESSOR_BTVER1.
14779 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14780
14781 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14782
14783 PR target/43309
14784 * config/i386/i386.c (legitimize_tls_address)
14785 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14786 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14787 (tls_initial_exec_64_sun): New pattern.
14788
14789 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14790
14791 * doc/invoke.texi (Overall Options): Improve wording and markup
14792 of the description of -wrapper.
14793
14794 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14795
14796 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14797 rdynamic, threads): New Driver options.
14798
14799 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14800
14801 PR target/38118
14802 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14803 if coming from .tdata.
14804 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14805
14806 2011-01-06 Jan Hubicka <jh@suse.cz>
14807
14808 PR lto/47188
14809 * collect2.c (main): Do not enable LTOmode when plugin is active.
14810
14811 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14812
14813 PR other/45915
14814 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14815 --version output if supported.
14816 * configure: Regenerate.
14817
14818 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14819
14820 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14821 Driver options.
14822
14823 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14824
14825 PR c/47150
14826 * c-convert.c (convert): When converting a complex expression
14827 other than COMPLEX_EXPR to a different complex type, ensure
14828 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14829 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14830 when converting COMPLEX_TYPE.
14831
14832 2011-01-06 Ira Rosen <irar@il.ibm.com>
14833
14834 PR tree-optimization/47139
14835 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14836 only the last reduction value is used outside the loop. Update
14837 documentation.
14838
14839 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14840
14841 * config/rtems.opt: New.
14842 * config.gcc (*-*-rtems*): Use rtems.opt.
14843
14844 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14845
14846 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14847 processors do not support 3DNow instructions.
14848
14849 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14850
14851 * config/spu/spu.c (spu_option_override): Set parameter
14852 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14853
14854 2011-01-05 Jan Hubicka <jh@suse.cz>
14855
14856 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14857 at the command line.
14858
14859 2011-01-05 Martin Jambor <mjambor@suse.cz>
14860
14861 PR lto/47162
14862 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14863 deltas on streamed outgoing edges.
14864 (output_node_opt_summary): Output info for outgoing edges only when
14865 the node is in new parameter set.
14866 (output_cgraph_opt_summary): New parameter set, passed to the two
14867 aforementioned functions. Update its forward declaration and its
14868 callee too.
14869
14870 2011-01-05 Tom Tromey <tromey@redhat.com>
14871
14872 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14873 operator to c_finish_omp_atomic.
14874 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14875 (build_unary_op): Update.
14876 (build_modify_expr): Update.
14877 (build_asm_expr): Update.
14878
14879 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14880
14881 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14882 newly inserted insns.
14883 (pad_bb): Likewise.
14884 (spu_emit_branch_hint): Likewise.
14885 (insert_hbrp_for_ilb_runout): Likewise.
14886 (spu_machine_dependent_reorg): Call df_finish_pass after
14887 schedule_insns returns.
14888
14889 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14890
14891 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14892
14893 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14894
14895 PR tree-optimization/47005
14896 * tree-sra.c (struct access): Add 'non_addressable' bit.
14897 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14898 (decide_one_param_reduction): Return 0 if the parameter is passed by
14899 reference and one of the accesses in the group is non_addressable.
14900
14901 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14902
14903 PR tree-optimization/47056
14904 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14905 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14906 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14907
14908 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14909
14910 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14911 initializer. Skip view conversions from aggregate types.
14912
14913 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14914
14915 PR bootstrap/47055
14916 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14917
14918 2011-01-04 Philipp Thomas <pth@suse.de>
14919
14920 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14921 obvious typo.
14922
14923 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14924
14925 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14926 on empty epilogue sequences.
14927
14928 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14929
14930 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14931 non-static): New Driver options.
14932
14933 2011-01-04 Jie Zhang <jie@codesourcery.com>
14934
14935 PR driver/47137
14936 * gcc.c (default_compilers[]): Set combinable field to 0
14937 for all assembly languages.
14938
14939 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14940
14941 * config/mips/loongson3a.md: New file.
14942 * config/mips/mips.md: Include loongson3a.md.
14943 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14944 TUNE_LOONGSON_3A.
14945
14946 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14947
14948 PR middle-end/47017
14949 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14950 instead of convert_memory_address_addr_space on the base expression.
14951
14952 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14953
14954 * config/spu/spu.c (spu_option_override): Update error text
14955 for bad -march= / -mtune= values.
14956
14957 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14958
14959 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14960 if branch-hint optimization will be performed.
14961
14962 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR tree-optimization/47148
14965 * ipa-split.c (split_function): Convert arguments to
14966 DECL_ARG_TYPE if possible.
14967
14968 PR tree-optimization/47155
14969 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14970 when computing uns.
14971
14972 PR rtl-optimization/47157
14973 * combine.c (try_combine): If undobuf.other_insn becomes
14974 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14975 and set *new_direct_jump_p too.
14976
14977 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14978
14979 PR tree-optimization/47021
14980 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14981
14982 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14983
14984 * gcc.c (process_command): Update copyright notice dates.
14985 * gcov.c (print_version): Likewise.
14986 * gcov-dump.c (print_version): Likewise.
14987 * mips-tfile.c (main): Likewise.
14988 * mips-tdump.c (main): Likewise.
14989
14990 2011-01-03 Martin Jambor <mjambor@suse.cz>
14991
14992 PR tree-optimization/46801
14993 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14994 aggregate fields start at byte boundary instead of the bit-field flag.
14995
14996 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14997
14998 PR driver/47137
14999 * gcc.c (main): Revert revision 168407.
15000
15001 2011-01-03 Martin Jambor <mjambor@suse.cz>
15002
15003 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15004
15005 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15006
15007 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15008 vector optab to expand vector/scalar shift, update gimple to vector.
15009
15010 2011-01-03 Martin Jambor <mjambor@suse.cz>
15011
15012 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15013 a thunk.
15014
15015 2011-01-03 Martin Jambor <mjambor@suse.cz>
15016
15017 PR tree-optimization/46984
15018 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15019 HOST_WIDE_INT.
15020 (cgraph_create_indirect_edge): Fixed line length.
15021 (cgraph_indirect_call_info): Declare.
15022 (cgraph_make_edge_direct) Update declaration.
15023 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15024 (cgraph_create_indirect_edge): Use it.
15025 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15026 callees.
15027 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15028 the new thunk_delta representation.
15029 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15030 HOST_WIDE_INT.
15031 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15032 (ipa_read_indirect_edge_info): Likewise.
15033 * lto-cgraph.c (output_edge_opt_summary): New function.
15034 (output_node_opt_summary): Call it on all outgoing edges.
15035 (input_edge_opt_summary): New function.
15036 (input_node_opt_summary): Call it on all outgoing edges.
15037
15038 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15039
15040 PR driver/47137
15041 * gcc.c (main): Don't check have_o when settting combine_inputs.
15042
15043 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15044
15045 * regrename.c: Add general comment describing the pass.
15046 (struct du_head): Remove 'length' field.
15047 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15048 (regrename_optimize): Do not sort chains. Rework comments, add others.
15049 Force renaming to the preferred class (if any) in the first pass and do
15050 not consider registers that belong to it in the second pass.
15051 (create_new_chain): Do not set 'length' field.
15052 (scan_rtx_reg): Likewise.
15053
15054 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15055
15056 PR tree-optimization/47140
15057 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15058 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15059 to bit_value_binop.
15060
15061 PR rtl-optimization/47028
15062 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15063 parm_birth_insn instead of at the beginning of first bb.
15064
15065 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15066
15067 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15068 Remove the word "see" before "@pxref".
15069 * doc/rtl.texi: Remove the word "see" before "@pxref".
15070
15071 2011-01-01 Jan Hubicka <jh@suse.cz>
15072
15073 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15074 memory.
15075
15076 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15077
15078 PR target/38662
15079 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15080
15081 \f
15082 Copyright (C) 2011 Free Software Foundation, Inc.
15083
15084 Copying and distribution of this file, with or without modification,
15085 are permitted in any medium without royalty provided the copyright
15086 notice and this notice are preserved.