config.gcc (sparc-*-elf*): Add sparc/t-crtin.
[gcc.git] / gcc / ChangeLog
1 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4 (sparc-*-rtems*): Likewise.
5 (sparc64-*-elf*): Likewise.
6 (sparc64-*-rtems*): Likewise.
7 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
8 * config/sparc/t-crtin: New file.
9 * config/sparc/t-sol2 (crti.o): Delete rule.
10 (crtn.o): Likewise.
11 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14 (ENDFILE_SPEC): Add crtn.o.
15
16 2011-05-22 Tom de Vries <tom@codesourcery.com>
17
18 PR middle-end/48689
19 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
20 CODE_CONTAINS_STRUCT (TS_COMMON).
21
22 2011-05-22 Jakub Jelinek <jakub@redhat.com>
23
24 PR middle-end/49029
25 * expmed.c (extract_fixed_bit_field): Test whether target can be used
26 only after deciding which mode to use.
27
28 2011-05-22 Tom de Vries <tom@codesourcery.com>
29
30 PR target/45098
31 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
32 for call to get_shiftadd_cost.
33
34 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
35
36 PR target/49104
37 * config/i386/cpuid.h (bit_MMXEXT): New define.
38
39 2011-05-22 Nick Clifton <nickc@redhat.com>
40
41 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
42 initialisation of non-existant args[2] element. Use args[] array
43 not arg[] array to pass arguments to build_function_type_list.
44
45 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
46
47 PR tree-optimization/49087
48 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
49
50 2011-05-21 Jason Merrill <jason@redhat.com>
51
52 PR c++/49092
53 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
54 static storage duration.
55
56 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
57
58 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
59 frame pointer.
60
61 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
62
63 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
64 false if there are call-saved registers here...
65 (sparc_can_use_return_insn_p): ...but here instead.
66 (save_or_restore_regs): Fix thinko.
67 (sparc_expand_prologue): Use current_function_is_leaf.
68 (sparc_frame_pointer_required): Likewise.
69
70 2011-05-21 Nick Clifton <nickc@redhat.com>
71
72 PR target/49098
73 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
74
75 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
76
77 * gengtype.c (walk_type): Implemented "atomic" GTY option.
78 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
79
80 2011-05-21 Joseph Myers <joseph@codesourcery.com>
81
82 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
83 * optc-gen.awk: Move common code to opt-read.awk.
84 * opth-gen.awk: Likewise.
85 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86
87 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
88
89 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
90
91 2011-05-20 Tom de Vries <tom@codesourcery.com>
92
93 PR target/45098
94 * tree-ssa-loop-ivopts.c: Include expmed.h.
95 (get_shiftadd_cost): New function.
96 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
97
98 2011-05-20 Jakub Jelinek <jakub@redhat.com>
99
100 PR bootstrap/49086
101 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
102 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
103
104 2011-05-20 Joseph Myers <joseph@codesourcery.com>
105
106 * Makefile.in: Update comment referring to $(OBJS-common).
107
108 2011-05-20 Ian Lance Taylor <iant@google.com>
109
110 * godump.c (go_output_typedef): Put enum constants in the macro
111 hash table to avoid duplicate Go const definitions.
112
113 2011-05-20 Joseph Myers <joseph@codesourcery.com>
114
115 * Makefile.in (LIBDEPS): Add libcommon.a.
116 (LIBS): Likewise.
117 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
118 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
119 pretty-print.o and version.o.
120 (OBJS-libcommon): New.
121 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
122 (BACKEND): Add libcommon.a.
123 (MOSTLYCLEANFILES): Likewise.
124 (libcommon.a): New.
125 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
126 (cpp$(exeext)): Likewise.
127 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
128 pretty-print.o and input.o.
129 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
130 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
131 (errors.o): Remove.
132 (mips-tfile): Don't explicitly use version.o.
133 (mips-tdump): Likewise.
134 (gcov.o): Depend on $(DIAGNOSTIC_H).
135 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
136 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
137 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
138 * gcov-dump.c: Include intl.h and diagnostic.h.
139 (main): Initialize diagnostics.
140 * gcov.c: Include diagnostic.h.
141 (fnotice): Remove.
142 (main): Initialize diagnostics.
143 * lto-wrapper.c: Include diagnostic.h.
144 (main): Initialize diagnostics.
145
146 2011-05-20 Michael Matz <matz@suse.de>
147
148 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
149
150 2011-05-20 Michael Matz <matz@suse.de>
151 Richard Guenther <rguenther@suse.de>
152
153 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
154 use lto_streamer_cache_append directly instead of returning a VEC.
155 (preload_common_node): Remove.
156 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
157 track seen nodes.
158 (lto_streamer_cache_create): Call lto_preload_common_nodes.
159
160 2011-05-20 Richard Guenther <rguenther@suse.de>
161
162 PR tree-optimization/49079
163 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
164 MEM_REFs correctly for the trailing array access detection.
165 Special case constants the same way as decls for overall size
166 constraining.
167
168 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
169
170 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
171 argument expansion.
172
173 2011-05-20 Jakub Jelinek <jakub@redhat.com>
174
175 PR tree-optimization/49073
176 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
177 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
178 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
179
180 2011-05-20 Richard Guenther <rguenther@suse.de>
181
182 PR middle-end/48849
183 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
184 of pointer types the same way the middle-end does.
185
186 2011-05-20 Richard Guenther <rguenther@suse.de>
187
188 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
189 or pointer-to chains. Delay all fixup to uniquify_nodes.
190
191 2011-05-19 Quentin Neill <quentin.neill@amd.com>
192
193 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
194 (fma4_fmaddsub): Likewise
195
196 2011-05-19 Jan Hubicka <jh@suse.cz>
197
198 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
199 (GIMPLE_TYPE_PAIR_SIZE): New macro.
200 (type_pair_cache): New static var.
201 (lookup_type_pair): Use fixed sized custom hash; make inline.
202 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
203 calls of lookup_type_pair.
204 (print_gimple_types_stats): Remove cache stats.
205 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
206 and gtc_ob.
207
208 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
209
210 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
211 when TARGET_RDRND is active.
212 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
213 Generate dummy SImode target register when target is NULL.
214
215 2011-05-19 Joseph Myers <joseph@codesourcery.com>
216
217 * config/arm/arm-fpus.def: New.
218 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
219 arm-fpus.def.
220 * config/arm/arm-tables.opt: Regenerate.
221 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
222 (arm_option_override): Don't decode FPU name to string here.
223 * config/arm/arm.opt (mfpu=): Use Enum.
224 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
225 Update dependencies.
226
227 2011-05-19 Joseph Myers <joseph@codesourcery.com>
228
229 * collect2.c: Include diagnostic.h.
230 (fatal_perror, fatal, error, fancy_abort): Remove.
231 (main): Set progname. Call xmalloc_set_program_name and
232 diagnostic_initialize.
233 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
234 scan_libraries, resolve_lib_name): Call fatal_error instead of
235 fatal and fatal_perror.
236 * collect2.h (error, fatal, fatal_perror): Don't declare.
237 * tlink.c: Include diagnostic-core.h.
238 (recompile_files): Call fatal_error instead of fatal_perror.
239 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
240 pretty-print.o and input.o.
241 (collect2.o, tlink.o): Update dependencies.
242
243 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
244
245 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
246
247 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
248
249 PR target/40483
250 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
251 COMDAT group syntax, both SPARC and x86 variants.
252 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
253 * configure: Regenerate.
254 * config/sol2.h (TARGET_SOLARIS): Define.
255 (PUSHSECTION_FORMAT): Remove.
256 (SECTION_NAME_FORMAT): Define.
257 * config/sol2.c: Include hashtab.h.
258 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
259 expansion, using SECTION_NAME_FORMAT.
260 (solaris_comdat_htab): New variable.
261 (struct comdat_entry): Define.
262 (comdat_hash): New function.
263 (comdat_eq): New function.
264 (solaris_elf_asm_comdat_section): New function.
265 (solaris_define_comdat_signature): New function.
266 (solaris_code_end): New function.
267 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
268 (solaris_code_end): Declare.
269 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
270 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
271 solaris_code_end.
272 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
273 Remove ATTRIBUTE_UNUSED.
274 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
275 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
276 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
277 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
278 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
279 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
280 (PUSHSECTION_FORMAT): Remove.
281 (SECTION_NAME_FORMAT): Redefine.
282
283 2011-05-19 Kai Tietz <ktietz@redhat.com>
284
285 * tree-cfg.c (verify_gimple_assign_binary): Barf on
286 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
287 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
288
289 2011-05-19 Anatoly Sokolov <aesok@post.ru>
290 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
291
292 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
293
294 2011-05-19 Richard Guenther <rguenther@suse.de>
295
296 PR middle-end/48985
297 * tree-object-size.c (addr_object_size): If the pointed-to
298 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
299
300 2011-05-19 Richard Guenther <rguenther@suse.de>
301
302 * gimple.c (gimple_types_compatible_p_1): Compare names of
303 the types themselves.
304 (iterative_hash_gimple_type): And hash them that way.
305 (gimple_register_type_1): If we register a main variant properly
306 initialize the leader to ourselves.
307
308 2011-05-19 Tom de Vries <tom@codesourcery.com>
309
310 PR target/45098
311 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
312 get_loop_invariant_expr_id.
313 (get_loop_invariant_expr_id): Use get_expr_id.
314 (parm_decl_cost): New function.
315 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
316 Improve bound cost estimation. Use different inv_expr_id for elim and
317 express cases.
318
319 2011-05-19 Tom de Vries <tom@codesourcery.com>
320
321 PR target/45098
322 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
323 cost_base.cost == 0.
324
325 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
326
327 PR target/49002
328 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
329 Properly handle load cast.
330
331 2011-05-18 Jakub Jelinek <jakub@redhat.com>
332
333 PR tree-optimization/49039
334 * tree-vrp.c (extract_range_from_binary_expr): For
335 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
336 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
337
338 2011-05-18 Tom de Vries <tom@codesourcery.com>
339
340 PR target/45098
341 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
342
343 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
344
345 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
346 (*tls_global_dynamic_64): Ditto.
347 (*tls_local_dynamic_base_32_gnu): Ditto.
348 (*tls_local_dynamic_base_64): Ditto.
349 (tls_initial_exec_64_sun): Ditto.
350
351 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
352
353 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
354 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
355 bf592-none.
356 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
357 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
358 * config/bfin/bfin.c (bfin_cpus): Add bf592.
359 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
360 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
361 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
362 * config/bfin/elf.h (LIB_SPEC): Add bf592.
363
364 2011-05-18 Joseph Myers <joseph@codesourcery.com>
365
366 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
367 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
368 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
369 target_thread_pointer, arm_structure_size_boundary, struct
370 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
371 struct abi_name, arm_all_abis): Remove.
372 (arm_option_override) Don't process most enumerated option values here.
373 Don't process target_fpe_name here. Work with integer not string for
374 structure size boundary; use separate diagnostics for each case.
375 * config/arm/arm.h (enum float_abi_type, enum
376 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
377 to arm-opts.h.
378 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
379 arm_structure_size_boundary): Remove.
380 * config/arm/arm.opt (mabi=): Use Enum and Init.
381 (arm_abi_type): New Enum and EnumValue entries.
382 (mfloat-abi=): Use Enum and Init.
383 (float_abi_type): New Enum and EnumValue entries.
384 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
385 (mfp16-format=): Use Enum and Init.
386 (arm_fp16_format_type): New Enum and EnumValue entries.
387 (mstructure-size-boundary=): Use UInteger and Init.
388 (mtp=): Use Enum and Init.
389 (arm_tp_type): New Enum and EnumValue entries.
390
391 2011-05-18 Richard Guenther <rguenther@suse.de>
392
393 PR tree-optimization/49018
394 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
395 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
396 gimple_has_side_effects.
397
398 2011-05-18 Richard Guenther <rguenther@suse.de>
399
400 * gimple.c (gimple_register_type_1): New function, split out from ...
401 (gimple_register_type): ... here. Avoid infinite recursion.
402
403 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
404
405 PR tree-optimization/41881
406 * tree-vectorizer.h (struct _loop_vec_info): Add new field
407 reduction_chains along with a macro for its access.
408 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
409 (destroy_loop_vec_info): Free reduction chains.
410 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
411 (vect_is_slp_reduction): New function.
412 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
413 (vect_create_epilog_for_reduction): Support SLP reduction chains.
414 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
415 definition types for reduction chains.
416 (vect_supported_load_permutation_p): Don't allow permutations for
417 reduction chains.
418 (vect_analyze_slp_instance): Support reduction chains.
419 (vect_analyze_slp): Try to build SLP instance from reduction chains.
420 (vect_get_constant_vectors): Handle reduction chains.
421 (vect_schedule_slp_instance): Mark the first statement of the
422 reduction chain as reduction.
423
424 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
425
426 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
427 names for group elements access.
428 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
429 reduction chains as well. Remove data reference and interleaving
430 related words from the fields names.
431 * tree-vect-loop.c (vect_transform_loop): Use new names for group
432 elements access.
433 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
434 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
435 vect_update_interleaving_chain, vect_same_range_drs,
436 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
437 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
438 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
439 vect_analyze_group_access, vect_analyze_data_ref_access,
440 vect_create_data_ref_ptr, vect_transform_strided_load,
441 vect_record_strided_load_vectors): Likewise.
442 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
443 vect_model_load_cost, vectorizable_store, vectorizable_load,
444 vect_remove_stores, new_stmt_vec_info): Likewise.
445 * tree-vect-slp.c (vect_build_slp_tree,
446 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
447
448 2011-05-18 Richard Guenther <rguenther@suse.de>
449
450 PR middle-end/48989
451 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
452 operand verification.
453 (verify_gimple_assign_binary): Likewise.
454 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
455 to non-1-precision BOOLEAN_TYPEs.
456
457 2011-05-18 Tom de Vries <tom@codesourcery.com>
458
459 PR target/45098
460 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
461
462 2011-05-18 Jakub Jelinek <jakub@redhat.com>
463
464 PR tree-optimization/49000
465 * tree-ssa.c (execute_update_addresses_taken): Call
466 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
467 be rewritten and decl has been marked for renaming, reset
468 the debug stmt.
469
470 2011-05-17 Joseph Myers <joseph@codesourcery.com>
471
472 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
473 enum_opts_set when testing if attributes have set -mfpmath=.
474
475 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
476
477 * config/mips/mips.c (mips_handle_option): Remove unused variable.
478
479 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
480
481 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
482 info->entry with 0
483 * tree-inline.c (maybe_inline_call_in_expr): Initialize
484 id.transform_lang_insert_block with NULL.
485
486 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
487
488 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
489 (output_fp_compare): Change args 3 and 4 to bool.
490 (ix86_expand_call): Change arg 6 to bool.
491 (ix86_attr_length_immediate_default): Change arg 2 to bool.
492 (ix86_attr_length_vex_default): Change arg 3 to bool.
493 * config/i386/i386.md: Update all uses.
494 * config/i386/i386.c: Ditto.
495 (ix86_flags_dependent): Change return type to bool.
496
497 2011-05-17 Richard Guenther <rguenther@suse.de>
498
499 * gimple.c (type_hash_pair_compare): Fix comparison.
500
501 2011-05-17 Richard Guenther <rguenther@suse.de>
502
503 * gimple.c (iterative_hash_gimple_type): Simplify singleton
504 case some more, fix final hash value of the non-singleton case.
505
506 2011-05-17 Richard Guenther <rguenther@suse.de>
507
508 PR bootstrap/49013
509 Revert
510 2011-05-16 Richard Guenther <rguenther@suse.de>
511
512 * gimple.c (gimple_types_compatible_p_1): Use names of the
513 type itself, not its main variant.
514 (iterative_hash_gimple_type): Likewise.
515
516 2011-05-17 Richard Guenther <rguenther@suse.de>
517
518 * gimple.c (gimple_register_canonical_type): Use the main-variant
519 leader for computing the canonical type.
520
521 2011-05-17 Nick Clifton <nickc@redhat.com>
522
523 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
524 moves.
525
526 * config/rx/rx.md: Add peephole to remove redundant extensions
527 after loads.
528 (bitset_in_memory): Use rx_restricted_mem_operand.
529 (bitinvert_in_memory): Likewise.
530 (bitclr_in_memory): Likewise.
531
532 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
533 Nick Clifton <nickc@redhat.com>
534
535 * config/rx/rx.md: Add peepholes to match a register move followed
536 by a comparison of the moved register. Replace these with an
537 addition of zero that does both actions in one instruction.
538
539 2011-05-17 Jakub Jelinek <jakub@redhat.com>
540
541 PR target/48986
542 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
543 predicate to allow CONST_INT.
544 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
545
546 2011-05-16 Joseph Myers <joseph@codesourcery.com>
547
548 * opts-common.c (opt_enum_arg_to_value): New.
549 * opts.h (opt_enum_arg_to_value): Declare.
550 * config/i386/i386.opt (fpmath): Remove.
551 (mfpmath=): Use Enum, Init and Save.
552 (fpmath_unit): New Enum and EnumValue entries.
553 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
554 name for function fpmath state.
555 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
556 * config/i386/i386.c: Include diagnostic.h.
557 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
558 (ix86_target_string): Take enum fpmath_unit value instead of string.
559 (ix86_debug_options): Update call to ix86_target_string.
560 (ix86_option_override_internal): Don't process fpmath strings here.
561 (x86_function_specific_save, ix86_function_specific_restore):
562 Don't handle fpmath state specially.
563 (ix86_function_specific_print): Pass fpmath state to
564 ix86_target_string instead of printing in this function.
565 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
566 Handle enum attributes.
567 (IX86_ATTR_ENUM, ix86_opt_enum): New.
568 (ix86_valid_target_attribute_tree): Update option_strings
569 handling. Handle fpmath as enum option.
570 (ix86_can_inline_p): Update field names for function fpmath state.
571 (ix86_expand_builtin): Update call to ix86_target_string.
572 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
573 (ix86_fpmath): Remove.
574 * config/i386/t-i386 (i386.o): Update dependencies.
575
576 2011-05-16 Joseph Myers <joseph@codesourcery.com>
577
578 PR preprocessor/48677
579 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
580 from decoded_options[0], not from itself.
581
582 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
583
584 * config/i386/constraints.md (z): New constraint.
585 * config/i386/i386.c (c): New mode attribute.
586 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
587 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
588 constraint for operand 0.
589 (*call_vzeroupper): Ditto.
590 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
591 (*call_rex64_ms_sysv_vzeroupper): Ditto.
592 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
593 Use "lzm" constraint for operand 0.
594 (*call_pop_vzeroupper): Ditto.
595 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
596 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
597 constraint for operand 0.
598 (*sibcall_vzeroupper): Ditto.
599 (*sibcall_rex64_ms_sysv): Ditto.
600 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
601 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
602 *sibcall_pop_1. Use "Uz" constraint for operand 0.
603 (*sibcall_pop_vzeroupper): Ditto.
604 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
605 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
606 mode iterator. Use "<c>zm" constraint for operand 1.
607 (*call_value_vzeroupper): Ditto.
608 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
609 for operand 1.
610 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
611 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
612 *call_value_pop_1. Use "lzm" constraint for operand 1.
613 (*call_value_pop_vzeroupper): Ditto.
614 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
615 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
616 mode iterator. Use "Uz" constraint for operand 1.
617 (*sibcall_value_vzeroupper): Ditto.
618 (*sibcall_value_rex64_ms_sysv): Ditto.
619 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
620 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
621 constraint for operand 1.
622 (*sibcall_value_pop_vzeroupper): Ditto.
623 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
624 and "z" constraint for operand 2.
625 (*tls_global_dynamic_32_gnu): Ditto.
626 (*tls_local_dynamic_base_32_gnu): Ditto.
627 (*tls_local_dynamic_base_64): Ditto.
628 (*tls_local_dynamic_32_once): Ditto.
629 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
630 Update all callers.
631 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
632
633 2011-05-16 Richard Guenther <rguenther@suse.de>
634
635 * gimple.c (gimple_types_compatible_p_1): Use names of the
636 type itself, not its main variant.
637 (iterative_hash_gimple_type): Likewise.
638
639 2011-05-16 Richard Guenther <rguenther@suse.de>
640
641 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
642 always visit pointer target and function result and argument types.
643
644 2011-05-16 Jason Merrill <jason@redhat.com>
645
646 PR c++/48999
647 * tree-inline.c (copy_statement_list): Put back recursion.
648
649 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
650
651 PR target/27663
652 PR target/41076
653 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
654 * config/avr/avr.md ("*ior<mode>qi.byte0",
655 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
656
657 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
658
659 PR target/45099
660 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
661 register is needed for a function argument.
662
663 2011-05-16 Richard Guenther <rguenther@suse.de>
664
665 * gimple.c (struct type_hash_pair): New type.
666 (type_hash_pair_compare): New function.
667 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
668
669 2011-05-16 Revital Eres <revital.eres@linaro.org>
670
671 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
672
673 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
674
675 * config/i386/i386.md (floating point move splitters): Fix
676 usage of standard_80387_constant_p.
677 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
678
679 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
680
681 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
682
683 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
684
685 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
686 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
687 (tree_ssa_lim_finalize): Likewise.
688
689 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
690
691 * config/i386/constraint.md (Yd, Yx): New register constraints.
692 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
693 Yd conditional register constraint.
694 (*movtf_internal): Use standard_sse_constant_opcode.
695 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
696 Yx conditional register constraint.
697 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
698 Yd conditional register constraint. Use standard_sse_constant_p to
699 check for valid SSE constants and call standard_sse_constant_opcode to
700 output SSE insn.
701 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
702 constants and call standard_sse_constant_opcode to output SSE insn.
703 * config/i386/i386.c (ix86_option_ovverride_internal): Set
704 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
705 optimize_size is set.
706 (standard_sse_constant_opcode): Output conditional AVX insn templates.
707
708 2011-05-14 Tobias Burnus <burnus@net-b.de>
709
710 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
711
712 2011-05-13 Martin Jambor <mjambor@suse.cz>
713
714 * ipa-prop.c (ipa_cst_from_jfunc): New function.
715 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
716 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
717 (evaluate_conditions_for_ipcp_clone): Removed.
718 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
719 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
720 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
721
722 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
723
724 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
725 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
726 lieu of MAY_HAVE_DEBUG_STMTS.
727 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
728 debug statements if !MAY_HAVE_DEBUG_STMTS.
729
730 2011-05-13 Martin Thuresson <martint@google.com>
731
732 PR gcov-profile/47793
733 * libgcov.c (gcov_exit): Support relative profile paths.
734 * doc/invoke.texi (-fprofile-dir): Update for above change.
735
736 2011-05-13 Richard Guenther <rguenther@suse.de>
737
738 * gimple.c (gimple_canonical_types_compatible_p): Do not use
739 type-pair caching, do not compare hashes.
740
741 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
742
743 PR middle-end/48965
744 * tree-cfg.c (edge_to_cases_cleanup): Return true.
745 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
746
747 2011-05-13 Kai Tietz <ktietz@redhat.com>
748
749 * gimplify.c (gimplify_expr): Make sure operand is boolified.
750 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
751 compatible type for TRUTH_NOT_EXPR.
752
753 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
754
755 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
756 (ix86_hard_regno_mode_ok): Change return value to bool. Use
757 can_create_pseudo_p ().
758
759 2011-05-13 Richard Guenther <rguenther@suse.de>
760
761 PR lto/48978
762 * gimple.c (iterative_hash_gimple_type): Revert change in
763 pointer target and function result and argument hashing.
764
765 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
766
767 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
768 (*movxf_internal_nointeger): Ditto.
769 (*movdf_internal_rex64): Ditto.
770 (*movdf_internal): Ditto.
771 (*movdf_internal_nointeger): Ditto.
772 (*movsf_internal): Ditto.
773 (sincos splitters): Use can_create_pseudo ().
774
775 2011-05-13 Joseph Myers <joseph@codesourcery.com>
776
777 * config/i386/i386-opts.h: New.
778 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
779 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
780 ix86_section_threshold): Remove.
781 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
782 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
783 OPT_mbranch_cost_.
784 (ix86_option_override_internal): Don't decode strings for options
785 other than -march=, -mtune= and -mfpmath=. Don't allow for
786 __attribute__ uses in remaining diagnostics for options with
787 string arguments. Don't check for integer arguments being negative.
788 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
789 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
790 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
791 ix86_branch_cost, ix86_section_threshold): Remove.
792 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
793 HeaderInclude.
794 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
795 but not Var.
796 (masm=): Use Enum and Init.
797 (asm_dialect): New Enum and EnumValue entries.
798 (mbranch-cost=): Use UInteger.
799 (mlarge-data-threshold=): Use UInteger and Init.
800 (mcmodel=): Use Enum and Init.
801 (cmodel): New Enum and EnumValue entries.
802 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
803 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
804 mregparm=): Use UInteger.
805 (mstringop-strategy=): Use Enum and Init.
806 (stringop_alg): New Enum and EnumValue entries.
807 (mtls-dialect=): Use Enum and Init.
808 (tls_dialect): New Enum and EnumValue entries.
809 (mabi=): Use Enum and Init.
810 (calling_abi): New Enum and EnumValue entries.
811 (mveclibabi=): Use Enum and Init.
812 (ix86_veclibabi): New Enum and EnumValue entries.
813
814 2011-05-13 Nick Clifton <nickc@redhat.com>
815
816 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
817 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
818
819 2011-05-13 Kai Tietz <ktietz@redhat.com>
820
821 PR middle-end/48984
822 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
823 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
824 (gimple_boolify): Check for cast for boolean_type_node instead for
825 BOOLEAN_TYPE.
826
827 2011-05-13 Richard Guenther <rguenther@suse.de>
828
829 PR tree-optimization/48172
830 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
831 multiplying by number of iterations for equal step.
832 (vect_create_cond_for_alias_checks): Likewise.
833
834 2011-05-13 Andreas Schwab <schwab@redhat.com>
835
836 * configure.ac: Use AS_HELP_STRING throughout.
837 * configure: Regenerate.
838
839 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
840
841 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
842 (ix86_emit_restore_regs_using_mov): Likewise.
843 (ix86_emit_restore_sse_regs_using_mov): Likewise.
844
845 2011-05-12 Anatoly Sokolov <aesok@post.ru>
846
847 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
848 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
849 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
850 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
851 RTX_OK_FOR_OLO10_P): ...here.
852 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
853 SYMBOLIC_CONST.
854
855 2011-05-12 Kai Tietz <ktietz@redhat.com>
856
857 * gimplify.c (gimple_boolify): Re-boolify expression
858 arguments even if expression type is of kind BOOLEAN_TYPE.
859 (gimplify_boolean_expr): Removed.
860 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
861 and XOR. Additional take care that we keep expression's type.
862 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
863 of TRUTH_AND|OR|XOR_EXPR.
864
865 2011-05-12 Jakub Jelinek <jakub@redhat.com>
866
867 PR tree-optimization/48975
868 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
869 on all bbs here and free and clear ifc_bbs at the end.
870
871 2011-05-12 Richard Guenther <rguenther@suse.de>
872
873 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
874 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
875 until after simple checks.
876 (gimple_types_compatible_p): Likewise.
877 (iterative_hash_gimple_type): Always hash pointer targets
878 and function return and argument types.
879 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
880 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
881 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
882 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
883 completely in the simple compare section.
884 (gimple_register_canonical_type): Query the cache again after
885 registering.
886
887 2011-05-12 Richard Guenther <rguenther@suse.de>
888
889 PR tree-optimization/48172
890 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
891 the number of iterations from the segment size calculation.
892 (vect_create_cond_for_alias_checks): Adjust.
893
894 2011-05-12 Jakub Jelinek <jakub@redhat.com>
895
896 PR debug/48967
897 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
898 if validate_subreg fails.
899
900 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
901
902 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
903 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
904 early.
905
906 2011-05-12 DJ Delorie <dj@redhat.com>
907
908 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
909 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
910 created builtin into rx_builtins array.
911 (rx_builtin_decl): New function.
912 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
913
914 2011-05-12 DJ Delorie <dj@redhat.com>
915 Nick Clifton <nickc@redhat.com>
916
917 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
918 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
919 (rx_is_legitimate_address): Add pre-decrement and post-increment
920 addressing in HImode and QImode. Fix test for out of range
921 REG+INT addressing.
922 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
923 (rx_align_for_label): Test label before extracting its usage count.
924 (rx_adjust_insn_lengths): Fix selection of insn codes.
925 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
926
927 2011-05-11 Jason Merrill <jason@redhat.com>
928
929 * tree.c (type_hash_canon): Use struct tree_type_non_common.
930
931 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
932
933 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
934 reindent the subsequent block.
935
936 2011-05-11 Satoru Takabayashi <satorux@google.com>
937 Paul Pluzhnikov <ppluzhnikov@google.com>
938
939 * doc/install.texi (Configuration): Document --with-linker-hash-style.
940 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
941 * config.in: Add LINKER_HASH_STYLE.
942 * configure.ac: Add --with-linker-hash-style.
943 * configure: Regenerate.
944
945 2011-05-11 Richard Guenther <rguenther@suse.de>
946
947 PR middle-end/48964
948 * gimple.c (iterative_hash_canonical_type): Fix typo.
949
950 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
951
952 * config/i386/i386.c (legitimize_tls_address)
953 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
954 expanders directly for TARGET_GNU2_TLS. Determine pic and
955 __tls_get_addr symbol reference here. Update call to
956 gen_tls_global_dynamic_{32,64} for added arguments.
957 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
958 expanders directly for TARGET_GNU2_TLS. Determine
959 __tls_get_addr symbol reference here. Update call to
960 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
961 unique UNSPEC REG_EQUIV to libcall block.
962 (ix86_tls_get_addr): Declare static.
963 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
964 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
965 Do not determine pic and __tls_get_addr symbol reference here. Do not
966 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
967 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
968 (tls_global_dynamic_64): Add operand 2. Do not determine
969 __tls_get_addr symbol reference here. Do not call
970 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
971 (tls_local_dynamic_base64): Ditto for operand 1.
972
973 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
974
975 * function.c (expand_function_start): Initialize stack_check_probe_note
976 only if the generic stack checking mechanism is used.
977
978 2011-05-11 Richard Guenther <rguenther@suse.de>
979
980 PR tree-optimization/15256
981 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
982 (A & B) | C, combine (A op CST1) op CST2.
983 (tree_ssa_forward_propagate_single_use_vars): Only bother to
984 visit assigns that have uses.
985
986 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
987
988 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
989 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
990 (unpack_ts_type_common_value_fields): ...this. Update comment.
991 (unpack_value_fields): Adjust for renaming.
992 (lto_input_ts_type_tree_pointers): Split into...
993 (lto_input_ts_type_common_tree_pointer): ...this and...
994 (lto_input_ts_type_non_common_tree_pointers): ...this.
995 (lto_input_tree_pointers): Adjust for above split.
996 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
997 (pack_ts_type_common_value_fields): ...this. Update comment.
998 (lto_output_ts_type_tree_pointers): Split into...
999 (lto_output_ts_type_common_tree_pointers): ...this and...
1000 (lto_output_ts_type_non_common_tree_pointers): ...this.
1001 (lto_output_tree_pointers): Adjust for above split.
1002 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1003 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1004 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1005 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1006 Define.
1007 (struct tree_type): Split into...
1008 (struct tree_type_common: ...this and...
1009 (struct tree_type_with_lang_specific): ...this and...
1010 (struct tree_type_non_common): ...this. Adjust accessor macros
1011 accordingly.
1012 (TYPE_VALUES_RAW): Define.
1013 (union tree_node): Update for above changes.
1014 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1015 TS_TYPE_NON_COMMON.
1016 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1017 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1018 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1019 * treestructu.def (TS_TYPE): Remove.
1020 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1021 Define.
1022
1023 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1024
1025 PR debug/48159
1026 * tree-ssa.c (reset_debug_uses): New function.
1027 * tree-flow.h (reset_debug_uses): New prototype.
1028 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1029 * tree-loop-distribution.c (generate_loops_for_partition): Call
1030 reset_debug_uses on the stmts that will be removed. Keep around
1031 all debug stmts, don't count them as bits in partition bitmap.
1032 (generate_builtin): Don't count debug stmts or labels as bits in
1033 partition bitmap.
1034
1035 2011-05-11 Richard Guenther <rguenther@suse.de>
1036
1037 * gimple.c (gimple_type_hash_1): Merge with ...
1038 (gimple_type_hash): ... this.
1039 (gtc_visit): Remove mode parameter and simplify accordingly.
1040 (gimple_types_compatible_p_1): Likewise.
1041 (gimple_types_compatible_p): Likewise.
1042 (iterative_hash_gimple_type): Likewise.
1043 (visit): Likewise.
1044 (gimple_type_eq): Adjust.
1045
1046 2011-05-11 Revital Eres <revital.eres@linaro.org>
1047
1048 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1049 enters the branch create an anti edge in the opposite direction
1050 to prevent the creation of reg-moves.
1051 * modulo-sched.c: Adjust comment to reflect the fact we are
1052 scheduling closing branch.
1053 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1054 (stage_count): New field in struct partial_schedule.
1055 (calculate_stage_count): New function.
1056 (normalize_sched_times): Rename to reset_sched_times and handle
1057 incrementing the sched time of the nodes by a constant value
1058 passed as parameter.
1059 (duplicate_insns_of_cycles): Skip closing branch.
1060 (sms_schedule_by_order): Schedule closing branch.
1061 (ps_insn_find_column): Handle closing branch.
1062 (sms_schedule): Call reset_sched_times and adjust the code to
1063 support scheduling of the closing branch.
1064 (ps_insert_empty_row): Update calls to normalize_sched_times
1065 and rotate_partial_schedule functions.
1066
1067 2011-05-11 Richard Guenther <rguenther@suse.de>
1068
1069 PR middle-end/48953
1070 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1071
1072 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1073
1074 * opts.c (finish_options): Move warning settings from process_options.
1075 * toplev.c (process_options): Move warning settings to finish_options.
1076
1077 2011-05-11 Richard Guenther <rguenther@suse.de>
1078
1079 PR tree-optimization/18041
1080 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1081 (simplify_bitwise_binary): ... this. Handle operand conversions
1082 by applying them to the result instead.
1083 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1084
1085 2011-05-11 Richard Guenther <rguenther@suse.de>
1086
1087 * gimple.c (gimple_canonical_types_compatible_p): Split out
1088 from gimple_types_compatible_p and friends. Do not recurse
1089 to pointed-to types.
1090 (gimple_canonical_type_eq): Use it.
1091 (iterative_hash_canonical_type): Split out from
1092 iterative_hash_gimple_type and friends. Do not recurse
1093 to pointed-to types.
1094 (gimple_canonical_type_hash): Use it, allocate the hash here.
1095
1096 2011-05-11 Revital Eres <revital.eres@linaro.org>
1097
1098 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1099 recognizing doloop.
1100
1101 2011-05-11 Revital Eres <revital.eres@linaro.org>
1102
1103 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1104 instead of PREV_INSN.
1105
1106 2011-05-11 Revital Eres <revital.eres@linaro.org>
1107
1108 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1109 * loop-doloop.c (doloop_condition_get): Likewise.
1110 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1111 (doloop_end): New.
1112 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1113
1114 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1115
1116 * tree.def (CASE_LABEL_EXPR): Add an operand.
1117 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1118
1119 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1120
1121 * c-decl.c (c_override_global_bindings_to_false): Remove.
1122 (global_bindings_p): Don't check
1123 c_override_global_bindings_to_false.
1124 * c-tree.h (c_override_global_bindings_to_false): Remove.
1125 * c-typeck.c (composite_type): Don't set
1126 c_override_global_bindings_to_false.
1127
1128 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1129
1130 PR target/48857, 48495
1131 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1132 (VSX_MODE): Ditto.
1133 (VSX_MOVE_MODE): Ditto.
1134 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1135 VSX vector types. Add V2DImode.
1136 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1137 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1138 (MODES_TIEABLE_P): Ditto.
1139
1140 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1141 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1142 VSX_VECTOR_MODE.
1143 (init_cumulative_args): Ditto.
1144 (rs6000_function_arg_boundary): Ditto.
1145 (rs6000_function_arg_advance_1): Ditto.
1146 (rs6000_function_arg): Ditto.
1147 (rs6000_function_ok_for_sibcall): Ditto.
1148 (emit_frame_save): Ditto.
1149 (rs6000_function_value): Ditto.
1150 (rs6000_libcall_value): Ditto.
1151
1152 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1153
1154 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1155 i386/darwin-lib.h to $libgcc_tm_file.
1156 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1157
1158 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1159
1160 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1161
1162 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1163
1164 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1165 * config/rs6000/rs6000-tables.opt: New file (generated).
1166 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1167 rs6000/rs6000-tables.opt to extra_options.
1168 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1169 * config/rs6000/rs6000.c (rs6000_select): Remove.
1170 (processor_target_table): Move contents to rs6000-cpus.def.
1171 (darwin_rs6000_override_options): Check
1172 global_options_set.x_rs6000_cpu_index instead of
1173 rs6000_select[1].string.
1174 (rs6000_option_override_internal): Likewise.
1175 (rs6000_handle_option): Don't assert that global structures are in
1176 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1177 (rs6000_default_cpu): New variable.
1178 (rs6000_file_start): Set it instead of local default_cpu. Check
1179 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1180 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1181 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1182 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1183 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1184 rs6000_select): Remove.
1185 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1186 Remove.
1187 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1188 * config/rs6000/t-rs6000
1189 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1190 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1191 global_options_set.x_rs6000_cpu_index instead of
1192 rs6000_select[1].string.
1193 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1194 global_options_set.x_rs6000_cpu_index instead of
1195 rs6000_select[1].string.
1196
1197 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1198
1199 * config.gcc (libgcc_tm_file): Define instead of including files
1200 from ../../libgcc/config/ in tm_file.
1201 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1202 * configure: Regenerate.
1203 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1204 libgcc_tm.h, cs-libgcc_tm.h): New.
1205 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1206 (clean): Remove libgcc_tm.h.
1207 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1208 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1209 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1210
1211 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1212
1213 PR target/48896
1214 * config/avr/avr.c (avr_ret_register): Return unsigned int
1215 instead of int.
1216 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1217 it to avr_libcall_value.
1218 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1219 expand_expr.
1220 (avr_expand_binop_builtin): Ditto.
1221 (avr_expand_unop_builtin): Ditto.
1222
1223 2011-05-10 DJ Delorie <dj@redhat.com>
1224
1225 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1226 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1227 * config/rx/rx.c (rx_align_for_label): Add label and
1228 uses_threshold parameters. Do not align when the label is not
1229 used enough.
1230 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1231
1232 2011-05-10 Richard Guenther <rguenther@suse.de>
1233
1234 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1235 a series of conversions and apply foldings similar to what
1236 fold-const does.
1237 (tree_ssa_forward_propagate_single_use_vars): Call it.
1238
1239 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR tree-optimization/48611
1242 PR tree-optimization/48794
1243 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1244 referenced from RESX or EH_DISPATCH arguments.
1245
1246 PR debug/48928
1247 * dfp.c (decimal_to_decnumber): Handle conversion from
1248 dconst{1,2,m1,half}.
1249
1250 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1251
1252 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1253 for !flag_prefer_avx128.
1254 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1255
1256 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1257
1258 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1259 (fold_ternary_loc): Use expr_location_or.
1260
1261 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 PR debug/48853
1264 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1265 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1266 Pmode and mem_mode is not VOIDmode.
1267
1268 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1269
1270 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1271 TYPE_QUAL_RESTRICT): Convert to enum.
1272
1273 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1274
1275 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1276 (const_pow2_1_to_8_operand): Ditto.
1277 (const_pow2_1_to_128_operand): Ditto.
1278 (const_pow2_1_to_32768_operand): Ditto.
1279 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1280 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1281 in insn constraint to check integer value of operand 3.
1282 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1283
1284 (PINSR_MODE): New mode iterator.
1285 (sse2p4_1): New mode attribute.
1286 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1287 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1288 iterator. Use const_int_operand instead of
1289 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1290 exact_log2 in insn constraint to check integer value of operand 3.
1291
1292 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1293
1294 * config/i386/sse.md (blendbits): Remove mode attribute.
1295 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1296 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1297 Check integer value of operand 3 in insn constraint.
1298
1299 2011-05-09 Richard Guenther <rguenther@suse.de>
1300
1301 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1302 for diagnostics.
1303 (lto_symtab_merge): Likewise. Do not register types here.
1304 (lto_symtab_merge_decls_2): Likewise.
1305 (lto_symtab_merge_decls_1): Likewise.
1306 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1307 * gimple.c (enum gtc_mode): Declare.
1308 (gimple_types_compatible_p): Make static.
1309
1310 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1311
1312 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1313 temporary register to match Pmode.
1314
1315 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1316
1317 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1318 and *vec_concatv4si_1_avx.
1319
1320 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1321
1322 PR rtl-optimization/48927
1323 * ira-conflicts.c (commutative_constraint_p): Use
1324 recog_data.alternative_enabled_p to disable alternatives where
1325 "enabled" attribute is false.
1326 (get_dup_num): Ditto.
1327 * ira-lives.c (single_reg_class): Ditto.
1328 (ira_implicitly_set_insn_hard_regs): Ditto.
1329
1330 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1331
1332 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1333 (dataflow_set_preserve_mem_locs): Likewise.
1334
1335 2011-05-09 Philipp Thomas <pth@suse.de>
1336
1337 * config/mep/mep.c (mep_validate_vliw): Syntax description
1338 should not be translated.
1339
1340 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1341
1342 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1343 * config/mips/mips-tables.opt: New file (generated).
1344 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1345 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1346 MIPS_ARCH_OPTION_NATIVE): Define.
1347 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1348 mips-cpus.def.
1349 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1350 mips_parse_cpu): Remove.
1351 (mips_cpu_info_from_opt, mips_default_arch): New.
1352 (mips_handle_option): Don't assert that global structures are in
1353 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1354 (mips_option_override): Use new variables and functions to set
1355 state of these options. Use strcmp to check for individual CPU names.
1356 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1357 definition.
1358 * config/mips/mips.opt (march=): Use ToLower and Enum.
1359 (mips): Use ToLower, Enum and Var.
1360 (mtune=): Use ToLower and Enum.
1361 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1362
1363 2011-05-08 Jan Hubicka <jh@suse.cz>
1364
1365 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1366 Arrange type pairs to be UID ordered.
1367 (gimple_lookup_type_leader): Make inline.
1368
1369 2011-05-09 Nick Clifton <nickc@redhat.com>
1370
1371 PR target/48899
1372 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1373 PROCESSOR_DEFAULT.
1374
1375 PR target/48897
1376 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1377 variable 's'.
1378
1379 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1380
1381 * combine.c (simplify_comparison): Abstract out parts into...
1382 (simplify_compare_const): ... new function.
1383 (try_combine): Generalize parallel arithmetic/compare combining
1384 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1385
1386 2011-05-08 Jan Hubicka <jh@suse.cz>
1387
1388 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1389 (cgraph_create_virtual_clone): Call hooks once virtual clone
1390 is finished.
1391 * cgraph.h (cgraph_clone_node): Update prototype.
1392 * ipa-cp.c (ipcp_estimate_growth): Use
1393 estimate_ipcp_clone_size_and_time.
1394 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1395 * lto-cgraph.c (input_node): Update.
1396 * ipa-inline.c (recursive_inlining): Update.
1397 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1398 (evaluate_conditions_for_known_args): Break out from ...
1399 (evaluate_conditions_for_edge): ... here.
1400 (evaluate_conditions_for_ipcp_clone): New function.
1401 (inline_node_duplication_hook): Update clone summary based
1402 on parameter map.
1403 (estimate_callee_size_and_time): Rename to ...
1404 (estimate_node_size_and_time): take NODE instead of EDGE;
1405 take POSSIBLE_TRUTHS as argument.
1406 (estimate_callee_size_and_time): Update.
1407 (estimate_ipcp_clone_size_and_time): New function.
1408 (do_estimate_edge_time): Update.
1409
1410 2011-05-08 Richard Guenther <rguenther@suse.de>
1411
1412 PR middle-end/48908
1413 PR middle-end/48905
1414 * expmed.c (expand_shift_1): Compute adjusted constant shift
1415 amount manually.
1416
1417 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1418
1419 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1420
1421 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1422
1423 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1424
1425 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1426
1427 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1428
1429 2011-05-07 Jan Hubicka <jh@suse.cz>
1430
1431 * ipa-inline-transform.c (inline_call): Account when program size
1432 decreases.
1433 * ipa-inline.c (relative_time_benefit): New function.
1434 (edge_badness): Reorganize to be power 2 based; fix thinko when
1435 computing badness for negative growth; update comments to match
1436 reality; better dumps.
1437
1438 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1439
1440 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1441 type to bool and adjust comment.
1442 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1443 (fold_mathfn_compare): Remove calls to global_bindings_p.
1444 (fold_inf_compare): Likewise.
1445 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1446 * c-tree.h (global_bindings_p): Adjust prototype.
1447 * c-decl.c (global_bindings_p): Return bool and simplify.
1448
1449 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1450
1451 PR tree-optimization/48837
1452 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1453 when accumulator transformation is performed.
1454
1455 2011-05-06 Jan Hubicka <jh@suse.cz>
1456
1457 * i386.h (ix86_tune_indices): Add
1458 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1459 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1460 * i386.c (initial_ix86_tune_features): Add
1461 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1462 (software_prefetching_beneficial_p): Remove predicate.
1463 (ix86_option_override_internal): Use new macro.
1464
1465 2011-05-06 Jan Hubicka <jh@suse.cz>
1466
1467 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1468
1469 2011-05-06 Jan Hubicka <jh@suse.cz>
1470
1471 * cgraph.c (cgraph_add_thunk): Create real function node instead
1472 of alias node; finalize it and mark needed/reachale; arrange visibility
1473 to be right and add it into the corresponding same comdat group list.
1474 (dump_cgraph_node): Dump thunks.
1475 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1476 cgraph_function_with_gimple_body_p,
1477 cgraph_first_function_with_gimple_body,
1478 cgraph_next_function_with_gimple_body): New functions.
1479 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1480 New macros.
1481 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1482 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1483 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1484 devirtualization when optimizing.
1485 (verify_cgraph_node): Verify thunks.
1486 (cgraph_analyze_function): Analyze thunks.
1487 (cgraph_mark_functions_to_output): Output thunks only in combination
1488 with function they are assigned to.
1489 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1490 alias into normal node.
1491 (assemble_thunks): New functoin.
1492 (cgraph_expand_function): Use it.
1493 * lto-cgraph.c (lto_output_node): Stream thunks.
1494 (input_overwrite_node): Stream in thunks.
1495 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1496 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1497 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1498 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1499 (inline_analyze_function): Do not care about thunk jump functions.
1500 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1501 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1502 cgraph_function_with_gimple_body_p.
1503 * passes.c (do_per_function_toporder): Use
1504 cgraph_function_with_gimple_body_p.
1505 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1506 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1507 (function_called_by_processed_nodes_p): Likewise.
1508
1509 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1510
1511 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1512 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1513 entries.
1514 (mabi=): Replace with separate entries for mabi=altivec,
1515 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1516 mabi=ieeelongdouble and mabi=ibmlongdouble.
1517 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1518 check for -mabi=spe without SPE ABI support here.
1519 (rs6000_handle_option): Replace OPT_mabi_ handling with
1520 OPT_mabi_altivec and OPT_mabi_spe handling.
1521
1522 2011-05-06 Cary Coutant <ccoutant@google.com>
1523
1524 * dwarf2out.c (contains_subprogram_definition): New function.
1525 (should_move_die_to_comdat): Call it.
1526
1527 2011-05-06 Jeff Law <law@redhat.com>
1528
1529 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1530 remove_ctrl_stmt_and_useless_edges.
1531 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1532 (fixup_template_block, thread_single_edge): Likewise.
1533 (mark_threaded_blocks): Use THREAD_TARGET.
1534
1535 2011-05-06 Alan Modra <amodra@gmail.com>
1536
1537 PR target/48900
1538 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1539 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1540
1541 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1542
1543 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1544 constraint modifier to "r".
1545
1546 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1547
1548 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1549 fall through for OPT_mcmodel_.
1550
1551 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1552
1553 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1554 instruction sizes.
1555 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1556
1557 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1558
1559 PR target/47930
1560 * config/arm/arm.opt (marm): Document it.
1561 (mthumb): Reject negative variant.
1562
1563 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1564
1565 PR target/48898
1566 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1567 Fix typo in "ccvt" variable name.
1568
1569 2011-05-06 Tristan Gingold <gingold@adacore.com>
1570
1571 PR target/48895
1572 * config/vms/vms-ar.c (main): Remove cwd variable.
1573
1574 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR debug/48902
1577 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1578
1579 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1580
1581 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1582 * gimplify.c (gimplify_switch_expr): Likewise.
1583 * omp-low.c (expand_omp_sections): Likewise.
1584 * tree-eh.c (lower_try_finally_switch): Likewise.
1585 (lower_eh_dispatch): Likewise.
1586 * tree.h (build_case_label): Declare.
1587 * tree.c (build_case_label): Define.
1588
1589 2011-05-05 Jason Merrill <jason@redhat.com>
1590
1591 PR c++/40975
1592 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1593 (copy_statement_list): Don't recurse.
1594 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1595 STATEMENT_LIST.
1596
1597 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1598
1599 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1600 through from -mfpu= handling.
1601 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1602
1603 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1604
1605 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1606 POST_MODIFY.
1607
1608 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1609
1610 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1611 for 11.31.
1612 (hppa[12]*-*-hpux11*): Ditto.
1613 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1614 * config/ia64/hpux-unix2003.h: New.
1615 * config/pa/pa-hpux1131.opt: New.
1616 * config/pa/pa-hpux1131.h: New.
1617 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1618 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1619 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1620
1621 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1622
1623 PR debug/48853
1624 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1625 instead of mode as 3rd argument to recursive call.
1626 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1627 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1628 VOIDmode.
1629 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1630 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1631 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1632 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1633
1634 2011-05-05 Julian Brown <julian@codesourcery.com>
1635
1636 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1637 parenthesis in D-register case.
1638
1639 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1640
1641 * opt-functions.awk (var_type_struct): Handle Enum options.
1642 * optc-gen.awk: Don't check range of variables of character type.
1643 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1644 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1645 rs6000_sdata_name, rs6000_explicit_options): Remove.
1646 (rs6000_option_override_internal): Check for -malign-power here.
1647 Use global_options_set instead of rs6000_explicit_options.
1648 (rs6000_parse_fpu_option): Remove.
1649 (rs6000_handle_option): Access variables via opts and opts_set
1650 pointers. Use error_at and warning_at. Add fall-through
1651 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1652 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1653 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1654 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1655 here. Don't use rs6000_parse_fpu_option.
1656 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1657 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1658 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1659 (mrecip=): Use Var.
1660 (mspe): Use Var and Save.
1661 (mtraceback=): Use Enum and Var.
1662 (rs6000_traceback_type): New Enum and EnumValue entries.
1663 (mfloat-gprs=): Use Enum, Var and Save.
1664 (rs6000_float_gprs): New Enum and EnumValue entries.
1665 (mlong-double-): use Var and Save.
1666 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1667 (malign-): Use Enum and Var.
1668 (rs6000_alignment_flags): New Enum and EnumValue entries.
1669 (mfpu=): Use Enum.
1670 (fpu_type_t): New Enum and EnumValue entries.
1671 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1672 global_options_set instead of rs6000_explicit_options.
1673 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1674 global_options_set instead of rs6000_explicit_options.
1675 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1676 global_options_set instead of rs6000_explicit_options.
1677 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1678 global_options_set instead of rs6000_explicit_options.
1679 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1680 global_options_set instead of rs6000_explicit_options.
1681 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1682 global_options_set instead of rs6000_explicit_options.
1683 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1684 definition.
1685 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1686 global_options_set instead of rs6000_explicit_options.
1687 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1688 (rs6000_cmodel): New Enum and EnumValue entries.
1689 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1690 global_options_set instead of rs6000_explicit_options.
1691 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1692 (mtls-size=): Use Enum and Var.
1693 (rs6000_tls_size): New Enum and EnumValue entries.
1694
1695 2011-05-05 Michael Matz <matz@suse.de>
1696
1697 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1698 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1699 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1700 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1701 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1702 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1703 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1704 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1705 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1706 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1707 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1708 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1709 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1710 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1711 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1712 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1713
1714 2011-05-05 Richard Guenther <rguenther@suse.de>
1715
1716 * expmed.c (expand_variable_shift): Rename to ...
1717 (expand_shift_1): ... this. Take an expanded shift amount.
1718 For rotates recurse directly not building trees for the shift amount.
1719 (expand_variable_shift): Wrap around expand_shift_1.
1720 (expand_shift): Adjust.
1721
1722 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1723
1724 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1725
1726 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1727
1728 * tree.h (get_pending_sizes): Remove prototype.
1729 (put_pending_size): Likewise.
1730 (put_pending_sizes): Likewise.
1731 * stor-layout.c (pending_sizes): Delete.
1732 (get_pending_sizes): Likewise.
1733 (put_pending_size): Likewise.
1734 (put_pending_sizes): Likewise.
1735 (variable_size): Do not call put_pending_size and tidy up.
1736 * function.h (struct function): Remove dont_save_pending_sizes_p.
1737 * lto-streamer-in.c (input_function): Do not stream it.
1738 * lto-streamer-out.c (output_function): Likewise.
1739 * tree-inline.c (initialize_cfun): Do not copy it.
1740 * c-decl.c (store_parm_decls): Do not set it.
1741 * omp-low.c (create_task_copyfn): Likewise.
1742 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1743
1744 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1745
1746 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1747 conditions.
1748 (*movdf_internal): Ditto.
1749 (*movdf_internal_nointeger): Ditto.
1750 (*movsf_internal): Ditto.
1751
1752 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1753
1754 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1755 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1756 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1757 (c_variable_size): Remove.
1758 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1759 call put_pending_sizes.
1760 (get_parm_info): Add parameter expr. Use it to set
1761 arg_info->pending_sizes.
1762 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1763 get_pending_sizes.
1764 * c-parser.c (c_parser_parms_declarator): Update call to
1765 c_parser_parms_list_declarator.
1766 (c_parser_parms_list_declarator): Take parameter expr. Update
1767 call to push_parm_decl. Update recursive call. Don't call
1768 get_pending_sizes. Update calls to get_parm_info.
1769 (c_parser_objc_method_definition): Update calls to
1770 c_parser_objc_method_decl and objc_start_method_definition.
1771 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1772 (c_parser_objc_method_decl): Add parameter expr. Update call to
1773 grokparm.
1774 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1775 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1776 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1777
1778 2011-05-05 Michael Hope <michael.hope@linaro.org>
1779
1780 PR pch/45979
1781 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1782 __ARM_EABI__ hosts.
1783
1784 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1785
1786 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1787 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1788 (spu_output_mi_thunk): New function.
1789
1790 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1791
1792 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1793 targetm.asm_out.print_operand.
1794 * config/sol2.c: Include target.h.
1795
1796 2011-05-04 Jan Hubicka <jh@suse.cz>
1797
1798 * ipa-inline.c (reset_edge_caches): New function.
1799 (update_caller_keys): Add check_inlinablity_for; do not
1800 reset edge caches; remove now unnecesary loop.
1801 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1802 (update_all_callee_keys): Likewise.
1803 (inline_small_functions): Sanity check cache; update code
1804 recomputing it.
1805
1806 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1807
1808 PR rtl-optimization/47612
1809 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1810 as the last insn of the sequence to be moved.
1811
1812 2011-05-04 Tobias Burnus <burnus@net-b.de>
1813
1814 PR fortran/48864
1815 * doc/invoke.texi (Ofast): Document that it
1816 enables Fortran's -fno-protect-parens.
1817
1818 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1819
1820 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1821
1822 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1823
1824 * stor-layout.c (variable_size): Do not issue errors.
1825
1826 2011-05-04 Richard Guenther <rguenther@suse.de>
1827
1828 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1829 for array-ref indices.
1830 (tree_coverage_counter_addr): Likewise.
1831 (build_fn_info_type): Use size_int for index types.
1832 (build_gcov_info): Likewise.
1833
1834 2011-05-04 Richard Guenther <rguenther@suse.de>
1835
1836 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1837 to build_int_cst.
1838 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1839 for constructor indices.
1840 (push_init_level): Likewise.
1841
1842 2011-05-04 Richard Guenther <rguenther@suse.de>
1843
1844 * explow.c (promote_mode): Move variable declarations before code.
1845
1846 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1847
1848 * tree.h (build_function_type_array): Declare.
1849 (build_varargs_function_type_array): Declare.
1850 (build_function_type_vec, build_varargs_function_type_vec): Define.
1851 * tree.c (build_function_type_array_1): New function.
1852 (build_function_type_array): New function.
1853 (build_varargs_function_type_array): New function.
1854
1855 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1856
1857 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1858 before setting STMT_VINFO_TYPE.
1859
1860 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1861
1862 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1863 instead of spu_pass_by_reference.
1864
1865 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1866
1867 * calls.c (emit_library_call_value_1): Invoke
1868 promote_function_mode hook on libcall arguments.
1869 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1870 argument being NULL.
1871 * targhooks.c (default_promote_function_mode): Lisewise.
1872 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1873 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1874
1875 * doc/tm.texi: Document that TYPE argument might be NULL.
1876
1877 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1878
1879 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1880
1881 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1882
1883 From Bernd Schmidt
1884 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1885
1886 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1887
1888 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1889 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1890 Move ...
1891 * mips-tfile.c: ... here.
1892 Don't include coretypes.h, tm.h, filenames.h.
1893 (saber_stop): Remove definition and all calls.
1894 [__SABER__]: Remove.
1895 (__LINE__): Remove default.
1896 (Size_t, Ptrdiff_t): Remove definitions.
1897 Replace by size_t, ptrdiff_t.
1898 [!MIPS_DEBUGGING_INFO]: Remove.
1899 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1900 (progname): Add const.
1901 (STATIC): Remove.
1902 Replace all uses by static.
1903 (ALIGN_SYMTABLE_OFFSET): Remove default.
1904 * mips-tdump.c: Don't include coretypes.h, tm.h.
1905 Remove !MIPS_IS_STAB guard.
1906 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1907 $(TM_H), filenames.h dependencies.
1908 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1909
1910 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1911
1912 From Jie Zhang
1913 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1914 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1915
1916 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1917
1918 From Bernd Schmidt
1919 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1920 account and save/restore RETS.
1921 (PROFILE_BEFORE_PROLOGUE): Define.
1922 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1923 the push insn to use predecrement.
1924
1925 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1926
1927 From Jie Zhang
1928 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1929
1930 2011-05-04 Nick Clifton <nickc@redhat.com>
1931
1932 * config/mn10300/mn10300.c: Include cfgloop.h.
1933 (DUMP): New macro.
1934 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1935 Lcc or a FLcc insn into the instruction stream.
1936 (mn10300_block_contains_call): New function. Returns true if the
1937 given basic block contains a CALL insn.
1938 (mn10300_loop_contains_call_insn): New function. Returns true if
1939 the given loop contains a CALL insn.
1940 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1941 to use the SETLB and Lcc or FLcc insns.
1942 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1943 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1944 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1945 disable the SETLB optimization.
1946 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1947 __SETLB__ or __NO_SETLB__.
1948 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1949 (movsf_internal): Handle MDR register.
1950 (cmpsi): Make visible.
1951 (setlb): New pattern.
1952 (Lcc): New pattern.
1953 (FLcc): New pattern.
1954
1955 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1956
1957 PR target/48860
1958 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1959 for reg<->xmm moves.
1960 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1961 (vec_concatv2di_rex64_sse): Ditto.
1962 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1963 (*vec_extractv2di_1_rex64): Ditto.
1964
1965 Revert:
1966 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1967
1968 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1969 reg<->xmm moves.
1970 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1971
1972 2011-05-04 Richard Guenther <rguenther@suse.de>
1973
1974 * tree.h (int_const_binop): Remove notrunc argument.
1975 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1976 create integer constants that are properly truncated.
1977 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1978 (const_binop): Remove zero notrunc argument to int_const_binop.
1979 (size_binop_loc): Likewise.
1980 (fold_div_compare): Likewise.
1981 (maybe_canonicalize_comparison_1): Likewise.
1982 (fold_comparison): Likewise.
1983 (fold_binary_loc): Likewise.
1984 (multiple_of_p): Likewise.
1985 * expr.c (store_constructor): Likewise.
1986 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1987 (maybe_fold_stmt_addition): Likewise.
1988 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1989 * stor-layout.c (layout_type): Likewise.
1990 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1991 * tree-sra.c (build_ref_for_offset): Likewise.
1992 (build_user_friendly_ref_for_offset): Likewise.
1993 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1994 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1995 * tree-ssa-loop-niter.c (inverse): Likewise.
1996 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1997 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1998 * tree-switch-conversion.c (check_range): Likewise.
1999 (build_constructors): Likewise.
2000 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2001 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2002 (extract_range_from_assert): Likewise.
2003 (vrp_int_const_binop): Likewise.
2004 (extract_range_from_binary_expr): Likewise.
2005 (extract_range_from_unary_expr): Likewise.
2006 (check_array_ref): Likewise.
2007 (find_case_label_range): Likewise.
2008 (simplify_div_or_mod_using_ranges): Likewise.
2009 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2010 comparing case labels for merging.
2011
2012 2011-05-03 Mark Wielaard <mjw@redhat.com>
2013
2014 * dwarf2out.c (debug_str_hash_forced): Removed.
2015 (gen_label_for_indirect_string): Removed.
2016 (get_debug_string_label): Removed.
2017 (AT_string_form): Generate label directly.
2018 (output_indirect_string): Test indirect_string_node for
2019 DW_FORM_strp instead of checking label and refcount.
2020 (prune_indirect_string): Removed.
2021 (prune_unused_types): Don't check debug_str_hash_forced or
2022 call prune_indirect_string.
2023
2024 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2025
2026 PR other/48093
2027 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2028
2029 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2030
2031 PR debug/47994
2032 PR debug/47919
2033 * combine.c (try_combine): Skip debug insns at m_split tests.
2034
2035 2011-04-26 Mark Wielaard <mjw@redhat.com>
2036
2037 PR42288
2038 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2039 when info_section_emitted.
2040
2041 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2042
2043 * config/mips/mips-opts.h: New.
2044 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2045 to mips-opts.h.
2046 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2047 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2048 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2049 via opts pointer.
2050 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2051 mips-opts.h.
2052 (mips_abi, mips_code_readable): Don't declare.
2053 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2054 (mabi=): Use Enum and Var.
2055 (mips_abi): New Enum and EnumValue entries.
2056 (mcode-readable=): Use Enum and Var.
2057 (mips_code_readable_setting): New Enum and EnumValue entries.
2058 (mr10k-cache-barrier=): Use Enum and Var.
2059 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2060
2061 2011-05-03 Jan Hubicka <jh@suse.cz>
2062
2063 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2064 replace hash by pointer map.
2065 (cgraph_node_set_element_def, cgraph_node_set_element,
2066 const_cgraph_node_set_element, varpool_node_set_element_def,
2067 varpool_node_set_element, const_varpool_node_set_element): Remove.
2068 (free_cgraph_node_set, free_varpool_node_set): New function.
2069 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2070 * tree-emutls.c: Free varpool node set.
2071 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2072 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2073 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2074 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2075 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2076 Move here from ipa.c; implement using pointer_map
2077 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2078 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2079 debug_cgraph_node_set, varpool_node_set_new,
2080 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2081 dump_varpool_node_set, debug_varpool_node_set):
2082 Move to ipa-uitls.c.
2083 * passes.c (ipa_write_summaries): Update.
2084
2085 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2086
2087 From Mike Frysinger:
2088 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2089 bf542/bf544/bf547/bf548/bf549.
2090
2091 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2092
2093 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2094
2095 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2096
2097 From Bernd Schmidt:
2098 * config/bfin/bfin.md (MOVCC): New mode_macro.
2099 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2100 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2101 comments from generated assembly.
2102
2103 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2104
2105 From Bernd Schmidt
2106 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2107 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2108 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2109 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2110 * config/bfin/lib1funcs.asm (___muldi3): New function.
2111
2112 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2113
2114 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2115 build_function_type_list instead of build_function_type.
2116 Rearrange initialization of `args' to do so.
2117
2118 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2119
2120 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2121 instead of build_function_type.
2122
2123 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2124
2125 * config/rs6000/rs6000.c (spe_init_builtins): Call
2126 build_function_type_list instead of build_function_type.
2127 (paired_init_builtins, altivec_init_builtins): Likewise.
2128 (builtin_function_type): Likewise.
2129
2130 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2131
2132 * config/sh/sh.c (sh_media_init_builtins): Call
2133 build_function_type_list instead of build_function_type.
2134
2135 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2136
2137 * config/sparc/sparc.c (sparc_file_end): Call
2138 build_function_type_list instead of build_function_type.
2139
2140 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2141
2142 * config/alpha/alpha.c (alpha_init_builtins): Call
2143 build_function_type_list instead of build_function_type.
2144
2145 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2146
2147 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2148 build_function_type_list instead of build_function_type.
2149
2150 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2151
2152 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2153 build_function_type_list instead of build_function_type.
2154 Delete `endlink' variable.
2155
2156 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2157
2158 * config/avr/avr.c (avr_init_builtins): Call
2159 build_function_type_list instead of build_function_type.
2160
2161 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2162
2163 * config/picochip/picochip.c (picochip_init_builtins): Call
2164 build_function_type_list instead of build_function_type.
2165 Delete `endlink' variable.
2166
2167 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2168
2169 * config/bfin/bfin.c (bfin_init_builtins): Call
2170 build_function_type_list instead of build_function_type.
2171
2172 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2173
2174 From Bernd Schmidt
2175 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2176 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2177
2178 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2179
2180 From Jie Zhang:
2181 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2182 libbffastfp overrides libgcc when -mfast-fp.
2183
2184 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2185
2186 Originally from Bernd Schmidt
2187 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2188 * config/bfin/bfin.c (override_options): Test it and error if
2189 TARGET_FDPIC.
2190
2191 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2192
2193 Originally From Bernd Schmidt
2194 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2195 FD-PIC.
2196
2197 2011-05-03 Jeff Law <law@redhat.com>
2198
2199 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2200 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2201 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2202 than accessing AUX field directly. Free the AUX field before
2203 clearing it.
2204 (thread_block, thread_through_loop_header): Likewise.
2205 (thread_single_edge, mark_threaded_blocks): Likewise.
2206 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2207 (register_jump_thread): Do not attempt to thread to a NULL edge.
2208
2209 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2210
2211 * function.c (init_function_start): Call decide_function_section.
2212 * varasm.c (decide_function_section): New function.
2213 (assemble_start_function): When not using
2214 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2215 or first_function_block_is_cold.
2216 * rtl.h (decide_function_section): Declare.
2217
2218 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2219 Jakub Jelinek <jakub@redhat.com>
2220
2221 PR target/48774
2222 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2223 only succeed if req_mode is the same as set_mode.
2224
2225 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2226
2227 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2228 * genemit.c (gen_exp): Handle RETURN.
2229 * emit-rtl.c (verify_rtx_sharing): Likewise.
2230 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2231 * rtl.c (copy_rtx): RETURN is shared.
2232 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2233 (ret_rtx): New.
2234 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2235 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2236 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2237 * config/cris/cris.c (cris_expand_return): Likewise.
2238 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2239 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2240 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2241 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2242 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2243 Likewise.
2244 * config/v850/v850.c (expand_epilogue): Likewise.
2245 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2246 * config/arm/arm.md (epilogue): Likewise.
2247 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2248 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2249 variable to ret_reg.
2250
2251 2011-05-03 Richard Guenther <rguenther@suse.de>
2252
2253 PR lto/48846
2254 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2255 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2256 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2257
2258 2011-05-03 Richard Guenther <rguenther@suse.de>
2259
2260 * c-decl.c (grokdeclarator): Instead of looking at
2261 TREE_OVERFLOW check if the constant fits in the index type.
2262
2263 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2264
2265 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2266 (vec_store_lanes<mode><mode>): Likewise.
2267
2268 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2269
2270 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2271 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2272 convert_optab_index values.
2273 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2274 * genopinit.c (optabs): Initialize the new optabs.
2275 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2276 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2277 (expand_STORE_LANES): New functions.
2278 * tree.h (build_array_type_nelts): Declare.
2279 * tree.c (build_array_type_nelts): New function.
2280 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2281 (vect_model_load_cost): Likewise.
2282 (vect_store_lanes_supported, vect_load_lanes_supported)
2283 (vect_record_strided_load_vectors): Declare.
2284 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2285 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2286 (vect_transform_strided_load): Split out statement recording into...
2287 (vect_record_strided_load_vectors): ...this new function.
2288 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2289 (write_vector_array, create_array_ref): New functions.
2290 (vect_model_store_cost): Add store_lanes_p argument.
2291 (vect_model_load_cost): Add load_lanes_p argument.
2292 (vectorizable_store): Try to use store-lanes functions for
2293 interleaved stores.
2294 (vectorizable_load): Likewise load-lanes and loads.
2295 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2296 to vect_model_store_cost.
2297 (vect_build_slp_tree): Likewise vect_model_load_cost.
2298
2299 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2300
2301 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2302 * hooks.c (hook_bool_mode_uhwi_false): New function.
2303 * target.def (array_mode_supported_p): New hook.
2304 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2305 * doc/tm.texi: Regenerate.
2306 * stor-layout.c (mode_for_array): New function.
2307 (layout_type): Use it.
2308 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2309 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2310
2311 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2312
2313 PR target/48723
2314 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2315 for -fstack-check if the size to allocate is negative.
2316
2317 2011-05-02 Lawrence Crowl <crowl@google.com>
2318
2319 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2320 (timevar_cond_start): New for starting a timer only when it is not
2321 already running.
2322 (timevar_cond_stop): New for stopping a timer when it was not already
2323 running.
2324
2325 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2326 (timevar_cond_start): New as above.
2327 (timevar_cond_stop): New as above.
2328
2329 * timevar.def: Add start/stop timers for compiler phases,
2330 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2331 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2332 and TV_PHASE_FINALIZE.
2333 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2334 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2335 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2336 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2337 Make unused TV_OVERLOAD into a start/stop timer.
2338
2339 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2340 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2341 to indicate that they are start/stop timers.
2342
2343 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2344 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2345 Move initialization to do_compile.
2346 (do_compile): Add initialization from above.
2347 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2348
2349 * c-decl.c (c_write_global_declarations): Add start/stop of
2350 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2351
2352 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2353 or TV_PARSE_INLINE, as appropriate.
2354 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2355 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2356
2357 2011-05-02 Jason Merrill <jason@redhat.com>
2358
2359 PR c++/40975
2360 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2361
2362 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2363
2364 PR c/35445
2365 * c-decl.c (finish_decl): Only create a composite if the types are
2366 compatible.
2367
2368 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2369
2370 * config/fr30/fr30-protos.h (Mmode): Don't define.
2371 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2372 definition where used.
2373 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2374 define. Expand definitions where used.
2375 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2376 Expand definitions where used.
2377 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2378 rx_function_arg, rx_function_arg_advance,
2379 rx_function_arg_boundary): Expand definitions of those macros.
2380 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2381 definition where used.
2382
2383 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2384
2385 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2386 reg<->xmm moves.
2387 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2388 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2389 with *movv2sf_internal_rex64_avx.
2390 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2391 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2392 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2393 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2394 "vex" in "prefix" attribute calculation.
2395 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2396
2397 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2398
2399 PR target/47951
2400 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2401 inputs match the output.
2402
2403 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2404
2405 PR target/47955
2406 * config/m68k/m68k.c (m68k_expand_prologue): Set
2407 current_function_static_stack_size.
2408
2409 2011-05-02 Jan Hubicka <jh@suse.cz>
2410
2411 * lto-streamer.c (lto_streamer_cache_insert_1,
2412 lto_streamer_cache_lookup, lto_streamer_cache_create,
2413 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2414 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2415
2416 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2417
2418 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2419 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2420 config/m68k/t-opts: New files.
2421 * config/m68k/m68k-tables.opt: New file (generated).
2422 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2423 extra_options and m68k/t-opts to tmake_file.
2424 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2425 (all_isas): Initialize using m68k-isas.def.
2426 (all_microarchs): Initialize using m68k-microarchs.def.
2427 (m68k_find_selection): Remove.
2428 (m68k_handle_option): Don't assert that global structures are in
2429 use. Use error_at. Access variables via opts pointer. Don't
2430 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2431 directly for -m68020-40 and -m68020-60.
2432 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2433 m68k_tune_entry here.
2434 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2435 to m68k-opts.h.
2436 (m68k_library_id_string): Remove declaration.
2437 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2438 (m68k_library_id_string): New Variable.
2439 (march=, mcpu=, mtune=): Use Enum and Var.
2440
2441 2011-05-02 Richard Guenther <rguenther@suse.de>
2442
2443 * varasm.c (output_constructor_regular_field): Compute zero-based
2444 index with double-ints. Make sure to ICE instead of producing
2445 wrong code.
2446 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2447 in asserts. Properly use a signed type.
2448
2449 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2450
2451 * config/i386/sse.md (V): New mode iterator.
2452 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2453 TARGET_SSE2.
2454 (V_256): Rename from AVX256MODE.
2455 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2456 condition to all users.
2457 (VF1): Ditto.
2458 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2459 condition to all users.
2460 (VF_128): Make V4SF mode unconditional.
2461 (VF_256): Rename from AVX256MODEF2P.
2462 (VI4F_128): Rename from SSEMODE4S.
2463 (VI8F_128): Rename from SSEMODE2D.
2464 (VI4F_256): Rename from AVX256MODE8P.
2465 (VI8F_256): Rename from AVX256MODE4P.
2466 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2467 (ssescalarmodesuffix): Remove SF and DF modes.
2468 (SSEMODE124): Remove.
2469 (SSEMODE1248): Ditto.
2470 (SSEMODEF2P): Ditto.
2471 (AVXMODEF2P): Ditto.
2472 (AVXMODEFDP): Ditto.
2473 (AVXMODEFSP): Ditto.
2474 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2475 unconditional.
2476 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2477 unconditional.
2478 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2479 xop_pcmov_<mode>256. Use V mode iterator.
2480
2481 Adjust RTX patterns globally for renamed mode attributes.
2482
2483 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2484
2485 * haifa-sched.c (sched_emit_insn): Emit insn before first
2486 non-scheduled insn. Inform back-end about new insn. Add
2487 new insn to scheduled_insns list.
2488
2489 2011-05-02 Richard Guenther <rguenther@suse.de>
2490
2491 PR tree-optimization/48822
2492 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2493 (process_scc): Indicate which iteration we start.
2494
2495 2011-05-02 Jan Hubicka <jh@suse.cz>
2496
2497 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2498 (lto_section_overrun): New.
2499 * lto-section-out.c (append_block): Rename to ...
2500 (lto_append_block): ... this one; export.
2501 (lto_output_1_stream): Move lto lto-streamer.h
2502 (lto_output_data_stream): Update.
2503 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2504 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2505 functions.
2506
2507 2011-05-02 Richard Guenther <rguenther@suse.de>
2508
2509 * tree.c (tree_code_counts): New global array.
2510 (record_node_allocation_statistics): Count individual tree codes.
2511 (dump_tree_statistics): Dump individual code stats.
2512
2513 2011-05-01 Jan Hubicka <jh@suse.cz>
2514
2515 * ipa-inline.c (caller_growth_limits): Fix thinko when
2516 looking for largest stack frame.
2517 * ipa-inline.h (dump_inline_summary): Declare.
2518 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2519 on stack usage.
2520 (dump_inline_summary): Export.
2521 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2522
2523 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2524
2525 * reginfo.c (memory_move_cost): Change rclass argument type form
2526 'enum reg_class' to reg_class_t.
2527 * reload.h (memory_move_cost): Update prototype.
2528 * postreload.c reload_cse_simplify_set): Change type dclass var to
2529 reg_class_t.
2530 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2531 Update prototype.
2532 (ira_allocate_and_set_costs): Change aclass argument type form
2533 'enum reg_class' to reg_class_t.
2534 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2535 Change aclass argument type to reg_class_t.
2536 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2537 to reg_class_t.
2538 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2539 memory_move_cost call.
2540
2541 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2542 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2543 Change type tmp var to reg_class_t.
2544
2545 2011-04-30 Jan Hubicka <jh@suse.cz>
2546
2547 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2548 inlining into function with flatten attribute.
2549 (want_inline_small_function_p): Be more realistic about inlining
2550 cold calls where callee size grows.
2551
2552 2011-04-30 Jan Hubicka <jh@suse.cz>
2553
2554 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2555 flags.
2556
2557 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2558
2559 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2560 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2561 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2562 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2563 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2564 (print_operand): Rename to...
2565 (sparc_print_operand): ...this. Make static. Adjust
2566 sparc_print_operand function call.
2567 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2568 functions.
2569
2570 2011-04-30 Jan Hubicka <jh@suse.cz>
2571
2572 PR middle-end/48752
2573 * ipa-inline.c (early_inliner): Disable when doing late
2574 addition of function.
2575
2576 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2577
2578 * dwarf2out.c (get_address_mode): New inline.
2579 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2580 if not dwarf_strict emit
2581 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2582 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2583 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2584 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2585 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2586 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2587 mem_loc_descriptor callers.
2588 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2589 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2590 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2591 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2592 (base_types): New variable.
2593 (get_base_type_offset, calc_base_type_die_sizes,
2594 base_type_for_mode, mark_base_types, base_type_cmp,
2595 move_marked_base_types): New functions.
2596 (calc_die_sizes): Assert that die_offset is 0 or equal to
2597 next_die_offset.
2598 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2599 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2600 callers. If not dwarf_strict, call mem_loc_descriptor even for
2601 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2602 (gen_subprogram_die): Don't give up on call site parameters
2603 with non-integral or large integral modes. Adjust
2604 mem_loc_descriptor callers.
2605 (prune_unused_types): Call prune_unused_types_mark on base_types
2606 vector entries.
2607 (resolve_addr): Call mark_base_types.
2608 (dwarf2out_finish): Call move_marked_base_types.
2609
2610 PR tree-optimization/48809
2611 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2612 type.
2613 (gen_inbound_check): Don't compute index_expr - range_min in utype
2614 again, instead reuse SSA_NAME initialized in build_arrays.
2615 Remove two useless gsi_for_stmt calls.
2616
2617 2011-04-29 Jeff Law <law@redhat.com>
2618
2619 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2620
2621 2011-04-29 Martin Jambor <mjambor@suse.cz>
2622
2623 * cgraph.h (cgraph_postorder): Remove declaration.
2624 * ipa-utils.h (ipa_free_postorder_info): Declare.
2625 (ipa_reverse_postorder): Likewise.
2626 * cgraphunit.c: Include ipa-utils.h.
2627 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2628 * ipa-inline.c: Include ipa-utils.h.
2629 (ipa_inline): Update call to ipa_reverse_postorder.
2630 * ipa-pure-const.c (propagate_pure_const): Update call to
2631 ipa_reduced_postorder and ipa_print_order. Call
2632 ipa_free_postorder_info to clean up.
2633 (propagate_nothrow): Likewise.
2634 * ipa-reference.c (propagate): Removed a useless call to
2635 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2636 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2637 * ipa.c: Include ipa-utils.h.
2638 (ipa_profile): Update call to ipa_reverse_postorder.
2639 (cgraph_postorder): Moved to...
2640 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2641 (ipa_utils_print_order): Renamed to ipa_print_order.
2642 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2643 comments.
2644 (ipa_free_postorder_info): New function.
2645 * passes.c: Include ipa-utils.h.
2646 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2647 (ipa_write_summaries): Likewise.
2648 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2649 (cgraphunit.o): Likewise.
2650 (ipa.o): Likewise.
2651 (ipa-inline.o): Likewise.
2652
2653 2011-04-29 Jan Hubicka <jh@suse.cz>
2654
2655 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2656 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2657 * ipa-inline.h (clause_t): Turn into unsigned int.
2658 * ipa-inline-analysis.c (add_clause): Do more simplification.
2659 (and_predicates): Shortcut more cases.
2660 (predicates_equal_p): Move forward; check that clauses are properly
2661 ordered.
2662 (or_predicates): Shortcut more cases.
2663 (edge_execution_predicate): Rewrite as...
2664 (set_cond_stmt_execution_predicate): ... this function; handle
2665 __builtin_constant_p.
2666 (set_switch_stmt_execution_predicate): New .
2667 (compute_bb_predicates): New.
2668 (will_be_nonconstant_predicate): Update TODO.
2669 (estimate_function_body_sizes): Use compute_bb_predicates
2670 and free them later, always try to estimate if stmt is constant.
2671 (estimate_time_after_inlining, estimate_size_after_inlining):
2672 Gracefully handle optimized out edges.
2673 (read_predicate): Fix off by one error.
2674
2675 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2676
2677 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2678
2679 2011-04-27 Xinliang David Li <davidxl@google.com>
2680
2681 * tree-profile.c (init_ic_make_global_vars): Set
2682 tls attribute on ic vars.
2683 * coverage.c (coverage_end_function): Initialize
2684 function_list with zero.
2685
2686 2011-04-29 Richard Guenther <rguenther@suse.de>
2687
2688 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2689 for the type of the result.
2690 (fold_builtin_isascii): Likewise.
2691 (fold_builtin_toascii): Use integer_type_node where appropriate.
2692 (fold_builtin_logb): Likewise.
2693 (fold_builtin_frexp): Likewise.
2694 (fold_builtin_strstr): Likewise.
2695 (fold_builtin_strpbrk): Likewise.
2696 (fold_builtin_fputs): Likewise.
2697 (fold_builtin_sprintf): Likewise.
2698 (fold_builtin_snprintf): Likewise.
2699 (fold_builtin_printf): Likewise.
2700 (do_mpfr_remquo): Use a proper type for the assigned constant.
2701 (do_mpfr_lgamma_r): Likewise.
2702 * dwarf2out.c (resolve_one_addr): Use size_int.
2703 * except.c (init_eh): Likewise.
2704 (assign_filter_values): Use integer_type_node for filter values.
2705 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2706 indices.
2707 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2708 for EH region numbers.
2709 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2710 for the shift amount.
2711
2712 2011-04-29 Richard Guenther <rguenther@suse.de>
2713
2714 * expr.h (expand_shift): Rename to ...
2715 (expand_variable_shift): ... this.
2716 (expand_shift): Take a constant shift amount.
2717 * expmed.c (expand_shift): Rename to ...
2718 (expand_variable_shift): ... this.
2719 (expand_shift): New wrapper around expand_variable_shift.
2720 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2721 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2722 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2723 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2724 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2725 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2726 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2727 emit_store_flag_1, emit_store_flag): Likewise.
2728 * builtins.c (expand_builtin_signbit): Likewise.
2729 * calls.c (load_register_parameters): Likewise.
2730 * function.c (assign_parm_setup_block): Likewise.
2731 * lower-subreg.c (resolve_shift_zext): Likewise.
2732 * optabs.c (widen_bswap, expand_abs_nojump,
2733 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2734 * spu/spu.c (spu_expand_extv): Likewise.
2735 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2736
2737 2011-04-29 Richard Guenther <rguenther@suse.de>
2738
2739 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2740 for the remapped region number.
2741 * predict.c (build_predict_expr): Use integer_type_node for the
2742 predict kind.
2743 * fold-const.c (fold_binary_loc): Use integer_type_node for
2744 the shift amount. Use a proper type for the PLUS_EXPR operand.
2745
2746 2011-04-29 Michael Matz <matz@suse.de>
2747
2748 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2749 other trees that just builtins.
2750 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2751
2752 2011-04-29 Richard Guenther <rguenther@suse.de>
2753
2754 * tree-nested.c (get_trampoline_type): Use size_int.
2755 (get_nl_goto_field): Likewise.
2756 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2757 for all indexes.
2758 (lower_eh_constructs_2): Likewise.
2759 (lower_resx): Likewise.
2760 (lower_eh_dispatch): Likewise.
2761 * tree-mudflap.c (mf_build_string): Use size_int.
2762 (mudflap_register_call): Use integer_type_node for the flag.
2763 (mudflap_enqueue_constant): Use size_int.
2764 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2765 instead of rebuilding it.
2766
2767 2011-04-29 Richard Guenther <rguenther@suse.de>
2768
2769 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2770 Handle OBJ_TYPE_REF.
2771 (find_func_aliases_for_call): Use it more consistently.
2772
2773 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2774
2775 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2776 (rank_for_schedule): Use it.
2777 (schedule_block): Set it.
2778
2779 2011-04-28 David Li <davidxl@google.com>
2780
2781 * tree.c (crc32_string): Use crc32_byte.
2782 (crc32_byte): New function.
2783 * tree.h (crc32_byte): New function.
2784 * gcov.c (read_graph_file): Handle new cfg_cksum.
2785 (read_count_file): Ditto.
2786 * profile.c (instrument_values): Ditto.
2787 (get_exec_counts): Ditto.
2788 (read_profile_edge_counts): Ditto.
2789 (compute_branch_probabilities): Ditto.
2790 (compute_value_histograms): Ditto.
2791 (branch_prob): Ditto.
2792 (end_branch_prob): Ditto.
2793 * coverage.c (read_counts_file): Ditto.
2794 (get_coverage_counts): Ditto.
2795 (tree_coverage_counter_addr): Ditto.
2796 (coverage_checksum_string): Ditto.
2797 (coverage_begin_output): Ditto.
2798 (coverage_end_function): Ditto.
2799 (build_fn_info_type): Ditto.
2800 (build_fn_info_value): Ditto.
2801 * libgcov.c (gcov_exit): Ditto.
2802 * gcov-dump.c (tag_function): Ditto.
2803 (compute_checksum): Remove.
2804
2805 2011-04-29 Alan Modra <amodra@gmail.com>
2806
2807 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2808 unspec plus offset. Tidy macho code.
2809
2810 2011-04-29 Martin Jambor <mjambor@suse.cz>
2811
2812 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2813 node instead of a decl. Update all callers.
2814 * cgraph.h: Update declaration.
2815
2816 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2817
2818 PR tree-optimization/48765
2819 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2820 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2821 to indicate if loop aware SLP is being used. Scan the statements
2822 and update the vectorization factor according to the type of
2823 vectorization before statement analysis.
2824 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2825 pass it to vect_analyze_loop_operations.
2826 (vectorizable_reduction): Set number of copies to 1 in case of pure
2827 SLP statement.
2828 * tree-vect-stmts.c (vectorizable_conversion,
2829 vectorizable_assignment, vectorizable_shift,
2830 vectorizable_operation, vectorizable_type_demotion,
2831 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2832 Likewise.
2833 (vectorizable_condition): Move the check that it is not SLP
2834 vectorization before the number of copies check.
2835 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2836 to vectorize the loop using SLP.
2837
2838 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2839
2840 PR middle-end/48597
2841 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2842 inline asm.
2843
2844 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2845
2846 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2847 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2848 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2849 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2850 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2851 linux*.h headers.
2852 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2853 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2854 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2855 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2856 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2857 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2858 REG_NAME.
2859 * config/i386/linux.h (REG_NAME): Don't define.
2860 * config/i386/linux64.h (REG_NAME): Don't define.
2861 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2862 Undefine before defining.
2863
2864 2011-04-28 Jan Hubicka <jh@suse.cz>
2865
2866 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2867 nonconstant_names array.
2868 (estimate_function_body_sizes): Build nonconstant_names array; handle
2869 BUILT_IN_CONSTANT_P.
2870
2871 2011-04-28 Richard Guenther <rguenther@suse.de>
2872
2873 PR bootstrap/48804
2874 Revert
2875 2011-04-28 Richard Guenther <rguenther@suse.de>
2876
2877 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2878 as late as possible.
2879
2880 2011-04-28 Richard Guenther <rguenther@suse.de>
2881
2882 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2883 (debug_constraint): Do it here.
2884 (dump_constraints): And here.
2885 (rewrite_constraints): And here.
2886 (dump_constraint_edge): Remove.
2887 (dump_constraint_graph): Rewrite to produce DOT output.
2888 (solve_constraints): Build succ graph as late as possible.
2889 Dump constraint graphs before and after solving.
2890
2891 2011-04-28 Richard Guenther <rguenther@suse.de>
2892
2893 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2894 New function split out from ...
2895 (find_func_aliases): ... here. Call it.
2896 (find_func_aliases_for_call): Likewise.
2897
2898 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2899
2900 * internal-fn.h (internal_fn_name_array): Declare.
2901 (internal_fn_flags_array): Likewise.
2902
2903 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2904
2905 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2906 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2907 Move from sse.md.
2908 (ssemodefsuffix): Remove.
2909 (ssevecmodesuffix): New mode attribute.
2910 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2911 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2912 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2913 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2914 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2915 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2916 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2917 ssemodesuffix mode attribute.
2918 (float splitters): Use ssevecmodesuffix mode attribute.
2919 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2920 (sseinsmode): Rename from avxvecmode.
2921 (avxsizesuffix): Rename from avxmodesuffix.
2922 (sseintvecmode): Rename from avxpermvecmode.
2923 (ssedoublevecmode): Rename from ssedoublesizemode.
2924 (ssehalfvecmode): Rename from avxhalfvecmode.
2925 (ssescalarmode): Rename from avxscalarmode.
2926 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2927 templates for ssemodesuffix mode attribute.
2928 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2929 mode attribute.
2930
2931 Adjust RTX patterns globally for renamed mode attributes.
2932
2933 2011-04-27 Jan Hubcika <jh@suse.cz>
2934
2935 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2936 * ipa-inline-analysis.c: Include alloc-pool.h.
2937 (edge_predicate_pool): New.
2938 (trye_predicate_p): New function
2939 (false_predicate_p): New function.
2940 (add_clause): Sanity check that false clauses are "optimized";
2941 never add clauses to predicate that is already known to be false.
2942 (and_predicate): Use flase_predicate_p.
2943 (evaulate_predicate): Rename to ...
2944 (evaluate_predicate): ... this one; update all callers; assert
2945 that false is not listed among possible truths.
2946 (dump_predicate): Use true_predicate_p.
2947 (account_size_time): Use false_predicate_p.
2948 (evaulate_conditions_for_edge): Rename to ...
2949 (evaluate_conditions_for_edge) ... this one.
2950 (edge_set_predicate): New function.
2951 (inline_edge_duplication_hook): Duplicate edge predicates.
2952 (inline_edge_removal_hook): Free edge predicates.
2953 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2954 (dump_inline_summary): Update.
2955 (estimate_function_body_sizes): Set edge predicates.
2956 (estimate_calls_size_and_time): Handle predicates.
2957 (estimate_callee_size_and_time): Update.
2958 (remap_predicate): Add toplev_predicate; update comment.
2959 (remap_edge_predicates): New function.
2960 (inline_merge_summary): Compute toplev predicate; update.
2961 (read_predicate): New function.
2962 (read_inline_edge_summary): Use it.
2963 (inline_read_section): Likewise.
2964 (write_predicate): New function.
2965 (write_inline_edge_summary): Use it.
2966 (inline_write_summary): Likewise.
2967 (inline_free_summary): Free alloc pool and edge summary vec.
2968
2969 2011-04-27 Richard Guenther <rguenther@suse.de>
2970
2971 * tree-ssa-structalias.c (changed_count): Remove.
2972 (changed): Use a bitmap.
2973 (unify_nodes): Adjust.
2974 (do_sd_constraint): Likewise.
2975 (do_ds_constraint): Likewise.
2976 (do_complex_constraint): Likewise.
2977 (solve_graph): Likewise.
2978
2979 2011-04-27 Jan Hubicka <jh@suse.cz>
2980
2981 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2982
2983 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2984
2985 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2986 (avx_vperm2f128_*_operand): Ditto.
2987 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2988 Use avx_vpermilp_parallel in insn condition.
2989 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2990 Use avx_vperm2f128_parallel in insn condition.
2991
2992 2011-04-27 Richard Guenther <rguenther@suse.de>
2993
2994 * Makefile.in (tree-ssa-structalias.o): Remove
2995 gt-tree-ssa-structalias.h dependency.
2996 (GTFILES): Remove tree-ssa-structalias.c.
2997 * tree.c (allocate_decl_uid): New function.
2998 (make_node_stat): Use it.
2999 (copy_node_stat): Likewise.
3000 * tree.h (allocate_decl_uid): Declare.
3001 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3002 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3003 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3004 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3005 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3006 (struct heapvar_map): Likewise.
3007 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3008 heapvar_insert): Likewise.
3009 (make_heapvar_for): Rename to ...
3010 (make_heapvar): ... this. Simplify.
3011 (fake_var_decl_obstack): New global var.
3012 (build_fake_var_decl): New function.
3013 (make_constraint_from_heapvar): Adjust.
3014 (handle_lhs_call): Likewise.
3015 (create_function_info_for): Likewise.
3016 (intra_create_variable_infos): Likewise.
3017 (init_alias_vars): Allocate fake_var_decl_obstack.
3018 (init_alias_heapvars, delete_alias_heapvars): Remove.
3019 (compute_points_to_sets): Do not call init_alias_heapvars.
3020 (ipa_pta_execute): Likewise.
3021 (delete_points_to_sets): Free fake_var_decl_obstack.
3022
3023 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3024
3025 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3026 (si_from_UTItype, si_to_UTItype): New functions.
3027 (__udivmodti4): Use them to implement type-punning.
3028 * config/spu/multi3.c (union qword_TItype): New data type.
3029 (si_from_TItype, si_to_TItype): New functions.
3030 (__multi3): Use them to implement type-punning.
3031
3032 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3033
3034 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3035
3036 2011-04-27 Jan Hubicka <jh@suse.cz>
3037
3038 * ipa-prop.c (function_insertion_hook_holder): New holder.
3039 (ipa_add_new_function): New function.
3040 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3041 Register/deregister holder.
3042
3043 2011-04-27 Richard Guenther <rguenther@suse.de>
3044
3045 PR tree-optimization/48772
3046 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3047
3048 2011-04-27 Richard Guenther <rguenther@suse.de>
3049
3050 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3051 TARGET_MEM_REF handling.
3052
3053 2011-04-27 Nick Clifton <nickc@redhat.com>
3054
3055 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3056 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3057 (REG_CLASS_NAMES): Likewise.
3058 (REG_CLASS_CONTENTS): Likewise.
3059 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3060 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3061 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3062 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3063 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3064 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3065 duplicate register classes.
3066 (frv_class_likely_spilled_p): Likewise.
3067 (frv_register_move_cost): Likewise.
3068
3069 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3070 end of the regno_reg_class array.
3071
3072 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3073
3074 PR c/48742
3075 * c-typeck.c (build_binary_op): Don't wrap arguments if
3076 int_operands is true.
3077
3078 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3079
3080 PR target/48767
3081 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3082 targetm.calls.must_pass_in_stack for void type.
3083
3084 2011-04-26 Jan Hubicka <jh@suse.cz>
3085
3086 * cgraphbuild.c (build_cgraph_edges): Update call
3087 of cgraph_create_edge and cgraph_create_indirect_edge.
3088 * cgraph.c (cgraph_create_edge_including_clones,
3089 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3090 cgraph_update_edges_for_call_stmt_node): Do not take nest
3091 argument; do not initialize call_stmt_size/time.
3092 (dump_cgraph_node): Do not dump nest.
3093 (cgraph_clone_edge): Do not take loop_nest argument;
3094 do not propagate it; do not clone call_stmt_size/time.
3095 (cgraph_clone_node): Likewise.
3096 (cgraph_create_virtual_clone): Update.
3097 * cgraph.h (struct cgraph_edge): Remove
3098 call_stmt_size/call_stmt_time/loop_nest.
3099 (cgraph_create_edge, cgraph_create_indirect_edge,
3100 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3101 prototype.
3102 * tree-emutls.c (gen_emutls_addr): Update.
3103 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3104 loop_nest; handle indirect calls, too.
3105 (clone_inlined_nodes): Do not care about updating inline summaries.
3106 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3107 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3108 stream call_stmt_size/call_stmt_time/loop_nest.
3109 * ipa-inline.c (edge_badness): Update.
3110 (ipa_inline): dump summaries after inlining.
3111 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3112 New.
3113 (inline_edge_summary): New function.
3114 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3115 (inline_edge_removal_hook): Handle edge summaries.
3116 (inline_edge_duplication_hook): New hook.
3117 (inline_summary_alloc): Alloc hooks.
3118 (initialize_growth_caches): Do not register removal hooks.
3119 (free_growth_caches); Do not free removal hook.
3120 (dump_inline_edge_summary): New function.
3121 (dump_inline_summary): Use it.
3122 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3123 (inline_update_callee_summaries): New function.
3124 (inline_merge_summary): Use it.
3125 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3126 (read_inline_edge_summary): New function.
3127 (inline_read_section): Use it.
3128 (write_inline_edge_summary): New function.
3129 (inline_write_summary): Use it.
3130 (inline_free_summary): Free edge new holders.
3131 * tree-inline.c (copy_bb): Update.
3132
3133 2011-04-26 Jason Merrill <jason@redhat.com>
3134
3135 * tree-eh.c (lower_try_finally_switch): Create the label along with
3136 the CASE_LABEL_EXPR.
3137
3138 2011-04-26 David S. Miller <davem@davemloft.net>
3139 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3140
3141 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3142 * configure: Regenerate.
3143
3144 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3145
3146 PR target/48258
3147 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3148 reduction.
3149 (VEC_reduc): New code iterator and splitters for vector reduction.
3150 (VEC_reduc_name): Ditto.
3151 (VEC_reduc_rtx): Ditto.
3152 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3153 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3154
3155 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3156 support for extracting SF on VSX.
3157
3158 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3159 generating xscvspdp.
3160 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3161 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3162 double add, minimum, maximum vector reduction.
3163 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3164 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3165 optimize double vector reduction.
3166 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3167
3168 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3169
3170 * config/fr30/fr30.h (inhibit_libc): Don't define.
3171 * config/m32r/m32r-protos.h: Correct comment.
3172 * config/v850/v850.h (GHS_default_section_names,
3173 GHS_current_section_names): Use tree, not union tree_node *.
3174
3175 2011-04-26 Xinliang David Li <davidxl@google.com>
3176
3177 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3178 * c-family/c-opts.c (c_common_handle_option): Set
3179 warn_maybe_uninitialized.
3180 * opts.c (common_handle_option): Ditto.
3181 * common.opt: New option.
3182 * tree-ssa.c (warn_uninit): Add one more parameter.
3183 (warn_uninitialized_var): Pass warning code.
3184 * tree-flow.h: Interface change.
3185
3186
3187 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3188
3189 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3190 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3191 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3192
3193 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3194
3195 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3196 * config/mips/mips.opt (mmips-tfile): Remove.
3197
3198 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3199 mips-tdump reference to ...
3200 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3201 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3202 reference by Tru64 UNIX.
3203
3204 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3205
3206 PR debug/48768
3207 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3208 is error_mark_node, set value to NULL.
3209
3210 PR tree-optimization/48734
3211 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3212 if return value from maybe_fold_*_comparsions isn't something
3213 the code is prepared to handle.
3214
3215 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3216
3217 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3218 mode check.
3219 (ext_QIreg_nomode_operands): Remove.
3220 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3221 (*andsi_1): Ditto.
3222 (*andhi_1): Ditto.
3223
3224 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3225
3226 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3227
3228 2011-04-26 Richard Guenther <rguenther@suse.de>
3229
3230 * c-typeck.c (build_unary_op): Do not expand array-refs via
3231 pointer arithmetic. Only adjust qualifiers for function types.
3232
3233 2011-04-26 Richard Guenther <rguenther@suse.de>
3234
3235 PR middle-end/48694
3236 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3237 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3238 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3239 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3240
3241 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3242
3243 * doc/extend.texi: Document __underlying_type.
3244
3245 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3246
3247 * config/rs6000/titan.md (automata_option "progress"): Remove.
3248
3249 2011-04-25 Jeff Law <law@redhat.com>
3250
3251 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3252
3253 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3254
3255 * system.h (ENUM_BITFIELD): Remove.
3256
3257 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3258 Eric Botcazou <ebotcazou@adacore.com>
3259
3260 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3261 for STORE_FLAG_VALUE==-1 case.
3262
3263 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3264
3265 PR target/43804
3266 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3267 LEGITIMATE_PIC_OPERAND_P.
3268
3269 2011-04-24 Jan Hubicka <jh@suse.cz>
3270
3271 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3272 WPA hack.
3273 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3274 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3275 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3276 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3277 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3278 Sanity check predicate length.
3279 (remap_predicate): Likewise; sanity check jump functions.
3280 (inline_read_section, inline_write_summary): Sanity check
3281 predicate length.
3282
3283 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3284
3285 PR other/48748
3286 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3287 __is_literal_type, and __is_trivial; update throughout about
3288 possibly cv-qualified void types.
3289
3290 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3291
3292 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3293 testsuite and make it version agnostic.
3294
3295 2011-04-22 Jan Hubicka <jh@suse.cz>
3296
3297 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3298
3299 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3300
3301 PR c/48685
3302 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3303 to VOID_TYPE even around MODIFY_EXPR.
3304
3305 2011-04-22 Mike Stump <mikestump@comcast.net>
3306
3307 * gensupport.c (read_md_rtx): Fix typo in comment.
3308 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3309 comment.
3310
3311 2011-04-22 Jan Hubicka <jh@suse.cz>
3312
3313 * gengtype.c (open_base_files): Add ipa-inline.h include.
3314 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3315 ipa-prop.c; update all uses.
3316 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3317 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3318 merge summary of inlined function into former caller.
3319 * ipa-inline.c (max_benefit): Remove.
3320 (edge_badness): Compensate for removal of benefits.
3321 (update_caller_keys): Use
3322 reset_node_growth_cache/reset_edge_growth_cache.
3323 (update_callee_keys): Likewise.
3324 (update_all_callee_keys): Likewise.
3325 (inline_small_functions): Do not collect max_benefit; do not reset
3326 estimated_growth; call free_growth_caches and initialize_growth_caches.
3327 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3328 struct size_time_entry): New structures.
3329 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3330 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3331 and estimated_growth.
3332 (edge_growth_cache_entry): New structure.
3333 (node_growth_cache, edge_growth_cache): New global vars.
3334 (estimate_growth): Turn into inline.
3335 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3336 initialize_growth_caches, free_growth_caches): Declare.
3337 (estimate_edge_growth): Rewrite.
3338 (estimate_edge_time): Implement as inline cache lookup.
3339 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3340 functions.
3341 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3342 (NUM_CONDITIONS): New constant.
3343 (predicate_conditions): New enum.
3344 (IS_NOT_CONSTANT): New constant.
3345 (edge_removal_hook_holder): New var.
3346 (node_growth_cache, edge_growth_cache): New global vars.
3347 (true_predicate, single_cond_predicate, false_predicate,
3348 not_inlined_predicate, add_condition, add_clause, and_predicates,
3349 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3350 dump_clause, dump_predicate, account_size_time,
3351 evaulate_conditions_for_edge): New functions.
3352 (inline_summary_alloc): Move to heap.
3353 (inline_node_removal_hook): Clear condition and entry vectors.
3354 (inline_edge_removal_hook): New function.
3355 (initialize_growth_caches, free_growth_caches): New function.
3356 (dump_inline_summary): Update.
3357 (edge_execution_predicate): New function.
3358 (will_be_nonconstant_predicate): New function.
3359 (estimate_function_body_sizes): Compute BB and constantness predicates.
3360 (compute_inline_parameters): Do not clear estimated_growth.
3361 (estimate_edge_size_and_time): New function.
3362 (estimate_calls_size_and_time): New function.
3363 (estimate_callee_size_and_time): New function.
3364 (remap_predicate): New function.
3365 (inline_merge_summary): New function.
3366 (do_estimate_edge_time): New function based on...
3367 (estimate_edge_time): ... this one.
3368 (do_estimate_edge_growth): New function.
3369 (do_estimate_growth): New function based on....
3370 (estimate_growth): ... this one.
3371 (inline_analyze_function): Analyze after deciding on jump functions.
3372 (inline_read_section): New function.
3373 (inline_read_summary): Use it.
3374 (inline_write_summary): Write all the new data.
3375 * ipa-prop.c (ipa_get_param_decl_index): Export.
3376 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3377 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3378 Declare.
3379 (ipa_get_lattice): Move here from ipa-cp.c
3380 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3381 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3382 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3383 cgraph_edge_inlinable_p): Remove.
3384 * cgraphunit.c: Include ipainline.h
3385 (cgraph_process_new_functions): Update call of
3386 compute_inline_parameters.
3387
3388 2011-04-22 Richard Guenther <rguenther@suse.de>
3389
3390 * tree.c (build_int_cst): Properly create canonicalized integer
3391 constants.
3392 (build_int_cst_type): Remove scary comments.
3393
3394 2011-04-22 Xinliang David Li <davidxl@google.com>
3395
3396 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3397 by default when -Wno-error is not specified.
3398 * opts-global.c (decode_options): Remove call to
3399 control_warning_options.
3400
3401 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3402
3403 PR tree-optimization/48717
3404 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3405 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3406
3407 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3408
3409 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3410 definition where used.
3411
3412 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3413
3414 PR c/48716
3415 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3416 TREE_STATIC variables declared inside of some OpenMP construct.
3417
3418 2011-04-22 Martin Jambor <mjambor@suse.cz>
3419
3420 PR middle-end/48585
3421 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3422
3423 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3424
3425 PR c/36750
3426 * c-typeck.c (pop_init_level): Do not warn about initializing
3427 with ` = {0}'.
3428
3429 2011-04-22 Alan Modra <amodra@gmail.com>
3430
3431 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3432 when returning call_cookie.
3433 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3434 pointers, to functions with no more vector args than the current
3435 function, and some non-local calls for ABI_V4.
3436 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3437 sibcall_nonlocal_aix64): Combine to ..
3438 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3439 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3440 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3441 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3442 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3443 operand.
3444 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3445 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3446 sibcall_value_symbolic_64): Delete.
3447
3448 2011-04-21 Xinliang David Li <davidxl@google.com>
3449
3450 * cgraph.h: Remove pid.
3451 * cgraph.c: Remove pid.
3452 * value-prof.c (init_node_map): New function.
3453 (del_node_map): New function.
3454 (find_func_by_funcdef_no): New function.
3455 (gimple_ic_transform): Call new function.
3456 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3457 * function.c (get_last_funcdef_no): New function.
3458 * function.h (get_last_funcdef_no): New function.
3459 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3460 to libgcov function.
3461 (tree-profiling): Call node map init and delete function.
3462
3463 2011-04-21 Ian Lance Taylor <iant@google.com>
3464
3465 * godump.c (go_format_type): Use exported Go name for anonymous
3466 field name.
3467
3468 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3469
3470 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3471 Call builtin_function_type_list instead of builtin_function_type.
3472 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3473
3474 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3475
3476 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3477 build_function_type_list instead of build_function_type.
3478 Delete variable `endlink'.
3479
3480 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3481
3482 * config/s390/s390.c (s390_init_builtins): Call
3483 build_function_type_list instead of build_function_type.
3484
3485 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3486
3487 * config/ia64/ia64.c (ia64_init_builtins): Call
3488 build_function_type_list instead of builtin_function_type.
3489
3490 2011-04-21 Easwaran Raman <eraman@google.com>
3491
3492 * cfgexpand.c (stack_var): Remove OFFSET...
3493 (add_stack_var): ...and its reference here...
3494 (expand_stack_vars): ...and here.
3495 (stack_var_cmp): Sort by descending order of size.
3496 (partition_stack_vars): Change heuristic.
3497 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3498 (dump_stack_var_partition): Add newline after each partition.
3499
3500 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3501 Jeff Law <law@redhat.com>
3502
3503 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3504 * gengtype.c (matching_file_name_substitute): Likewise.
3505
3506 2011-04-21 Richard Guenther <rguenther@suse.de>
3507
3508 PR lto/48703
3509 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3510
3511 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3512
3513 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3514
3515 2011-04-21 Richard Guenther <rguenther@suse.de>
3516
3517 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3518 file name.
3519
3520 2011-04-21 Richard Guenther <rguenther@suse.de>
3521
3522 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3523 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3524 Use DECL_P, not SSA_VAR_P.
3525 (ptr_derefs_may_alias_p): Likewise.
3526 (ptr_deref_may_alias_ref_p_1): Likewise.
3527 (decl_refs_may_alias_p): Likewise.
3528 (refs_may_alias_p_1): Likewise.
3529 (ref_maybe_used_by_call_p_1): Likewise.
3530 (call_may_clobber_ref_p_1): Likewise.
3531 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3532 are either MEM_REF or TARGET_MEM_REF.
3533 (indirect_refs_may_alias_p): Likewise.
3534 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3535 for MEM_EXPR of indirect calls.
3536
3537 2011-04-21 Tristan Gingold <gingold@adacore.com>
3538
3539 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3540 (dst_file_info_struct): Remove flen field.
3541 (lookup_filename): Remove code that set flen field.
3542
3543 2011-04-21 Tristan Gingold <gingold@adacore.com>
3544
3545 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3546
3547 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3548
3549 PR target/48708
3550 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3551 vec_extract and vec_concat for non-SSE4_1 targets.
3552
3553 2011-04-21 Richard Guenther <rguenther@suse.de>
3554
3555 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3556 return statements.
3557
3558 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3559
3560 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3561 undefine.
3562 (FILE): Don't undefine.
3563
3564 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3565
3566 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3567 struct rtx_def *.
3568 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3569 struct rtx_def *.
3570 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3571 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3572 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3573 rtx_def *.
3574 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3575 definitions where used.
3576 * config/microblaze/microblaze.h (struct microblaze_args): Use
3577 rtx, not struct rtx_def *.
3578 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3579 rtx_def *.
3580 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3581 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3582 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3583 not struct rtx_def *.
3584 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3585 struct rtx_def *.
3586 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3587 rtx_def *.
3588 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3589
3590 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3591
3592 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3593 operand_equal_p to compare DR_BASE_ADDRESSes.
3594 (vect_check_interleaving): Likewise.
3595
3596 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3597
3598 PR target/46329
3599 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3600 for all Neon struct constants.
3601
3602 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3603
3604 * target.def (legitimate_constant_p): New hook.
3605 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3606 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3607 * doc/tm.texi: Regenerate.
3608 * hooks.h (hook_bool_mode_rtx_true): Declare.
3609 * hooks.c (hook_bool_mode_rtx_true): Define.
3610 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3611 * calls.c (precompute_register_parameters): Replace uses of
3612 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3613 (emit_library_call_value_1): Likewise.
3614 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3615 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3616 * ira-costs.c (scan_one_insn): Likewise.
3617 * recog.c (general_operand, immediate_operand): Likewise.
3618 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3619 * reload1.c (init_eliminable_invariants): Likewise.
3620
3621 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3622 mode argument.
3623 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3624 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3625 argument.
3626 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3627 * config/alpha/predicates.md (input_operand): Update call to
3628 alpha_legitimate_constant_p.
3629
3630 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3631 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3632 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3633 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3634 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3635 (arm_legitimate_constant_p): New functions.
3636 (arm_cannot_force_const_mem): Make static.
3637
3638 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3639
3640 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3641 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3642 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3643 instead of bfin_legitimate_constant_p.
3644 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3645 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3646
3647 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3648
3649 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3650
3651 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3652 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3653 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3654 (frv_legitimate_constant_p): Make static. Add a mode argument.
3655
3656 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3657 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3658 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3659
3660 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3661 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3662 * config/i386/i386.c (legitimate_constant_p): Rename to...
3663 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3664 argument.
3665 (ix86_cannot_force_const_mem): Update accordingly.
3666 (ix86_legitimate_address_p): Likewise.
3667 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3668 * config/i386/i386.md: Update commentary.
3669
3670 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3671 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3672 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3673 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3674
3675 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3676
3677 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3678 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3679 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3680 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3681
3682 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3683 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3684 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3685
3686 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3687 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3688 (m32r_legitimate_constant_p): New function.
3689
3690 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3691 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3692 LEGITIMATE_CONSTANT_P.
3693 (LEGITIMATE_CONSTANT_P): Delete.
3694 * config/m68k/m68k.c (m68k_expand_prologue): Call
3695 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3696 (m68k_legitimate_constant_p): New function.
3697 * config/m68k/m68k.md: Update comments.
3698
3699 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3700 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3701 (mcore_legitimate_constant_p): New function.
3702
3703 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3704 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3705 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3706 Add a mode argument.
3707 (mep_legitimate_address): Update accordingly.
3708 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3709
3710 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3711 Delete.
3712 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3713 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3714 static. Check OP's mode for VOIDmode.
3715 (microblaze_legitimate_constant_p): New function.
3716 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3717
3718 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3719 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3720 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3721 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3722 * config/mips/predicates.md: Update comments.
3723
3724 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3725 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3726 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3727 (mmix_legitimate_constant_p): Make static, return a bool, and take
3728 a mode argument.
3729 (mmix_print_operand_address): Update accordingly.
3730
3731 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3732 Delete.
3733 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3734 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3735 static. Add a mode argument.
3736 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3737
3738 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3739
3740 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3741 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3742 (pa_legitimate_constant_p): New function.
3743
3744 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3745
3746 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3747 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3748 (pdp11_legitimate_constant_p): New function.
3749
3750 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3751 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3752 (rs6000_legitimate_constant_p): New function.
3753
3754 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3755 (rx_legitimate_constant_p): ...this.
3756 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3757 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3758 (rx_legitimate_constant_p): ...this.
3759 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3760 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3761
3762 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3763 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3764 * config/s390/s390.c (legitimate_constant_p): Rename to...
3765 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3766 and add a mode argument.
3767 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3768
3769 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3770
3771 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3772 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3773 (sh_legitimate_constant_p): New function.
3774
3775 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3776 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3777 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3778 (legitimate_constant_p): Rename to...
3779 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3780 argument.
3781 (constant_address_p): Update accordingly.
3782
3783 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3784 argument and return a bool.
3785 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3786 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3787 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3788 (spu_rtx_costs): Update accordingly.
3789 * config/spu/predicates.md (vec_imm_operand): Likewise.
3790
3791 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3792
3793 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3794 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3795 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3796
3797 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3798 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3799 * config/vax/vax.c (legitimate_constant_p): Likewise.
3800
3801 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3802 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3803 (xtensa_legitimate_constant_p): New function.
3804
3805 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3806
3807 * target.def (cannot_force_const_mem): Add a mode argument.
3808 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3809 * doc/tm.texi: Regenerate.
3810 * hooks.h (hook_bool_mode_rtx_false): Declare.
3811 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3812 (hook_bool_mode_const_rtx_true): Likewise.
3813 (hook_bool_mode_rtx_false): New function.
3814 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3815 to be non-VOID. Update call to cannot_force_const_mem.
3816 (find_reloads): Update accordingly.
3817 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3818 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3819 argument.
3820 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3821 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3822 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3823 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3824 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3825 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3826 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3827 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3828 (m68k_cannot_force_const_mem): ...this new function.
3829 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3830 argument.
3831 (mips_const_insns, mips_legitimize_const_move): Update calls.
3832 (mips_secondary_reload_class): Likewise.
3833 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3834 (pa_cannot_force_const_mem): ...this new function.
3835 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3836 (rs6000_cannot_force_const_mem): ...this new function.
3837 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3838 argument.
3839 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3840 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3841 to...
3842 (xtensa_cannot_force_const_mem): ...this new function.
3843
3844 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3845
3846 * config/mips/mips.c (mips16_build_function_stub): Call
3847 build_function_type_list instead of build_function_type.
3848 (mips16_build_call_stub): Likewise.
3849
3850 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3851
3852 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3853 instead of build_function_type.
3854
3855 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3856
3857 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3858 instead of build_function_type.
3859
3860 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3861
3862 PR target/48678
3863 * config/i386/i386.md (insv): Change operand 0 constraint to
3864 "register_operand". Change operand 1 and 2 constraint to
3865 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3866 * config/i386/sse.md (sse4_1_pinsrb): Export.
3867 (sse2_pinsrw): Ditto.
3868 (sse4_1_pinsrd): Ditto.
3869 (sse4_1_pinsrq): Ditto.
3870 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3871 * config/i386/i386.c (ix86_expand_pinsr): New.
3872
3873 2011-04-20 Easwaran Raman <eraman@google.com>
3874
3875 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3876 containing union type only with -fstrict-aliasing.
3877
3878 2011-04-20 Jim Meyering <meyering@redhat.com>
3879
3880 Remove useless if-before-free tests.
3881 * calls.c (expand_call, save_area): Likewise.
3882 * cfgcleanup.c (try_forward_edges): Likewise.
3883 * collect2.c (collect_execute): Likewise.
3884 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3885 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3886 * coverage.c (coverage_checksum_string): Likewise.
3887 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3888 * cselib.c (cselib_init): Likewise.
3889 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3890 (df_set_clean_cfg): Likewise.
3891 * function.c (free_after_compilation): Likewise.
3892 * gcc.c (do_spec_1, main): Likewise.
3893 * gcov.c (create_file_names): Likewise.
3894 * gensupport.c (identify_predicable_attribute): Likewise.
3895 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3896 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3897 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3898 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3899 * ipa-pure-const.c (local_pure_const): Likewise.
3900 * ipa-reference.c (propagate): Likewise.
3901 * ira-costs.c (free_ira_costs): Likewise.
3902 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3903 * matrix-reorg.c (mat_free): Likewise.
3904 * prefix.c (get_key_value): Likewise.
3905 * profile.c (compute_value_histograms): Likewise.
3906 * reload1.c (free_reg_equiv): Likewise.
3907 * sched-deps.c (free_deps): Likewise.
3908 * sel-sched-ir.c (fence_clear): Likewise.
3909 * sese.c (set_rename, if_region_set_false_region): Likewise.
3910 * tree-data-ref.c (free_rdg): Likewise.
3911 * tree-eh.c (lower_try_finally): Likewise.
3912 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3913 * tree-ssa-live.c (delete_var_map): Likewise.
3914 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3915 * tree-ssa-pre.c (phi_trans_add): Likewise.
3916
3917 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3918
3919 PR tree-optimization/48611
3920 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3921 beyond ERT_MUST_NOT_THROW region.
3922
3923 2011-04-20 Catherine Moore <clm@codesourcery.com>
3924
3925 * config/mips/mips.opt (mfix-24k): New.
3926 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3927 * config/mips/mips.md (length): Increase by 4 for stores if
3928 fixing 24K errata.
3929 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3930 all noreorder if fixing 24K errata.
3931 * doc/invoke.texi: Document mfix-24k.
3932
3933 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3934
3935 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3936 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3937
3938 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3939
3940 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3941 (const_ok_for_op): ... to here.
3942
3943 2011-04-20 Kai Tietz <ktietz@redhat.com>
3944
3945 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3946 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3947
3948 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3949
3950 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3951
3952 2011-04-20 Richard Guenther <rguenther@suse.de>
3953
3954 PR tree-optimization/47892
3955 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3956 are if-convertible.
3957
3958 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3959
3960 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3961
3962 2011-04-20 Tristan Gingold <gingold@adacore.com>
3963
3964 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3965
3966 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3967
3968 PR target/18145
3969
3970 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3971 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3972 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3973 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3974 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3975
3976 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3977 New prototype.
3978
3979 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3980 (avr_asm_named_section, avr_asm_output_aligned_common,
3981 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3982 New functions to update...
3983 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3984 (avr_asm_init_sections): Overwrite section callbacks for
3985 data_section, bss_section.
3986 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3987 from here to...
3988 (avr_file_end): ...here.
3989
3990 2011-04-20 Richard Guenther <rguenther@suse.de>
3991
3992 PR middle-end/48695
3993 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3994 objects and types here. Adjust for their offset before comparing.
3995
3996 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3997
3998 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3999 statement per copy.
4000
4001 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4002
4003 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4004 (GIMPLE_H): Include $(INTERNAL_FN_H).
4005 (OBJS-common): Add internal-fn.o.
4006 (internal-fn.o): New rule.
4007 * internal-fn.def: New file.
4008 * internal-fn.h: Likewise.
4009 * internal-fn.c: Likewise.
4010 * gimple.h: Include internal-fn.h.
4011 (GF_CALL_INTERNAL): New gf_mask.
4012 (gimple_statement_call): Put fntype into a union with a new
4013 internal_fn field.
4014 (gimple_build_call_internal): Declare.
4015 (gimple_build_call_internal_vec): Likewise.
4016 (gimple_call_same_target_p): Likewise.
4017 (gimple_call_internal_p): New function.
4018 (gimple_call_internal_fn): Likewise.
4019 (gimple_call_fntype): Return null for internal calls.
4020 (gimple_call_set_fntype): Assert that the function is not internal.
4021 (gimple_call_set_fn): Likewise.
4022 (gimple_call_set_fndecl): Likewise.
4023 (gimple_call_set_internal_fn): New function.
4024 (gimple_call_addr_fndecl): Handle null functions.
4025 (gimple_call_return_type): Likewise null types.
4026 * gimple.c (gimple_build_call_internal_1): New function.
4027 (gimple_build_call_internal): Likewise.
4028 (gimple_build_call_internal_vec): Likewise.
4029 (gimple_call_same_target_p): Likewise.
4030 (gimple_call_flags): Handle calls to internal functions.
4031 (gimple_call_fnspec): New function.
4032 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4033 (gimple_has_side_effects): Handle null functions.
4034 (gimple_rhs_has_side_effects): Likewise.
4035 (gimple_call_copy_skip_args): Handle calls to internal functions.
4036 * cfgexpand.c (expand_call_stmt): Likewise.
4037 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4038 * gimple-fold.c (gimple_fold_call): Handle null functions.
4039 (gimple_fold_stmt_to_constant_1): Don't fold
4040 calls to internal functions.
4041 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4042 functions.
4043 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4044 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4045 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4046 (do_warn_unused_result): Likewise.
4047 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4048 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4049 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4050 the target of a call.
4051 (initialize_hash_element): Update accordingly.
4052 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4053 (iterative_hash_hashable_expr): Handle calls to internal functions.
4054 (print_expr_hash_elt): Likewise.
4055 * tree-ssa-pre.c (can_value_number_call): Likewise.
4056 (eliminate): Handle null functions.
4057 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4058 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4059 (find_func_aliases): Likewise.
4060 * value-prof.c (gimple_ic_transform): Likewise.
4061 (gimple_indirect_call_to_profile): Likewise.
4062 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4063 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4064
4065 2011-04-19 Jan Hubicka <jh@suse.cz>
4066
4067 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4068 * ipa-inline.c (inline_small_functions): Compute summaries first,
4069 populate heap later.
4070
4071 2011-04-19 Jan Hubicka <jh@suse.cz>
4072
4073 * cgraph.h (save_inline_function_body): Remove.
4074 * ipa-inline-transform.c: New file, broke out of...
4075 * ipa-inline.c: ... this one; Update toplevel comment.
4076 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4077 make global.
4078 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4079 (cgraph_mark_inline_edge): Rename to inline_call; move to
4080 ipa-inline-transform.c.
4081 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4082 move to ipa-inline-transform.c
4083 (recursive_inlining, inline_small_functions, flatten_function,
4084 ipa_inline, inline_always_inline_functions,
4085 early_inline_small_functions): Update.
4086 (inline_transform): Move to ipa-inline-transform.c.
4087 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4088 Declare.
4089 * Makefile.in (ipa-inline-transform.o): New file.
4090 * cgraphunit.c (save_inline_function_body): Move to
4091 ipa-inline-transform.c
4092
4093 2011-04-19 DJ Delorie <dj@redhat.com>
4094
4095 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4096 registers if we already know there aren't any.
4097 (m32c_emit_epilogue): Don't emit a barrier here.
4098 (m32c_emit_eh_epilogue): Likewise.
4099 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4100 operands at expand time.
4101 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4102 int" wchar type.
4103 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4104 duplicates. Provide aliases instead.
4105 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4106 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4107 the compiler.
4108
4109 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4110
4111 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4112 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4113 (general_or_i64_p, sparc_register_move_cost): New function.
4114
4115 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4116
4117 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4118 Add lynx, mipssde. Sort table.
4119
4120 2011-04-19 Xinliang David Li <davidxl@google.com>
4121
4122 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4123 not negative.
4124
4125 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4126
4127 PR target/48678
4128 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4129 is a SUBREG with non-MODE_INT mode inside of it.
4130
4131 2011-04-19 Martin Jambor <mjambor@suse.cz>
4132
4133 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4134 also according to actual contants.
4135 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4136 (gimple_fold_call): Use it.
4137 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4138
4139 2011-04-19 Martin Jambor <mjambor@suse.cz>
4140
4141 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4142 non-pointer assignments.
4143
4144 2011-04-19 Martin Jambor <mjambor@suse.cz>
4145
4146 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4147 account anc_offset and otr_type from the indirect edge info.
4148 * ipa-prop.c (get_ancestor_addr_info): New function.
4149 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4150 get_ancestor_addr_info, call it.
4151 (ipa_note_param_call): Do not initialize information about polymorphic
4152 calls, return the indirect call graph edge. Remove the last
4153 parameter, adjust all callers.
4154 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4155 parameters. Initialize polymorphic information in the indirect edge.
4156
4157 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4158
4159 PR lto/48148
4160 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4161 the types if they have different enumeration identifiers.
4162
4163 2011-04-19 Jan Hubicka <jh@suse.cz>
4164
4165 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4166 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4167 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4168 (optimize_function_for_size_p) ... here.
4169
4170 2011-04-19 Richard Guenther <rguenther@suse.de>
4171
4172 PR lto/48207
4173 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4174 langhook.
4175
4176 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4177
4178 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4179 if DECL_NO_INLINE_WARNING_P is set on the function.
4180
4181 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4182
4183 PR fortran/47976
4184 * reload1.c (inc_for_reload): Return void. All callers changed.
4185 (emit_input_reload_insns): Don't try to delete previous output
4186 reloads to a register, or record spill_reg_store for autoincs.
4187
4188 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4189
4190 * gengtype.h: Updated copyright year.
4191 (struct input_file_st): Add inpisplugin field.
4192 (type_fileloc): New function.
4193 * gengtype.c
4194 (write_typed_struct_alloc_def): Add gcc_assert.
4195 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4196 (write_typed_alloc_defns): Don't output for plugin files.
4197 (input_file_by_name): Clear inpisplugin field.
4198 (main): Set inpisplugin field for plugin files.
4199
4200 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4201
4202 * gengtype-state.c (string_eq): New.
4203 (read_state): Use string_eq instead of strcmp when creating the
4204 state_ident_tab.
4205
4206 2011-04-19 Wei Guozhi <carrot@google.com>
4207
4208 PR target/47855
4209 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4210 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4211 linkage.
4212 * config/arm/constraints.md (Uu): New constraint.
4213 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4214
4215 2011-04-19 Tristan Gingold <gingold@adacore.com>
4216
4217 * config.gcc (-*-*-*vms): Added.
4218 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4219 definitions moved.
4220 * config/vms/vms-ld.c: New file.
4221 * config/vms/vms-ar.c: New file.
4222 * config/vms/t-vmsnative: New file.
4223
4224 2011-04-18 Xinliang David Li <davidxl@google.com>
4225
4226 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4227
4228 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4229
4230 PR middle-end/48661
4231 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4232 if TREE_TYPE (v) is non-NULL.
4233
4234 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4235 gimple_get_virt_mehtod_for_binfo.
4236 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4237 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4238 callers.
4239 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4240
4241 2011-04-18 Michael Matz <matz@suse.de>
4242 Steve Ellcey <sje@cup.hp.com>
4243
4244 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4245 use its mode as source mode if it isn't VOIDmode.
4246
4247 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4248
4249 * doc/passes.texi: Fill crossref nodes.
4250
4251 2011-04-18 Jim Meyering <meyering@redhat.com>
4252
4253 Fix doubled-word typos in comments and strings
4254 * config/alpha/vms-unwind.h: s/for for/for/
4255 * config/arm/unwind-arm.h: Likewise.
4256 * config/microblaze/microblaze.c: Likewise.
4257 * config/sh/constraints.md: s/in in/in/
4258 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4259
4260 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4261
4262 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4263 (AVX_FLOAT_MODE_P): Ditto.
4264 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4265 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4266 (AVX_VEC_FLOAT_MODE_P): Ditto.
4267 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4268 (UNSPEC_MASKSTORE): Ditto.
4269 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4270 Merge from <sse>_movmsk<ssemodesuffix> and
4271 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4272 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4273 iterator.
4274 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4275 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4276 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4277
4278 2011-04-18 Jan Hubicka <jh@suse.cz>
4279
4280 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4281
4282 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4283 (want_inline_function_called_once_p): Break out the logic from
4284 ipa_inline.
4285 (edge_badness): Ensure that profile is not misupdated.
4286 (lookup_recursive_calls): Prioritize by call frequencies.
4287 (inline_small_functions): Move program size estimates here;
4288 actually process whole queue even when unit growth has been
4289 met. (to properly compute inline_failed reasons and for the
4290 case unit size decrease.) Revisit comments on recursive inlining.
4291 (ipa_inline): Remove unit summary code; first inline hot calls
4292 of functions called once, cold calls next.
4293 (order, nnodes): Remove unused variables.
4294 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4295 (GTFILES): Remove ipa-inline.c
4296 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4297
4298 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4299
4300 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4301
4302 2011-04-18 Jie Zhang <jie@codesourcery.com>
4303 Richard Earnshaw <rearnsha@arm.com>
4304
4305 * arm.c (neon_builtin_type_bits): Remove.
4306 (typedef enum neon_builtin_mode): New.
4307 (T_MAX): Don't define.
4308 (typedef enum neon_builtin_datum): Remove bits, codes[],
4309 num_vars and base_fcode. Add mode, code and fcode.
4310 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4311 VAR10): Change accordingly.
4312 (neon_builtin_data[]): Change accordingly
4313 (arm_init_neon_builtins): Change accordingly.
4314 (neon_builtin_compare): Remove.
4315 (locate_neon_builtin_icode): Remove.
4316 (arm_expand_neon_builtin): Change accordingly.
4317
4318 * arm.h (enum arm_builtins): Move to ...
4319 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4320
4321 * arm.c (arm_builtin_decl): Declare.
4322 (TARGET_BUILTIN_DECL): Define.
4323 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4324 (arm_builtin_decls[]): New.
4325 (arm_init_neon_builtins): Store builtin declarations in
4326 arm_builtin_decls[].
4327 (arm_init_tls_builtins): Likewise.
4328 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4329 (arm_builtin_decl): New.
4330
4331 2011-04-18 Richard Guenther <rguenther@suse.de>
4332
4333 * tree.c (upper_bound_in_type): Build properly canonicalized
4334 INTEGER_CSTs.
4335 (lower_bound_in_type): Likewise.
4336
4337 2011-04-18 Richard Guenther <rguenther@suse.de>
4338
4339 * gimple.h (gimple_call_addr_fndecl): New function.
4340 (gimple_call_fndecl): Use it.
4341 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4342 for direct calls.
4343 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4344 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4345
4346 2011-04-18 Richard Guenther <rguenther@suse.de>
4347
4348 PR middle-end/48650
4349 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4350
4351 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4352
4353 PR lto/48492
4354 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4355 DECL_IN_CONSTANT_POOL without RTL.
4356
4357 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4358 Ira Rosen <ira.rosen@linaro.org>
4359
4360 PR target/48252
4361 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4362 to match neon_vzip/vuzp/vtrn_internal.
4363 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4364 outputs explicitly dependent on both inputs.
4365 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4366
4367 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4368
4369 PR tree-optimization/48616
4370 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4371 whether the shift is by scalar or vector based on whether all SLP
4372 scalar stmts have the same rhs.
4373
4374 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4375
4376 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4377 memory operands.
4378
4379 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4380
4381 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4382 registers.
4383
4384 2011-04-17 Jan Hubicka <jh@suse.cz>
4385
4386 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4387 * cgrpahunit.c (cgraph_finalize_function): Do not set
4388 finalized_by_frontend.
4389 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4390 finalized_by_frontend.
4391
4392 2011-04-17 Jan Hubicka <jh@suse.cz>
4393
4394 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4395 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4396 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4397 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4398 method.
4399 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4400 gimple-fold.c
4401 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4402
4403 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4404
4405 PR lto/48538
4406 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4407 is non-null before accessing it.
4408 (input_cgraph): Remove trailing spaces.
4409
4410 2011-04-17 Revital Eres <revital.eres@linaro.org>
4411
4412 * params.def (sms-min-sc): New param flag.
4413 * modulo-sched.c (sms_schedule): Use it.
4414 * doc/invoke.texi (sms-min-sc): Document it.
4415
4416 2011-04-17 Jan Hubicka <jh@suse.cz>
4417
4418 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4419 present, also set gimple_call_set_cannot_inline.
4420 * ipa-inline.c: Update toplevel comment.
4421 (MAX_TIME): Remove.
4422 (cgraph_clone_inlined_nodes): Fix linebreaks.
4423 (cgraph_check_inline_limits): Restructure to ...
4424 (caller_growth_limits): ... this one; be more tolerant
4425 on growth in nested inline chains; add explanatory comment;
4426 fix stack accounting thinko introduced by previous patch.
4427 (cgraph_default_inline_p): Remove.
4428 (report_inline_failed_reason): New function.
4429 (can_inline_edge_p): New function.
4430 (can_early_inline_edge_p): New function.
4431 (leaf_node_p): Move upwards in file.
4432 (want_early_inline_function_p): New function.
4433 (want_inline_small_function_p): New function.
4434 (want_inline_self_recursive_call_p): New function.
4435 (cgraph_edge_badness): Rename to ...
4436 (edge_badness) ... this one; fix linebreaks.
4437 (update_edge_key): Update call of edge_baddness; add
4438 detailed dump about queue updates.
4439 (update_caller_keys): Use can_inline_edge_p and
4440 want_inline_small_function_p.
4441 (cgraph_decide_recursive_inlining): Rename to...
4442 (recursive_inlining): Use can_inline_edge_p and
4443 want_inline_self_recursive_call_p; simplify and remove no longer
4444 valid FIXME.
4445 (cgraph_set_inline_failed): Remove.
4446 (add_new_edges_to_heap): Use can_inline_edge_p and
4447 want_inline_small_function_p.
4448 (cgraph_decide_inlining_of_small_functions): Rename to ...
4449 (inline_small_functions): ... this one; cleanup; use
4450 can/want predicates; cleanup debug ouput; work edges till fibheap
4451 is exhausted and do not stop once unit growth is reached; remove
4452 later loop processing remaining edges.
4453 (cgraph_flatten): Rename to ...
4454 (flatten_function): ... this one; use can_inline_edge_p
4455 and can_early_inline_edge_p predicates.
4456 (cgraph_decide_inlining): Rename to ...
4457 (ipa_inline): ... this one; remove unreachable nodes before
4458 inlining functions called once; simplify the pass.
4459 (cgraph_perform_always_inlining): Rename to ...
4460 (inline_always_inline_functions): ... this one; use
4461 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4462 (cgraph_decide_inlining_incrementally): Rename to ...
4463 (early_inline_small_functions): ... this one; simplify
4464 using new predicates; cleanup; make dumps prettier.
4465 (cgraph_early_inlining): Rename to ...
4466 (early_inliner): newer inline regular functions into always-inlines;
4467 fix updating of call stmt summaries.
4468 (pass_early_inline): Update for new names.
4469 (inline_transform): Fix formating.
4470 (gate_cgraph_decide_inlining): Rename to ...
4471 (pass_ipa_inline): ... this one.
4472 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4473 * ipa-inline-analysis.c (dump_inline_summary): Update.
4474 (compute_inline_parameters): Do not compute disregard_inline_limits;
4475 look for mismatching arguments.
4476 (estimate_growth): Fix handlig of non-trivial self recursion.
4477 (inline_read_summary): Do not read info->disregard_inline_limits.
4478 (inline_write_summary): Do not write info->disregard_inline_limits.
4479 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4480 and move all checks into can_inline_edge_p predicate; re-enable code
4481 comparing optimization levels.
4482 (expand_call_inline): Do not test inline_forbidden_into_p.
4483 * Makefile.in (ipa-inline.o): Update arguments.
4484
4485 2011-04-17 Revital Eres <revital.eres@linaro.org>
4486
4487 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4488
4489 2011-04-17 Revital Eres <revital.eres@linaro.org>
4490
4491 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4492
4493 2011-04-17 Michael Matz <matz@suse.de>
4494
4495 PR tree-optimization/48622
4496 PR lto/48645
4497 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4498 in same order as they're written.
4499
4500 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4501
4502 * config/pa/predicates.md: Reorganize and simplify predicates.
4503 Eliminate duplicate code checks.
4504 (arith_operand): Rename to arith14_operand
4505 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4506 * config/pa/pa.md: Use renamed operands.
4507 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4508 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4509 arith11_operand, adddi3_operand, indexed_memory_operand,
4510 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4511 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4512 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4513 move_dest_operand, move_src_operand, prefetch_cc_operand,
4514 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4515 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4516 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4517 div_operand, int5_operand, movb_comparison_operator,
4518 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4519 arith_double_operand, ireg_operand, lhs_lshift_operand,
4520 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4521 integer_store_memory_operand): Likewise.
4522 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4523 (integer_store_memory_operand, read_only_operand,
4524 function_label_operand, borx_reg_operand,
4525 non_hard_reg_operand): Likewise.
4526 (eq_neq_comparison_operator): Delete unused operator.
4527 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4528 function_label_operand.
4529 (emit_move_sequence): Likewise.
4530
4531 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4532
4533 * config/i386/sse.md (sseunpackmode): New mode attribute.
4534 (ssepackmode): Ditto.
4535 (vec_pack_trunc_<mode>): Macroize expander from
4536 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4537 (vec_unpacks_lo_<mode>): Macroize expander from
4538 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4539 (vec_unpacks_hi_<mode>): Macroize expander from
4540 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4541 (vec_unpacku_lo_<mode>): Macroize expander from
4542 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4543 (vec_unpacku_hi_<mode>): Macroize expander from
4544 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4545 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4546 ix86_expand_sse4_unpack.
4547 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4548
4549 2011-04-16 Jan Hubicka <jh@suse.cz>
4550
4551 * cgraphbuild.c: Include ipa-inline.h.
4552 (reset_inline_failed): Use initialize_inline_failed.
4553 * cgraph.c: Include ipa-inline.h.
4554 (cgraph_create_node_1): Do not initialize estimated_growth.
4555 (initialize_inline_failed): More to ipa-inline-analysis.c
4556 (dump_cgraph_node): Do not dump inline flags.
4557 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4558 and disregard_inline_limits flags.
4559 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4560 time, size, estimated_growth.
4561 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4562 Update.
4563 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4564 DECL_DISREGARD_INLINE_LIMITS.
4565 (cgraph_analyze_function): Do not initialize
4566 node->local.disregard_inline_limits.
4567 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4568 inlinable, versionable and disregard_inline_limits.
4569 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4570 cgraph_check_inline_limits, cgraph_default_inline_p,
4571 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4572 add_new_edges_to_heap): Update.
4573 (cgraph_decide_inlining_of_small_function): Update; set
4574 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4575 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4576 cgraph_decide_inlining_incrementally): Update.
4577 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4578 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4579 time, size and estimated_growth parameters.
4580 (estimate_edge_growth): Update.
4581 (initialize_inline_failed): Declare.
4582 * ipa-split.c: Include ipa-inline.h
4583 (execute_split_functions): Update.
4584 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4585 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4586 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4587 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4588 estimated_growth to INT_MIN.
4589 (inline_node_duplication_hook): Likewise.
4590 (dump_inline_summary): Dump new fields.
4591 (compute_inline_parameters): Update.
4592 (estimate_edge_time, estimate_time_after_inlining,
4593 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4594 inline_write_summary):
4595 (initialize_inline_failed): Move here from cgraph.c.
4596 * tree-sra.c: Include ipa-inline.h.
4597 (ipa_sra_preliminary_function_checks): Update.
4598 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4599 ipa-inline.h.
4600
4601 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4602
4603 * config/i386/sse.md (V16): New mode iterator.
4604 (VI1, VI8): Ditto.
4605 (AVXMODEQI, AVXMODEDI): Remove.
4606 (sse2, sse3): New mode attribute.
4607 (mov<mode>): Use V16 mode iterator.
4608 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4609 (push<mode>1): Use V16 mode iterator.
4610 (movmisalign<mode>): Ditto.
4611 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4612 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4613 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4614 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4615 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4616 avx_movdqu<avxmodesuffix>.
4617 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4618 *avx_movdqu<avxmodesuffix>.
4619 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4620 avx_lddqu<avxmodesuffix>.
4621 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4622 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4623 avx_movnt<AVXMODEDI:mode>.
4624 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4625 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4626
4627 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4628
4629 PR target/48629
4630 * haifa-sched.c (prune_ready_list, schedule_block): Use
4631 sched_pressure_p rather than flag_sched_pressure.
4632
4633 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4634
4635 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4636 cgraph_get_node instead of cgraph_get_create_node.
4637
4638 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4639
4640 * cfgexpand.c (expand_debug_expr): Use
4641 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4642
4643 2011-04-15 Michael Matz <matz@suse.de>
4644
4645 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4646 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4647 * function.c (gimplify_parameters): Ditto.
4648 * gimplify.c (gimplify_vla_decl): Ditto.
4649
4650 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4651 (gimple_call_set_alloca_for_var): New inline function.
4652 (gimple_call_alloca_for_var_p): Ditto.
4653 * gimple.c (gimple_build_call_from_tree): Remember
4654 CALL_ALLOCA_FOR_VAR_P state.
4655 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4656
4657 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4658 calls if they were for VLA objects.
4659
4660 2011-04-15 Martin Jambor <mjambor@suse.cz>
4661
4662 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4663 of ADR_EXPRs.
4664
4665 2011-04-15 Martin Jambor <mjambor@suse.cz>
4666
4667 PR middle-end/48601
4668 * tree-emutls.c (lower_emutls_function_body): Call
4669 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4670 result is non-NULL.
4671
4672 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4673
4674 * c-decl.c (detect_field_duplicates): Call
4675 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4676
4677 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4678
4679 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4680 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4681 * ipa-pure-const.c (check_stmt): Call it.
4682 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4683
4684 2011-04-15 Richard Guenther <rguenther@suse.de>
4685
4686 PR tree-optimization/48290
4687 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4688 Properly decide inhibiting propagation based on the valueized
4689 operand. Do loop-closed SSA form preserving here ...
4690 (init_copy_prop): ... not here.
4691
4692 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4693
4694 PR target/48612
4695 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4696 (*ieee_smax<mode>3): Likewise.
4697
4698 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4699
4700 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4701 Replace match_operand with match_dup for the third operand in
4702 these expanders.
4703
4704 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4705
4706 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4707 to track processing of conditionals. Update all callers.
4708 (try_combine, simplify_if_then_else): Update.
4709
4710 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4711
4712 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4713 -fsched-pressure.
4714
4715 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4716
4717 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4718 instead of match_operand for operand 3.
4719
4720 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4721
4722 * recog.h (insn_operand_data): Add an "allows_mem" field.
4723 * genoutput.c (output_operand_data): Initialize it.
4724 * optabs.c (maybe_legitimize_operand_same_code): New function.
4725 (maybe_legitimize_operand): Use it when matching the original
4726 op->value.
4727
4728 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4729
4730 * gimplify.c: Fix issues in comments throughout.
4731 (voidify_wrapper_expr): Fix long line.
4732 (build_stack_save_restore): Likewise.
4733 (gimplify_loop_expr): Likewise.
4734 (gimplify_compound_lval): Likewise.
4735 (gimplify_init_ctor_eval): Likewise.
4736 (gimplify_modify_expr_rhs): Likewise.
4737 (omp_notice_threadprivate_variable): Likewise.
4738
4739 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4740
4741 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4742 original one if this is not a builtin function.
4743
4744 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4745
4746 PR target/48605
4747 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4748 offset it as needed based on top 2 bits in operands[3], change
4749 MEM mode to SFmode and mask those 2 bits away from operands[3].
4750
4751 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4752
4753 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4754 change from objc_declare_protocols() to objc_declare_protocol().
4755
4756 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4757
4758 * config/i386/sse.md (sse4_1): New mode attribute.
4759 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4760 avx_blend<ssemodesuffix><avxmodesuffix> and
4761 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4762 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4763 avx_blendv<ssemodesuffix><avxmodesuffix> and
4764 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4765 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4766 avx_dp<ssemodesuffix><avxmodesuffix> and
4767 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4768 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4769 (sse4_1_packusdw): Merge with *avx_packusdw.
4770 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4771 (sse4_1_pblendw): Merge with *avx_pblendw.
4772 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4773 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4774 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4775 VF mode iterator.
4776 (sse4_1_round<ssescalarmodesuffix>): Merge with
4777 *avx_round<ssescalarmodesuffix>.
4778 (aesenc): Merge with *avx_aesenc.
4779 (aesenclast): Merge with *avx_aesenclast.
4780 (aesdec): Merge with *avx_aesdec.
4781 (aesdeclast): Merge with *avx_aesdeclast.
4782 (pclmulqdq): Merge with *pclmulqdq.
4783 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4784 New predicate.
4785 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4786
4787 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4788
4789 PR middle-end/48608
4790 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4791 (align_local_variable): This. Update DECL_ALIGN.
4792 (add_stack_var): Updated.
4793 (expand_one_stack_var): Likewise.
4794
4795 2011-04-14 Richard Guenther <rguenther@suse.de>
4796
4797 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4798 Remove.
4799 (dse_initialize_block_local_data, dse_leave_block,
4800 record_voperand_set, get_stmt_uid): Likewise.
4801 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4802 (dse_optimize_stmt): Remove voperand set handling code.
4803 Simplify and improve to handle any kind of killing stmt.
4804 (dse_record_phi): Remove.
4805 (dse_enter_block): Simplify.
4806 (tree_ssa_dse): Likewise.
4807 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4808
4809 2011-04-14 Jan Hubicka <jh@suse.cz>
4810
4811 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4812 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4813 (cgraph_local_info): Remove inline_summary.
4814 * ipa-cp.c: Include ipa-inline.h.
4815 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4816 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4817 accesor.
4818 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4819 (input_overwrite_node): Do not set inline summary.
4820 (input_node): Do not stream inline summary.
4821 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4822 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4823 growth; we do not have inline parameters computed for that anyway.
4824 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4825 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4826 (inline_summary_t): New type and VECtor.
4827 (debug_inline_summary, dump_inline_summaries): Declare.
4828 (inline_summary): Use VOCtor.
4829 (estimate_edge_growth): Kill hack computing call stmt size directly.
4830 * lto-section-in.c (lto_section_name): Add inline section.
4831 * ipa-inline-analysis.c: Include lto-streamer.h
4832 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4833 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4834 (inline_summary_vec): Define.
4835 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4836 dump_inline_summaries): New functions.
4837 (estimate_function_body_sizes): Properly compute size/time of outgoing
4838 calls.
4839 (compute_inline_parameters): Alloc inline_summary; do not compute
4840 size/time of incomming calls.
4841 (estimate_edge_time): Avoid missing time summary hack.
4842 (inline_read_summary): Read inline summary info.
4843 (inline_write_summary): Write inline summary info.
4844 (inline_free_summary): Free all hooks and inline summary vector.
4845 * lto-streamer.h: Add LTO_section_inline_summary section.
4846 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4847 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4848
4849 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4850
4851 * tree-vectorizer.h (vect_strided_store_supported): Add a
4852 HOST_WIDE_INT argument.
4853 (vect_strided_load_supported): Likewise.
4854 (vect_permute_store_chain): Return void.
4855 (vect_transform_strided_load): Likewise.
4856 (vect_permute_load_chain): Delete.
4857 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4858 count argument. Check that the count is a power of two.
4859 (vect_strided_load_supported): Likewise.
4860 (vect_permute_store_chain): Return void. Update after above changes.
4861 Assert that the access is supported.
4862 (vect_permute_load_chain): Likewise.
4863 (vect_transform_strided_load): Return void.
4864 * tree-vect-stmts.c (vectorizable_store): Update calls after
4865 above interface changes.
4866 (vectorizable_load): Likewise.
4867 (vect_analyze_stmt): Don't check for strided powers of two here.
4868
4869 2011-04-14 Richard Guenther <rguenther@suse.de>
4870
4871 PR tree-optimization/48590
4872 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4873 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4874 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4875 BUILT_IN_STACK_SAVE.
4876 * tree-ssa-dce.c (propagate_necessity): Handle
4877 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4878
4879 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4880
4881 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4882 objc_declare_class.
4883
4884 2011-04-14 Richard Guenther <rguenther@suse.de>
4885
4886 * tree.h (get_object_alignment_1): Declare.
4887 * builtins.c (get_object_alignment_1): Split out worker from ...
4888 (get_object_alignment): ... here.
4889 * fold-const.c (get_pointer_modulus_and_residue): Use
4890 get_object_alignment_1.
4891
4892 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4893
4894 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4895 type parameter.
4896 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4897 parameter. Generalise code to handle arrays as well as vectors.
4898 (vect_setup_realignment): Update accordingly.
4899 * tree-vect-stmts.c (vectorizable_store): Likewise.
4900 (vectorizable_load): Likewise.
4901
4902 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4903
4904 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4905 within the per-copy loop.
4906
4907 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4908
4909 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4910 in the dump file.
4911
4912 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4913
4914 * doc/options.texi (Negative): Explicitly mention that the
4915 Negative chain must be circular.
4916
4917 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4918
4919 * function.h (block_chainon): Declare.
4920 * function.c (block_chainon): Define.
4921
4922 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4923 Eric Weddington <eric.weddington@atmel.com>
4924 Georg-Johann Lay <avr@gjlay.de>
4925
4926 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4927 New Includes
4928 (avr_init_builtins, avr_expand_builtin,
4929 avr_expand_delay_cycles, avr_expand_unop_builtin,
4930 avr_expand_binop_builtin ): New functions.
4931 (avr_builtin_id): New enum
4932 (struct avr_builtin_description): New struct
4933 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4934 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4935
4936 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4937 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4938 UNSPECV_DELAY_CYCLES): new enumeration values
4939 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4940 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4941 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4942 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4943 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4944 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4945 "fmulsu"): New insns
4946
4947 * config/avr/avr-c.c: fix line endings
4948 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4949 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4950 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4951 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4952 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4953
4954 * doc/extend.texi (AVR Built-in Functions): New node
4955 (Target Builtins): Add documentation of AVR
4956 built-in functions.
4957
4958 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4959
4960 PR target/44643
4961 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4962 alone. Error if non-const data has attribute progmem.
4963
4964 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4965
4966 * tree.h (struct tree_constructor): Include tree_typed instead of
4967 tree_common.
4968 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4969 TS_TYPED instead of TS_COMMON.
4970
4971 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4972
4973 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4974 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4975 (sse2_psadbw): Merge with *avx_psadbw.
4976 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4977 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4978 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4979 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4980 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4981 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4982 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4983 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4984 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4985 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4986 (ssse3_palignrti): Merge with *avx_palignrti.
4987
4988 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4989
4990 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4991 * tree-ssanames.c (fini_ssanames): VEC_free it.
4992 (make_ssa_name_fn): Update for VECness of free_ssanames.
4993 (release_ssa_name, release_dead_ssa_names): Likewise.
4994 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4995 tree_common.
4996 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4997 TS_TYPED instead of TS_COMMON.
4998
4999 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5000
5001 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5002 statistics_counter_event.
5003 * tree-ssa-copyrename.c (stats): Define.
5004 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5005 statistics_counter_event.
5006 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5007 (bswap_stats, widen_mul_stats): Define.
5008 (insert_reciprocals): Increment rdivs_inserted.
5009 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5010 rfuncs_inserted. Add calls to statistics_counter_event.
5011 (execute_cse_sincos_1): Increment inserted.
5012 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5013 statistics_counter_event.
5014 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5015 of bswap_stats. Add calls to statistics_counter_event.
5016 (convert_mult_to_widen): Increment widen_mults_inserted.
5017 (convert_plusminus_to_widen): Increment maccs_inserted.
5018 (convert_mult_to_fma): Increment fmas_inserted.
5019 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5020 calls to statistics_counter_event.
5021
5022 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5023
5024 PR rtl-optimization/48455
5025 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5026 `temp_costs->mem_cost'.
5027
5028 2011-04-13 Jan Hubicka <jh@suse.cz>
5029
5030 * ipa-inline.h: New file.
5031 * ipa-inline-analysis.c: New file. Broken out of ...
5032 * ipa-inline.c: ... this file; update toplevel comment;
5033 include ipa-inline.h
5034 (inline_summary): Move to ipa-inline.h
5035 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5036 ipa-inline-analysis.c.
5037 (cgraph_estimate_time_after_inlining): Rename to
5038 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5039 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5040 to estimate_edge_growth.
5041 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5042 rename to estimate_size_after_inlining.
5043 (cgraph_mark_inline_edge): Update for new naming convention.
5044 (cgraph_check_inline_limits): Likewise.
5045 (cgraph_edge_badness): Likewise.
5046 (cgraph_decide_recursive_inlining): Likewise.
5047 (cgraph_decide_inlining_of_small_functions): Likewise.
5048 (cgraph_decide_inlining_incrementally): Likewise.
5049 (cgraph_estimate_growth): Rename to estimate_growth; move to
5050 ipa-inline-analysis.c.
5051 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5052 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5053 (compute_inline_parameters): Likewise.
5054 (compute_inline_parameters_for_current): Likewise.
5055 (pass_inline_parameters): Likewise.
5056 (inline_indirect_intraprocedural_analysis): Likewise.
5057 (analyze_function): Rename to inline_analyze_function; likewise.
5058 (add_new_function): Move to ipa-inline-analysis.c.
5059 (inline_generate_summary): Likewise.
5060 (inline_read_summary): Likewise.
5061 (inline_write_summary): Likewise.
5062 * Makefile.in (ipa-inline-analysis.c): New file.
5063
5064 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5065
5066 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5067 * configure: Regenerate.
5068
5069 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5070
5071 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5072 instead of tree_common.
5073 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5074 Likewise.
5075 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5076 TS_TYPED rather than TS_COMMON.
5077 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5078
5079 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5080
5081 PR target/45263
5082 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5083 r20 around calls of __tablejump_elpm__
5084
5085 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5086
5087 PR middle-end/48591
5088 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5089 NULL.
5090 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5091
5092 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5093
5094 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5095 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5096 (cfi_vec): New typedef.
5097 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5098 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5099 (cie_cfi_vec): New static variable.
5100 (cie_cfi_head): Delete.
5101 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5102 declaration changed. Use vector rather than list operations.
5103 (new_cfi): Don't initialize the dw_cfi_next field.
5104 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5105 rather than list operations.
5106 (lookup_cfa): Use vector rather than list operations.
5107 (output_cfis): New argument upto. Accept a cfi_vec rather than
5108 a dw_cfi_ref list head as argument. All callers changed.
5109 Iterate over the vector using upto as a maximum index.
5110 (output_all_cfis): New static function.
5111 (output_fde): Use vector rather than list operations. Use the
5112 new upto argument for output_cfis rather than manipulating a
5113 list.
5114 (dwarf2out_begin_prologue): Change initializations to match
5115 new struct members.
5116 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5117 from the vector length rather than searching for the end of a list.
5118 Use output_all_cfis.
5119 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5120
5121 2011-04-13 Nick Clifton <nickc@redhat.com>
5122
5123 * config/rx/rx.md (movmemsi): Do not use this pattern when
5124 volatile pointers are involved.
5125
5126 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5127
5128 * config/i386/sse.md (pinsrbits): Remove.
5129 (sse2_packsswb): Merge with *avx_packsswb.
5130 (sse2_packssdw): Merge with *avx_packssdw.
5131 (sse2_packuswb): Merge with *avx_packuswb.
5132 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5133 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5134 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5135 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5136 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5137 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5138 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5139 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5140 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5141 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5142 (sse2_loadld): Merge with *avx_loadld.
5143 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5144 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5145 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5146 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5147 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5148
5149 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5150
5151 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5152 calling TREE_CHAIN.
5153 * print-tree.c (print_node): Likewise.
5154 * tree-inline.c (copy_tree_r): Likewise.
5155 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5156 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5157 instead of TS_COMMON.
5158 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5159 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5160 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5161 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5162 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5163 ...and these...
5164 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5165 * tree.h: ...here.
5166 (TREE_CHAIN): Check for a TS_COMMON structure.
5167 (TREE_TYPE): Check for a TS_TYPED structure.
5168
5169 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5170
5171 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5172 cgraph_get_create_node instead of cgraph_node.
5173
5174 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5175
5176 * c-parser.c (c_parser_initelt): Updated call to
5177 objc_build_message_expr.
5178 (c_parser_postfix_expression): Likewise.
5179
5180 2011-04-12 Kai Tietz <ktietz@redhat.com>
5181
5182 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5183 MASK_MS_BITFIELD_LAYOUT bit.
5184
5185 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5186
5187 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5188 assert it is always true.
5189 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5190 moves.
5191
5192 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5193
5194 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5195 compiling Objective-C to be more efficient.
5196
5197 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5198
5199 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5200 argv_copied.
5201
5202 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5203
5204 * recog.h, genoutput.c, optabs.c: Revert last patch.
5205
5206 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5207
5208 PR target/48090
5209 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5210
5211 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5212
5213 * recog.h (insn_operand_data): Add an "allows_mem" field.
5214 * genoutput.c (output_operand_data): Initialize it.
5215 * optabs.c (maybe_legitimize_operand_same_code): New function.
5216 (maybe_legitimize_operand): Use it when matching the original
5217 op->value.
5218
5219 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5220
5221 * genpreds.c (process_define_predicate): Move most processing
5222 to gensupport.c. Continue to validate the expression.
5223 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5224 (process_define_predicate): Move processing to gensupport.c.
5225 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5226 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5227 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5228 argument.
5229 (valid_predicate_name_p): New function, split out from old
5230 genpreds.c:process_define_predicate.
5231 (process_define_predicate): New function, combining code from
5232 old genpreds.c and genrecog.c functions.
5233 (process_rtx): Call it for DEFINE_PREDICATE and
5234 DEFINE_SPECIAL_PREDICATE.
5235
5236 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5237
5238 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5239 size of a '%A' memory reference.
5240 (T_DREG, T_QREG): New neon_builtin_type_bits.
5241 (arm_init_neon_builtins): Assert that the load and store operands
5242 are neon_struct_operands.
5243 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5244 (NEON_ARG_MEMORY): New builtin_arg.
5245 (neon_dereference_pointer): New function.
5246 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5247 Handle NEON_ARG_MEMORY.
5248 (arm_expand_neon_builtin): Update after above interface changes.
5249 Use NEON_ARG_MEMORY for loads and stores.
5250 * config/arm/predicates.md (neon_struct_operand): New predicate.
5251 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5252 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5253 (V_four_elem): Tweak formatting.
5254 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5255 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5256 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5257 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5258 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5259 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5260 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5261 Use %A in the output template.
5262 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5263 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5264 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5265 the width of the memory access. Remove post-increment.
5266 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5267
5268 2011-04-12 Nick Clifton <nickc@redhat.com>
5269
5270 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5271 instruction for interrupt handlers if the target is the basic V850
5272 architecture.
5273 (expand_epilogue): Likewise.
5274
5275 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5276
5277 PR rtl-optimization/48549
5278 * combine.c (propagate_for_debug): Also stop after BB_END of
5279 this_basic_block. Process LAST and just stop processing after it.
5280 (combine_instructions): If last_combined_insn has been deleted,
5281 set last_combined_insn to its PREV_INSN.
5282
5283 2011-04-12 Richard Guenther <rguenther@suse.de>
5284
5285 PR tree-optimization/46076
5286 * gimple.h (struct gimple_statement_call): Add fntype field.
5287 (gimple_call_fntype): Adjust.
5288 (gimple_call_set_fntype): New function.
5289 * gimple.c (gimple_build_call_1): Set the call function type.
5290 * gimplify.c (gimplify_call_expr): Preserve the function
5291 type the frontend used for the call.
5292 (gimplify_modify_expr): Likewise.
5293 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5294 function type.
5295 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5296 function type.
5297 * tree-ssa.c (useless_type_conversion_p): Function pointer
5298 conversions are useless.
5299
5300 2011-04-12 Martin Jambor <mjambor@suse.cz>
5301
5302 * cgraph.h (cgraph_node): Remove function declaration.
5303 (cgraph_create_node): Declare.
5304 (cgraph_get_create_node): Likewise.
5305 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5306 Updated all callers.
5307 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5308 the decl does not already exist. Call cgraph_get_create_node instead
5309 of cgraph_node.
5310 (cgraph_get_create_node): New function.
5311 (cgraph_same_body_alias): Update comment.
5312 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5313 assert it does not return NULL.
5314 (cgraph_update_edges_for_call_stmt): Likewise.
5315 (cgraph_clone_edge): Likewise.
5316 (cgraph_create_virtual_clone): Likewise.
5317 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5318 instead of cgraph_node.
5319 (cgraph_add_new_function): Call cgraph_create_node or
5320 cgraph_get_create_node instead of cgraph_node.
5321 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5322 instead of cgraph_node.
5323 (record_eh_tables): Likewise.
5324 (mark_address): Likewise.
5325 (mark_load): Likewise.
5326 (build_cgraph_edges): Call cgraph_get_create_node instead
5327 of cgraph_node.
5328 (rebuild_cgraph_edges): Likewise.
5329 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5330 instead of cgraph_node.
5331 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5332 cgraph_node.
5333 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5334 cgraph_create_node instead of cgraph_node.
5335 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5336 of cgraph_node.
5337 * lto-cgraph.c (input_node): Likewise.
5338 * lto-streamer-in.c (input_function): Likewise.
5339 * varasm.c (mark_decl_referenced): Likewise.
5340 (assemble_alias): Likewise.
5341
5342 2011-04-12 Martin Jambor <mjambor@suse.cz>
5343
5344 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5345 instead of cgraph_node and assert it does not return NULL.
5346 * lto-streamer-in.c (lto_read_body): Likewise.
5347 * omp-low.c (new_omp_context): Likewise.
5348 (create_task_copyfn): Likewise.
5349 * tree-emutls.c (lower_emutls_function_body): Likewise.
5350 * matrix-reorg.c (transform_allocation_sites): Likewise.
5351
5352 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5353
5354 PR c/48552
5355 * c-typeck.c (build_asm_expr): Error out on attempts to use
5356 void type outputs or inputs for constraints that allow reg or
5357 don't allow memory.
5358
5359 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5360 Richard Earnshaw <rearnsha@arm.com>
5361
5362 PR target/48250
5363 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5364 to use sign-magnitude offsets. Reject unsupported unaligned
5365 cases. Add detailed description in comments.
5366 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5367 condition from TARGET_32BIT to TARGET_ARM.
5368
5369 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5370
5371 * tree.h (struct typed_tree): New.
5372 (struct tree_common): Include it instead of tree_base.
5373 (TREE_TYPE): Update for new location of type field.
5374 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5375 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5376 (union tree_node): Add typed field.
5377 * treestruct.def (TS_TYPED): New.
5378 * lto-streamer.c (check_handled_ts_structures): Handle it.
5379 * tree.c (MARK_TS_TYPED): New macro.
5380 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5381
5382 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5383
5384 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5385 (force_nonfallthru): Do not alter the loop nest if no basic block
5386 was created.
5387
5388 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5389
5390 * config/i386/sse.md (VI): New mode iterator.
5391 (SSEMODEI): Remove.
5392 (AVX256MODEI): Ditto.
5393 (AVXMODEF4P): Ditto.
5394 (avxvecpsmode): Ditto.
5395 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5396 (sse2_andnot<mode>3): New expander.
5397 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5398 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5399 (<any_logic:code><mode>3): Use VI mode iterator.
5400 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5401 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5402 (*andnottf3): Handle AVX three-operand constraints.
5403 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5404
5405 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5406 Robert Millan <rmh@gnu.org>
5407
5408 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5409 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5410 GNU_USER_DYNAMIC_LINKER64): Define.
5411 (REG_NAME): Don't undefine.
5412 (MD_UNWIND_SUPPORT): Undefine.
5413 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5414 (REG_NAME): Don't undefine.
5415 (MD_UNWIND_SUPPORT): Undefine.
5416 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5417
5418 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5419
5420 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5421 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5422
5423 2011-04-11 Xinliang David Li <davidxl@google.com>
5424
5425 * value-profile.c (check_ic_target): New function.
5426 (gimple_ic_transform): Sanity check indirect call target.
5427 * gimple-low.c (gimple_check_call_args): Interface change.
5428 (gimple_check_call_matching_types): New function.
5429 * tree-inline.c (tree_can_inline_p): Call new function.
5430
5431 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5432
5433 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5434 tree-pretty-print.h & realmpfr.h.
5435
5436 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5437
5438 PR middle-end/48464
5439 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5440 (setup_allocno_and_important_classes): Ditto.
5441
5442 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5443
5444 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5445 GNU_USER_DYNAMIC_LINKER.
5446 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5448 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5449 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5450 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5451 GNU_USER_TARGET_OS_CPP_BUILTINS.
5452 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5453 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5454 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5456 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5457 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5458 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5459 GNU_USER_TARGET_OS_CPP_BUILTINS.
5460 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5461 GNU_USER_DYNAMIC_LINKER.
5462 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5463 GNU_USER_TARGET_OS_CPP_BUILTINS.
5464 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5465 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5466 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5467 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5468 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5469 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5470 GNU_USER_DYNAMIC_LINKER64): Remove.
5471 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5472 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5473 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5474 GNU_USER_DYNAMIC_LINKER.
5475 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5476 GNU_USER_TARGET_OS_CPP_BUILTINS.
5477 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5478 GNU_USER_TARGET_OS_CPP_BUILTINS.
5479 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5480 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5481 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5482 GNU_USER_TARGET_OS_CPP_BUILTINS.
5483 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5484 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5485 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5486 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5488 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5489 GNU_USER_DYNAMIC_LINKER.
5490 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5491 GNU_USER_TARGET_OS_CPP_BUILTINS.
5492 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5493 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5494 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5495 GNU_USER_DYNAMIC_LINKER.
5496 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5497 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5498 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5499 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5500 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5501 GNU_USER_DYNAMIC_LINKER.
5502 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5503 GNU_USER_DYNAMIC_LINKERN32.
5504 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5505 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5506 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5507 GNU_USER_DYNAMIC_LINKER32.
5508 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5509 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5510 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5511 GNU_USER_DYNAMIC_LINKER.
5512 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5513 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5514 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5517 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5518 GNU_USER_DYNAMIC_LINKER32.
5519 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5520 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5521 GNU_USER_DYNAMIC_LINKER.
5522 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5523 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5524 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5525 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5526 GNU_USER_DYNAMIC_LINKER64.
5527 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5529 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5530 GNU_USER_DYNAMIC_LINKER.
5531 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5532 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5533 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5534 GNU_USER_DYNAMIC_LINKER.
5535 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5536 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5537 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5538 GNU_USER_DYNAMIC_LINKER32.
5539 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5540 GNU_USER_DYNAMIC_LINKER64.
5541 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5542 GNU_USER_DYNAMIC_LINKER64.
5543 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5545 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5547 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5548
5549 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5550
5551 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5552 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5553 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5554 GNU_USER_DYNAMIC_LINKER.
5555 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5556 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5557 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5558 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5559 GNU_USER_DYNAMIC_LINKER64.
5560 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5561 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5562 GNU_USER_LINK_EMULATION.
5563 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5564 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5565 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5566 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5567 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5568 CPP_SPEC, CC1_SPEC): Remove.
5569 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5570 (GNU_USER_DYNAMIC_LINKER): Define.
5571 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5572 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5573 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5574 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5575 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5576 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5577 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5578 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5579 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5580 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5581 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5582 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5583 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5584 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5585 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5586 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5587 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5588 GNU_USER_DYNAMIC_LINKER.
5589 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5590 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5591 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5592 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5593 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5594 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5595 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5596 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5597 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5598 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5599
5600 2011-04-11 Kai Tietz <ktietz@redhat.com>
5601
5602 PR target/9601
5603 PR target/11772
5604 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5605 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5606 comment.
5607 (ix86_is_msabi_thiscall): Removed.
5608 (ix86_is_type_thiscall): Likewise.
5609 (ix86_get_callcvt): New function.
5610 (ix86_comp_type_attributes): Simplify check.
5611 (ix86_function_regparm): Use ix86_get_callcvt for calling
5612 convention attribute checks.
5613 (ix86_return_pops_args): Likewise.
5614 (ix86_static_chain): Likewise.
5615 (x86_this_parameter): Likewise.
5616 (x86_output_mi_thunk): Likewise.
5617 (ix86_function_type_abi): Optimize check for types without attributes.
5618 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5619 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5620 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5621 by flag-values.
5622 (IX86_BASE_CALLCVT): Helper macro.
5623 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5624 Use ix86_get_callcvt for calling convention attribute checks and avoid
5625 symbol-decoration for stdcall in TARGET_RTD case.
5626 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5627 Likewise.
5628 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5629 for declaration.
5630
5631 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5632
5633 * config/i386/sse.md (VI_128): New mode iterator.
5634 (VI12_128): Rename from SSEMODE12.
5635 (VI14_128): Rename from SSEMODE14.
5636 (VI124_128): New mode iterator.
5637 (VI24_128): Rename from SSEMODE248.
5638 (VI248_128): Rename from SSEMODE248.
5639 (SSEMODE124C8): Remove.
5640 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5641 (*sse2_<plusminus_insn><mode>3): Merge with
5642 *avx_<plusminus_insn><mode>3.
5643 (*mulv8hi3): Merge with *avx_mulv8hi3.
5644 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5645 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5646 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5647 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5648 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5649 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5650 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5651 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5652 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5653 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5654 (*<smaxmin:code>v8hi3): Ditto.
5655 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5656 (*<smaxmin:code>v16qi3): Ditto.
5657 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5658 (*sse2_eq<mode>3): Ditto.
5659 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5660 (*sse2_gt<mode>3): Ditto.
5661 (vcondv2di): Split out of vcond<mode>.
5662 (vconduv2di): Split out of vcondu<mode>.
5663
5664 2011-04-11 Richard Guenther <rguenther@suse.de>
5665
5666 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5667 before calling tree_low_cst.
5668
5669 2011-04-11 Richard Guenther <rguenther@suse.de>
5670
5671 * stor-layout.c (layout_type): Compute all array index size operations
5672 in the original type.
5673 (initialize_sizetypes): Add comment.
5674 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5675
5676 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5677
5678 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5679
5680 2011-04-11 Martin Jambor <mjambor@suse.cz>
5681
5682 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5683 of cgraph_node, handle NULL return value.
5684 (cgraph_global_info): Likewise.
5685 (cgraph_rtl_info): Likewise.
5686 * tree-inline.c (estimate_num_insns): Likewise.
5687 * gimplify.c (unshare_body): Likewise.
5688 (unvisit_body): Likewise.
5689 (gimplify_body): Likewise.
5690 * predict.c (optimize_function_for_size_p): Likewise.
5691 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5692 (call_may_clobber_ref_p_1): Likewise.
5693 * varasm.c (function_section_1): Likewise.
5694 (assemble_start_function): Likewise.
5695
5696 2011-04-11 Martin Jambor <mjambor@suse.cz>
5697
5698 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5699 of cgraph_node.
5700 * final.c (rest_of_clean_state): Likewise.
5701 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5702 * passes.c (pass_init_dump_file): Likewise.
5703 (execute_all_ipa_transforms): Likewise.
5704 (function_called_by_processed_nodes_p): Likewise.
5705 * predict.c (maybe_hot_frequency_p): Likewise.
5706 (probably_never_executed_bb_p): Likewise.
5707 (compute_function_frequency): Likewise.
5708 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5709 (unnest_nesting_tree_1): Likewise.
5710 (lower_nested_functions): Likewise.
5711 * tree-optimize.c (execute_fixup_cfg): Likewise.
5712 (tree_rest_of_compilation): Likewise.
5713 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5714 * tree-sra.c (ipa_early_sra): Likewise.
5715 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5716 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5717 * ipa.c (record_cdtor_fn): Likewise.
5718 * ipa-inline.c (cgraph_early_inlining): Likewise.
5719 (compute_inline_parameters_for_current): Likewise.
5720 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5721 * ipa-pure-const.c (local_pure_const): Likewise.
5722 * ipa-split.c (split_function): Likewise.
5723 (execute_split_functions): Likewise.
5724 * cgraphbuild.c (build_cgraph_edges): Likewise.
5725 (rebuild_cgraph_edges): Likewise.
5726 (cgraph_rebuild_references): Likewise.
5727 (remove_cgraph_callee_edges): Likewise.
5728 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5729 (verify_cgraph_node): Likewise.
5730 (cgraph_analyze_functions): Likewise.
5731 (cgraph_preserve_function_body_p): Likewise.
5732 (save_inline_function_body): Likewise.
5733 (save_inline_function_body): Likewise.
5734 * tree-inline.c (copy_bb): Likewise.
5735 (optimize_inline_calls): Likewise.
5736
5737 2011-04-11 Martin Jambor <mjambor@suse.cz>
5738
5739 PR tree-optimization/48195
5740 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5741 ipa_check_create_edge_args.
5742 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5743 ipa_check_create_edge_args.
5744 * ipa-inline.c (inline_generate_summary): Do not call
5745 ipa_check_create_node_params and ipa_check_create_edge_args.
5746 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5747 ipa_check_create_edge_args.
5748
5749 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5750
5751 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5752 instead of loop.
5753 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5754 * function.c (record_hard_reg_sets): Likewise.
5755 * ira.c (compute_regs_asm_clobbered): Likewise.
5756 * sched-deps.c (sched_analyze_1): Likewise.
5757 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5758
5759 2011-04-09 Xinliang David Li <davidxl@google.com>
5760
5761 PR tree-optimization/PR48484
5762 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5763 has_valid_pred lazily
5764
5765 2011-04-09 Duncan Sands <baldrick@free.fr>
5766
5767 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5768
5769 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5770
5771 * combine.c (combine_validate_cost): Adjust comments. Set registered
5772 cost of I0 to zero at the end, if any.
5773
5774 2011-04-08 Xinliang David Li <davidxl@google.com>
5775
5776 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5777 to insane profile data.
5778
5779 2011-04-08 Xinliang David Li <davidxl@google.com>
5780
5781 * ipa-cp.c (ipcp_update_profiling): Correct
5782 negative scale factor due to insane profile data.
5783
5784 2011-04-08 Xinliang David Li <davidxl@google.com>
5785
5786 * final.c (dump_basic_block_info): New function.
5787 (final): Dump basic block.
5788 (final_scan_insn): Remove old dump.
5789
5790 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5791
5792 PR target/47829
5793 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5794 crtbegin/crtend.
5795
5796 2011-04-08 Michael Matz <matz@suse.de>
5797
5798 PR middle-end/48389
5799 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5800 functions.
5801 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5802 * rtl.h (rebuild_jump_labels_chain): Declare.
5803 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5804 insns inserted on edges.
5805
5806 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5807
5808 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5809 * config/arm/arm-arches.def: New.
5810 * config/arm/arm-opts.h: New.
5811 * config/arm/genopt.sh: New.
5812 * config/arm/arm-tables.opt: New (generated).
5813 * config/arm/arm.c (arm_handle_option, arm_target_help,
5814 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5815 (all_architectures): Get most table contents from arm-arches.def.
5816 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5817 arm_selected_tune here.
5818 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5819 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5820 (march=, mcpu=, mtune=): Use Enum and Var.
5821 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5822 (arm.o): Update dependencies.
5823
5824 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5825
5826 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5827 of header_file.
5828 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5829 (write_typed_alloc_defns): Likewise.
5830 (main): Calls write_typed_alloc_defns with output_header.
5831
5832 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5833
5834 PR inline-asm/48435
5835 * ira-color.c (setup_profitable_hard_regs): Add comments.
5836 Don't take prohibited hard regs into account.
5837 (setup_conflict_profitable_regs): Rename to
5838 get_conflict_profitable_regs.
5839 (check_hard_reg_p): Check prohibited hard regs.
5840
5841 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5842
5843 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5844 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5845 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5846
5847 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5848
5849 PR target/48366
5850 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5851 move from floating point to shift amount register.
5852 (emit_move_sequence): Remove secondary reload support for floating
5853 point to shift amount amount register copies.
5854 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5855 amount register copies.
5856 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5857 register, return false if mode isn't a scalar integer mode.
5858 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5859
5860 2011-04-08 Richard Guenther <rguenther@suse.de>
5861
5862 * gimple.c (gimple_call_flags): Remove kludge.
5863
5864 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5865
5866 * sel-sched.c (sel_region_init): Move call to
5867 sel_setup_region_sched_flags after setup_current_loop_nest.
5868
5869 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5870
5871 PR rtl-optimization/48272
5872 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5873 init_insn_reg_pressure_info. Adjust a caller.
5874 * sched-int.h (init_insn_reg_pressure_info): Declare.
5875 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5876 when sched-pressure is enabled.
5877
5878 2011-04-08 Richard Guenther <rguenther@suse.de>
5879
5880 * gimple.c (gimple_set_modified): Do not queue calls to
5881 MODIFIED_NORETURN_CALLS here ...
5882 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5883
5884 2011-04-08 Richard Guenther <rguenther@suse.de>
5885
5886 PR lto/48467
5887 * toplev.c (lang_dependent_init): Do not open asm_out_file
5888 in WPA mode, nor perform debug machinery initialization.
5889 (finalize): Do not unlink asm_out_file in WPA mode.
5890
5891 2011-04-08 Richard Guenther <rguenther@suse.de>
5892
5893 * gimple.h (gimple_call_fntype): New function.
5894 (gimple_call_return_type): Use it.
5895 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5896 * gimple-low.c (gimple_check_call_args): Likewise.
5897 * gimple.c (gimple_call_flags): Likewise.
5898 (gimple_call_arg_flags): Likewise.
5899 (gimple_call_return_flags): Likewise.
5900 * tree-cfg.c (verify_gimple_call): Likewise.
5901 (do_warn_unused_result): Likewise.
5902 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5903 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5904
5905 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5906
5907 PR rtl-optimization/48235
5908 * sel-sched.c (code_motion_process_successors): Recompute the last
5909 insn in basic block if control flow changed.
5910 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5911 Update condition for ilist_remove.
5912
5913 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5914
5915 PR rtl-optimization/48302
5916 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5917 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5918 it to record added preheader blocks.
5919 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5920 on to sel_add_loop_preheaders.
5921 (sel_region_init): Move call to setup_current_loop_nest after
5922 sel_init_bbs.
5923
5924 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5925
5926 PR target/48273
5927 * cfgloop.h (loop_has_exit_edges): New helper.
5928 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5929 non-clonable.
5930 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5931 that have no exit edges.
5932
5933 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5934
5935 PR rtl-optimization/48442
5936 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5937 all callers. Adjust assert.
5938
5939 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5940
5941 PR tree-optimization/48377
5942 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5943 is_packed to true even for types with smaller TYPE_ALIGN than
5944 TYPE_SIZE.
5945
5946 2011-04-08 Richard Guenther <rguenther@suse.de>
5947
5948 PR bootstrap/48513
5949 * doc/tm.texi: Re-generate.
5950
5951 2011-04-08 Wei Guozhi <carrot@google.com>
5952
5953 PR target/47855
5954 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5955 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5956 * config/arm/arm.md (*push_multi): Change the length computation to
5957 call a C function.
5958
5959 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5960
5961 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5962 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5963 * doc/tm.texi: Regenerate.
5964 * system.h (ASM_OUTPUT_BSS): Poison.
5965 * varasm.c (asm_output_bss): Remove function.
5966 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5967
5968 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5969 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5970 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5971 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5972 Likewise.
5973 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5974 Likewise.
5975 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5976 Likewise.
5977 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5978
5979 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5980
5981 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5982 EnumValue lines.
5983
5984 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5985
5986 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5987 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5988 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5989 OPT_mcpu32.
5990 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5991 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5992 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5993 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5994 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5995 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5996 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5997 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5998 options. Don't map other m68k options manually. Don't handle
5999 old-style options as canonical.
6000 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6001 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6002
6003 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6004
6005 * basic-block.h (force_nonfallthru): Move to...
6006 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6007 (force_nonfallthru): ...here.
6008 * cfghooks.c (force_nonfallthru): New function.
6009 * cfgrtl.c (force_nonfallthru): Rename into...
6010 (rtl_force_nonfallthru): ...this.
6011 (commit_one_edge_insertion): Do not set AUX field.
6012 (commit_edge_insertions): Do not discover new basic blocks.
6013 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6014 (cfg_layout_rtl_cfg_hooks): Likewise.
6015 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6016 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6017 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6018
6019 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6020
6021 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6022 Remove macros.
6023
6024 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6025
6026 * config/i386/sse.md: Update copyright year.
6027 (avxcvtvecmode): Remove.
6028 (sse_movhlps): Merge with *avx_movhlps.
6029 (sse_movlhps): Merge with *avx_movlhps.
6030 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6031 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6032 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6033 (sse_loadhps): Merge with *avx_loadhps.
6034 (sse_storelps): Merge with *avx_storelps.
6035 (sse_loadlps): Merge with *avx_loadlps.
6036 (sse_movss): Merge with *avx_movss.
6037 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6038 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6039 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6040 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6041 (vec_set<mode>_0): Ditto.
6042 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6043 (sse4_1_insertps): Merge with *avx_insertps.
6044 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6045 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6046 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6047 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6048 (sse2_storehpd): Merge with *avx_storehpd.
6049 (sse2_loadhpd): Merge with *avx_loadhpd.
6050 (sse2_loadlpd): Merge with *avx_loadlpd.
6051 (sse2_movsd): Merge with *avx_movsd.
6052 (*vec_concatv2df): Merge with *vec_concatv2df.
6053
6054 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6055
6056 PR debug/48343
6057 * combine.c (combine_instructions): Add last_combined_insn,
6058 update it if insn is after it, pass it to all try_combine calls.
6059 (try_combine): Add last_combined_insn parameter, pass it instead of
6060 i3 to propagate_for_debug.
6061
6062 2011-04-07 Nick Clifton <nickc@redhat.com>
6063
6064 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6065 to handle MDR <-> data register transfers.
6066 (movhi_internal): Likewise.
6067
6068 2011-04-07 Alan Modra <amodra@gmail.com>
6069
6070 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6071 previous stack info.
6072
6073 2011-04-07 Tom de Vries <tom@codesourcery.com>
6074
6075 PR target/43920
6076 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6077 flow_find_cross_jump. Swap variables to implement backward replacement.
6078 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6079
6080 2011-04-07 Tom de Vries <tom@codesourcery.com>
6081
6082 PR target/43920
6083 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6084 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6085 and bb2.
6086 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6087 src1 or src2. Redirect edges to the last basic block. Update
6088 frequency and count on multiple basic blocks in case of fallthru.
6089
6090 2011-04-07 Tom de Vries <tom@codesourcery.com>
6091
6092 PR target/43920
6093 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6094 function.
6095 (old_insns_match_p): Change return type. Replace return false/true
6096 with return dir_none/dir_both. Use can_replace_by.
6097 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6098 direction from dir_p. Register replacement direction in dir, last_dir
6099 and afterlast_dir. Handle new return type of old_insns_match_p using
6100 merge_dir. Return replacement direction in dir_p.
6101 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6102 return type of old_insns_match_p.
6103 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6104 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6105 flow_find_cross_jump.
6106 * basic-block.h (enum replace_direction): New type.
6107 (flow_find_cross_jump): Add parameter to declaration.
6108
6109 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6110
6111 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6112 (AVXMODEDCVTPS2DQ): Ditto.
6113 (VEC_FLOAT_MODE): Ditto.
6114 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6115 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6116 (<any_logic:code><mode>3): Use VF mode iterator.
6117 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6118 Use VF mode iterator.
6119 (copysign<mode>3): Use VF mode iterator.
6120 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6121 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6122 (*<any_logic:code><MODEF:mode>3): Merge with
6123 *avx_<any_logic:code><MODEF:mode>3.
6124 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6125 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6126 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6127 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6128 (sse2_cvtdq2ps): Use %v modifier.
6129 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6130 (avx_cvtps2dq<avxmodesuffix>): Remove.
6131 (sse2_cvtps2dq): Use %v modifier.
6132 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6133 (avx_cvttps2dq<avxmodesuffix>): Remove.
6134 (sse2_cvttps2dq): Use %v modifier.
6135 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6136 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6137 (sse2_cvtsd2siq): Fix insn template.
6138 (sse2_cvtsd2siq_2): Ditto.
6139 (sse2_cvttsd2siq): Ditto.
6140 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6141 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6142
6143 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6144
6145 * gcov-io.c: Use GCC Runtime Library Exception.
6146
6147 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR debug/48466
6150 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6151 as base_reg whatever register reg has been eliminated to, instead
6152 of hardcoding STACK_POINTER_REGNUM.
6153
6154 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6155
6156 * doc/tm.texi.in: Document C target hooks as separate from general
6157 target hooks.
6158 * doc/tm.texi: Regenerate.
6159 * genhooks.c (struct hook_desc): Add docname field.
6160 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6161 docname field.
6162 (hook_array): Include c-target.def.
6163 (emit_documentation): Use docname field in output.
6164 (emit_init_macros): Take docname argument. Only emit definitions
6165 for hooks matching docname.
6166 (main): Expect additional arguments in all cases. Pass argument
6167 to emit_init_macros.
6168 * target.def: Move initial macro definitions and comments to
6169 target-hooks-macros.h.
6170 (gcc_targetcm): Move to c-family/c-target.def.
6171 * target.h (targetcm): Move declaration to c-family/c-target.h.
6172 * targhooks.c (default_handle_c_option): Move to
6173 c-family/c-opts.c.
6174 * targhooks.h (default_handle_c_option): Move declaration to
6175 c-family/c-common.h.
6176 * target-hooks-macros.h: New file.
6177 * config.gcc (target_has_targetcm): Define and use to add to
6178 c_target_objs and cxx_target_objs.
6179 * config/default-c.c: New file.
6180 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6181 of target.h and target-def.h.
6182 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6183 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6184 darwin_check_cfstring_format_arg): Make static.
6185 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6186 TARGET_STRING_OBJECT_REF_TYPE_P,
6187 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6188 * config/darwin-protos.h (darwin_objc_construct_string,
6189 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6190 declare.
6191 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6192 TARGET_STRING_OBJECT_REF_TYPE_P,
6193 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6194 * config/t-darwin (darwin-c.o): Update dependencies.
6195 * system.h (TARGET_HAS_TARGETCM): Poison.
6196 * Makefile.in (TARGET_H): Update.
6197 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6198 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6199 (default-c.o): New target.
6200 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6201 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6202 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6203 c-target.def.
6204 (build/genhooks.o): Update dependencies.
6205
6206 2011-04-06 Richard Guenther <rguenther@suse.de>
6207
6208 * ipa-inline.c (enum inlining_mode): Remove.
6209 (cgraph_flatten): Use some other token.
6210 (cgraph_edge_early_inlinable_p): New function, split out from ...
6211 (cgraph_perform_always_inlining): New function, split out from ...
6212 (cgraph_decide_inlining_incrementally): ... here.
6213 (cgraph_mark_inline_edge): Adjust.
6214 (cgraph_early_inlining): Re-structure.
6215 (pass_early_inline): Require SSA form.
6216
6217 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6218 Julian Brown <julian@codesourcery.com>
6219 Mark Shinwell <shinwell@codesourcery.com>
6220
6221 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6222 LO_REGS only for Thumb-1.
6223 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6224 be used in short instructions when optimising for size on Thumb-2.
6225
6226 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6227
6228 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6229 associated with user returns to be preserved.
6230
6231 2011-04-06 Tristan Gingold <gingold@adacore.com>
6232
6233 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6234 symbol_queue_size, DBXOUT_DECR_NESTING,
6235 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6236 if XCOFF_DEBUGGING_INFO.
6237
6238 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6239
6240 * config/i386/i386.md (attribute isa): New.
6241 (attribute enabled): New.
6242 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6243 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6244 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6245 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6246 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6247 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6248 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6249 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6250
6251 * config/i386/sse.md (VF): New mode iterator.
6252 (VF1): Ditto.
6253 (VF2): Ditto.
6254 (VF_128): Ditto.
6255 (SSEMODEF4): Remove.
6256 (attribute sse): Handle V8SF and V4DF modes.
6257 (<absneg:code><mode>2): Use VF mode iterator.
6258 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6259 mode iterator.
6260 (<plusminus_insn><mode>3): Use VF mode iterator.
6261 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6262 Use VF mode iterator.
6263 (<sse>_vm<plusminus_insn><mode>3): Merge with
6264 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6265 (mul<mode>3): Use VF mode iterator.
6266 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6267 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6268 mode iterator.
6269 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6270 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6271 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6272 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6273 mode iterator.
6274 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6275 Use VF1 mode iterator.
6276 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6277 (sqrt<VF2:mode>2): New expander.
6278 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6279 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6280 and sqrtv2df2. Use VF mode iterator.
6281 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6282 mode iterator.
6283 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6284 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6285 Use VF1 mode iterator.
6286 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6287 (<smaxmin:code><mode>3): Use VF mode iterator.
6288 (*<smaxmin:code><mode>3_finite): Merge with
6289 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6290 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6291 (<sse>_vm<smaxmin:code><mode>2): Merge with
6292 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6293 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6294 mode iterator.
6295 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6296 mode iterator.
6297 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6298 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6299 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6300 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6301 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6302 VF mode iterator.
6303 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6304 Use VF_128 mode iterator.
6305 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6306 mode iterator.
6307 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6308 VF_128 mode iterator.
6309 (vcond<mode>): Use VF mode iterator.
6310 * config/i386/predicates.md (sse_comparison_operator): Merge with
6311 avx_comparison_float_operator. Do not declare as special_predicate.
6312 * config/i386/i386.c (struct builtin_description): Update for renamed
6313 compare patterns.
6314 (ix86_expand_args_builtin): Ditto.
6315 (ix86_expand_sse_compare_mask): Ditto.
6316
6317 2011-04-06 Richard Guenther <rguenther@suse.de>
6318
6319 * tree-inline.c (estimate_num_insns): For calls simply account
6320 for all passed arguments and a used return value.
6321
6322 2011-04-06 Richard Guenther <rguenther@suse.de>
6323
6324 PR tree-optimization/47663
6325 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6326 call_stmt_time fields.
6327 (cgraph_edge_inlinable_p): Declare.
6328 (cgraph_edge_recursive_p): New inline function.
6329 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6330 (cgraph_clone_edge): Copy it.
6331 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6332 Account for call stmt time.
6333 (cgraph_estimate_time_after_inlining): Take edge argument.
6334 (cgraph_estimate_edge_growth): Account call stmt size.
6335 (cgraph_estimate_size_after_inlining): Take edge argument.
6336 (cgraph_mark_inline_edge): Adjust.
6337 (cgraph_check_inline_limits): Likewise.
6338 (cgraph_recursive_inlining_p): Remove.
6339 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6340 (cgraph_decide_recursive_inlining): Take edge argument and
6341 adjust.
6342 (cgraph_decide_inlining_of_small_functions): Do not avoid
6343 diags for recursive inlining here.
6344 (cgraph_flatten): Adjust.
6345 (cgraph_decide_inlining_incrementally): Likewise.
6346 (estimate_function_body_sizes): Remove call cost handling.
6347 (compute_inline_parameters): Initialize caller edge call costs.
6348 (cgraph_estimate_edge_growth): New function.
6349 (cgraph_estimate_growth): Use it.
6350 (cgraph_edge_badness): Likewise.
6351 (cgraph_check_inline_limits): Take an edge argument.
6352 (cgraph_decide_inlining_of_small_functions): Adjust.
6353 (cgraph_decide_inlining): Likewise.
6354 * tree-inline.c (estimate_num_insns): Only account for call
6355 return value if it is used.
6356 (expand_call_inline): Avoid diagnostics on recursive inline
6357 functions here.
6358 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6359 (input_edge): Input edge call costs.
6360
6361 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6362
6363 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6364
6365 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6366
6367 * doc/invoke.texi (Spec Files): Fix typo.
6368
6369 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6370
6371 * profile.c (branch_prob): Move declaration of local variable. Remove
6372 obsolete ??? comment. Expand the location explicitly instead of using
6373 the LOCATION_FILE and LOCATION_LINE macros.
6374
6375 2011-04-06 Wei Guozhi <carrot@google.com>
6376
6377 PR target/47855
6378 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6379 (arm_cond_branch): Likewise.
6380 (arm_cond_branch_reversed): Likewise.
6381 (arm_jump): Likewise.
6382 (push_multi): Likewise.
6383 * config/arm/constraints.md (Py): New constraint.
6384
6385 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6386
6387 PR bootstrap/48471
6388 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6389 Move these...
6390 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6391 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6392 #ifdef DBX_DEBUGGING_INFO.
6393
6394 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6395
6396 PR bootstrap/48403
6397 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6398 if old and new states differ.
6399
6400 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6401
6402 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6403 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6404 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6405 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6406 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6407 mcfv4e): Use Alias.
6408 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6409 ColdFire options to -mcpu= options.
6410
6411 2011-04-05 Jeff Law <law@redhat.com>
6412
6413 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6414 check if BB is a successor of LOOP->header and return
6415 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6416
6417 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6418
6419 * cprop.c (struct reg_use): Remove.
6420 (reg_use_table): Make an array of RTX.
6421 (find_used_regs, constprop_register, local_cprop_pass,
6422 bypass_block): Simplify users of reg_use_table.
6423 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6424 on one of the uses found by find_used_regs.
6425
6426 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6427
6428 PR bootstrap/48469
6429 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6430 declaration.
6431
6432 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6433
6434 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6435 as an rtx.
6436 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6437
6438 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6439
6440 PR middle-end/48441
6441 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6442
6443 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6444
6445 * combine.c: Include obstack.h.
6446 (struct insn_link): Define.
6447 (uid_log_links): Adjust type.
6448 (FOR_EACH_LOG_LINK): New macro.
6449 (insn_link_obstack): Declare.
6450 (alloc_insn_link): Define.
6451 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6452 type of link variables.
6453 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6454 (try_combine, record_promoted_values, distribute_notes): Likewise.
6455 (distribute_links): Likewise. Tweak prototype.
6456 (clear_log_links): Delete.
6457 (adjust_for_new_dest): Call alloc_insn_link.
6458 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6459
6460 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6461
6462 * gcse.c (modify_mem_list): Convert to an array of VECs.
6463 (canon_modify_mem_list, compute_transp): Tweak formatting.
6464 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6465 (load_killed_in_block_p): Likewise.
6466 (record_last_mem_set_info): Likewise.
6467 (clear_modify_mem_tables): Likewise.
6468
6469 2011-04-05 Tom de Vries <tom@codesourcery.com>
6470
6471 PR middle-end/48461
6472 * function.c (emit_use_return_register_into_block): Only define if
6473 HAVE_return.
6474
6475 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6476
6477 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6478
6479 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6480
6481 * config/rx/rx-opts.h: New.
6482 * config/rx/rx.c (rx_cpu_type): Remove.
6483 (rx_handle_option): Don't assert that global structures are in
6484 use. Access variables via opts pointer. Defer most handling of
6485 OPT_mint_register_. Use error_at.
6486 (rx_option_override): Handle deferred OPT_mint_register_ here.
6487 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6488 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6489 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6490 (rx_cpu_types): New Enum and EnumValue entries.
6491 (mint-register=): Use Defer and use Var accordingly.
6492
6493 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6494
6495 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6496 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6497 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6498 Move these...
6499 (debug_free_queue, debug_nesting, symbol_queue_index):
6500 ...and these...
6501 * dbxout.c: ...to here. Make static.
6502
6503 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6504
6505 * gcse.c (modify_pair): Define. Define a VEC of it.
6506 (canon_modify_mem_list): Convert to an array of VECs.
6507 (free_insn_expr_list_list): Delete.
6508 (clear_modify_mem_tables): Call VEC_free instead.
6509 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6510 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6511 (canon_list_insert, compute_transp): Likewise.
6512
6513 2011-04-05 Tom de Vries <tom@codesourcery.com>
6514
6515 PR target/43920
6516 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6517 for size.
6518
6519 2011-04-05 Tom de Vries <tom@codesourcery.com>
6520
6521 PR target/43920
6522 * function.c (emit_use_return_register_into_block): New function.
6523 (thread_prologue_and_epilogue_insns): Use
6524 emit_use_return_register_into_block.
6525
6526 2011-04-05 Tom de Vries <tom@codesourcery.com>
6527
6528 PR target/43920
6529 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6530 insn.
6531
6532 2011-04-05 Tom de Vries <tom@codesourcery.com>
6533
6534 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6535
6536 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6537
6538 * config/arm/arm.md (define_constants for unspec): Replace with
6539 define_c_enum.
6540 (define_constants for unspecv): Replace with define_c_enum.
6541 * config/arm/neon.md (define_constants for unspec): Replace with
6542 define_c_enum.
6543
6544 2011-04-04 Richard Henderson <rth@redhat.com>
6545
6546 PR bootstrap/48400
6547 * dwarf2out.c (output_line_info): Always emit line info from
6548 at least one section.
6549 (dwarf2out_init): Create text_section_line_info here ...
6550 (set_cur_line_info_table): ... not here.
6551
6552 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6553
6554 PR target/48380
6555 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6556 not called.
6557
6558 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6559
6560 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6561
6562 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6563 (expr_equiv_p): Remove.
6564 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6565 (hash_scan_set): Update call to insert_set_in_table.
6566 (dump_hash_table): Dump <dest, src> pair.
6567 (lookup_set): Simplify. Lookup <dest, src> pair.
6568 (compute_transp): Remove, fold heavily simplified code into...
6569 (compute_local_properties): ...here. Expect COMP and TRANSP
6570 unconditionally.
6571 (find_avail_set): Take set directly from struct expr.
6572 (find_bypass-set): Likewise.
6573 (bypass_block): Likewise.
6574 (cprop_insn): Likewise. Remove redundant INSN_P test.
6575
6576 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6577 checks on form of COND from find_implicit_sets to here.
6578 (find_implicit_sets): Cleanup control flow. Split critical edges
6579 if it exposes implicit sets. Allocate/resize implicit_sets as
6580 necessary.
6581 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6582 changed something. Run df_analyze after find_implicit_sets if any
6583 edges were split. Do not allocate implicit_sets here.
6584
6585 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6586 (gcse_obstack): Renamed to cprop_obstack.
6587 (GNEW, GNEWVEC, GNEWVAR): Remove.
6588 (gmalloc): Remove.
6589 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6590 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6591 (gcse_alloc): Likewise, and rename to cprop_alloc.
6592 (alloc_gcse_men, free_gcse_mem): Remove.
6593 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6594 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6595 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6596
6597 * cprop.c (oprs_not_set_p): Remove.
6598 (mark_set, mark_clobber): Remove.
6599 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6600 (reg_not_set_p): New function.
6601 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6602 (cprop_insn): Likewise.
6603 (cprop_jump): Use FOR_EACH_EDGE.
6604
6605 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6606
6607 PR bootstrap/48403
6608 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6609 (rank_for_schedule): Use scheduled_insns vector instead of
6610 last_scheduled_insn.
6611 (ok_for_early_queue_removal): Likewise.
6612 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6613 we have a dbg_cnt.
6614 (choose_ready): Likewise.
6615 (commit_schedule): Use VEC_iterate.
6616 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6617 a dbg_cnt, use it and ensure the first insn is in the ready list.
6618 (haifa_sched_init): Allocate scheduled_insns.
6619 (sched_extend_ready_list): Don't allocate it; reserve space.
6620 (haifa_sched_finish): Free it.
6621
6622 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6623
6624 * optc-gen.awk: Always remove type from Variable entry before
6625 recording in var_seen.
6626
6627 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6628
6629 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6630 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6631 call to tidy_fallthru_edges.
6632
6633 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6634
6635 * doc/options.texi (ToLower): Document.
6636 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6637 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6638 * opts.h (cl_option): Add cl_tolower field.
6639 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6640 arguments with lowercase strings.
6641 * config/rx/rx.opt (mcpu=): Add ToLower.
6642 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6643 argument.
6644
6645 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6646
6647 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6648
6649 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6650
6651 * config/vax/vax.c: Include reload.h.
6652
6653 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6654
6655 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6656 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6657 (sparc_preferred_reload_class): New function.
6658
6659 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6660
6661 PR debug/48401
6662 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6663 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6664
6665 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6666
6667 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6668 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6669
6670 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6671
6672 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6673 (ASM_OUTPUT_ALIGNED_BSS): Define.
6674
6675 2011-04-03 Michael Matz <matz@suse.de>
6676
6677 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6678 and next_slot members.
6679 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6680 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6681 (lto_streamer_cache_append): Declare.
6682 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6683 unsigned index, remove offset parameter, ensure that we append
6684 or update existing entries.
6685 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6686 parameter, update next_slot for append.
6687 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6688 parameter.
6689 (lto_streamer_cache_insert_at): Likewise.
6690 (lto_streamer_cache_append): New function.
6691 (lto_streamer_cache_lookup): Use unsigned index.
6692 (lto_streamer_cache_get): Likewise.
6693 (lto_record_common_node): Don't test tree_node_can_be_shared.
6694 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6695 (lto_streamer_cache_delete): Don't free offsets member.
6696 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6697 (lto_output_string_with_length): Use lto_output_data_stream.
6698 (lto_output_tree_header): Remove ix parameter, don't write it.
6699 (lto_output_builtin_tree): Likewise.
6700 (lto_write_tree): Adjust callers to above, don't track and write
6701 offset, write unsigned index.
6702 (output_unreferenced_globals): Don't emit all global vars.
6703 (write_global_references): Use unsigned indices.
6704 (lto_output_decl_state_refs): Likewise.
6705 (write_symbol): Likewise.
6706 * lto-streamer-in.c (lto_input_chain): Move earlier.
6707 (input_function): Use unsigned index.
6708 (input_alias_pairs): Don't read and then ignore all global vars.
6709 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6710 don't pass it back, use lto_streamer_cache_append.
6711 (lto_register_var_decl_in_symtab): Use unsigned index.
6712 (lto_register_function_decl_in_symtab): Likewise.
6713 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6714 index.
6715 (lto_get_builtin_tree): Don't read index, use
6716 lto_streamer_cache_append.
6717 (lto_read_tree): Adjust call to lto_materialize_tree.
6718
6719 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6720 don't use function calls in arguments to MIN.
6721
6722 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6723 twice.
6724
6725 * gimple.c (gimple_type_leader_entry): Mark deletable.
6726
6727 2011-04-03 Alan Modra <amodra@gmail.com>
6728
6729 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6730
6731 2011-04-03 Michael Matz <matz@suse.de>
6732
6733 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6734 an integer.
6735 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6736
6737 2011-04-03 Michael Matz <matz@suse.de>
6738
6739 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6740 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6741 without function context.
6742 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6743 current_function_decl and cfun.
6744
6745 2011-04-03 Michael Matz <matz@suse.de>
6746
6747 * tree.c (decl_init_priority_insert): Don't create entry for
6748 default priority.
6749 (decl_fini_priority_insert): Ditto.
6750 (fields_compatible_p, find_compatible_field): Remove.
6751 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6752 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6753
6754 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6755
6756 * combine.c (try_combine): Remove useless local variable.
6757
6758 2011-04-03 Richard Guenther <rguenther@suse.de>
6759 Ira Rosen <ira.rosen@linaro.org>
6760
6761 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6762 non-variable offsets and compare the remaining bases of the two
6763 accesses instead of looking for exact same data-ref.
6764
6765 2011-04-02 Kai Tietz <ktietz@redhat.com>
6766
6767 PR target/48416
6768 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6769
6770 * i386.c (ix86_is_msabi_thiscall): New helper function.
6771 (ix86_is_type_thiscall): New helper function.
6772 (ix86_comp_type_attributes): Handle thiscall for method-functions
6773 special.
6774 (init_cumulative_args): Likewise.
6775 (find_drap_reg): Likewise.
6776 (ix86_static_chain): Likewise.
6777 (x86_this_parameter): Likewise.
6778 (x86_output_mi_thunk): Likewise.
6779
6780 2011-04-01 Olivier Hainque <hainque@adacore.com>
6781 Nicolas Setton <setton@adacore.com>
6782 Eric Botcazou <ebotcazou@adacore.com>
6783
6784 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6785 (add_gnat_descriptive_type_attribute): New function.
6786 (gen_array_type_die): Call it.
6787 (gen_enumeration_type_die): Likewise.
6788 (gen_struct_or_union_type_die): Likewise.
6789 (modified_type_die): Likewise.
6790 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6791 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6792 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6793
6794 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6795
6796 PR bootstrap/48148
6797 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6798 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6799
6800 Revert:
6801 2011-03-17 Richard Guenther <rguenther@suse.de>
6802
6803 PR bootstrap/48148
6804 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6805 origin for decls in other ltrans units.
6806 (input_varpool_node): Likewise.
6807
6808 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6809
6810 PR middle-end/48335
6811 * expr.c (expand_assignment): Handle all possibilities
6812 if TO_RTX is CONCAT.
6813 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6814 (store_split_bit_field): If SUBREG_REG (op0) or
6815 op0 itself has smaller mode than word, return it
6816 for offset 0 and const0_rtx for out-of-bounds stores.
6817 If word is const0_rtx, skip it.
6818
6819 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6820
6821 * config/h8300/h8300.c (print_operand_address): Rename to...
6822 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6823 Call h8300_print_operand and h8300_print_operand_address instead of
6824 print_operand and print_operand_address. Declare.
6825 (print_operand): Renake to...
6826 (h8300_print_operand): ...this. Make static. Adjust comments.
6827 Call h8300_print_operand instead of print_operand. Declare.
6828 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6829 (h8300_register_move_cost): Likewise.
6830 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6831 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6832 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6833 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6834 * config/h8300/h8300-protos.h (print_operand): Delete.
6835 (print_operand_address): Delete.
6836
6837 2011-04-01 Richard Henderson <rth@redhat.com>
6838
6839 PR 48400
6840 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6841 in strict mode before dwarf4. Re-order tests to early out
6842 before switching sections.
6843
6844 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6845
6846 * config/h8300/constraints.md: New file.
6847 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6848 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6849 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6850 * config/h8300/predicates.md (bit_operand): Likewise.
6851 (incdec_operand): Use satisfies_constraint_M and
6852 satisfies_constraint_O. Don't use C code block.
6853 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6854 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6855 (compute_mov_length): Use satisfies_constraint_G.
6856 (fix_bit_operand): Use satisfies_constraint_U.
6857 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6858 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6859 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6860 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6861 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6862 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6863 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6864 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6865 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6866 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6867 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6868 (EXTRA_MEMORY_CONSTRAINT): Delete.
6869
6870 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6871 Michael Meissner <meissner@linux.vnet.ibm.com>
6872
6873 PR target/48262
6874 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6875 operands, as per the specifications.
6876
6877 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6878 (vec_extract_evenv4sf): Ditto.
6879 (vec_extract_evenv8hi): Ditto.
6880 (vec_extract_evenv16qi): Ditto.
6881 (vec_extract_oddv4si): Ditto.
6882
6883 2011-03-31 Mark Wielaard <mjw@redhat.com>
6884
6885 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6886 high_pc attribute if the CU has no associated code. Only output
6887 DW_AT_entry_pc for CU if not generating strict dwarf and
6888 dwarf_version < 4.
6889
6890 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6891
6892 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6893 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6894 out of ...
6895 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6896 * final.c (final_start_function): Call the new function rather
6897 than using a NULL argument for dwarf2out_frame_debug.
6898
6899 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6900 that contains the prologue.
6901
6902 * haifa-sched.c (queue_insn): New arg REASON. All callers
6903 changed. Print it in debugging output.
6904
6905 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6906
6907 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6908 Split most of the code into...
6909 (begin_move_insn): ... here. New function.
6910 (ebb_sched_info): Add a pointer to it.
6911 * haifa-sched.c (scheduled_insns): New static variable.
6912 (sched_extend_ready_list): Allocate it.
6913 (schedule_block): Use it to record the order of scheduled insns.
6914 Perform RTL changes to move insns only after all scheduling
6915 decisions have been made.
6916 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6917 begin_move_insn field.
6918 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6919 * sched-int.h (struct haifa_sched_info): Remove second argument
6920 from begin_schedule_ready hook. Add new member begin_move_insn.
6921 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6922 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6923
6924 * haifa-sched.c (prune_ready_list): New function, broken out of
6925 schedule_block.
6926 (schedule_block): Use it.
6927
6928 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6929
6930 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6931
6932 2011-04-01 Kai Tietz <ktietz@redhat.com>
6933
6934 * config.gcc (*-*-mingw*): Allow as option the
6935 posix threading model.
6936 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6937 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6938 definition.
6939 (CPP_SPEC): Add pthread/no-pthread handling.
6940 (LIB_SPEC): Likewise.
6941 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6942 (LIB_SPEC): Likewise.
6943 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6944 flag to pass -pthread option for shared libgcc build.
6945 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6946 for shared libgcc build.
6947 * config/i386/t-mingw-pthread: New file.
6948 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6949 New define to enable use of library pthread by default.
6950 * config/i386/mingw.opt (pthread): New driver option.
6951 (no-pthread): New driver option.
6952 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6953 * config/i386/mingw-w64.opt: Likewise.
6954
6955 2011-04-01 Gary Funck <gary@intrepid.com>
6956
6957 * c-decl.c (grokdeclarator): Fix formatting.
6958
6959 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6960
6961 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6962 instead of n_operands.
6963 (set_storage_via_setmem): Likewise.
6964 * optabs.c (maybe_gen_insn): Likewise.
6965 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6966 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6967 (mips_expand_builtin_direct): Likewise.
6968 * config/spu/spu.c (expand_builtin_args): Likewise.
6969
6970 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6971
6972 * recog.h (insn_data_d): Add n_generator_args.
6973 * genoutput.c (data): Likewise.
6974 (output_insn_data): Print it.
6975 (max_opno, num_dups): Delete.
6976 (scan_operands): Just fill in "d->operand[...]".
6977 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6978
6979 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6980
6981 * gensupport.h (pattern_stats): New structure.
6982 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6983 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6984 (max_operand_1, max_operand_vec): Delete.
6985 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6986
6987 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6988
6989 * emit-rtl.c (emit_pattern_after_setloc): New function.
6990 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6991 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6992 (emit_pattern_after): New function.
6993 (emit_insn_after, emit_jump_insn_after): Call it.
6994 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6995 (emit_pattern_before_setloc): New function.
6996 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6997 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6998 Likewise.
6999 (emit_pattern_before): New function.
7000 (emit_insn_before, emit_jump_insn_before): Call it.
7001 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7002
7003 2011-03-31 Richard Henderson <rth@redhat.com>
7004
7005 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7006 (dw_separate_line_info_entry): Remove.
7007 (enum dw_line_info_opcode): New.
7008 (dw_line_info_entry): Use it.
7009 (dw_line_info_table, dw_line_info_table_p): New.
7010 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7011 (line_info_table, line_info_label_num): Remove.
7012 (line_info_table_in_use): Remove.
7013 (separate_line_info_table): Remove.
7014 (separate_line_info_table_allocated): Remove.
7015 (separate_line_info_table_in_use): Remove.
7016 (LINE_INFO_TABLE_INCREMENT): Remove.
7017 (line_info_label_num): New.
7018 (cur_line_info_table): New.
7019 (text_section_line_info, cold_text_section_line_info): New.
7020 (separate_line_info): New.
7021 (SEPARATE_LINE_CODE_LABEL): Remove.
7022 (print_dwarf_line_table): Remove.
7023 (debug_dwarf): Don't dump it.
7024 (output_one_line_info_table): New.
7025 (output_line_info): Use it.
7026 (new_line_info_table): New.
7027 (set_cur_line_info_table): New.
7028 (dwarf2out_switch_text_section): Use it.
7029 (dwarf2out_begin_function): Likewise.
7030 (push_dw_line_info_entry): New.
7031 (dwarf2out_source_line): Rewrite for new line info tables.
7032 (dwarf2out_init): Remove dead initailizations.
7033
7034 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7035
7036 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7037 various flags.
7038 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7039 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7040 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7041 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7042 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7043 * opt-functions.awk (flag_init, switch_bit_fields): New.
7044 (switch_flags): Don't handle flags moved to bit-fields. Don't
7045 generate CL_MISSING_OK or CL_SAVE.
7046 * optc-gen.awk: Update to generate bit-field output as well as
7047 flags field.
7048 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7049 bit-field instead of CL_REJECT_DRIVER flag.
7050 * opts-common.c (generate_canonical_option,
7051 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7052 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7053 instead of CL_REJECT_NEGATIVE flag.
7054 * toplev.c (print_switch_values): Use cl_report bit-field instead
7055 of CL_REPORT flag.
7056
7057 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7058
7059 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7060 a zero minimum index only if it is redundant.
7061
7062 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7063
7064 PR rtl-optimization/48381
7065 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7066 instead of ira_class_hard_reg_index for calculating conflicting
7067 hard registers.
7068
7069 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7070
7071 * cprop.c: Clean up hash table building.
7072 (reg_avail_info): Remove.
7073 (oprs_available_p): Remove.
7074 (record_last_reg_set_info): Remove.
7075 (record_last_set_info): Remove.
7076 (reg_available_p): New function.
7077 (gcse_constant_p): Do not treat unfolded conditions as constants.
7078 (make_set_regs_unavailable): New function.
7079 (hash_scan_set): Simplify with new reg_available_p.
7080 (compute_hash_table_work): Traverse insns stream only once.
7081 Do not compute reg_avail_info. Traverse insns in reverse order.
7082 Record implicit sets after recording explicit sets from the block.
7083
7084 2011-03-31 Michael Matz <matz@suse.de>
7085
7086 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7087
7088 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7089
7090 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7091 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7092 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7093 (h8300_mode_dependent_address_p): New function.
7094 (h8300_get_index): Make static.
7095
7096 2011-03-31 Jeff Law <law@redhat.com>
7097
7098 * reload1.c (elimination_effects): Fix typo in recent change.
7099
7100 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7101 typo potentially leading to null pointer dereference.
7102
7103 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7104 (setup_save_areas): Corresponding changes to avoid useless
7105 assignments.
7106
7107 * jump.c (reversed_comparison_code_parts): Avoid successive return
7108 statements when REVERSE_CONDITION is defined.
7109
7110 * expr.c (expand_assignment): Avoid useless assignments.
7111 (expand_expr_real_1): Likewise.
7112 (expand_expr_real_2): Avoid useless statements.
7113
7114 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7115
7116 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7117
7118 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7119 statements.
7120
7121 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7122
7123 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7124
7125 PR target/47109
7126 * doc/tm.texi.in (TARGET_VERSION): Remove.
7127 * doc/tm.texi: Regenerate.
7128 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7129 * collect2.c (main): Don't use TARGET_VERSION.
7130 * mips-tdump.c (main): Don't use TARGET_VERSION.
7131 * mips-tfile.c (main): Don't use TARGET_VERSION.
7132 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7133 * config/rs6000/vxworksae.h: Remove.
7134 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7135 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7136 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7137 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7138 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7139 * config/arm/arm.h (TARGET_VERSION): Remove.
7140 * config/arm/coff.h (TARGET_VERSION): Remove.
7141 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7142 * config/arm/elf.h (TARGET_VERSION): Remove.
7143 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7144 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7145 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7146 * config/arm/pe.h (TARGET_VERSION): Remove.
7147 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7148 * config/arm/semi.h (TARGET_VERSION): Remove.
7149 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7150 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7151 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7152 * config/avr/avr.h (TARGET_VERSION): Remove.
7153 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7154 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7155 * config/frv/frv.h (TARGET_VERSION): Remove.
7156 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7157 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7158 * config/i386/darwin.h (TARGET_VERSION): Remove.
7159 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7160 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7161 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7162 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7163 * config/i386/gnu.h (TARGET_VERSION): Remove.
7164 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7165 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7166 * config/i386/linux.h (TARGET_VERSION): Remove.
7167 * config/i386/linux64.h (TARGET_VERSION): Remove.
7168 * config/i386/lynx.h (TARGET_VERSION): Remove.
7169 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7170 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7171 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7172 * config/i386/netware.h (TARGET_VERSION): Remove.
7173 * config/i386/nto.h (TARGET_VERSION): Remove.
7174 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7175 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7176 * config/ia64/elf.h (TARGET_VERSION): Remove.
7177 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7178 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7179 * config/ia64/linux.h (TARGET_VERSION): Remove.
7180 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7181 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7182 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7183 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7184 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7185 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7186 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7187 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7188 * config/m68k/linux.h (TARGET_VERSION): Remove.
7189 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7190 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7191 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7192 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7193 * config/mep/mep.h (TARGET_VERSION): Remove.
7194 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7195 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7196 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7197 * config/mips/linux.h (TARGET_VERSION): Remove.
7198 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7199 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7200 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7201 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7202 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7203 * config/pa/pa.h (TARGET_VERSION): Remove.
7204 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7205 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7206 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7207 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7208 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7209 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7210 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7211 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7212 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7213 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7214 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7215 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7216 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7217 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7218 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7219 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7220 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7221 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7222 * config/s390/linux.h (TARGET_VERSION): Remove.
7223 * config/s390/s390.h (TARGET_VERSION): Remove.
7224 * config/s390/tpf.h (TARGET_VERSION): Remove.
7225 * config/score/score.h (TARGET_VERSION): Remove.
7226 * config/sh/linux.h (TARGET_VERSION): Remove.
7227 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7228 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7229 * config/sh/sh.h (TARGET_VERSION): Remove.
7230 * config/sh/sh64.h (TARGET_VERSION): Remove.
7231 * config/sh/superh.h (TARGET_VERSION): Remove.
7232 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7233 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7234 * config/sparc/linux.h (TARGET_VERSION): Remove.
7235 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7236 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7237 TARGET_NAME32, TARGET_NAME): Remove.
7238 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7239 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7240 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7241 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7242 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7243 * config/spu/spu.h (TARGET_VERSION): Remove.
7244 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7245 * config/v850/v850.h (TARGET_VERSION): Remove.
7246 * config/vax/linux.h (TARGET_VERSION): Remove.
7247 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7248 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7249 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7250
7251 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7252
7253 PR target/48142
7254 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7255 frame-related from frame-unrelated adjustments to the stack pointer.
7256
7257 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7258
7259 * common.opt (fdebug-types-section): Move earlier.
7260 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7261
7262 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7263
7264 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7265 var.
7266
7267 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7268
7269 * tree.h (CASE_CHAIN): Define.
7270 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7271 (gimple_redirect_edge_and_branch): Likewise.
7272
7273 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7274
7275 PR middle-end/48367
7276 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7277 calculation.
7278
7279 2011-03-30 Jeff Law <law@redhat.com>
7280
7281 * PR bootstrap/48371
7282 * reload1.c (reload): Fix botch in last change.
7283
7284 * reload.h (struct reload): Fix typo introduced in last change.
7285
7286 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7287
7288 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7289 Undocumented. Remove help text.
7290 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7291 -mhard-float.
7292
7293 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7294
7295 * doc/options.texi (NegativeAlias): Document.
7296 (Alias): Mention NegativeAlias.
7297 * opt-functions.awk: Handle NegativeAlias.
7298 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7299 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7300 * opts.h (CL_NEGATIVE_ALIAS): Define.
7301 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7302 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7303 OPT_mspe_.
7304 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7305 Alias entries.
7306 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7307 mno-spe and mno-isel instead of mspe=no and -misel=no.
7308
7309 2011-03-29 Mark Wielaard <mjw@redhat.com>
7310
7311 * common.opt (fdebug-types-section): New flag.
7312 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7313 * dwarf2out.c (use_debug_types): New define.
7314 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7315 (print_die): Guard output of type unit signatures using
7316 use_debug_types.
7317 (build_abbrev_table): Replace assert of dwarf_version >= 4
7318 with assert on use_debug_types.
7319 (size_of_die): Likewise.
7320 (unmark_dies): Likewise.
7321 (value_format): Decide AT_ref_external form on use_debug_types.
7322 (output_die): Replace dwarf_version version check guard with
7323 use_debug_types where appropriate.
7324 (modified_type_die): Likewise.
7325 (gen_reference_type_die): Likewise.
7326 (dwarf2out_start_source_file): Likewise.
7327 (dwarf2out_end_source_file): Likewise.
7328 (prune_unused_types_walk_attribs): Likewise.
7329 (dwarf2out_finish): Likewise.
7330
7331 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7332
7333 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7334
7335 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7336
7337 PR rtl-optimization/48332
7338 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7339 mode of input operand N and modeN to its actual mode.
7340
7341 2011-03-30 Jeff Law <law@redhat.com>
7342
7343 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7344 define accessor macro.
7345 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7346 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7347 (reg_equiv_init): Likewise.
7348 (reg_equivs_size): New variable.
7349 (reg_equiv_init_size): Remove.
7350 (allocate_initial_values): Move prototype to here from....
7351 * integrate.h (allocate_initial_values): Remove prototype.
7352 * integrate.c: Include reload.h.
7353 (allocate_initial_values): Corresponding changes.
7354 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7355 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7356 (update_equiv_regs): Corresponding changes.
7357 (ira): Corresponding changes.
7358 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7359 (push_secondary_reload): Corresponding changes.
7360 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7361 (make_memloc, find_reloads_address): Corresponding changes.
7362 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7363 (find_reloads_address_1): Corresponding changes.
7364 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7365 (refers_to_regno_for_reload_p): Corresponding changes.
7366 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7367 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7368 * reload1.c: Include ggc.h.
7369 (grow_reg_equivs): New function.
7370 (replace_pseudos_in, reload): Corresponding changes.
7371 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7372 (eliminate_regs_1, elimination_effects): Corresponding changes.
7373 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7374 (delete_output_reload): Likewise.
7375 * caller-save.c (mark_referenced_regs): Corresponding changes.
7376 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7377 * frv/predicates.md (frv_load_operand): Corresponding changes.
7378 * microblaze/microblaze.c (double_memory_operand): Corresponding
7379 changes.
7380 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7381 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7382 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7383 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7384 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7385 changes.
7386 * pa/pa.c (emit_move_sequence): Corresponding changes.
7387 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7388
7389 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7390
7391 PR target/47551
7392 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7393 structure modes. Don't check neon_vector_mem_operand for
7394 vector or structure modes.
7395
7396 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7397 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7398
7399 PR target/43590
7400 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7401 operand 1 and reshuffle the operands to match.
7402 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7403
7404 2011-03-30 Christian Schüler <cschueler@gmx.de>
7405
7406 PR driver/48208
7407 * config/c.opt (F): Added 'Driver' to -F option.
7408
7409 PR driver/48260
7410 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7411 handler function.
7412 * config/darwin.opt: Added '-arch' option.
7413
7414 2011-03-30 Nick Clifton <nickc@redhat.com>
7415
7416 * config/rx/rx.md: Add peepholes and patterns to combine
7417 extending loads and simple arithmetic instructions.
7418 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7419 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7420 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7421 modes to use pre-decrement and post-increment addressing.
7422 (rx_is_restricted_memory_address): Add range checking of REG+INT
7423 addresses.
7424 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7425 (rx_memory_move_cost): Adjust cost of stores.
7426 (rx_adjust_insn_length): New function.
7427
7428 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7429
7430 PR c/48305
7431 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7432 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7433 matching arg00/arg01 types.
7434
7435 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7436
7437 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7438 last_location to UNKNOWN_LOCATION.
7439
7440 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7441
7442 PR target/48349
7443 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7444 FLOAT_SSE_REGS.
7445
7446 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7447 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7448
7449 PR bootstrap/48337
7450 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7451 Init(PROCESSOR_V7).
7452 (sparc_cpu): Likewise.
7453 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7454 PROCESSOR_V7.
7455
7456 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7457
7458 PR target/48336
7459 PR middle-end/48342
7460 PR rtl-optimization/48345
7461 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7462 hard regs for given mode from profitable regs when doing secondary
7463 allocation.
7464
7465 2011-03-29 Jeff Law <law@redhat.com>
7466
7467 PR bootstrap/48327
7468 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7469 do_not_duplicate field.
7470 (lookup_redirection_data): Corresponding changes.
7471 (create_duplicates): Always create a template block.
7472 (redirect_edges): Remove code which reused the original block
7473 when it was going to become unreachable code.
7474 (thread_block): Don't set do_not_duplicate field.
7475
7476 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7477
7478 * lto-opts.c (register_user_option_p, lto_register_user_option):
7479 Make type argument unsigned.
7480 * lto-streamer.h (lto_register_user_option): Make type argument
7481 unsigned.
7482 * opth-gen.awk: Make CL_* macros unsigned.
7483 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7484 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7485 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7486 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7487 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7488 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7489 (find_opt): Make lang_mask argument unsigned.
7490
7491 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7492
7493 PR rtl-optimization/48331
7494 PR rtl-optimization/48334
7495 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7496 for any used algorithm.
7497
7498 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7499
7500 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7501 to parent_max.
7502
7503 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7504
7505 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7506 (alpha_option_override): Don't set alpha_sr_alias_set.
7507 (emit_frame_store_1): Use gen_frame_mem rather than calling
7508 set_mem_alias_set.
7509 (alpha_expand_epilogue): Ditto.
7510
7511 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7512
7513 PR tree-optimization/48290
7514 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7515 vectorization, check that relevant phis in the basic block after
7516 the inner loop are really inner loop's exit phis.
7517
7518 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7519
7520 PR debug/48190
7521 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7522 (cached_dw_loc_list_def): New structure.
7523 (cached_dw_loc_list): New typedef.
7524 (cached_dw_loc_list_table): New variable.
7525 (cached_dw_loc_list_table_hash): New function.
7526 (cached_dw_loc_list_table_eq): Likewise.
7527 (add_location_or_const_value_attribute): Take a bool cache_p.
7528 Cache the list when the parameter is true.
7529 (gen_formal_parameter_die): Update caller.
7530 (gen_variable_die): Likewise.
7531 (dwarf2out_finish): Likewise.
7532 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7533 while generating debug info for the decl.
7534 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7535 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7536 (resolve_addr): Cache the result of resolving a chain of
7537 location lists.
7538
7539 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7540
7541 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7542 conflict object hard regset nodes have intersecting hard reg sets.
7543
7544 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7545 after regstat_init_n_sets_and_refs.
7546
7547 * ira.c: Add more comments at the top.
7548 (setup_stack_reg_pressure_class, setup_pressure_classes):
7549 Add comments how we compute the register pressure classes.
7550 (setup_allocno_and_important_classes): Add more comments.
7551 (setup_class_translate_array, reorder_important_classes)
7552 (setup_reg_class_relations): Add comments.
7553
7554 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7555 start of the file.
7556
7557 * ira-color.c: Add 2011 to the Copyright line.
7558 (assign_hard_reg): Add more comments.
7559 (improve_allocation): Ditto.
7560
7561 * ira-costs.c: Add 2011 to the Copyright line.
7562 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7563 comments.
7564 (setup_regno_cost_classes_by_mode): Ditto.
7565
7566 Initial patches from ira-improv branch:
7567
7568 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7569
7570 * ira-build.c (ira_create_object): Remove initialization of
7571 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7572 (ira_create_allocno): Remove initialization of
7573 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7574 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7575 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7576 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7577 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7578 Initialize ALLOCNO_ADD_DATA.
7579 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7580 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7581 ALLOCNO_REG.
7582 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7583 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7584
7585 * ira.c (ira_reallocate): Remove.
7586 (setup_pressure_classes): Call
7587 ira_init_register_move_cost_if_necessary. Use
7588 ira_register_move_cost instead of ira_get_register_move_cost.
7589 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7590 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7591
7592 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7593 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7594 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7595 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7596 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7597 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7598 Fix formatting.
7599 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7600 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7601 (struct allocno_color_data): New.
7602 (allocno_color_data_t): New typedef.
7603 (allocno_color_data): New definition.
7604 (ALLOCNO_COLOR_DATA): New macro.
7605 (struct object_color_data): New.
7606 (object_color_data_t): New typedef.
7607 (object_color_data): New definition.
7608 (OBJECT_COLOR_DATA): New macro.
7609 (update_copy_costs, calculate_allocno_spill_cost): Call
7610 ira_init_register_move_cost_if_necessary. Use
7611 ira_register_move_cost instead of ira_get_register_move_cost.
7612 (move_spill_restore, update_curr_costs): Ditto.
7613 (allocno_spill_priority): Make it inline.
7614 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7615 (struct coalesce_data, coalesce_data_t): New.
7616 (allocno_coalesce_data): New definition.
7617 (ALLOCNO_COALESCE_DATA): New macro.
7618 (merge_allocnos, coalesced_allocno_conflict_p): Use
7619 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7620 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7621 (coalesce_allocnos): Ditto.
7622 (setup_coalesced_allocno_costs_and_nums): Ditto.
7623 (collect_spilled_coalesced_allocnos): Ditto.
7624 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7625 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7626 (coalesce_spill_slots): Ditto.
7627 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7628 free allocno_coalesce_data.
7629
7630 * ira-conflicts.c: Fix formatting.
7631 (process_regs_for_copy): Call
7632 ira_init_register_move_cost_if_necessary. Use
7633 ira_register_move_cost instead of ira_get_register_move_cost.
7634 (build_object_conflicts): Optimize.
7635
7636 * ira-costs.c (record_reg_classes): Optimize. Call
7637 ira_init_register_move_cost_if_necessary. Use
7638 ira_register_move_cost, ira_may_move_in_cost, and
7639 ira_may_move_out_cost instead of ira_get_register_move_cost and
7640 ira_get_may_move_cost.
7641 (record_address_regs): Ditto.
7642 (scan_one_insn): Optimize.
7643 (find_costs_and_classes): Optimize.
7644 (process_bb_node_for_hard_reg_moves): Call
7645 ira_init_register_move_cost_if_necessary. Use
7646 ira_register_move_cost instead of ira_get_register_move_cost.
7647
7648 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7649 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7650 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7651 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7652 definitions.
7653 (ira_initiate_emit_data, ira_finish_emit_data)
7654 (create_new_allocno): New functions.
7655 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7656 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7657 Use ira_register_move_cost instead of ira_get_register_move_cost.
7658
7659 * ira-int.h: Fix some comments.
7660 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7661 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7662 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7663 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7664 add_data.
7665 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7666 bitfield after mode. Make hard_regno a short int. Make
7667 hard_regno short. Remove first_coalesced_allocno and
7668 next_coalesced_allocno. Move mem_optimized_dest_p,
7669 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7670 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7671 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7672 temp, colorable_p. Add new member add_data.
7673 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7674 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7675 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7676 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7677 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7678 (ALLOCNO_ADD_DATA): New macro.
7679 (ira_emit_data_t): New typedef.
7680 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7681 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7682 from struct ira_allocno.
7683 (ALLOCNO_EMIT_DATA): New macro.
7684 (ira_allocno_emit_data, allocno_emit_reg): New.
7685 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7686 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7687 (OBJECT_ADD_DATA): New macro.
7688 (ira_reallocate): Remove.
7689 (ira_initiate_emit_data, ira_finish_emit_data): New.
7690 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7691 (ira_init_register_move_cost_if_necessary): New.
7692 (ira_object_conflict_iter_next): Merge into
7693 ira_object_conflict_iter_cond.
7694 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7695
7696 * ira-live.c (process_single_reg_class_operands): Call
7697 ira_init_register_move_cost_if_necessary. Use
7698 ira_register_move_cost instead of ira_get_register_move_cost.
7699
7700 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7701
7702 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7703
7704 * ira-costs.c: Fix formatting.
7705 (cost_classes, cost_classes_num): Remove.
7706 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7707 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7708 (cost_classes_del, cost_classes_htab): New.
7709 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7710 (initiate_regno_cost_classes, setup_cost_classes): New.
7711 (setup_regno_cost_classes_by_aclass): New.
7712 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7713 (record_reg_classes): Use regno_cost_classes instead of
7714 cost_classes. Move checking opposite operand up.
7715 (record_address_regs): Use regno_cost_classes
7716 instead of cost_classes.
7717 (scan_one_insn): Ditto. Use always general register.
7718 (print_allocno_costs): Use regno_cost_classes instead of
7719 cost_classes.
7720 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7721 (find_costs_and_classes): Set up cost classes for each registers.
7722 Use also their mode for this. Use regno_cost_classes instead of
7723 cost_classes.
7724 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7725 cost_classes.
7726 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7727 (ira_costs, ira_set_pseudo_classes): Call
7728 initiate_regno_cost_classes and finish_regno_cost_classes.
7729
7730 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7731
7732 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7733
7734 * target.def (ira_cover_classes): Remove.
7735
7736 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7737
7738 * doc/tm.texi.in: Ditto.
7739
7740 * ira-conflicts.c: Remove mentioning cover classes from the file.
7741 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7742 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7743
7744 * targhooks.c (default_ira_cover_classes): Remove.
7745
7746 * targhooks.h (default_ira_cover_classes): Ditto.
7747
7748 * haifa-sched.c: Remove mentioning cover classes from the file.
7749 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7750 ira_pressure_classes and ira_pressure_classes_num instead of
7751 ira_reg_class_cover_size and ira_reg_class_cover. Use
7752 sched_regno_pressure_class instead of sched_regno_cover_class.
7753 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7754 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7755
7756 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7757 classes from the file.
7758 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7759 (struct object_hard_regs, struct object_hard_regs_node): New.
7760 (struct ira_object): New members profitable_hard_regs,
7761 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7762 (struct ira_allocno): Rename cover_class to aclass. Rename
7763 cover_class_cost and updated_cover_class_cost to class_cost and
7764 updated_class_cost. Remove splay_removed_p and
7765 left_conflict_size. Add new members colorable_p.
7766 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7767 (ALLOCNO_COLORABLE_P): New macro.
7768 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7769 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7770 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7771 (OBJECT_...): Rename parameter C to O.
7772 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7773 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7774 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7775 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7776 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7777 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7778 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7779 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7780 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7781 x_ira_reg_class_subunion.
7782 (ira_max_memory_move_cost, ira_max_register_move_cost)
7783 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7784 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7785 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7786 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7787 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7788 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7789 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7790 (ira_tune_allocno_costs_and_cover_classes): Rename to
7791 ira_tune_allocno_costs.
7792 (ira_debug_hard_regs_forest): New.
7793 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7794 (ira_object_conflict_iter_next): Fix comments.
7795 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7796 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7797 cover_class to aclass.
7798 (ira_allocate_and_accumulate_costs): Ditto.
7799 (ira_allocate_and_set_or_copy_costs): Ditto.
7800
7801 * opts.c (decode_options): Remove ira_cover_class check.
7802
7803 * ira-color.c: Remove mentioning cover classes from the file. Use
7804 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7805 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7806 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7807 (splay-tree.h): Remove include.
7808 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7809 before copy_freq_compare_func.
7810 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7811 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7812 New definitions.
7813 (hard_regs_roots, hard_regs_node_vec): Ditto.
7814 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7815 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7816 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7817 (create_new_object_hard_regs_node): Ditto.
7818 (add_new_object_hard_regs_node_to_forest): Ditto.
7819 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7820 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7821 Ditto.
7822 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7823 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7824 (remove_unused_object_hard_regs_nodes): Ditto.
7825 (enumerate_object_hard_regs_nodes): Ditto.
7826 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7827 (object_hard_regs_subnode_t): Ditto.
7828 (struct object_hard_regs_subnode): Ditto.
7829 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7830 (setup_object_hard_regs_subnode_index): Ditto.
7831 (get_object_hard_regs_subnodes_num): Ditto.
7832 (form_object_hard_regs_nodes_forest): Ditto.
7833 (finish_object_hard_regs_nodes_tree): Ditto.
7834 (finish_object_hard_regs_nodes_forest): Ditto.
7835 (allocnos_have_intersected_live_ranges_p): Rename to
7836 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7837 (pseudos_have_intersected_live_ranges_p): Rename to
7838 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7839 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7840 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7841 (update_copy_costs): Remove assert. Skip cost update if the hard
7842 reg does not belong the class.
7843 (assign_hard_reg): Process only profitable hard regs.
7844 (uncolorable_allocnos_num): Make it scalar.
7845 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7846 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7847 and ira_reg_class_max_nregs.
7848 (bucket_allocno_compare_func): Check frequency first.
7849 (sort_bucket): Add compare function as a parameter.
7850 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7851 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7852 (push_allocno_to_stack): Rewrite for checking new allocno
7853 colorability.
7854 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7855 (push_only_colorable): Pass new parameter to sort_bucket.
7856 (push_allocno_to_spill): Remove.
7857 (allocno_spill_priority_compare): Make it inline and rewrite.
7858 (splay_tree_allocate, splay_tree_free): Remove.
7859 (allocno_spill_sort_compare): New function.
7860 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7861 build and use splay tree. Choose first allocno in uncolorable
7862 allocno bucket to spill. Remove setting spill cost.
7863 (all_conflicting_hard_regs): Remove.
7864 (setup_allocno_available_regs_num): Check only profitable hard
7865 regs. Print info about hard regs nodes.
7866 (setup_allocno_left_conflicts_size): Remove.
7867 (put_allocno_into_bucket): Don't call
7868 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7869 (improve_allocation): New.
7870 (color_allocnos): Call setup_profitable_hard_regs,
7871 form_object_hard_regs_nodes_forest, improve_allocation,
7872 finish_object_hard_regs_nodes_forest. Setup spill cost.
7873 (print_loop_title): Use pressure classes.
7874 (color_allocnso): Ditto.
7875 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7876 and allocnos_for_spilling.
7877 (ira_sort_regnos_for_alter_reg): Don't setup members
7878 {first,next}_coalesced_allocno.
7879 (color): Remove allocating and freeing removed_splay_allocno_vec.
7880 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7881 prohibited_class_mode_regs.
7882
7883 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7884 formatting.
7885 (update_allocno_pressure_excess_length): Use pressure classes.
7886 (inc_register_pressure, dec_register_pressure): Check for pressure
7887 class.
7888 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7889 pressure class. Use ira_reg_class_nregs instead of
7890 ira_reg_class_max_nregs.
7891 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7892 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7893 (single_reg_class): Use ira_reg_class_nregs instead of
7894 ira_reg_class_max_nregs.
7895 (process_bb_node_lives): Use pressure classes.
7896
7897 * ira-emit.c: Remove mentioning cover classes from the file. Use
7898 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7899 (change_loop): Use pressure classes.
7900 (modify_move_list): Call ira_set_allocno_class instead of
7901 ira_set_allocno_cover_class.
7902
7903 * ira-build.c: Remove mentioning cover classes from the file. Use
7904 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7905 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7906 ALLOCNO_UPDATED_CLASS_COST instead of
7907 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7908 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7909 (ira_create_allocno): Remove initialization of
7910 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7911 ALLOCNO_COLORABLE_P.
7912 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7913 Update conflict regs for the objects.
7914 (create_cap_allocno): Remove assert. Don't propagate
7915 ALLOCNO_AVAILABLE_REGS_NUM.
7916 (ira_free_allocno_costs): New function.
7917 (finish_allocno): Change a part of code into call of
7918 ira_free_allocno_costs.
7919 (low_pressure_loop_node_p): Use pressure classes.
7920 (object_range_compare_func): Don't compare classes.
7921 (setup_min_max_conflict_allocno_ids): Ditto.
7922
7923 * loop-invariant.c: Remove mentioning cover classes from the file.
7924 Use ira_pressure_classes and ira_pressure_classes_num instead of
7925 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7926 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7927 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7928 Use reg_allocno_class instead of reg_cover_class.
7929 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7930 STACK_REG_COVER_CLASS.
7931 (get_regno_cover_class): Rename to get_regno_pressure_class.
7932 (move_loop_invariants): Initialize and finalize regstat.
7933
7934 * ira.c: Remove mentioning cover classes from the file. Add
7935 comments about coloring without cover classes. Use ALLOCNO_CLASS
7936 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7937 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7938 setup_class_subset_and_memory_move_costs.
7939 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7940 (setup_cover_and_important_classes): Rename to
7941 setup_allocno_and_important_classes.
7942 (setup_class_translate_array): New.
7943 (setup_class_translate): Call it for allocno and pressure classes.
7944 (cover_class_order): Rename to allocno_class_order.
7945 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7946 of ira_class_translate.
7947 (reorder_important_classes): Set up ira_important_class_nums.
7948 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7949 (print_class_cover): Rename to print_classes. Add parameter.
7950 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7951 Print pressure classes too.
7952 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7953 setup_reg_subclasses.
7954 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7955 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7956 (setup_prohibited_class_mode_regs): Use
7957 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7958 (clarify_prohibited_class_mode_regs): New function.
7959 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7960 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7961 (ira_init_once): Initialize them.
7962 (free_register_move_costs): Process them.
7963 (ira_init): Move calls of find_reg_classes and
7964 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7965 Call clarify_prohibited_class_mode_regs.
7966 (ira_no_alloc_reg): Remove.
7967 (too_high_register_pressure_p): Use pressure classes.
7968
7969 * sched-deps.c: Remove mentioning cover classes from the file.
7970 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7971 ira_pressure_classes and ira_pressure_classes_num instead of
7972 ira_reg_class_cover_size and ira_reg_class_cover.
7973 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7974 sched_regno_pressure_class instead of sched_regno_cover_class.
7975 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7976 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7977
7978 * ira.h: Add 2010 to Copyright.
7979 (ira_no_alloc_reg): Remove external.
7980 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7981 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7982 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7983 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7984 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7985 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7986 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7987 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7988 x_ira_no_alloc_regs.
7989 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7990 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7991 ira_allocno_classes_num and ira_allocno_classes.
7992 (ira_class_translate): Rename to ira_allocno_class_translate.
7993 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7994 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7995 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7996 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7997 (ira_no_alloc_regs): New.
7998
7999 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8000 classes from the file. Use ALLOCNO_CLASS instead of
8001 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8002 ALLOCNO_COVER_CLASS_COST.
8003 (regno_cover_class): Rename to regno_aclass.
8004 (record_reg_classes): Use ira_reg_class_subunion instead of
8005 ira_reg_class_union.
8006 (record_address_regs): Check overflow.
8007 (scan_one_insn): Ditto.
8008 (print_allocno_costs): Print total mem cost fore regional allocation.
8009 (print_pseudo_costs): Use REG_N_REFS.
8010 (find_costs_and_classes): Use classes intersected with them on the
8011 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8012 ira_reg_class_union. Use ira_allocno_class_translate and
8013 regno_aclass instead of ira_class_translate and regno_cover_class.
8014 Modify code for finding regno_aclass. Setup preferred classes for
8015 the next pass.
8016 (setup_allocno_cover_class_and_costs): Rename to
8017 setup_allocno_class_and_costs. Use regno_aclass instead of
8018 regno_cover_class. Use ira_set_allocno_class instead of
8019 ira_set_allocno_cover_class.
8020 (init_costs, finish_costs): Use regno_aclass instead of
8021 regno_cover_class.
8022 (ira_costs): Use setup_allocno_class_and_costs instead of
8023 setup_allocno_cover_class_and_costs.
8024 (ira_tune_allocno_costs_and_cover_classes): Rename to
8025 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8026 by processing objects. Use ira_reg_class_max_nregs instead of
8027 ira_reg_class_nregs.
8028
8029 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8030
8031 * sched-int.h: Remove mentioning cover classes from the file.
8032 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8033
8034 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8035 classes from the file.
8036 (struct reg_pref): Rename coverclass into allocnoclass.
8037 (reg_cover_class): Rename to reg_allocno_class.
8038
8039 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8040
8041 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8042
8043 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8044
8045 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8046
8047 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8048
8049 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8050
8051 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8052
8053 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8054
8055 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8056
8057 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8058
8059 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8060 (i386_ira_cover_classes): Ditto.
8061
8062 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8063
8064 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8065
8066 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8067
8068 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8069
8070 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8071
8072 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8073
8074 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8075 (mips_ira_cover_classes): Ditto.
8076
8077 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8078
8079 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8080
8081 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8082
8083 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8084
8085 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8086
8087 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8088 (IRA_COVER_CLASSES_VSX): Ditto.
8089
8090 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8091 (rs6000_ira_cover_classes): Ditto.
8092
8093 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8094
8095 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8096
8097 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8098
8099 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8100
8101 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8102
8103 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8104
8105 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8106
8107 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8108
8109 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8110
8111 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8112
8113 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8114
8115 PR debug/48253
8116 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8117 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8118 dw_fde_unlikely_section_end_label, cold_in_std_section,
8119 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8120 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8121 fields.
8122 (output_fde): Use dw_fde_second_{begin,end} if second is
8123 true, otherwise dw_fde_{begin,end}.
8124 (output_call_frame_info): Test dw_fde_second_begin != NULL
8125 instead of dw_fde_switched_sections.
8126 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8127 fields, initialize new fields. Initialize in_std_section
8128 unconditionally from the first partition.
8129 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8130 dw_fde_second_begin is non-NULL.
8131 (dwarf2out_switch_text_section): Stop initializing removed
8132 dw_fde_struct fields, initialize new fields, initialize
8133 also dw_fde_end here. Set dw_fde_switch_cfi even when
8134 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8135 (struct var_loc_list_def): Add last_before_switch field.
8136 (arange_table, arange_table_allocated, arange_table_in_use,
8137 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8138 (size_of_aranges): Count !in_std_section and !second_in_std_section
8139 hunks in fdes, instead of looking at arange_table_in_use.
8140 (output_aranges): Add aranges_length argument, don't call
8141 size_of_aranges here. Instead of using aranges_table*
8142 emit ranges for fdes when !in_std_section resp.
8143 !second_in_std_section.
8144 (dw_loc_list): Break ranges crossing section switch.
8145 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8146 use dw_fde_second_end instead of dw_fde_end as end of last range.
8147 (gen_subprogram_die): Don't call add_arange. Use
8148 dw_fde_{begin,end} for first partition and if switched
8149 section dw_fde_second_{begin,end} for the second.
8150 (var_location_switch_text_section_1,
8151 var_location_switch_text_section): New functions.
8152 (dwarf2out_begin_function): Initialize cold_text_section even
8153 when function_section () isn't text_section.
8154 (prune_unused_types): Don't walk arange_table.
8155 (dwarf2out_finish): Don't needlessly test
8156 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8157 If info_section_emitted, call size_of_aranges and if it indicates
8158 non-empty .debug_aranges, call output_aranges with the computed
8159 size. Stop using removed dw_fde_struct fields, use
8160 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8161 for second.
8162
8163 PR debug/48203
8164 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8165 create ENTRY_VALUE if incoming or address of incoming's MEM
8166 is a hard REG.
8167 * dwarf2out.c (mem_loc_descriptor): Don't emit
8168 DW_OP_GNU_entry_value of DW_OP_fbreg.
8169 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8170 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8171 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8172 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8173 ENTRY_VALUE_EXPs.
8174 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8175 is a REG_P or MEM_P with REG_P address, compute hash directly
8176 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8177 (preserve_only_constants): Don't clear VALUES forwaring
8178 ENTRY_VALUE to some other VALUE.
8179
8180 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8181
8182 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8183 instead of GEN_INT.
8184
8185 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8186
8187 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8188 block before expanding the statement.
8189 (expand_gimple_stmt_1): Likewise. Set them here...
8190 (expand_gimple_stmt): ...and not here. Tidy.
8191 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8192 unknown.
8193
8194 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8195
8196 * Makefile.in: New rule for cprop.o.
8197 * gcse.c: Move constant/copy propagation to cprop.c.
8198 (compute_local_properties): Only handle expression tables.
8199 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8200 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8201 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8202 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8203 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8204 compute_cprop_data, find_used_regs, try_replace_reg,
8205 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8206 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8207 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8208 find_bypass_set, reg_killed_on_edge, bypass_block,
8209 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8210 execute_rtl_cprop, pass_rtl_cprop): Move to...
8211 * cprop.c: ...here. New file, constant/copy propagation for RTL
8212 moved from gcse.c to here with minor cleanups in duplicated code.
8213
8214 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8215
8216 * config/i386/i386.c (flag_opts): Fix a typo in
8217 -mavx256-split-unaligned-store.
8218
8219 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8220
8221 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8222 LIBCALL_VALUE): Remove macros.
8223 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8224 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8225 (h8300_function_value, h8300_libcall_value,
8226 h8300_function_value_regno_p): New functions.
8227
8228 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8229
8230 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8231
8232 2011-03-28 Jeff Law <law@redhat.com>
8233
8234 * tree-ssa-threadupdate.c (redirect_edges): Call
8235 create_edge_and_update_destination_phis as needed.
8236 (create_edge_and_update_destination_phis): Accept new BB argument.
8237 All callers updated.
8238 (thread_block): Do not update the profile when threading around
8239 intermediate blocks.
8240 (thread_single_edge): Likewise.
8241 (determine_bb_domination_status): If BB is not a successor of the
8242 loop header, return NONDOMINATING.
8243 (register_jump_thread): Note when we register a jump thread around
8244 an intermediate block.
8245 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8246 (thread_across_edge): Use it.
8247
8248 2011-03-28 Tristan Gingold <gingold@adacore.com>
8249
8250 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8251 when for_return is 2.
8252
8253 2011-03-28 Jeff Law <law@redhat.com>
8254
8255 * var-tracking.c (canonicalize_values_mark): Delete unused
8256 lhs assignment.
8257 (canonicalize_values_star, set_variable_part): Likewise.
8258 (clobber_variable_part, delete_variable_part): Likewise.
8259
8260 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8261
8262 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8263
8264 2011-03-28 Martin Jambor <mjambor@suse.cz>
8265
8266 * tree-inline.c (expand_call_inline): Do not check that destination
8267 node is analyzed.
8268 (optimize_inline_calls): Assert that destination node is analyzed.
8269 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8270 not call tree_lowering_passes.
8271 * cgraph.h (cgraph_analyze_function): Declare.
8272 * cgraphunit.c (cgraph_analyze_function): Make public.
8273
8274 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8275
8276 * config/sparc/sparc-opts.h: New.
8277 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8278 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8279 (sparc_option_override): Store processor_type enumeration rather
8280 than string in cpu_default. Remove name and enumeration from
8281 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8282 without using sparc_select. Use target_flags_explicit instead of
8283 fpu_option_set.
8284 * config/sparc/sparc.h (enum processor_type): Move to
8285 sparc-opts.h.
8286 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8287 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8288 HeaderInclude entry.
8289 (mcpu=, mtune=): Use Var and Enum.
8290 (sparc_processor_type): New Enum and EnumValue entries.
8291
8292 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8293 Iain Sandoe <iains@gcc.gnu.org>
8294
8295 PR target/48245
8296 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8297
8298 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8299
8300 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8301 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8302 Insert new statements at it in lieu of STMT.
8303 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8304 * tree-vect-stmts.c (vectorizable_store): Likewise.
8305 (vectorizable_load): Likewise.
8306
8307 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8308
8309 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8310 (divtf3): Ditto.
8311 (multf3): Ditto.
8312 (subtf3): Ditto.
8313
8314 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8315
8316 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8317 unaligned 256bit load/store.
8318 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8319 (*avx_movdqu<avxmodesuffix>): Likewise.
8320
8321 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8322
8323 PR target/48288
8324 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8325 * config/pa/pa.md (iordi3): Use new predicate in expander.
8326 (iorsi3): Likewise.
8327
8328 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8329
8330 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8331 FUNCTION_VALUE_REGNO_P): Remove macros.
8332 * config/mips/mips-protos.h (mips_function_value): Remove.
8333 * config/mips/mips.c (mips_function_value): Rename to...
8334 (mips_function_value_1): ... this. Make static. Handle receiving
8335 the function type in 'fn_decl_or_type' argument.
8336 (mips_function_value, mips_libcall_value,
8337 mips_function_value_regno_p): New function.
8338 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8339 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8340
8341 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8342
8343 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8344 and -mavx256-split-unaligned-store.
8345 (ix86_option_override_internal): Split 32-byte AVX unaligned
8346 load/store by default.
8347 (ix86_avx256_split_vector_move_misalign): New.
8348 (ix86_expand_vector_move_misalign): Use it.
8349
8350 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8351 -mavx256-split-unaligned-store.
8352
8353 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8354 256bit load/store. Generate unaligned store on misaligned memory
8355 operand.
8356 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8357 256bit load/store.
8358 (*avx_movdqu<avxmodesuffix>): Likewise.
8359
8360 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8361 -mavx256-split-unaligned-store.
8362
8363 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8364
8365 PR target/38598
8366 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8367 Update commentary.
8368
8369 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8370
8371 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8372 opno arguments with an expand_operand. Use create_input_operand.
8373 (mips_prepare_builtin_target): Delete.
8374 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8375 functions.
8376 (mips_expand_builtin_direct): Use create_output_operand and
8377 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8378 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8379 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8380
8381 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8382
8383 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8384 function.
8385 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8386
8387 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8388
8389 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8390 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8391 basic blocks and call commit_edge_insertions directly.
8392 (fixup_abnormal_edges): Move from here to...
8393 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8394 on the edges and return whether some have actually been inserted.
8395 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8396 compensation code.
8397
8398 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8399
8400 PR rtl-optimization/48144
8401 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8402 (merge_expr_data): ... here.
8403 (av_set_intersect): Rename to av_set_code_motion_filter.
8404 Update all callers. Call merge_history_vect when an expression
8405 is found in both sets.
8406 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8407
8408 2011-03-26 Alan Modra <amodra@gmail.com>
8409
8410 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8411 cmodel medium addresses.
8412 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8413 64-bit gpr loads and stores.
8414 (rs6000_secondary_reload_ppc64): New function.
8415 * config/rs6000/rs6000-protos.h: Declare it.
8416 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8417
8418 2011-03-26 Alan Modra <amodra@gmail.com>
8419
8420 PR target/47487
8421 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8422 GNU Go in traceback table.
8423
8424 2011-03-25 Richard Henderson <rth@redhat.com>
8425
8426 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8427 if there are exactly 6 operands.
8428 (set_storage_via_setmem): Similarly.
8429
8430 2011-03-25 Kai Tietz <ktietz@redhat.com>
8431
8432 * collect2.c (write_c_file_stat): Handle backslash
8433 as right-hand directory separator.
8434 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8435 checking just for slash.
8436 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8437 instead of checking for trailing slash.
8438 * gcc.c (record_temp_file): Use filename_cmp instead
8439 of strcmp.
8440 (do_spec_1): Likewise.
8441 (replace_outfile_spec_function): Likewise.
8442 (is_directory): Use filename_ncmp instead of strncmp.
8443 (print_multilib_info): Likewise.
8444 * gcov.c (find_source): Use filename_cmp instead
8445 instead of strcmp.
8446 (make_gcov_file_name): Fix order of slash/backslash
8447 checks.
8448 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8449 (add_standard_paths): Likewise.
8450 * mips-tfile.c (saber_stop): Handle backslash.
8451 * prefix.c (update_path): Use filename_ncmp instead of
8452 strncmp.
8453 * profile.c (output_location): Use filename_cmp instead
8454 of strcmp.
8455 * read-md.c (handle_toplevel_file): Handle backslash.
8456 * tlink.c (frob_extension): Likewise.
8457 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8458 strcmp.
8459 * tree-dump.c (dequeue_and_dump): Handle backslash.
8460 * tree.c (get_file_function_name): Likewise.
8461 * gengtype.c (read_input_list): Likewise.
8462 (get_file_realbasename): Likewise.
8463 (get_output_file_with_visibility): Use filename_cmp
8464 instead of strcmp.
8465
8466 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8467
8468 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8469 case to VFPv1.
8470
8471 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8472
8473 * fold-const.c (expr_location_or): New function.
8474 (fold_truth_not_expr): Call it.
8475
8476 2011-03-25 Jeff Law <law@redhat.com>
8477
8478 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8479 va_end.
8480 * c-family/c-common.c (def_fn_type): Likewise.
8481 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8482 * emit-rtl.c (gen_rtvec): Likewise.
8483 * lto/lto-lang.c (def_fn_type): Likewise.
8484
8485 2011-03-25 Richard Guenther <rguenther@suse.de>
8486
8487 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8488 also generate copies.
8489 (fini_copy_prop): Handle constant values properly.
8490
8491 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8492
8493 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8494 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8495 (hash_loc_operands, compare_loc_operands): Handle
8496 DW_OP_GNU_entry_value.
8497
8498 2011-03-25 Kai Tietz <ktietz@redhat.com>
8499
8500 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8501 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8502 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8503 comment and use macro TARGET_64BIT_MS_ABI instead.
8504 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8505 and change default behavior for 32-bit MS_ABI.
8506 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8507 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8508 32-bit, too.
8509 (ix86_cfun_abi): Likewise.
8510 (ix86_maybe_switch_abi): Adjust comment.
8511 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8512 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8513 instead of checking for SYSV_ABI.
8514 (ix86_nsaved_sseregs): Likewise.
8515 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8516 to 16 bytes.
8517 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8518 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8519 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8520 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8521 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8522
8523 2011-03-25 Richard Guenther <rguenther@suse.de>
8524
8525 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8526 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8527 (verify_gimple): Remove.
8528 * tree-cfg.c (verify_gimple_call): Merge verification
8529 from verify_stmts.
8530 (verify_gimple_phi): Merge verification from verify_stmts.
8531 (verify_gimple_label): New function.
8532 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8533 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8534 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8535 (verify_stmts): Rename to verify_gimple_in_cfg.
8536 (verify_gimple_in_cfg): New function.
8537 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8538 * tree-ssa.c (verify_ssa): Likewise.
8539 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8540
8541 2011-03-25 Richard Guenther <rguenther@suse.de>
8542
8543 * passes.c (init_optimization_passes): Add FRE pass after
8544 early SRA.
8545
8546 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8547 Andrew Stubbs <ams@codesourcery.com>
8548
8549 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8550 for Cortex-A8.
8551 (arm_movdi_vfp_cortexa8): New pattern.
8552 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8553 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8554 instructions when tuning for Cortex-A8. Set attribute "arch".
8555 * config/arm/arm.md: Move include arm-tune.md up a bit.
8556 (define_attr "arch"): Add "onlya8" and "nota8" values.
8557 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8558
8559 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8560
8561 PR bootstrap/48282
8562 Revert:
8563 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8564
8565 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8566 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8567 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8568 * passes.c (init_optimization_passes): Move
8569 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8570
8571 2011-03-25 Kai Tietz <ktietz@redhat.com>
8572
8573 * c-typeck.c (comptypes_internal): Replace target
8574 hook call of comp_type_attributes by version in tree.c file.
8575 * gimple.c (gimple_types_compatible_p_1): Likewise.
8576 * tree-ssa.c (useless_type_conversion_p): Likewise.
8577 * tree.c (build_type_attribute_qual_variant): Likewise.
8578 (attribute_value_equal): New static helper function.
8579 (comp_type_attributes): New function.
8580 (merge_attributes): Use attribute_value_equal for comparison.
8581 (attribute_list_contained): Likewise.
8582 * tree.h (comp_type_attributes): New prototype.
8583
8584 2011-03-25 Richard Guenther <rguenther@suse.de>
8585
8586 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8587 of complex types at -O0.
8588 (verify_gimple_assign_binary): Likewise.
8589 (verify_gimple_assign_ternary): Likewise.
8590
8591 2011-03-24 Mark Wielaard <mjw@redhat.com>
8592
8593 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8594 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8595
8596 2011-03-24 Mark Wielaard <mjw@redhat.com>
8597
8598 PR debug/48041
8599 * dwarf2out.c (output_abbrev_section): Only write table when
8600 abbrev_die_table_in_use > 1.
8601
8602 2011-02-24 Richard Henderson <rth@redhat.com>
8603
8604 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8605 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8606 (alpha_expand_unaligned_load_words): Use extql.
8607 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8608 (emit_insxl): Handle all modes for consistency.
8609
8610 2011-02-24 Richard Henderson <rth@redhat.com>
8611
8612 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8613 (alpha_expand_unaligned_load): Likewise.
8614 (alpha_expand_unaligned_store): Likewise.
8615 (alpha_expand_unaligned_load_words): Likewise.
8616 (alpha_expand_unaligned_store_words): Likewise.
8617 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8618 (alpha_split_lock_test_and_set_12): Likewise.
8619 (print_operand, alpha_fold_builtin_extxx): Likewise.
8620 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8621 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8622 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8623 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8624 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8625 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8626 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8627 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8628 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8629 (extwl, extll, extql): Similarly.
8630 (inswh, inslh, insqh): Similarly.
8631 (mskbl, mskwl, mskll, mskql): Similarly.
8632 (mskwh, msklh, mskqh): Similarly.
8633
8634 2011-02-24 Richard Henderson <rth@redhat.com>
8635
8636 * config/alpha/alpha.md (attribute isa): Add er, ner.
8637 (attribute enabled): Handle them.
8638 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8639
8640 2011-02-24 Richard Henderson <rth@redhat.com>
8641
8642 * config/alpha/alpha.md (attribute isa): Add vms.
8643 (attribute enabled): Handle it.
8644 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8645 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8646 (*movtf): Rename from *movtf_internal for consistency.
8647 (*movsi): Merge with *movsi_nt_vms.
8648 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8649 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8650 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8651 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8652
8653 2011-02-24 Richard Henderson <rth@redhat.com>
8654
8655 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8656 (extendqisi2, extendhisi2): Likewise.
8657 (extendqidi2): Simplify BWX/non-BWX expansions.
8658 (extendhidi2): Similarly.
8659
8660 2011-02-24 Richard Henderson <rth@redhat.com>
8661
8662 * config/alpha/alpha.md (attribute isa): New.
8663 (attribute enabled): New.
8664 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8665 (zero_extendqisi2, zero_extendqidi2): Similarly.
8666 (zero_extendhisi2, zero_extendhidi2): Similarly.
8667 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8668
8669 2011-02-24 Richard Henderson <rth@redhat.com>
8670
8671 * config/alpha/predicates.md (input_operand): Revert last change;
8672 update comment to mention 32-bit VMS rather than Windows.
8673
8674 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8675
8676 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8677 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8678 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8679 * passes.c (init_optimization_passes): Move
8680 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8681
8682 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8683
8684 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8685
8686 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8687
8688 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8689 correctly.
8690
8691 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8692
8693 PR debug/48204
8694 * simplify-rtx.c (simplify_const_unary_operation): Call
8695 real_convert when changing mode class with FLOAT_EXTEND.
8696
8697 2011-03-24 Nick Clifton <nickc@redhat.com>
8698
8699 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8700 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8701 * config/rx/rx.c (rx_option_override): Set align_jumps,
8702 align_loops and align_labels if not set by the user.
8703 (rx_align_for_label): New function.
8704 (rx_max_skip_for_label): New function.
8705 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8706 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8707 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8708 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8709 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8710
8711 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8712
8713 PR rtl-optimization/48263
8714 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8715 and original commutative_p handling. Use maybe_gen_insn.
8716
8717 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8718
8719 * reload.c (find_reloads_subreg_address): Add address_reloaded
8720 parameter and return true there if the full address has been
8721 reloaded.
8722 (find_reloads_toplev): Pass address_reloaded flag.
8723 (find_reloads_address_1): Don't use address_reloaded parameter.
8724
8725 2011-03-24 Jeff Law <law@redhat.com>
8726
8727 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8728 unused variable "ann".
8729 (remove_unused_locals): Likewise.
8730
8731 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8732 statement.
8733
8734 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8735 after it is freed.
8736
8737 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8738
8739 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8740 for invalid symbolic addresses.
8741 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8742 larl operands.
8743
8744 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8745
8746 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8747 the argument in calls to fold_truth_not_expr.
8748
8749 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8750
8751 * tree.c (record_node_allocation_statistics): New function.
8752 (make_node_stat, copy_node_stat, build_string): Call it.
8753 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8754 (build1_stat, build_omp_clause): Likewise.
8755
8756 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8757
8758 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8759 last commit.
8760
8761 2011-03-24 Richard Guenther <rguenther@suse.de>
8762
8763 PR tree-optimization/48271
8764 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8765 blocks that still exist.
8766
8767 2011-03-24 Richard Guenther <rguenther@suse.de>
8768
8769 PR tree-optimization/48270
8770 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8771 not free datarefs before ddrs.
8772
8773 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8774
8775 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8776 from the address built for a reference with variable offset.
8777
8778 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8779
8780 PR target/48237
8781 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8782 alternatives that can be handled with movq or movabsq insn.
8783 (*movdf_internal): Disable for !TARGET_64BIT.
8784 (*movdf_internal_nointeger): Ditto.
8785 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8786
8787 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8788
8789 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8790 (FUNCTION_ARG_ADVANCE): Likewise.
8791 * tm.texi.in: Change references to them to hook references.
8792 * tm.texi: Regenerate.
8793 * targhooks.c (default_function_arg): Eliminate check for target macro.
8794 (default_function_incoming_arg): Likewise.
8795 (default_function_arg_advance): Likewise.
8796 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8797 (function_arg_advance): Likewise.
8798 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8799
8800 2011-03-24 Richard Guenther <rguenther@suse.de>
8801
8802 PR middle-end/48269
8803 * tree-object-size.c (addr_object_size): Do not double-account
8804 for MEM_REF offsets.
8805
8806 2011-03-24 Diego Novillo <dnovillo@google.com>
8807
8808 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8809 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8810 (lto_input_data_block): Move from lto-opts.c. Make extern.
8811 Update all users.
8812 (lto_input_string): Rename from input_string. Make extern.
8813 Update all users.
8814 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8815 output_string_with_length.
8816 Output 0 to indicate a non-NULL string. Update all callers to
8817 not emit 0.
8818 (lto_output_string): Rename from output_string. Make extern.
8819 Update all users.
8820 (lto_output_decl_state_streams): Make extern.
8821 (lto_output_decl_state_refs): Make extern.
8822 * lto-streamer.h (lto_input_string): Declare.
8823 (lto_input_data_block): Declare.
8824 (lto_output_string): Declare.
8825 (lto_output_string_with_length): Declare.
8826 (lto_output_decl_state_streams): Declare.
8827 (lto_output_decl_state_refs): Declare.
8828
8829 2011-03-24 Richard Guenther <rguenther@suse.de>
8830
8831 PR tree-optimization/46562
8832 * tree.c (build_invariant_address): New function.
8833 * tree.h (build_invariant_address): Declare.
8834 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8835 a renamed function moved ...
8836 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8837 Take valueization callback parameter.
8838 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8839 * gimple-fold.h: New file.
8840 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8841 (ccp_fold, fold_const_aggregate_ref,
8842 fold_ctor_reference, fold_nonarray_ctor_reference,
8843 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8844 get_base_constructor): Move ...
8845 * gimple-fold.c: ... here.
8846 (gimple_fold_stmt_to_constant_1): New function
8847 split out from ccp_fold. Take a valueization callback parameter.
8848 Valueize all operands.
8849 (gimple_fold_stmt_to_constant): New wrapper function.
8850 (fold_const_aggregate_ref_1): New function split out from
8851 fold_const_aggregate_ref. Take a valueization callback parameter.
8852 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8853 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8854 invariant POINTER_PLUS_EXPRs to invariant form.
8855 (vn_valueize): New function.
8856 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8857 * tree-vrp.c (vrp_valueize): New function.
8858 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8859 to fold statements to constants.
8860 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8861 function declarations.
8862 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8863 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8864
8865 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8866
8867 * config/h8300/predicates.md (jump_address_operand): Fix register
8868 mode check.
8869
8870 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8871
8872 * doc/invoke.texi (max-stores-to-sink): Document.
8873 * params.h (MAX_STORES_TO_SINK): Define.
8874 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8875 if either vectorization or if-conversion is disabled.
8876 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8877 tree-vect-data-refs.c vect_equal_offsets.
8878 (dr_equal_offsets_p): New function.
8879 (find_data_references_in_bb): Remove static.
8880 * tree-data-ref.h (find_data_references_in_bb): Declare.
8881 (dr_equal_offsets_p): Likewise.
8882 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8883 (vect_drs_dependent_in_basic_block): Update calls to
8884 vect_equal_offsets.
8885 (vect_check_interleaving): Likewise.
8886 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8887 (cond_if_else_store_replacement): Rename to...
8888 (cond_if_else_store_replacement_1): ... this. Change arguments and
8889 documentation.
8890 (cond_if_else_store_replacement): New function.
8891 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8892 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8893
8894 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8895
8896 PR target/46934
8897 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8898 to subtract lower bound instead of GEN_INT().
8899
8900 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8901
8902 PR other/48179
8903 PR other/48221
8904 PR other/48234
8905 * doc/extend.texi (Alignment): Move section to match order in TOC.
8906 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8907 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8908
8909 2011-03-23 Jeff Law <law@redhat.com>
8910
8911 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8912 before removing the edge.
8913
8914 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8915 it may have been freed by redirect_branch_edge or
8916 redirect_edge_succ_nodup.
8917
8918 2011-03-23 Richard Guenther <rguenther@suse.de>
8919
8920 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8921 (check_va_list_escapes): Likewise.
8922 (check_all_va_list_escapes): Likewise.
8923
8924 2011-03-23 Richard Guenther <rguenther@suse.de>
8925
8926 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8927 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8928 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8929 (alias.o): Likewise.
8930 (ipa-type-escape.o): Remove.
8931 (ipa-struct-reorg.o): Likewise.
8932 (GTFILES): Remove ipa-struct-reorg.c.
8933 * alias.c: Do not include ipa-type-escape.h.
8934 * tree-ssa-alias.c: Likewise.
8935 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8936 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8937 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8938 and ipa-type-escape passes.
8939 * tree-pass.h (pass_ipa_type_escape): Remove.
8940 (pass_ipa_struct_reorg): Likewise.
8941 * ipa-struct-reorg.h: Remove.
8942 * ipa-struct-reorg.c: Likewise.
8943 * ipa-type-escape.h: Likewise.
8944 * ipa-type-escape.c: Likewise.
8945 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8946 (--param struct-reorg-cold-struct-ratio): Likewise.
8947 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8948 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8949 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8950
8951 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8952
8953 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8954 cpu attribute value.
8955 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8956 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8957 * config/s390/s390.c (processor_flags_table): New constant array.
8958 (s390_handle_arch_option): Remove.
8959 (s390_handle_option): Remove s390_handle_arch_option invocations
8960 and OPT_mwarn_framesize_ handling.
8961 (s390_option_override): Remove s390_handle_arch_option invocation.
8962 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8963 warnings.
8964 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8965 * config/s390/s390.opt (s390_tune, s390_arch)
8966 (march=): Replace s390_arch_option enum and values with
8967 processor_type. Set variable name to s390_arch. Set
8968 initialization value.
8969 (mtune=): Replace s390_arch_option with processor_type. Set
8970 variable name to s390_tune. Set initialization value.
8971
8972 2011-03-23 Julian Brown <julian@codesourcery.com>
8973
8974 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8975 accesses which are not naturally aligned.
8976
8977 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8978
8979 PR target/47553
8980 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8981
8982 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8983
8984 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8985 parameter from "int" to "enum insn_code".
8986 (expand_operand_type): New enum.
8987 (expand_operand): New structure.
8988 (create_expand_operand): New function.
8989 (create_fixed_operand, create_output_operand): Likewise
8990 (create_input_operand, create_convert_operand_to): Likewise.
8991 (create_convert_operand_from, create_address_operand): Likewise.
8992 (create_integer_operand): Likewise.
8993 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8994 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8995 (expand_insn, expand_jump_insn): Likewise.
8996 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8997 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8998 (expand_movstr, expand_builtin___clear_cache): Likewise.
8999 (expand_builtin_lock_release): Likewise.
9000 * explow.c (allocate_dynamic_stack_space): Likewise.
9001 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9002 and use the default handling in that case.
9003 * expmed.c (check_predicate_volatile_ok): Delete.
9004 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9005 (emit_cstore): Likewise.
9006 * expr.c (emit_block_move_via_movmem): Likewise.
9007 (set_storage_via_setmem, expand_assignment): Likewise.
9008 (emit_storent_insn, try_casesi): Likewise.
9009 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9010 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9011 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9012 (expand_twoval_unop, expand_twoval_binop): Likewise.
9013 (expand_unop_direct, emit_indirect_jump): Likewise.
9014 (emit_conditional_move, vector_compare_rtx): Likewise.
9015 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9016 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9017 (expand_sync_lock_test_and_set): Likewise.
9018 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9019 (emit_unop_insn): Likewise.
9020 (expand_copysign_absneg): Change icode to an insn_code.
9021 (create_convert_operand_from_type): New function.
9022 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9023 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9024 (expand_insn, expand_jump_insn): Likewise.
9025 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9026 than const_int_operand for operand 2.
9027
9028 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9029
9030 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9031 if possible.
9032
9033 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9034
9035 * emit-rtl.c (emit_pattern_before_noloc): New function.
9036 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9037 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9038 (emit_pattern_after_noloc): New function.
9039 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9040 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9041
9042 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9043
9044 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9045 (__ffsDI2): Likewise.
9046
9047 2011-03-22 Richard Henderson <rth@redhat.com>
9048
9049 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9050 of !TARGET_ABI_OPEN_VMS.
9051 (alpha_trampoline_init, alpha_start_function): Likewise.
9052 (alpha_expand_epilogue, alpha_file_start): Likewise.
9053 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9054 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9055 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9056 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9057 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9058
9059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9060
9061 * config/s390/s390-opts.h: New.
9062 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9063 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9064 s390_stack_guard): Remove.
9065 (s390_handle_arch_option): Return void. Take enum
9066 s390_arch_option value instead of string and searching array.
9067 (s390_handle_option): Don't assert that global structures are in
9068 use. Access variables via opts pointer. Use error_at. Don't use
9069 sscanf for -mstack-guard= or -mstack-size=. Update call to
9070 s390_handle_arch_option.
9071 (s390_option_override): Update call to s390_handle_arch_option.
9072 (s390_emit_prologue): Use %d format for s390_stack_size in
9073 diagnostic. Use %wd for HOST_WIDE_INT.
9074 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9075 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9076 * config/s390/s390.opt (config/s390/s390-opts.h): New
9077 HeaderInclude entry.
9078 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9079 s390_arch_flags, s390_warn_framesize): New Variable entries.
9080 (s390_arch_option): New Enum and EnumValue entries.
9081 (march=): Use Enum instead of Var.
9082 (mstack-guard=, mstack-size=): Use UInteger and Var.
9083 (mtune=): Use Enum.
9084
9085 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9086
9087 * config/score/score.c (score_handle_option): Don't assert that
9088 global structures are in use. Access target_flags via opts
9089 pointer. Use value of -march= option to determine target_flags
9090 settings.
9091 * config/score/score.opt (march=): Use Enum.
9092 (score_arch): New Enum and EnumValue entries.
9093
9094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9095
9096 * config/mep/mep.c (option_mtiny_specified): Remove.
9097 (mep_option_override): Move register handling for -mivc2 from
9098 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9099 instead of option_mtiny_specified.
9100 (mep_handle_option): Access target_flags via opts pointer. Don't
9101 assert that global structures are in use. Defer part of -mivc2
9102 handling and move it to mep_option_override.
9103 * config/mep/mep.opt (IVC2): New Mask entry.
9104 (mivc2): Use Var and Defer instead of Mask.
9105
9106 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9107
9108 * config/v850/v850-opts.h: New.
9109 * config/v850/v850.c (small_memory): Replace with
9110 small_memory_physical_max array. Make that array static const.
9111 (v850_handle_memory_option): Take integer value of argument. Take
9112 gcc_options pointer, option text and location. Return void.
9113 Update for changes to small memory structures.
9114 (v850_handle_option): Access target_flags via opts pointer. Don't
9115 assert that global structures are in use. Update calls to
9116 v850_handle_memory_option.
9117 (v850_encode_data_area): Update references to small memory settings.
9118 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9119 (enum small_memory_type): Move to v850-opts.h.
9120 * config/v850/v850.opt (config/v850/v850-opts.h): New
9121 HeaderInclude entry.
9122 (small_memory_max): New Variable entry.
9123 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9124 (mtda, mzda): Likewise.
9125
9126 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9127
9128 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9129 pointer. Don't assert that global structures are in use.
9130
9131 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9132
9133 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9134 via opts pointer. Don't assert that global structures are in use.
9135
9136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9137
9138 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9139 (munix=93): Use Var.
9140 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9141 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9142 * config/pa/pa-opts.h: New.
9143 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9144 (pa_handle_option): Don't assert that global structures are in
9145 use. Access target_flags via opts pointer. Don't handle
9146 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9147 OPT_munix_98 here.
9148 (pa_option_override): Handle deferred OPT_mfixed_range_.
9149
9150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9151
9152 * config/mn10300/mn10300-opts.h: New.
9153 * config/mn10300/mn10300.c (mn10300_processor,
9154 mn10300_tune_string): Remove.
9155 (mn10300_handle_option): Don't assert that global structures are
9156 in use. Access mn10300_processor via opts pointer. Don't handle
9157 OPT_mtune_ here.
9158 * config/mn10300/mn10300.h (enum processor_type): Move to
9159 mn10300-opts.h.
9160 (mn10300_processor): Remove.
9161 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9162 HeaderInclude entry.
9163 (mn10300_processor): New Variable entry.
9164 (mtune=): Use Var.
9165
9166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9167
9168 * config/microblaze/microblaze.c: Don't include opts.h.
9169 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9170 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9171 (mno-clearbss): Use Var and Warn.
9172
9173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9174
9175 * config/m32r/m32r-opts.h: New.
9176 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9177 (m32r_handle_option): Don't assert that global structures are in
9178 use. Access target_flags and m32r_cache_flush_func via opts
9179 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9180 OPT_mno_flush_trap here.
9181 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9182 include of m32r-opts.h.
9183 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9184 HeaderInclude entry.
9185 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9186 (mmodel=): Use Enum and Var.
9187 (m32r_model): New Enum and EnumValue entries.
9188 (mno-flush-trap): Use Var.
9189 (msdata=): Use Enum and Var.
9190 (m32r_sdata): New Enum and EnumValue entries.
9191
9192 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9193
9194 * config/m32c/m32c.c: Don't include opts.h.
9195 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9196 m32c_handle_option): Remove.
9197 (m32c_option_override): Check global_options_set.x_target_memregs
9198 instead of target_memregs_set.
9199 * config/m32c/m32c.h (target_memregs): Remove.
9200 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9201 variable.
9202
9203 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9204
9205 * config/iq2000/iq2000-opts.h: New.
9206 * config/iq2000/iq2000.c: Don't include opts.h.
9207 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9208 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9209 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9210 HeaderInclude entry.
9211 (iq2000_tune): New Variable entry.
9212 (march=): Add comment. Use Enum.
9213 (iq2000_arch): New Enum and EnumValue entries.
9214 (mcpu=): Use Enum and Var.
9215 (iq2000_tune): New Enum and EnumValue entries.
9216
9217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9218
9219 * config/ia64/ia64-opts.h: New.
9220 * config/ia64/ia64.c (ia64_tune): Remove.
9221 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9222 here. Use error_at.
9223 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9224 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9225 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9226 HeaderInclude entry.
9227 (ia64_tune): New Variable entry.
9228 (mfixed-range=): Use Defer and Var.
9229 (mtune=): Use Enum and Var.
9230 (ia64_tune): New Enum and EnumValue entries.
9231
9232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9233
9234 * config/frv/frv-opts.h: New.
9235 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9236 frv-opts.h.
9237 (frv_cpu_type): Remove.
9238 * config/frv/frv.c: Don't include opts.h.
9239 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9240 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9241 (frv_cpu_type): New Variable entry.
9242 (frv_cpu): New Enum and EnumValue entries.
9243
9244 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9245
9246 * config/cris/cris.c (cris_handle_option): Access target_flags via
9247 opts pointer. Don't assert that global structures are in use.
9248 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9249 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9250
9251 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9252
9253 * config/bfin/bfin-opts.h: New.
9254 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9255 bfin_si_revision, bfin_workarounds): Remove.
9256 (bfin_cpus): Make static const.
9257 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9258 not bfin_lib_id_given.
9259 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9260 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9261 pointer. Use error_at. Don't assert that global structures are in use.
9262 * config/bfin/bfin.h: Include bfin-opts.h.
9263 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9264 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9265 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9266 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9267 entries.
9268
9269 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9270
9271 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9272 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9273 or -msoft-float here.
9274 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9275 -msoft-float and -mhard-float.
9276 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9277 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9278 msoft-float.
9279 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9280 -msoft-float.
9281 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9282 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9283 not mhard-float.
9284 (LIBGCC_SPEC): Don't handle -msoft-float.
9285 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9286 -mhard-float.
9287 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9288 msoft-float.
9289 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9290 -mfloat-abi=*, not -msoft-float and -mhard-float.
9291 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9292 -msoft-float.
9293 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9294 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9295 mhard-float and msoft-float.
9296 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9297 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9298 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9299 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9300 mhard-float.
9301 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9302 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9303 msoft-float.
9304 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9305 not mhard-float.
9306 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9307 not msoft-float.
9308
9309 2011-03-22 Richard Henderson <rth@redhat.com>
9310
9311 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9312 TARGET_ABI_WINDOWS_NT.
9313 (alpha_output_function_end_prologue): Likewise.
9314 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9315 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9316 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9317 (trap, *movsi_nt_vms): Likewise.
9318 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9319 (*tablejump_osf_nt_internal): Remove.
9320 * config/alpha/predicates.md (input_operand): Only test Pmode.
9321
9322 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9323
9324 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9325 via opts pointer. Use error_at. Don't assert that global
9326 structures are in use.
9327
9328 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9329
9330 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9331 (ix86_handle_option): Access ix86_isa_flags and
9332 ix86_isa_flags_explicit via opts pointer. Don't assert that
9333 global structures are in use.
9334 (ix86_function_specific_save, ix86_function_specific_restore):
9335 Update ix86_isa_flags_explicit field name.
9336 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9337 (ix86_isa_flags_explicit): Rename TargetSave entry to
9338 x_ix86_isa_flags_explicit.
9339
9340 2011-03-22 Richard Henderson <rth@redhat.com>
9341
9342 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9343 (alpha_option_override, direct_return): Likewise.
9344 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9345 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9346 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9347 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9348 (alpha_expand_epilogue, alpha_end_function): Likewise.
9349 (alpha_init_libfuncs): Likewise.
9350 (struct machine_function): Remove unicosmk members.
9351 (print_operand) ['t']: Remove.
9352 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9353 unicosmk_output_module_name, unicosmk_output_common,
9354 current_section_align, unicosmk_output_text_section_asm_op,
9355 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9356 unicosmk_section_type_flags, unicosmk_unique_section,
9357 unicosmk_asm_named_section, unicosmk_insert_attributes,
9358 unicosmk_output_align, unicosmk_defer_case_vector,
9359 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9360 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9361 unicosmk_output_ssib, unicosmk_add_call_info_word,
9362 unicosmk_extern_head, unicosmk_output_default_externs,
9363 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9364 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9365 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9366 * config/alpha/alpha-protos.h: Update.
9367 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9368 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9369 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9370 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9371 (*mulsi_se, mulvsi3): Likewise.
9372 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9373 (*divmodsi_internal, call, call_value, realign): Likewise.
9374 (moddi3, umoddi3): Likewise; remove duplicate expander.
9375 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9376 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9377 (*movdi_nofix): Remove r/U alternative.
9378 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9379 * config/alpha/constraints.md ("U"): Remove.
9380 * config/alpha/predicates.md (call_operand"): Don't test
9381 TARGET_ABI_UNICOSMK.
9382
9383 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9384
9385 * target.def (handle_option): Take gcc_options and
9386 cl_decoded_option pointers and location_t.
9387 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9388 * doc/tm.texi: Regenerate.
9389 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9390 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9391 * lto-opts.c (lto_reissue_options): Generate option structure for
9392 targetm.handle_option call.
9393 * opts.c (target_handle_option): Update call to
9394 targetm.handle_option. Remove assertions about values now passed
9395 down to hook.
9396 * targhooks.c (default_target_handle_option): New.
9397 * targhooks.h (default_target_handle_option): Declare.
9398 * config/alpha/alpha.c: Include opts.h.
9399 (alpha_handle_option): Update to new hook interface.
9400 * config/arm/arm.c: Include opts.h.
9401 (arm_handle_option): Update to new hook interface.
9402 * config/arm/t-arm (arm.o): Update dependencies.
9403 * config/bfin/bfin.c: Include opts.h.
9404 (bfin_handle_option): Update to new hook interface.
9405 * config/cris/cris.c: Include opts.h.
9406 (cris_handle_option): Update to new hook interface.
9407 * config/frv/frv.c: Include opts.h.
9408 (frv_handle_option): Update to new hook interface.
9409 * config/i386/i386.c: Include opts.h.
9410 (ix86_handle_option): Update to new hook interface.
9411 (ix86_valid_target_attribute_inner_p): Generate option structure
9412 for call to ix86_handle_option.
9413 * config/i386/t-i386 (i386.o): Update dependencies.
9414 * config/ia64/ia64.c: Include opts.h.
9415 (ia64_handle_option): Update to new hook interface.
9416 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9417 * config/iq2000/iq2000.c: Include opts.h.
9418 (iq2000_handle_option): Update to new hook interface.
9419 * config/m32c/m32c.c: Include opts.h.
9420 (m32c_handle_option): Update to new hook interface.
9421 * config/m32r/m32r.c: Include opts.h.
9422 (m32r_handle_option): Update to new hook interface.
9423 * config/m68k/m68k.c: Include opts.h.
9424 (m68k_handle_option): Update to new hook interface.
9425 * config/mep/mep.c: Include opts.h.
9426 (mep_handle_option): Update to new hook interface.
9427 * config/microblaze/microblaze.c: Include opts.h.
9428 (microblaze_handle_option): Update to new hook interface.
9429 * config/mips/mips.c: Include opts.h.
9430 (mips_handle_option): Update to new hook interface.
9431 * config/mn10300/mn10300.c: Include opts.h.
9432 (mn10300_handle_option): Update to new hook interface.
9433 * config/pa/pa.c: Include opts.h.
9434 (pa_handle_option): Update to new hook interface.
9435 * config/pdp11/pdp11.c: Include opts.h.
9436 (pdp11_handle_option): Update to new hook interface.
9437 * config/rs6000/rs6000.c: Include opts.h.
9438 (rs6000_handle_option): Update to new hook interface.
9439 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9440 * config/rx/rx.c: Include opts.h.
9441 (rx_handle_option): Update to new hook interface.
9442 * config/s390/s390.c: Include opts.h.
9443 (s390_handle_option): Update to new hook interface.
9444 * config/score/score.c: Include opts.h.
9445 (score_handle_option): Update to new hook interface.
9446 * config/sh/sh.c: Include opts.h.
9447 (sh_handle_option): Update to new hook interface.
9448 * config/sparc/sparc.c: Include opts.h.
9449 (sparc_handle_option): Update to new hook interface.
9450 * config/v850/v850.c: Include opts.h.
9451 (v850_handle_option): Update to new hook interface.
9452
9453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9454
9455 * gcc.c (driver_unknown_option_callback): Only permit and save
9456 unknown -Wno- options.
9457 (driver_wrong_lang_callback): Save options directly instead of via
9458 driver_unknown_option_callback.
9459
9460 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9461
9462 * combine.c (simplify_set): Try harder to find the best CC mode when
9463 simplifying a nested COMPARE on the RHS.
9464
9465 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9466
9467 * config/alpha/gnu.h: Remove.
9468 * config/arc: Remove directory.
9469 * config/arm/netbsd.h: Remove.
9470 * config/arm/t-pe: Remove.
9471 * config/crx: Remove directory.
9472 * config/i386/netbsd.h: Remove.
9473 * config/m68hc11: Remove directory.
9474 * config/m68k/uclinux-oldabi.h: Remove.
9475 * config/mcore/mcore-pe.h: Remove.
9476 * config/mcore/t-mcore-pe: Remove.
9477 * config/netbsd-aout.h: Remove.
9478 * config/rs6000/gnu.h: Remove.
9479 * config/sh/sh-symbian.h: Remove.
9480 * config/sh/symbian-base.c: Remove.
9481 * config/sh/symbian-c.c: Remove.
9482 * config/sh/symbian-cxx.c: Remove.
9483 * config/sh/symbian-post.h: Remove.
9484 * config/sh/symbian-pre.h: Remove.
9485 * config/sh/t-symbian: Remove.
9486 * config/svr3.h: Remove.
9487 * config/vax/netbsd.h: Remove.
9488 * config.build: Don't handle i[34567]86-*-pe.
9489 * config.gcc: Remove handling of deprecations for most deprecated
9490 targets.
9491 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9492 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9493 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9494 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9495 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9496 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9497 Remove cases.
9498 * config.host: Don't handle i[34567]86-*-pe.
9499 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9500 (ASM_SPEC32): Don't handle -mcall-gnu.
9501 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9502 -mcall-gnu.
9503 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9504 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9505 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9506 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9507 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9508 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9509 conditional on SYMBIAN.
9510 * configure.ac: Don't handle powerpc*-*-gnu*.
9511 * configure: Regenerate.
9512 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9513 * doc/install-old.texi (m6811, m6812): Don't mention.
9514 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9515 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9516 (m68k-uclinuxoldabi): Don't mention.
9517 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9518 Remove.
9519 (-mcall-gnu): Remove.
9520 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9521 families): Remove constraint documentation.
9522
9523 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9524
9525 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9526 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9527 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9528
9529 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9530
9531 PR target/48226
9532 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9533 vector when peeking at the next token for vector, don't expand the
9534 keywords.
9535
9536 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9537
9538 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9539 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9540 * config/avr/avr.c (init_cumulative_args)
9541 (avr_function_arg_advance): Use it.
9542 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9543 sibcall epilogues.
9544 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9545 (avr_function_ok_for_sibcall): ...this new function.
9546 (avr_lookup_function_attribute1): New static Function.
9547 (avr_naked_function_p, interrupt_function_p)
9548 (signal_function_p, avr_OS_task_function_p)
9549 (avr_OS_main_function_p): Use it.
9550 * config/avr/avr.md ("sibcall", "sibcall_value")
9551 ("sibcall_epilogue"): New expander.
9552 ("*call_insn", "*call_value_insn"): New insn.
9553 ("call_insn", "call_value_insn"): Remove
9554 ("call", "call_value", "epilogue"): Change expander to handle
9555 sibling calls.
9556
9557 2011-03-21 Nick Clifton <nickc@redhat.com>
9558
9559 * doc/invoke.texi (Overall Options): Move closing brace to end of
9560 options list.
9561 (Optimization Options): Add missing @gol.
9562 (Directory Options): Likewise.
9563 (i386 and x86-64 Options): Likewise.
9564 (RS6000 and PowerPC Options): Likewise.
9565 (i386 and x86-64 Windows Options): Likewise.
9566 (V850 Options): Add text missing from descriptions.
9567
9568 2011-03-22 Richard Henderson <rth@redhat.com>
9569
9570 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9571 (avr_incoming_return_addr_rtx): New.
9572 (emit_push_byte): New.
9573 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9574 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9575 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9576 (emit_pop_byte): New.
9577 (expand_epilogue): Use it. Pop frame pointer by bytes.
9578 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9579 (INCOMING_RETURN_ADDR_RTX): New.
9580 (INCOMING_FRAME_SP_OFFSET): New.
9581 (ARG_POINTER_CFA_OFFSET): New.
9582 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9583 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9584 (pophi): Remove.
9585
9586 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9587
9588 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9589
9590 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9591 (FUNCTION_ARG_ADVANCE): Likewise.
9592 * tm.texi.in: Change references to them to hook references.
9593 * tm.texi: Regenerate.
9594 * targhooks.c (default_function_arg): Eliminate check for target
9595 macro.
9596 (default_function_incoming_arg): Likewise.
9597 (default_function_arg_advance): Likewise.
9598 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9599 (function_arg_advance): Likewise.
9600 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9601
9602 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9603
9604 * tree.c (build_call_1): New function.
9605 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9606
9607 2011-03-22 Richard Guenther <rguenther@suse.de>
9608
9609 PR tree-optimization/48228
9610 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9611 for single-arg PHIs.
9612
9613 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9614
9615 PR rtl-optimization/48143
9616 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9617 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9618 sse2_cvtps2pd): Likewise.
9619
9620 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9621
9622 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9623
9624 2011-03-22 Richard Guenther <rguenther@suse.de>
9625
9626 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9627 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9628 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9629 and REALIGN_LOAD_EXPR.
9630 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9631 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9632 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9633 DOT_PROD_EXPR case ...
9634 (expand_expr_real_2): ... here.
9635 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9636 and REALIGN_LOAD_EXPR.
9637 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9638 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9639 (vect_create_epilog_for_reduction): Likewise.
9640 (vectorizable_reduction): Likewise.
9641 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9642 * tree-vect-stmts.c (vectorizable_load): Likewise.
9643
9644 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9647
9648 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9649
9650 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9651 handling for PLTOFF/GOTOFF.
9652
9653 2011-03-22 Nick Clifton <nickc@redhat.com>
9654
9655 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9656 trailing backslash from the end of the macro definition.
9657
9658 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9659
9660 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9661 and PLT unspecs.
9662
9663 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9664
9665 * expr.h (prepare_operand): Move to...
9666 * optabs.h (prepare_operand): ...here and change the insn code
9667 parameter from "int" to "enum insn_code".
9668 (insn_operand_matches): Declare.
9669 * expr.c (init_expr_target): Use insn_operand_matches.
9670 (compress_float_constant): Likewise.
9671 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9672 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9673 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9674 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9675 Likewise.
9676 (gen_cond_trap): Likewise.
9677 (prepare_operand): Likewise. Change icode to an insn_code.
9678 (insn_operand_matches): New function.
9679 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9680 * reload1.c (gen_reload): Likewise.
9681 * targhooks.c (default_secondary_reload): Likewise.
9682
9683 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9684
9685 * config/alpha/alpha.md (unspec): New define_c_enum.
9686 (unspecv): Ditto.
9687
9688 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9689
9690 PR debug/48214
9691 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9692 between a call and its CALL_ARG_LOCATION note.
9693
9694 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9695
9696 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9697
9698 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9699
9700 PR c/42544
9701 PR c/48197
9702 * c-common.c (shorten_compare): If primopN is first sign-extended
9703 to opN and then zero-extended to result type, set primopN to opN.
9704
9705 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9706
9707 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9708 for barrier handlers.
9709
9710 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9711
9712 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9713 UNSPEC constants to be in the unspec enumeration, and redefine
9714 all UNSPECV constants to be in the unspecv enumeration, so that
9715 dumps print which unspec/unspec_volatile this is.
9716 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9717 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9718 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9719 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9720 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9721
9722 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9723 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9724 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9725 * config/rs6000/sync.md (isync, lwsync): Ditto.
9726
9727 2011-03-21 Richard Guenther <rguenther@suse.de>
9728
9729 * params.def (lto-min-partition): Fix typo.
9730
9731 2011-03-21 Richard Guenther <rguenther@suse.de>
9732
9733 PR c/47939
9734 * c-decl.c (grokdeclarator): Drop to the main variant only
9735 for array types. Drop flag_gen_aux_info check.
9736
9737 2011-03-21 Richard Guenther <rguenther@suse.de>
9738
9739 PR translation/47911
9740 * params.def (lto-partitions): Fix typo.
9741 (lto-min-partition): Fix wording.
9742
9743 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9744
9745 * config/rs6000/t-freebsd: Remove duplication from file.
9746
9747 2011-03-21 Richard Guenther <rguenther@suse.de>
9748
9749 PR middle-end/47661
9750 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9751
9752 2011-03-21 Richard Guenther <rguenther@suse.de>
9753
9754 PR lto/48210
9755 * params.def (lto-partitions): Require at least 1 partition.
9756
9757 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9758
9759 * gthr-solaris.h: Remove.
9760 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9761 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9762 (LIB_SPEC): Likewise.
9763 * config/sol2.opt (threads): Remove.
9764 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9765 (sparc*-*-solaris2*): Likewise.
9766 * configure.ac (enable_threads): Enable solaris support.
9767 * configure: Regenerate.
9768 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9769 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9770 solaris.
9771
9772 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9773
9774 * config.gcc: Obsolete *-*-solaris2.8*.
9775 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9776
9777 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9778
9779 PR bootstrap/48135
9780 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9781 reference. Solaris 8 perl works.
9782
9783 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9784
9785 PR bootstrap/48135
9786 * doc/install.texi (Prerequisites): Move jar etc. up.
9787 Explain support library version requirements.
9788
9789 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9790
9791 PR bootstrap/48135
9792 * doc/install.texi (Prerequisites): Move Perl to build
9793 requirements. Always necessary on Solaris 2 with Sun ld.
9794
9795 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9796
9797 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9798 binutils 2.21.
9799 (Specific, i?86-*-solaris2.[89]): Likewise.
9800 (Specific, i?86-*-solaris2.10): Likewise.
9801 (Specific, mips-sgi-irix6): Likewise.
9802 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9803 Update for binutils 2.21.
9804
9805 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9806
9807 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9808 Allow -fuse-linker-plugin for non-default plugin linker.
9809 * configure: Regenerate.
9810
9811 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9812
9813 PR bootstrap/48167
9814 * gengtype.c (files_rules): Added rule for cp/parser.h.
9815
9816 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9817
9818 PR target/48213
9819 * config/s390/s390.c (s390_delegitimize_address): Don't call
9820 lowpart_subreg if orig_x has BLKmode.
9821
9822 2011-03-21 Kai Tietz <ktietz@redhat.com>
9823
9824 PR target/12171
9825 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9826 * tree.h (attribute_spec): Add new member affects_type_identity.
9827 * attribs.c (empty_attribute_table): Adjust attribute_spec
9828 initializers.
9829 * config/alpha/alpha.c: Likewise.
9830 * config/arc/arc.c: Likewise.
9831 * config/arm/arm.c: Likewise.
9832 * config/avr/avr.c: Likewise.
9833 * config/bfin/bfin.c: Likewise.
9834 * config/crx/crx.c: Likewise.
9835 * config/darwin.h: Likewise.
9836 * config/h8300/h8300.c: Likewise.
9837 * config/i386/cygming.h: Likewise.
9838 * config/i386/i386.c: Likewise.
9839 * config/ia64/ia64.c: Likewise.
9840 * config/m32c/m32c.c: Likewise.
9841 * config/m32r/m32r.c: Likewise.
9842 * config/m68hc11/m68hc11.c: Likewise.
9843 * config/m68k/m68k.c: Likewise.
9844 * config/mcore/mcore.c: Likewise.
9845 * config/mep/mep.c: Likewise.
9846 * config/microblaze/microblaze.c: Likewise.
9847 * config/mips/mips.c: Likewise.
9848 * config/rs6000/rs6000.c: Likewise.
9849 * config/rx/rx.c: Likewise.
9850 * config/sh/sh.c: Likewise.
9851 * config/sol2.h: Likewise.
9852 * config/sparc/sparc.c: Likewise.
9853 * config/spu/spu.c: Likewise.
9854 * config/stormy16/stormy16.c: Likewise.
9855 * config/v850/v850.c: Likewise.
9856
9857 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9858
9859 * simplify-rtx.c (simplify_binary_operation_1): Handle
9860 (xor (and A B) C) case when B and C are both constants.
9861
9862 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9863
9864 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9865
9866 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9867
9868 PR bootstrap/48168
9869 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9870
9871 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9872
9873 PR rtl-optimization/48156
9874 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9875 assume df and df_lr are not NULL.
9876
9877 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9878
9879 PR debug/48023
9880 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9881 between a call and its CALL_ARG_LOCATION note.
9882
9883 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9884
9885 PR debug/48178
9886 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9887 between a call and its corresponding CALL_ARG_LOCATION note.
9888
9889 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9890
9891 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9892 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9893 * haifa-sched.c (setup_ref_regs): Ditto.
9894 * caller-save.c (add_used_regs_1): Ditto.
9895 * dse.c (look_for_hardregs): Ditto.
9896 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9897 * sched-rgn.c (check_live_1): Ditto.
9898
9899 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9900
9901 * c-decl.c (diagnose_mismatched_decls): Give an error for
9902 redefining a typedef with variably modified type.
9903
9904 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9905
9906 * c-decl.c (grokfield): Don't allow typedefs for structures or
9907 unions with no tag by default.
9908 * doc/extend.texi (Unnamed Fields): Update.
9909
9910 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9911
9912 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9913 Rewrite using indirect functions.
9914 (lwp_slwpcb): Ditto.
9915 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9916 (avx_vinsertf128<mode>): Ditto.
9917
9918 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9919
9920 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9921 unspecs.
9922
9923 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9924
9925 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9926 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9927
9928 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9929
9930 PR rtl-optimization/48170
9931 * gcse.c (hoist_code): Remove bogus asserts.
9932
9933 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9934
9935 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9936 computation for prologue/epilogue.
9937
9938 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9939
9940 * Makefile.in (check-consistency): Remove.
9941
9942 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9943
9944 PR debug/48176
9945 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9946 arange_table_in_use is 0, but either text_section_used or
9947 cold_text_section_used is true. Don't call it if
9948 !info_section_emitted.
9949
9950 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9951
9952 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9953 FUNCTION_VALUE_REGNO_P): Remove.
9954 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9955 Remove.
9956 * config/avr/avr.c (avr_ret_register): Make static inline.
9957 (avr_function_value_regno_p): New function.
9958 (avr_libcall_value): Make static. Add 'func' argument.
9959 (avr_function_value): Make static. Rename 'func' argument to
9960 'fn_decl_or_type', forward it to avr_libcall_value. Call
9961 avr_ret_register function instead of RET_REGISTER macro.
9962 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9963
9964 2011-03-18 Jason Merrill <jason@redhat.com>
9965
9966 PR c++/23372
9967 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9968
9969 2011-03-18 Richard Guenther <rguenther@suse.de>
9970
9971 * doc/install.texi (--enable-gold): Remove.
9972 (--with-plugin-ld): Document.
9973 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9974
9975 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9976
9977 PR middle-end/47790
9978 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9979 again after expansion changes.
9980
9981 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9982
9983 * combine.c (try_combine): Do simplification only call of
9984 subst() on i2 even when i1 is present. Update comments.
9985
9986 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9987
9988 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9989 and UNSPEC_PCREL_SYMOFF.
9990
9991 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9992
9993 * config/s390/s390.md: Use define_c_enum for the unspec constant
9994 definitions.
9995
9996 2011-03-18 Richard Henderson <rth@redhat.com>
9997 Jakub Jelinek <jakub@redhat.com>
9998
9999 PR bootstrap/48161
10000 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10001 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10002
10003 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10004
10005 PR middle-end/47725
10006 * combine.c (cant_combine_insn_p): Don't check zero/sign
10007 extended hard registers.
10008
10009 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10010
10011 PR middle-end/47725
10012 * combine.c (cant_combine_insn_p): Check zero/sign extended
10013 hard registers.
10014
10015 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10016
10017 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10018 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10019 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10020 Change return type to bool.
10021 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10022
10023 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10024
10025 PR debug/48163
10026 * var-tracking.c (prepare_call_arguments): If CALL target
10027 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10028 pc instead of looking it up using cselib_lookup and use
10029 Pmode for it if x has VOIDmode.
10030 * dwarf2out.c (gen_subprogram_die): If also both first and
10031 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10032
10033 PR debug/48163
10034 * function.c (assign_parms): For data.passed_pointer parms
10035 use MEM of data.entry_parm instead of data.entry_parm itself
10036 as DECL_INCOMING_RTL.
10037 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10038 also when passed and declared mode is the same, DECL_RTL
10039 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10040 a MEM too.
10041
10042 2011-03-16 Jeff Law <law@redhat.com>
10043
10044 PR rtl-optimization/37273
10045 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10046 handle them like argument loads from stack slots. Do not double
10047 count memory for memory constants and argument loads from stack slots.
10048
10049 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10050
10051 PR debug/48160
10052 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10053
10054 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10055
10056 PR target/48171
10057 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10058
10059 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10060
10061 PR bootstrap/48153
10062 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10063 if dwarf_strict.
10064 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10065 Clear call_arg_locations and call_arg_loc_last always.
10066
10067 PR middle-end/48152
10068 * var-tracking.c (prepare_call_arguments): If argument needs to be
10069 passed by reference, adjust argtype and mode.
10070
10071 2011-03-17 Richard Guenther <rguenther@suse.de>
10072
10073 PR middle-end/48134
10074 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10075 a value make sure to fold the statement.
10076
10077 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10078
10079 PR target/43872
10080 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10081 return condition with !cfun->calls_alloca.
10082
10083 2011-03-17 Richard Guenther <rguenther@suse.de>
10084
10085 PR bootstrap/48148
10086 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10087 origin for decls in other ltrans units.
10088 (input_varpool_node): Likewise.
10089
10090 2011-03-17 Richard Guenther <rguenther@suse.de>
10091
10092 PR middle-end/48165
10093 * tree-object-size.c (compute_object_offset): Properly return
10094 the offset operand of MEM_REFs as sizetype.
10095
10096 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10097
10098 PR rtl-optimization/48141
10099 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10100 * dse.c: Include params.h.
10101 (active_local_stores_len): New variable.
10102 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10103 to NULL.
10104 (record_store, check_mem_read_rtx): Decrease it when removing
10105 from the chain.
10106 (scan_insn): Likewise. Increase it when adding to chain, if it
10107 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10108 set active_local_stores to NULL before the addition.
10109 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10110
10111 PR rtl-optimization/48141
10112 * dse.c (record_store): If no positions are needed in an insn
10113 that cannot be deleted, at least unchain it from active_local_stores.
10114
10115 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10116
10117 PR debug/47510
10118 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10119 (lookup_type_die_strip_naming_typedef): ... here.
10120 (get_context_die): Use it.
10121 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10122 the anonymous struct named by the naming typedef.
10123
10124 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10125
10126 PR target/48154
10127 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10128 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10129
10130 2011-03-16 Jeff Law <law@redhat.com>
10131
10132 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10133 check for operands of conditional. Allow type to be a pointer.
10134
10135 2011-03-16 Richard Guenther <rguenther@suse.de>
10136
10137 PR tree-optimization/48149
10138 * fold-const.c (fold_binary_loc): Fold
10139 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10140
10141 2011-03-16 Richard Guenther <rguenther@suse.de>
10142
10143 PR tree-optimization/26134
10144 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10145 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10146 (non_rewritable_mem_ref_base): Handle complex type component
10147 accesses, constrain offsets for vector and complex extracts
10148 more properly.
10149
10150 2011-03-16 Richard Guenther <rguenther@suse.de>
10151
10152 PR tree-optimization/48146
10153 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10154 operands avoiding the need for renaming.
10155
10156 2011-03-16 Richard Guenther <rguenther@suse.de>
10157
10158 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10159 constant folding. Move MEM_REF canonicalization first.
10160 Rely on fold_const_aggregate_ref for initializer folding.
10161 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10162
10163 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10164
10165 PR middle-end/48136
10166 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10167 arg0/arg1 or their arguments are always fold converted to matching
10168 types.
10169
10170 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10171 to nargs.
10172
10173 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10174
10175 PR lto/46944
10176 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10177 Handle in-tree gold.
10178 (ld_vers): Extract binutils version for gold.
10179 (gcc_cv_ld_hidden): Handle gold here.
10180 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10181 * configure: Regenerate.
10182 * config.in: Regenerate.
10183 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10184 -fuse-linker-plugin otherwise.
10185 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10186 (LINK_COMMAND_SPEC): Use it.
10187 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10188
10189 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10190
10191 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10192 * calls.c: Remove debug.h include.
10193 (emit_call_1): Don't call virtual_call_token debug hook.
10194 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10195 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10196 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10197 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10198 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10199 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10200 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10201 dwarf2out_virtual_call): Remove.
10202 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10203 copy_call_info and virtual_call hooks.
10204 (dwarf2out_init): Don't initialize vcall_insn_table,
10205 debug_dcall_section and debug_vcall_section.
10206 (prune_unused_types): Don't mark nodes from dcall_table.
10207 (dwarf2out_finish): Don't output dcall or vcall tables.
10208 * final.c (final_scan_insn): Don't call direct_call or
10209 virtual_call debug hooks.
10210 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10211 virtual_call_token, copy_call_info and virtual_call hooks.
10212 (debug_nothing_uid): Remove prototype.
10213 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10214 copy_call_info and virtual_call hooks.
10215 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10216 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10217 * debug.c (do_nothing_debug_hooks): Likewise.
10218 (debug_nothing_uid): Remove.
10219 * doc/invoke.texi (-fenable-icf-debug): Remove.
10220 * common.opt (-fenable-icf-debug): Likewise.
10221
10222 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10223 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10224 call's MEM. Handle functions returning aggregate through a hidden
10225 first pointer. For virtual calls add clobbered pc to call arguments
10226 chain.
10227 * dwarf2out.c (gen_subprogram_die): Emit
10228 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10229 can't be emitted.
10230
10231 PR debug/45882
10232 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10233 * rtl.h (ENTRY_VALUE_EXP): Define.
10234 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10235 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10236 * print-rtl.c (print_rtx): Likewise.
10237 * gengtype.c (adjust_field_rtx_def): Likewise.
10238 * var-tracking.c (vt_add_function_parameter): Adjust
10239 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10240 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10241 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10242 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10243 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10244
10245 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10246 Call var_location debug hook even on CALL_INSNs.
10247 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10248 * rtl.def (ENTRY_VALUE): New.
10249 * dwarf2out.c: Include cfglayout.h.
10250 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10251 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10252 (struct call_arg_loc_node): New type.
10253 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10254 tail_call_site_count): New variables.
10255 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10256 DW_TAG_GNU_call_site_parameter.
10257 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10258 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10259 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10260 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10261 and DW_AT_GNU_all_source_call_sites.
10262 (mem_loc_descriptor): Handle ENTRY_VALUE.
10263 (add_src_coords_attributes): Don't add enything if
10264 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10265 (dwarf2out_abstract_function): Save and clear call_arg_location,
10266 call_site_count and tail_call_site_count around dwarf2out_decl call.
10267 (gen_call_site_die): New function.
10268 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10269 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10270 (dwarf2out_function_decl): Clear call_arg_locations,
10271 call_arg_loc_last, set call_site_count and tail_call_site_count
10272 to -1 and free block_map.
10273 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10274 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10275 followed by any real instructions.
10276 (dwarf2out_begin_function): Set call_site_count and
10277 tail_call_site_count to 0.
10278 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10279 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10280 attempt to force a DIE for it and worst case remove the attribute.
10281 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10282 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10283 the decl itself.
10284 * var-tracking.c: Include tm_p.h.
10285 (vt_stack_adjustments): For calls call note_register_arguments.
10286 (argument_reg_set): New variable.
10287 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10288 ensure the VALUE is resolved.
10289 (call_arguments): New variable.
10290 (prepare_call_arguments): New function.
10291 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10292 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10293 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10294 always use the best expression.
10295 (vt_expand_loc): Add ignore_cur_loc argument.
10296 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10297 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10298 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10299 note for all calls.
10300 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10301 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10302 argument. Don't call cselib_preserve_only_values and
10303 cselib_reset_table.
10304 (note_register_arguments): New function.
10305 (vt_initialize): Compute argument_reg_set. Call
10306 vt_add_function_parameters before processing basic blocks instead of
10307 afterwards. For calls call prepare_call_arguments before calling
10308 cselib_process_insn.
10309 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10310 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10311 (var-tracking.o): Depend on $(TM_P_H).
10312 * cfglayout.h (insn_scope): New prototype.
10313 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10314 * cfglayout.c (insn_scope): No longer static.
10315 * insn-notes.def (CALL_ARG_LOCATION): New.
10316 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10317 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10318 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10319 nothing for DECL_EXTERNAL BLOCK_VARS.
10320
10321 2011-03-16 Alan Modra <amodra@gmail.com>
10322
10323 PR target/45844
10324 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10325 create invalid offset address for vsx splat insn.
10326 * config/rs6000/predicates.md (splat_input_operand): New.
10327 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10328
10329 2011-03-15 Xinliang David Li <davidxl@google.com>
10330
10331 PR c/47837
10332 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10333 (normalize_preds): New function.
10334 (is_use_properly_guarded): Normalize def predicates.
10335
10336 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10337
10338 PR target/46788
10339 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10340 in the output template.
10341
10342 2011-03-15 Richard Guenther <rguenther@suse.de>
10343
10344 PR middle-end/47650
10345 * tree-pretty-print.c (dump_function_declaration): Properly
10346 dump unprototyped and varargs function types.
10347
10348 2011-03-15 Richard Guenther <rguenther@suse.de>
10349
10350 PR tree-optimization/13954
10351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10352 and friends.
10353
10354 2011-03-15 Richard Guenther <rguenther@suse.de>
10355
10356 PR tree-optimization/48037
10357 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10358 selects into BIT_FIELD_REFs.
10359 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10360 vector select.
10361
10362 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10363
10364 PR tree-optimization/48129
10365 * builtins.c (fold_builtin_snprintf): Convert to type of
10366 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10367 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10368
10369 2011-03-15 Richard Guenther <rguenther@suse.de>
10370
10371 PR tree-optimization/41490
10372 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10373 value but with VUSE.
10374 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10375 return statements.
10376 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10377 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10378 * tree-tailcall.c (find_tail_calls): Ignore returns.
10379
10380 2011-03-15 Richard Guenther <rguenther@suse.de>
10381
10382 PR middle-end/48031
10383 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10384 or variable-indexed array accesses when in gimple form.
10385
10386 2011-03-15 Richard Guenther <rguenther@suse.de>
10387
10388 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10389
10390 2011-03-15 Alan Modra <amodra@gmail.com>
10391
10392 PR target/48032
10393 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10394 presume symbol_refs without a symbol_ref_decl are suitably
10395 aligned, nor other trees we may see here. Handle anchor symbols.
10396 (legitimate_constant_pool_address_p): Comment. Add mode param.
10397 Check cmodel=medium addresses. Adjust all calls.
10398 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10399 creating cmodel=medium optimized access to locals.
10400 * config/rs6000/constraints.md (R): Pass QImode to
10401 legitimate_constant_pool_address_p.
10402 * config/rs6000/predicates.md (input_operand): Pass mode to
10403 legitimate_constant_pool_address_p.
10404 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10405 Update prototype.
10406
10407 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10408
10409 PR target/48053
10410 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10411 64-bit constants being loaded into registers other than GPRs such
10412 as loading 0 into a VSX register.
10413
10414 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10415
10416 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10417
10418 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10419
10420 PR middle-end/47917
10421 * builtins.c (fold_builtin_snprintf): New function.
10422 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10423 (fold_builtin_4): Likewise.
10424
10425 PR middle-end/38878
10426 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10427 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10428 and C - X == X also strip nops from +/-/p+ operand.
10429 When optimizing -X == C, fold C to arg0's type.
10430
10431 PR debug/47946
10432 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10433 emit it as add_AT_int instead of add_AT_unsigned.
10434
10435 2011-03-14 Tom Tromey <tromey@redhat.com>
10436
10437 * unwind-dw2.c: Include sys/sdt.h if it exists.
10438 (_Unwind_DebugHook): Use STAP_PROBE2.
10439 * config.in, configure: Rebuild.
10440 * configure.ac: Check for sys/sdt.h.
10441
10442 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10443
10444 * config/i386/i386.md (ROUND_FLOOR): New constant.
10445 (ROUND_CEIL): Ditto.
10446 (ROUND_TRUNC): Ditto.
10447 (ROUND_MXCSR): Ditto.
10448 (ROUND_NO_EXC): Ditto.
10449 (rint<mode>2): Use new defines instead of numerical constants.
10450 (floor<mode>2): Ditto.
10451 (ceil<mode>2): Ditto.
10452 (btrunc<mode>2): Ditto.
10453 * config/i386/i386-builtin-types.def: Define ROUND function type
10454 aliases.
10455 * config/i386/i386.c (enum ix86_builtins): Add
10456 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10457 (struct builtin_description): Add
10458 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10459 (ix86_expand_sse_round): New static function.
10460 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10461 function types.
10462 (ix86_builtin_vectorized_function): Handle
10463 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10464
10465 2011-03-14 Tom Tromey <tromey@redhat.com>
10466
10467 * c-parser.c (c_parser_asm_string_literal): Clear
10468 warn_overlength_strings.
10469
10470 2011-03-14 Tom Tromey <tromey@redhat.com>
10471
10472 * c-parser.c (disable_extension_diagnostics): Save
10473 warn_overlength_strings.
10474 (restore_extension_diagnostics): Restore warn_overlength_strings.
10475
10476 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10477
10478 * BASE-VER: Change to 4.7.0.
10479
10480 2011-03-14 Richard Guenther <rguenther@suse.de>
10481
10482 PR middle-end/48098
10483 * tree.c (build_vector_from_val): Adjust assert to requirements
10484 and reality.
10485
10486 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10487
10488 PR bootstrap/48102
10489 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10490
10491 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10492
10493 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10494 terms of target_flags_explicit. Adjust copyright year.
10495
10496 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10497 * config/rs6000/t-freebsd: New file. Add override for
10498 LIB2FUNCS_EXTRA.
10499
10500 2011-03-13 Chris Demetriou <cgd@google.com>
10501
10502 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10503 (-fno-diagnostics-show-option): this, to reflect current default.
10504 (-Werror=): Update text about -fno-diagnostics-show-option.
10505
10506 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10507
10508 PR target/48053
10509 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10510 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10511 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10512 mode is not V2DImode or V2DFmode.
10513 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10514 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10515 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10516 registers to 0.
10517 (movdi_internal64): Likewise.
10518
10519 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10520
10521 PR tree-optimization/47127
10522 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10523 parameter.
10524 (set_cloog_options): Same.
10525 (scop_to_clast): Same.
10526 (print_clast_stmt): Do not call cloog_state_malloc and
10527 cloog_state_free.
10528 (print_generated_program): Same.
10529 (gloog): Same.
10530 * graphite-clast-to-gimple.h (cloog_state): Declared.
10531 (scop_to_clast): Adjust declaration.
10532 * graphite.c (cloog_state): Defined here.
10533 (graphite_initialize): Call cloog_state_malloc.
10534 (graphite_finalize): Call cloog_state_free.
10535
10536 2011-03-11 Jason Merrill <jason@redhat.com>
10537
10538 * attribs.c (lookup_attribute_spec): Take const_tree.
10539 * tree.h: Adjust.
10540
10541 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10542
10543 * config/sparc/sparc.c (sparc_option_override): Use
10544 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10545
10546 2011-03-11 Richard Guenther <rguenther@suse.de>
10547
10548 PR tree-optimization/48067
10549 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10550 multiplication result will be only used once on the target
10551 stmt.
10552
10553 2011-03-11 Richard Guenther <rguenther@suse.de>
10554
10555 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10556
10557 2011-03-11 Richard Guenther <rguenther@suse.de>
10558
10559 PR lto/48073
10560 * tree.c (find_decls_types_r): Do not walk types only reachable
10561 from IDENTIFIER_NODEs.
10562
10563 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10564
10565 PR middle-end/48044
10566 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10567 all vnode->force_output nodes as needed.
10568
10569 2011-03-11 Jason Merrill <jason@redhat.com>
10570
10571 PR c++/48069
10572 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10573 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10574
10575 2011-03-11 Martin Jambor <mjambor@suse.cz>
10576
10577 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10578 cgraph_node.
10579
10580 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR tree-optimization/48063
10583 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10584 inline functions called once if !tree_can_inline_p (node->callers).
10585
10586 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10587
10588 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10589 extra_objs.
10590 * config/score/score3.c: Delete.
10591 * config/score/score3.h: Delete.
10592 * config/score/mul-div.S: Delete.
10593 * config/score/sfp-machine.h: Add new file.
10594 * config/score/constraints.md: Add new file.
10595 * config/score/t-score-softfp: Add new file.
10596 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10597 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10598 (score7_extra_constraint): Delete.
10599 (score7_option_override): Remove unused code.
10600 * config/score/score.c: Remove score3 and score5 define and code.
10601 * config/score/score.h: Remove score3 and score5 define and code.
10602 * config/score/score.md: Remove score3 template and unusual insn.
10603 * config/score/score.opt: Remove score3 and score5 options.
10604
10605 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10606
10607 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10608 when _HPUX_SOURCE is defined.
10609 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10610
10611 2011-03-10 Jason Merrill <jason@redhat.com>
10612
10613 PR c++/48029
10614 * stor-layout.c (layout_type): Don't set structural equality
10615 on arrays of incomplete type.
10616 * tree.c (type_hash_eq): Handle comparing them properly.
10617
10618 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10619
10620 PR debug/48043
10621 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10622 result mode matches original rtl mode.
10623
10624 2011-03-10 Nick Clifton <nickc@redhat.com>
10625
10626 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10627 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10628
10629 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10630
10631 PR rtl-optimization/47866
10632 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10633 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10634 if target wasn't scalar.
10635 * function.c (assign_stack_temp_for_type): Assert that neither
10636 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10637 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10638 macro.
10639 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10640
10641 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10642
10643 * config/s390/s390-protos.h (s390_label_align): New prototype.
10644 * config/s390/s390.c (s390_label_align): New function.
10645 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10646
10647 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10648
10649 PR target/47755
10650 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10651 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10652 (output_vec_const_move): Ditto.
10653
10654 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10655
10656 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10657 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10658 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10659 Change 'rclass' argument and result type to reg_class_t.
10660 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10661
10662 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10663
10664 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10665 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10666 (TARGET_MEMORY_MOVE_COST): Define.
10667 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10668
10669 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10670
10671 PR debug/47881
10672 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10673 removed anything.
10674
10675 PR tree-optimization/48022
10676 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10677 for EQ/NE_EXPR.
10678
10679 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10680
10681 PR debug/47991
10682 * var-tracking.c (find_use_val): Return NULL for
10683 cui->sets && cui->store_p BLKmode MEMs.
10684
10685 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10686
10687 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10688 Remove.
10689 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10690 xstormy16_print_operand_address): Remove.
10691 * config/stormy16/stormy16.c (xstormy16_print_operand,
10692 xstormy16_print_operand_address): Make static.
10693 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10694
10695 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10696
10697 PR target/47862
10698 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10699 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10700 before definition.
10701
10702 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10703
10704 PR bootstrap/48000
10705 * cfgloopmanip.c (fix_bb_placements): Return immediately
10706 if FROM is BASE_LOOP's header.
10707
10708 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10709
10710 * gimplify.c (gimplify_function_tree): Fix building calls
10711 to __builtin_return_address.
10712
10713 2011-03-07 Alan Modra <amodra@gmail.com>
10714
10715 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10716 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10717 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10718 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10719 return_mode args.
10720 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10721 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10722 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10723 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10724 * config/rs6000/rs6000.c
10725 (rs6000_elf_end_indicate_exec_stack): Rename to..
10726 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10727 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10728 (rs6000_file_start): ..here.
10729 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10730 file scope variables.
10731 (call_ABI_of_interest): New function.
10732 (init_cumulative_args): Set above vars when function return value
10733 is a float, vector, or small struct.
10734 (rs6000_function_arg_advance_1): Likewise for function args.
10735 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10736 references float args.
10737
10738 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10739
10740 * doc/cfg.texi: Remove "See" before @ref.
10741 * doc/invoke.texi: Likewise.
10742
10743 2011-03-05 Jason Merrill <jason@redhat.com>
10744
10745 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10746
10747 2011-03-05 Anthony Green <green@moxielogic.com>
10748
10749 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10750
10751 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10752
10753 PR rtl-optimization/47899
10754 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10755 to flow_loop_nested_p when moving the loop upward.
10756
10757 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10758
10759 PR target/47719
10760 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10761
10762 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10763
10764 PR tree-optimization/47967
10765 * ipa-cp.c (build_const_val): Return NULL instead of creating
10766 VIEW_CONVERT_EXPR for mismatching sizes.
10767 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10768 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10769 give up on versioning.
10770
10771 2011-03-05 Alan Modra <amodra@gmail.com>
10772
10773 PR target/47986
10774 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10775 full cmodel medium/large lo_sum + high addresses.
10776
10777 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10778
10779 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10780 pool references in UNSPEC_LTREL_OFFSET.
10781
10782 2011-03-04 Jan Hubicka <jh@suse.cz>
10783
10784 PR lto/47497
10785 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10786 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10787 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10788 Add node pointers.
10789 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10790 cgraph_add_thunk): Add node pointers.
10791 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10792 associated to right node.
10793 (input_node): Update use of cgraph_same_body_alias
10794 and cgraph_add_thunk.
10795
10796 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10797
10798 * config/i386/i386.opt (mprefer-avx128): New flag.
10799 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10800 modes when the flag -mprefer-avx128 is on.
10801
10802 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10803
10804 * dwarf2out.c (compare_loc_operands): Fix address handling.
10805
10806 2011-03-04 Alan Modra <amodra@gmail.com>
10807
10808 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10809
10810 2011-03-04 Richard Guenther <rguenther@suse.de>
10811
10812 PR middle-end/47968
10813 * expmed.c (extract_bit_field_1): Prefer vector modes that
10814 vec_extract patterns can handle.
10815
10816 2011-03-04 Richard Guenther <rguenther@suse.de>
10817
10818 PR middle-end/47975
10819 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10820
10821 2011-03-04 Richard Henderson <rth@redhat.com>
10822
10823 * explow.c (emit_stack_save): Remove 'after' parameter.
10824 (emit_stack_restore): Likewise.
10825 * expr.h: Update to match.
10826 * builtins.c, calls.c, stmt.c: Likewise.
10827 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10828 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10829 * function.c (expand_function_end): Insert the emit_stack_save
10830 sequence before parm_birth_insn instead of after.
10831
10832 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10833
10834 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10835 (ssse3_pmaddubsw128): Ditto.
10836 (ssse3_pmaddubsw): Ditto.
10837
10838 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10839
10840 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10841
10842 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10843
10844 PR c/47963
10845 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10846 on TYPE_SIZE_UNIT if it is a DECL.
10847
10848 PR debug/47283
10849 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10850 first operand is not is_gimple_mem_ref_addr, try to fold it.
10851 If the operand still isn't is_gimple_mem_ref_addr, clear
10852 MEM_EXPR on op0.
10853
10854 2011-03-03 Richard Guenther <rguenther@suse.de>
10855
10856 PR middle-end/47283
10857 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10858 match comment.
10859 (refs_may_alias_p_1): For release branches return true if
10860 we are confused by our input.
10861
10862 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10863
10864 * config/s390/s390.c (s390_function_value): Rename to ...
10865 (s390_function_and_libcall_value): ... this.
10866 (s390_function_value): New function.
10867 (s390_libcall_value): New function.
10868 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10869 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10870 target macro definitions.
10871 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10872
10873 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10874
10875 * config/i386/freebsd64.h (CC1_SPEC): Define.
10876 * config/i386/linux64.h (CC1_SPEC): Define.
10877 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10878
10879 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10880
10881 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10882 Remove.
10883 * config/stormy16/stormy16.c: Include reload.h.
10884 (xstormy16_memory_move_cost): New function.
10885 (TARGET_MEMORY_MOVE_COST): Define.
10886
10887 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10888
10889 PR rtl-optimization/47925
10890 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10891 with side effects. Remove the more-specific check for volatile asms.
10892
10893 2011-03-02 Alan Modra <amodra@gmail.com>
10894
10895 PR target/47935
10896 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10897 toc relative addresses for valid offsets.
10898
10899 2011-03-01 Richard Guenther <rguenther@suse.de>
10900
10901 PR tree-optimization/47890
10902 * tree-vect-loop.c (get_initial_def_for_induction): Set
10903 related stmt properly.
10904
10905 2011-03-01 Richard Guenther <rguenther@suse.de>
10906
10907 PR lto/47924
10908 * lto-streamer.c (lto_record_common_node): Also register
10909 the canonical type.
10910
10911 2011-03-01 Richard Guenther <rguenther@suse.de>
10912
10913 PR lto/46911
10914 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10915 Do not stream DECL_ABSTRACT_ORIGIN.
10916 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10917 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10918 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10919 Do not stream DECL_ABSTRACT_ORIGIN.
10920 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10921 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10922
10923 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10924
10925 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10926 FUNCTION_VALUE_REGNO_P): Remove.
10927 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10928 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10929 Add 'outgoing' argument.
10930 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10931 function.
10932 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10933 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10934
10935 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10936
10937 PR debug/28047
10938 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10939 (lookup_filename): Likewise.
10940 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10941
10942 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10943 Jakub Jelinek <jakub@redhat.com>
10944
10945 PR middle-end/47893
10946 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10947 (assign_stack_local_1): Change last argument type to int.
10948 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10949 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10950 don't record padding space into frame_space_list nor use those areas.
10951 (assign_stack_local): Adjust caller.
10952 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10953 of assign_stack_local, pass 0 as last argument.
10954 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10955 callers.
10956
10957 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10958
10959 PR debug/47283
10960 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10961 Use target address_mode and pointer_mode hooks instead of hardcoded
10962 Pmode and ptr_mode. Handle some simple cases of extending if
10963 POINTERS_EXTEND_UNSIGNED < 0.
10964 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10965 Call convert_debug_memory_address.
10966 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10967 convert_debug_memory_address.
10968
10969 PR middle-end/46790
10970 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10971 * configure: Regenerated.
10972 * config.in: Regenerated.
10973 * varasm.c (default_function_section): Return NULL
10974 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10975
10976 2011-02-28 Martin Jambor <mjambor@suse.cz>
10977
10978 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10979 the description to match the printed values.
10980
10981 2011-02-28 Richard Guenther <rguenther@suse.de>
10982
10983 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10984 of the copied scope tree.
10985
10986 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10987
10988 * doc/extend.texi (Function Attributes): Avoid deeply (and
10989 wrongly) nested tables.
10990
10991 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10992
10993 PR middle-end/47903
10994 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10995 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10996 r isn't op0 nor op1.
10997
10998 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10999
11000 * config/avr/avr.md: Remove magic comment for emacs.
11001
11002 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11003
11004 PR target/45261
11005 * config/avr/avr.c (avr_option_override): Use error on bad options.
11006 (avr_help): New function.
11007 (TARGET_HELP): Define.
11008
11009 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11010
11011 PR target/42240
11012 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11013 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11014
11015 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11016
11017 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11018 (ARM Options): Ditto.
11019 (i386 and x86-64 Options): Ditto.
11020 (RX Options): Ditto.
11021 (SPARC Options): Ditto.
11022
11023 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11024
11025 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11026 FreeBSD 6 and later. Generally use cpu generic.
11027
11028 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11029
11030 * doc/cpp.texi: Update copyright years.
11031
11032 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11033
11034 PR target/46898
11035 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11036
11037 2011-02-25 Jon Beniston <jon@beniston.com>
11038
11039 PR target/46898
11040 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11041 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11042 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11043 (lm32_block_move_inline): Add type cast to remove warning.
11044 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11045 (gen_int_relational): Move declarations to start of function.
11046
11047 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11048
11049 PR tree-optimization/45470
11050 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11051 can throw internally only.
11052 * tree-vect-stmts.c (vectorizable_call): Likewise.
11053
11054 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11055
11056 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11057 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11058 * config/stormy16/stormy16-protos.h
11059 (xstormy16_preferred_reload_class): Remove.
11060 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11061 static. Change 'rclass' argument and return type to reg_class_t.
11062 (TARGET_PREFERRED_RELOAD_CLASS,
11063 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11064
11065 2011-02-24 Richard Guenther <rguenther@suse.de>
11066
11067 * lto-streamer-in.c (input_bb): Do not find referenced vars
11068 in debug statements.
11069
11070 2011-02-23 Jason Merrill <jason@redhat.com>
11071
11072 * common.opt (fabi-version): Document v5 and v6.
11073
11074 2011-02-23 Richard Guenther <rguenther@suse.de>
11075
11076 PR tree-optimization/47849
11077 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11078
11079 2011-02-23 Jie Zhang <jie@codesourcery.com>
11080
11081 * opts-common.c (decode_cmdline_option): Print empty string
11082 argument as "" in decoded->orig_option_with_args_text.
11083 * gcc.c (execute): Print empty string argument as ""
11084 in the verbose output.
11085 (do_spec_1): Keep empty string argument.
11086
11087 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11088
11089 * config.gcc: Declare score-* and crx-* obsolete.
11090
11091 2011-02-23 Jie Zhang <jie@codesourcery.com>
11092
11093 PR rtl-optimization/47763
11094 * web.c (web_main): Ignore naked clobber when replacing register.
11095
11096 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11097
11098 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11099 Remove.
11100
11101 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11102
11103 PR doc/47848
11104 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11105
11106 2011-02-22 Mike Stump <mikestump@comcast.net>
11107
11108 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11109 assembler.
11110 * configure: Regenerate.
11111
11112 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11113
11114 PR rtl-optimization/46002
11115 * ira-color.c (update_copy_costs): Change class intersection
11116 test to reg_class_contents[] test of 'hard_regno'.
11117
11118 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11119
11120 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11121 than Driver option.
11122 * config/hpux11.opt (mt): Likewise.
11123 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11124 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11125 * config/vax/elf.opt (mno-asm-pic): Likewise.
11126 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11127
11128 2011-02-21 Mike Stump <mikestump@comcast.net>
11129
11130 PR target/47822
11131 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11132 tree so we can get save the type.
11133 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11134 for CFString instead of trying to use past the end of the builtins.
11135 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11136 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11137 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11138 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11139 Rename to darwin_builtin_cfstring.
11140 (darwin_init_cfstring_builtins): Return the built type.
11141
11142 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11143
11144 PR target/47840
11145 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11146 (_mm256_insert_epi64): Use _mm_insert_epi64.
11147
11148 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11149
11150 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11151 * config/stormy16/stormy16-protos.h
11152 (xstormy16_mode_dependent_address_p): Remove.
11153 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11154 Make static. Change return type to bool. Change argument type to
11155 const_rtx. Remove dead code.
11156 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11157
11158 2011-02-21 Richard Guenther <rguenther@suse.de>
11159
11160 PR lto/47820
11161 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11162 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11163 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11164 TUs context.
11165 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11166 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11167
11168 2011-02-20 Richard Guenther <rguenther@suse.de>
11169
11170 PR lto/47822
11171 * tree.c (free_lang_data_in_decl): Clean builtins from
11172 the TU decl BLOCK_VARS.
11173
11174 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11175
11176 PR debug/47620
11177 PR debug/47630
11178 * haifa-sched.c (fix_tick_ready): Skip tick computation
11179 for debug insns.
11180
11181 2011-02-19 Richard Guenther <rguenther@suse.de>
11182
11183 PR lto/47647
11184 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11185 Remove lazy BLOCK_VARS streaming.
11186 (lto_input_ts_block_tree_pointers): Likewise.
11187 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11188
11189 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11190
11191 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11192
11193 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11194
11195 * config/i386/biarch32.h, config/i386/mach.h,
11196 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11197
11198 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11199
11200 PR target/47800
11201 * config/i386/i386.md (peephole2 for shift and plus): Use
11202 operands[1] original mode in the first insn.
11203
11204 2011-02-18 Mike Stump <mikestump@comcast.net>
11205
11206 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11207
11208 2011-02-18 Jan Hubicka <jh@suse.cz>
11209
11210 PR middle-end/47788
11211 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11212 to zero when the function is not inlinable at all.
11213
11214 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11215
11216 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11217 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11218 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11219 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11220 * config/pa/t-pa64: Likewise.
11221 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11222
11223 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR driver/47787
11226 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11227
11228 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11229
11230 PR target/47792
11231 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11232
11233 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11234
11235 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11236 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11237 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11238 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11239 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11240 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11241 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11242 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11243 m32r_legitimate_address_p): New functions.
11244 * config/m32r/constraints.md (constraint "S"): Don't use
11245 STORE_PREINC_PREDEC_P.
11246 (constraint "U"): Don't use LOAD_POSTINC_P.
11247
11248 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11249
11250 PR rtl-optimization/46178
11251 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11252 compute ira_hard_regno_cover_class[].
11253
11254 2011-02-18 Richard Guenther <rguenther@suse.de>
11255
11256 PR lto/47798
11257 * lto-streamer.h (lto_global_var_decls): Declare.
11258 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11259 statics for global var processing.
11260
11261 2011-02-18 Richard Guenther <rguenther@suse.de>
11262
11263 PR tree-optimization/47737
11264 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11265 edge dominance check.
11266
11267 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11268
11269 PR debug/47780
11270 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11271 avoid invalid rtx sharing.
11272
11273 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11274
11275 * doc/cpp.texi (Obsolete Features): Add background on the
11276 origin of assertions.
11277
11278 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11279
11280 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11281 objc_abi == 2.
11282 * config/darwin.c (output_objc_section_asm_op): Added support for
11283 ABI v1 and v2.
11284 (is_objc_metadata): New.
11285 (darwin_objc2_section): New.
11286 (darwin_objc1_section): New.
11287 (machopic_select_section): Added support for ABI v1 and v2.
11288 (darwin_emit_objc_zeroed): New.
11289 (darwin_output_aligned_bss): Detect objc metadata and treat it
11290 appropriately.
11291 (darwin_asm_output_aligned_decl_common): Same.
11292 (darwin_asm_output_aligned_decl_local): Same.
11293 * config/darwin-sections.def: Updated for ABI v1 and v2.
11294 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11295 compiling Objective-C code for the NeXT runtime, default to using
11296 ABI version 0 for 32-bit, and version 2 for 64-bit.
11297
11298 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11299
11300 * common.opt (optimize_fast): New Variable.
11301 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11302 instead of local variable ofast.
11303
11304 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11305
11306 * doc/invoke.texi (fobjc-abi-version): Documented.
11307 (fobjc-nilcheck): Documented.
11308 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11309 version.
11310
11311 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11312
11313 PR driver/47390
11314 * common.opt (export-dynamic): New Driver option.
11315 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11316
11317 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11318
11319 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11320
11321 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11322 Jan Hubicka <jh@suse.cz>
11323
11324 PR debug/47106
11325 PR debug/47402
11326 * cfgexpand.c (account_used_vars_for_block): Remove.
11327 (estimated_stack_frame_size): Use referenced vars.
11328 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11329 that were referenced in the original function. Test src_fn
11330 rather than cfun. Drop redundant get_var_ann.
11331 (setup_one_parameter): Drop redundant get_var_ann.
11332 (declare_return_variable): Likewise.
11333 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11334 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11335 * ipa-inline.c (compute_inline_parameters): Do not compute
11336 disregard_inline_limits here.
11337 (compute_inlinable_for_current, pass_inlinable): New.
11338 (pass_inline_parameters): Require PROP_referenced_vars.
11339 * cgraphunit.c (cgraph_process_new_functions): Don't run
11340 compute_inline_parameters explicitly unless function is in SSA form.
11341 (cgraph_analyze_function): Set .disregard_inline_limits.
11342 * tree-sra.c (convert_callers): Compute inliner parameters
11343 only for functions already in SSA form.
11344
11345 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11346
11347 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11348 -mlittle-endian-data.
11349
11350 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11351
11352 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11353 -mno-fpu, not -fpu and -no-fpu.
11354 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11355 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11356
11357 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11358
11359 PR target/43653
11360 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11361 input reload with PLUS RTX.
11362
11363 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11364
11365 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11366 of InverseVar(MDMX).
11367
11368 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11369
11370 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11371 --m4-340.
11372
11373 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11374
11375 * config/mn10300/mn10300.opt (mno-crt0): New.
11376
11377 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11378
11379 * config/m68k/uclinux.opt (static-libc): New Driver option.
11380
11381 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11382
11383 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11384
11385 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11386
11387 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11388 %{muser-extend-enabled}.
11389
11390 2011-02-16 Richard Guenther <rguenther@suse.de>
11391
11392 PR tree-optimization/47738
11393 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11394 the TODO from tree_predictive_commoning.
11395
11396 2011-02-15 Jeff Law <law@redhat.com>
11397
11398 Revert
11399 2011-01-25 Jeff Law <law@redhat.com>
11400
11401 PR rtl-optimization/37273
11402 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11403 handle them like argument loads from stack slots. Do not double
11404 count memory for memory constants and argument loads from stack slots.
11405
11406 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11407
11408 PR middle-end/47725
11409 * combine.c (cant_combine_insn_p): Revert the last change.
11410
11411 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11412
11413 PR target/47755
11414 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11415 mode for vector constants. Remove code that checks for TImode.
11416
11417 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11418
11419 PR debug/47106
11420 PR debug/47402
11421 * cgraph.h (compute_inline_parameters): Return void.
11422 * ipa-inline.c (compute_inline_parameters): Adjust.
11423
11424 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11425
11426 PR debug/47106
11427 PR debug/47402
11428 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11429 rather than decl.
11430 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11431 * ipa-inline.c (compute_inline_parameters): Adjust.
11432
11433 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11434
11435 PR debug/47106
11436 PR debug/47402
11437 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11438 Adjust all users. Pass FN to...
11439 * tree-flow-inline.h (first_referenced_var): ... this. Add
11440 fn argument.
11441 * ipa-struct-reorg.c: Adjust.
11442 * tree-dfa.c: Adjust.
11443 * tree-into-ssa.c: Adjust.
11444 * tree-sra.c: Adjust.
11445 * tree-ssa-alias.c: Adjust.
11446 * tree-ssa-live.c: Adjust.
11447 * tree-ssa.c: Adjust.
11448 * tree-ssanames.c: Adjust.
11449 * tree-tailcall.c: Adjust.
11450
11451 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11452
11453 PR debug/47106
11454 PR debug/47402
11455 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11456 Adjust all callers.
11457 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11458 * tree-flow-inline.h: Adjust.
11459 * gimple-pretty-print.c: Adjust.
11460 * tree-into-ssa.c: Adjust.
11461 * tree-ssa.c: Adjust.
11462 * cfgexpand.c: Adjust.
11463
11464 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11465
11466 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11467 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11468 (EXTRA_CONSTRAINT): Delete.
11469 * config/iq2000/constraints.md: New file.
11470 * config/iq2000/iq2000.md: Include it.
11471 (define_insn ""): Delete.
11472 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11473 unsupported constraint letters from patterns.
11474 (call_value, call_value_internal1): Likewise.
11475 (call_value_multiple_internal1): Likewise.
11476
11477 2011-02-15 Nick Clifton <nickc@redhat.com>
11478
11479 * config/mn10300/mn10300.c: Include tm-constrs.h.
11480 (struct liw_data): New data structure describing an LIW candidate
11481 instruction.
11482 (extract_bundle): Use struct liw_data. Allow small integer
11483 operands for some instructions.
11484 (check_liw_constraints): Use struct liw_data. Remove swapped
11485 parameter. Add comments describing the checks. Fix bug when
11486 assigning the source of liw1 to the source of liw2.
11487 (liw_candidate): Delete. Code moved into extract_bundle.
11488 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11489 before swapping.
11490 * config/mn10300/predicates.md (liw_operand): New predicate.
11491 Allows registers and small integer constants.
11492 * config/mn10300/constraints.md (O): New constraint. Accetps
11493 integers in the range -8 to +7 inclusive.
11494 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11495 for moving a small integer into a register. Give this alternative
11496 LIW attributes.
11497 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11498 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11499 using the J,K,L and M constraints,
11500 (liw): Remove SI mode on second operands to allow for HI and QI
11501 mode values.
11502 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11503 instruction.
11504
11505 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11506
11507 PR middle-end/47725
11508 * combine.c (cant_combine_insn_p): Check zero/sign extended
11509 hard registers.
11510
11511 2011-02-15 Richard Guenther <rguenther@suse.de>
11512
11513 PR tree-optimization/47743
11514 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11515 for a non-type-compatible VN lookup bail out.
11516
11517 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11518
11519 * config/fr30/constraints.md: New file.
11520 * config/fr30/fr30.md: Include it.
11521 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11522 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11523 (EXTRA_CONSTRAINT): Delete.
11524
11525 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11526
11527 * config/frv/constraints.md: New file.
11528 * config/frv/predicates.md: Include it.
11529 * config/frv/frv.c (reg_class_from_letter): Delete.
11530 (frv_option_override): Don't initialize it.
11531 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11532 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11533 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11534 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11535 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11536 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11537 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11538 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11539 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11540 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11541 (REG_CLASS_FROM_CONSTRAINT): Delete.
11542
11543 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11544
11545 PR middle-end/47581
11546 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11547 if frame size is 0 in a leaf function.
11548
11549 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11550
11551 PR pch/14940
11552 * config/alpha/host-osf.c: New file.
11553 * config/alpha/x-osf: New file.
11554 * config.host (alpha*-dec-osf*): Use it.
11555
11556 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11557
11558 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11559 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11560 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11561 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11562 type to const_rtx.
11563 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11564
11565 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11566
11567 * config/stormy16/constraints.md: New file.
11568 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11569 Use satisfies_constraint_Q and satisfies_constraint_R.
11570 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11571 Delete.
11572 (xstormy16_legitiamte_address_p): Declare.
11573 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11574 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11575 (EXTRA_CONSTRAINT): Delete.
11576 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11577 Un-staticize.
11578 (xstormy16_extra_constraint_p): Delete.
11579
11580 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11581
11582 PR tree-optimization/46494
11583 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11584 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11585 (pass_rtl_loop_done): Add TODO_verify_flow.
11586 * fwprop.c (pass_rtl_fwprop): Likewise.
11587 * modulo-sched.c (pass_sms): Likewise.
11588 * tree-ssa-dom.c (pass_dominator): Likewise.
11589 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11590 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11591 (pass_tree_loop_done): Likewise.
11592 * tree-ssa-pre.c (execute_pre): Likewise.
11593 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11594 * tree-ssa-sink.c (pass_sink_code): Likewise.
11595 * tree-vrp.c (pass_vrp): Likewise.
11596
11597 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11598
11599 * config/v850/constraints.md: New file.
11600 * config/v850/v850.md: Include it.
11601 * config/v850/predicates.md (reg_or_0_operand): Use
11602 satisfies_constraint_G.
11603 (special_symbolref_operand): Use satisfies_constraint_K.
11604 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11605 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11606 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11607 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11608 (EXTRA_CONSTRAINT): Delete.
11609 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11610 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11611 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11612
11613 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11614
11615 PR target/47696
11616 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11617 description.
11618
11619 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11620
11621 * config/mcore/constraints.md: New file.
11622 * config/mcore/mcore.md: Include it.
11623 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11624 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11625 (REG_CLASS_FROM_LETTER): Delete.
11626 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11627 insn_const_int_ok_for_constraint.
11628 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11629 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11630 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11631 (EXTRA_CONSTRAINT): Delete.
11632
11633 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11634
11635 PR ada/41929
11636 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11637 (IS_SIGHANDLER): Define.
11638 (sparc64_is_sighandler): New function, split off from
11639 sparc64_fallback_frame_state.
11640 (sparc_is_sighandler): New function, split off from
11641 sparc_fallback_frame_state.
11642 (sparc64_fallback_frame_state): Merge with ...
11643 (sparc_fallback_frame_state): ... this into ...
11644 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11645 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11646 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11647 stack instead of hardcoded offsets.
11648
11649 2011-02-14 Andriy Gapon <avg@freebsd.org>
11650
11651 PR target/45808
11652 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11653
11654 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11655
11656 * configure: Regenerate.
11657
11658 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11659
11660 PR driver/45731
11661 * gcc.c (asm_options): Correct spec matching --target-help.
11662
11663 2011-02-12 Martin Jambor <mjambor@suse.cz>
11664
11665 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11666 to gimple call error.
11667
11668 2011-02-12 Mike Stump <mikestump@comcast.net>
11669
11670 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11671 comments in backslash regions.
11672
11673 2011-02-12 Mike Stump <mikestump@comcast.net>
11674 Jakub Jelinek <jakub@redhat.com>
11675 Iain Sandoe <iains@gcc.gnu.org>
11676
11677 PR target/47324
11678 * dwarf2out.c (output_cfa_loc): When required, apply the
11679 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11680 (output_loc_sequence): Likewise.
11681 (output_loc_operands_raw): Likewise.
11682 (output_loc_sequence_raw): Likewise.
11683 (output_cfa_loc): Likewise.
11684 (output_loc_list): Suppress register number adjustment when
11685 calling output_loc_sequence()
11686 (output_die): Likewise.
11687
11688 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11689
11690 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11691 Remove macros.
11692 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11693 xtensa_memory_move_cost): New functions.
11694 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11695
11696 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11697
11698 PR lto/47225
11699 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11700 in the current directory.
11701 * configure: Rebuilt.
11702
11703 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11704
11705 * config/darwin.c (darwin_override_options): Add a hunk missed
11706 from the commit of r168571. Trim comment line lengths and
11707 correct indents of the preceding block.
11708
11709 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11710
11711 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11712 the switch.
11713
11714 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11715
11716 * common.opt (nostartfiles): New Driver option.
11717
11718 2011-02-11 Xinliang David Li <davidxl@google.com>
11719
11720 PR tree-optimization/47707
11721 * tree-chrec.c (convert_affine_scev): Keep type precision.
11722
11723 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11724
11725 PR tree-optimization/47420
11726 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11727
11728 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11729
11730 PR rtl-optimization/47614
11731 * rtl.h (check_for_inc_dec): Declare.
11732 * dse.c (check_for_inc_dec): Externalize...
11733 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11734 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11735
11736 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11737
11738 PR driver/47678
11739 * gcc.c (main): Do not compile inputs if there were errors in
11740 option handling.
11741 * opts-common.c (read_cmdline_option): Check for wrong language
11742 after other error checks.
11743
11744 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11745
11746 * cgraph.c: Fix comment typos.
11747 * cgraph.h: Likewise.
11748 * cgraphunit.c: Likewise.
11749 * ipa-cp.c: Likewise.
11750 * ipa-inline.c: Likewise.
11751 * ipa-prop.c: Likewise.
11752 * ipa-pure-const.c: Likewise.
11753 * ipa-ref.c: Likewise.
11754 * ipa-reference.c: Likewise.
11755
11756 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11757
11758 PR debug/47684
11759 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11760
11761 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11762
11763 PR testsuite/47400
11764 * doc/sourcebuild.texi (Require Support): Document
11765 dg-require-ascii-locale.
11766
11767 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11768
11769 * doc/lto.texi (Write summary): Fix missing parentheses.
11770
11771 2011-02-10 DJ Delorie <dj@redhat.com>
11772
11773 * config/m32c/m32c.c (m32c_option_override): Disable
11774 -fcombine-stack-adjustments until flag value tracking and compare
11775 optimization can be rewritten.
11776
11777 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11778
11779 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11780 PROCESSOR_POWER7.
11781 (PROCESSOR_DEFAULT64): Likewise.
11782
11783 2011-02-10 Richard Henderson <rth@redhat.com>
11784
11785 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11786 change from 2011-02-03.
11787 * config/rx/rx.c (flags_from_code): Likewise.
11788 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11789 is valid, n/pz otherwise.
11790 (rx_select_cc_mode): Return CCmode if Y is not zero.
11791
11792 2011-02-10 Richard Guenther <rguenther@suse.de>
11793
11794 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11795
11796 2011-02-10 Richard Guenther <rguenther@suse.de>
11797
11798 PR tree-optimization/47677
11799 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11800
11801 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11802
11803 PR target/47665
11804 * combine.c (make_compound_operation): Only change shifts into
11805 multiplication for SCALAR_INT_MODE_P.
11806
11807 2011-02-10 Jie Zhang <jie@codesourcery.com>
11808
11809 PR testsuite/47622
11810 Revert
11811 2011-02-05 Jie Zhang <jie@codesourcery.com>
11812 PR debug/42631
11813 * web.c (entry_register): Don't clobber the number of the
11814 first uninitialized reference in used[].
11815
11816 2011-02-09 Richard Guenther <rguenther@suse.de>
11817
11818 PR tree-optimization/47664
11819 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11820 all edges again.
11821
11822 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11823
11824 PR target/46481
11825 PR target/47032
11826 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11827 PROCESSOR_POWER7.
11828 (PROCESSOR_DEFAULT64): Same.
11829 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11830
11831 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11832
11833 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11834
11835 2011-02-09 Martin Jambor <mjambor@suse.cz>
11836
11837 PR middle-end/45505
11838 * tree-sra.c (struct access): New flags grp_scalar_read and
11839 grp_scalar_write. Changed description of assignment read and write
11840 flags.
11841 (dump_access): Dump new flags, reorder all of them.
11842 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11843 to detect multiple scalar reads.
11844 (analyze_access_subtree): Use the new scalar read write flags instead
11845 of the old flags. Adjusted comments.
11846
11847 2011-02-08 DJ Delorie <dj@redhat.com>
11848
11849 PR target/47548
11850 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11851 patterns.
11852
11853 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11854
11855 * config/m68k/uclinux.opt: New.
11856 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11857
11858 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11859
11860 * config/cris/elf.opt (sim): New Driver option.
11861
11862 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11863
11864 * config/xtensa/elf.opt: New.
11865 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11866
11867 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11868
11869 * config/vax/elf.opt: New.
11870 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11871
11872 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11873
11874 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11875
11876 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11877
11878 * config/gnu-user.opt: New.
11879 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11880 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11881 *-*-uclinux*): Use gnu-user.opt.
11882
11883 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11884
11885 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11886 * config/i386/gnu.h (CPP_SPEC): Likewise.
11887
11888 2011-02-08 Ian Lance Taylor <iant@google.com>
11889
11890 * common.opt (fcx-limited-range): Add SetByCombined flag.
11891 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11892 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11893 (fassociative-math, freciprocal-math): Likewise.
11894 (funsafe-math-optimizations): Likewise.
11895 * opth-gen.awk: Handle SetByCombined.
11896 * optc-gen.awk: Likewise.
11897 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11898 (set_unsafe_math_optimizations_flags): Likewise.
11899 * doc/options.texi (Option properties): Document SetByCombined.
11900
11901 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11902
11903 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11904 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11905 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11906 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11907 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11908
11909 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11910
11911 PR tree-optimization/46834
11912 PR tree-optimization/46994
11913 PR tree-optimization/46995
11914 * graphite-sese-to-poly.c (used_outside_reduction): New.
11915 (detect_commutative_reduction): Call used_outside_reduction.
11916 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11917 translate_scalar_reduction_to_array only when at least one
11918 loop-phi/close-phi tuple has been detected.
11919
11920 2011-02-08 Richard Guenther <rguenther@suse.de>
11921
11922 PR middle-end/47639
11923 * tree-vect-generic.c (expand_vector_operations_1): Update
11924 stmts here ...
11925 (expand_vector_operations): ... not here. Cleanup EH info
11926 and the CFG if required.
11927
11928 2011-02-08 Richard Guenther <rguenther@suse.de>
11929
11930 PR tree-optimization/47641
11931 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11932 require type compatibility.
11933
11934 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11935
11936 * gimple-low.c (lower_function_body): Don't remove the location of
11937 the return statement here.
11938 (lower_gimple_return): Do it here instead but only if the return
11939 statement is actually used twice.
11940
11941 2011-02-08 Richard Guenther <rguenther@suse.de>
11942
11943 PR tree-optimization/47632
11944 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11945 unused up_to_stmt parameter, return whether cfg-cleanup is
11946 necessary, remove EH info properly.
11947 (forward_propagate_into_gimple_cond): Adjust caller.
11948 (forward_propagate_into_cond): Likewise.
11949 (forward_propagate_comparison): Likewise.
11950 (tree_ssa_forward_propagate_single_use_vars): Make
11951 forward_propagate_comparison case similar to the two others.
11952
11953 2011-02-08 Nick Clifton <nickc@redhat.com>
11954
11955 * config/mn10300/mn10300.opt (mliw): New command line option.
11956 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11957 (liw_bundling): New automaton.
11958 (liw): New attribute.
11959 (liw_op): New attribute.
11960 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11961 (movsi_internal): Add LIW attributes.
11962 (andsi3): Likewise.
11963 (iorsi3): Likewise.
11964 (xorsi3): Likewise.
11965 (addsi3): Separate register and immediate alternatives.
11966 Add LIW attributes.
11967 (subsi3): Likewise.
11968 (cmpsi): Likewise.
11969 (aslsi3): Likewise.
11970 (lshrsi3): Likewise.
11971 (ashrsi3): Likewise.
11972 (liw): New pattern.
11973 * config/mn10300/mn10300.c (liw_op_names): New
11974 (mn10300_print_operand): Handle 'W' operand descriptor.
11975 (extract_bundle): New function.
11976 (check_liw_constraints): New function.
11977 (liw_candidate): New function.
11978 (mn10300_bundle_liw): New function.
11979 (mn10300_reorg): New function.
11980 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11981 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11982 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11983 __LIW__ or __NO_LIW__.
11984 * doc/invoke.texi: Describe the -mliw command line option.
11985
11986 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11987
11988 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11989 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11990 pthread_mutex_unlock): Remove.
11991 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11992 * config/pa/t-pa64: Likewise.
11993 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11994 shared libc if not linking against libpthread.
11995 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11996
11997 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11998
11999 PR target/47558
12000 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12001 on 10.6 and later to ensure that we always use the unwinder from
12002 the system. Only add -no_compact_unwind when tarteting darwin
12003 10.6 or later.
12004
12005 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12006
12007 PR target/46997
12008 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12009 (vec_interleave_lowv2sf): Ditto.
12010 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12011 (vec_extract_oddv2sf): Ditto.
12012
12013 2011-02-07 Mike Stump <mikestump@comcast.net>
12014
12015 PR target/42333
12016 Add __ieee_divdc3 entry point.
12017 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12018 entry point.
12019 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12020 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12021 * config/darwin.c (darwin_rename_builtins): Add.
12022 * config/darwin-protos.h (darwin_rename_builtins): Add.
12023
12024 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12025
12026 PR target/47636
12027 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12028 for the condition.
12029
12030 2011-02-07 Mike Stump <mikestump@comcast.net>
12031
12032 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12033
12034 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12035
12036 PR target/47534
12037 * config/avr/libgcc.S (exit): Move .endfunc
12038
12039 2011-02-07 Richard Guenther <rguenther@suse.de>
12040
12041 PR tree-optimization/47615
12042 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12043 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12044 (run_scc_vn): Initialize it.
12045 (visit_reference_op_load): Use it.
12046 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12047
12048 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12049
12050 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12051 DImode trapping arithmetic libfuncs.
12052
12053 2011-02-07 Richard Guenther <rguenther@suse.de>
12054
12055 PR tree-optimization/47621
12056 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12057 two duplicates ...
12058 (execute_update_addresses_taken): ... here. Make it more
12059 conservative in what we accept.
12060
12061 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12062
12063 * config/sparc/freebsd.h (ASM_SPEC): Define.
12064 * config/sparc/vxworks.h (ASM_SPEC): Define.
12065
12066 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12067
12068 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12069
12070 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12071
12072 * doc/invoke.texi: Remove reference to compiler internals from
12073 user documentation.
12074
12075 * reg-notes.def: Remove REG_VALUE_PROFILE.
12076 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12077
12078 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR middle-end/47610
12081 * varasm.c (default_section_type_flags): If decl is NULL,
12082 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12083
12084 2011-02-05 Jie Zhang <jie@codesourcery.com>
12085
12086 PR debug/42631
12087 * web.c (entry_register): Don't clobber the number of the
12088 first uninitialized reference in used[].
12089
12090 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12091
12092 PR tree-optimization/46194
12093 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12094 (build_classic_dist_vector_1): Do not represent classic distance
12095 vectors when the access functions are variating in different loops.
12096
12097 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12098
12099 * config/mips/iris6.opt: New.
12100 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12101
12102 2011-02-04 Richard Henderson <rth@redhat.com>
12103 Steve Ellcey <sje@cup.hp.com>
12104
12105 PR target/46997
12106 * config/ia64/predicates.md (mux1_brcst_element): New.
12107 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12108 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12109 (ia64_unpack_sign): New.
12110 (ia64_expand_unpack): Rewrite using new routines.
12111 (ia64_expand_widen_sum): Ditto.
12112 (ia64_expand_dot_prod_v8qi): Ditto.
12113 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12114 routines, add endian check.
12115 (pmpy2_even): Rename from pmpy2_r, add endian check.
12116 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12117 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12118 (vec_widen_smult_hi_v4hi): Ditto.
12119 (vec_widen_umult_lo_v4hi): Ditto.
12120 (vec_widen_umult_hi_v4hi): Ditto.
12121 (mulv2si3): Change endian checks.
12122 (sdot_prodv4hi): Rewrite with new calls.
12123 (udot_prodv4hi): New.
12124 (vec_pack_ssat_v4hi): Add endian check.
12125 (vec_pack_usat_v4hi): Ditto.
12126 (vec_pack_ssat_v2si): Ditto.
12127 (max1_even): Rename from max1_r, add endian check.
12128 (max1_odd): Rename from max1_l, add endian check.
12129 (*mux1_rev): Format change.
12130 (*mux1_mix): Ditto.
12131 (*mux1_shuf): Ditto.
12132 (*mux1_alt): Ditto.
12133 (*mux1_brcst_v8qi): Use new predicate.
12134 (vec_extract_evenv8qi): Remove endian check.
12135 (vec_extract_oddv8qi): Ditto.
12136 (vec_interleave_lowv4hi): Format change.
12137 (vec_interleave_highv4hi): Ditto.
12138 (mix2_even): Rename from mix2_r, add endian check.
12139 (mix2_odd): Rename from mux2_l, add endian check.
12140 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12141 (vec_extract_evenodd_helper): Format change.
12142 (vec_extract_evenv4hi): Remove endian check.
12143 (vec_extract_oddv4hi): Remove endian check.
12144 (vec_interleave_lowv2si): Format change.
12145 (vec_interleave_highv2si): Format change.
12146 (vec_initv2si): Remove endian check.
12147 (vecinit_v2si): Add endian check.
12148 (reduc_splus_v2sf): Add endian check.
12149 (reduc_smax_v2sf): Ditto.
12150 (reduc_smin_v2sf): Ditto.
12151 (vec_initv2sf): Remove endian check.
12152 (fpack): Add endian check.
12153 (fswap): Add endian check.
12154 (vec_interleave_highv2sf): Add endian check.
12155 (vec_interleave_lowv2sf): Add endian check.
12156 (fmix_lr): Add endian check.
12157 (vec_setv2sf): Format change.
12158 (*vec_extractv2sf_0_be): Use shift to extract operand.
12159 (*vec_extractv2sf_1_be): New.
12160 (vec_pack_trunc_v4hi): Add endian check.
12161 (vec_pack_trunc_v2si): Format change.
12162
12163 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12164
12165 PR inline-asm/23200
12166 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12167 do bb, locus and block comparison and disallow loads if it is not set.
12168 (stmt_is_replaceable_p): New function.
12169 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12170 callers.
12171 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12172 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12173 SSA_NAME_DEF_STMT.
12174 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12175
12176 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12177
12178 * config/rs6000/xilinx.opt: New.
12179 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12180
12181 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12182
12183 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12184
12185 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12186
12187 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12188 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12189 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12190 secondary_reload_info, xtensa_secondary_reload): Remove.
12191 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12192 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12193 (xtensa_preferred_reload_class): Make static. Change return and
12194 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12195 Use CONST_DOUBLE_P predicate.
12196 (xtensa_preferred_output_reload_class): New function.
12197 (xtensa_secondary_reload): Make static.
12198
12199 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12200
12201 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12202 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12203 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12204
12205 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12206
12207 PR middle-end/31490
12208 * output.h (SECTION_RELRO): Define.
12209 (SECTION_MACH_DEP): Adjust.
12210 (get_variable_section): New prototype.
12211 * varpool.c (varpool_finalize_named_section_flags): New function.
12212 (varpool_assemble_pending_decls): Call it.
12213 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12214 * cgraphunit.c (cgraph_output_in_order): Call
12215 varpool_finalize_named_section_flags.
12216 * varasm.c (get_section): Allow section flags conflicts between
12217 relro and read-only sections if the section hasn't been declared yet.
12218 Set SECTION_OVERRIDE after diagnosing section type conflict.
12219 (get_variable_section): No longer static.
12220 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12221 readonly sections that need relocations.
12222 (decl_readonly_section_1): New function.
12223 (decl_readonly_section): Use it.
12224
12225 Revert:
12226 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12227 Steve Ellcey <sje@cup.hp.com>
12228
12229 PR middle-end/31490
12230 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12231 if section attribute used.
12232
12233 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12234
12235 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12236 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12237 (darwin_init_sections): Remove assertion.
12238
12239 2011-02-03 Nick Clifton <nickc@redhat.com>
12240
12241 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12242 lt and ge.
12243 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12244 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12245 instead of "n" and "pz".
12246 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12247 CC_FLAG_S.
12248
12249 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12250
12251 PR target/47312
12252 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12253 fma, expand FMA_EXPR as fma{,f,l} call.
12254
12255 PR lto/47274
12256 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12257 copy them into a unsigned char variable and pass address of it to
12258 lto_output_data_stream.
12259
12260 PR target/47564
12261 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12262 around backend_init_target and lang_dependent_init_target calls.
12263 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12264 (verify_cgraph_node): Don't call set_cfun here. Use
12265 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12266 Set error_found for incorrectly represented calls to thunks.
12267
12268 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12269
12270 PR debug/43092
12271 PR rtl-optimization/43494
12272 * rtl.h (for_each_inc_dec_fn): New type.
12273 (for_each_inc_dec): Declare.
12274 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12275 (for_each_inc_dec_find_inc_dec): New fn.
12276 (for_each_inc_dec_find_mem): New fn.
12277 (for_each_inc_dec): New fn.
12278 * dse.c (struct insn_size): Remove.
12279 (replace_inc_dec, replace_inc_dec_mem): Remove.
12280 (emit_inc_dec_insn_before): New fn.
12281 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12282 (canon_address): Pass mem modes to cselib_lookup.
12283 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12284 (cselib_lookup_from_insn): Likewise.
12285 (cselib_subst_to_values): Likewise.
12286 * cselib.c (find_slot_memmode): New var.
12287 (cselib_find_slot): New fn. Use it instead of
12288 htab_find_slot_with_hash everywhere.
12289 (entry_and_rtx_equal_p): Use find_slot_memmode.
12290 (autoinc_split): New fn.
12291 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12292 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12293 Deal with autoinc. Special-case recursion into MEMs.
12294 (cselib_hash_rtx): Likewise.
12295 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12296 address and MEM modes.
12297 (cselib_subst_to_values): Add memmode, pass it on.
12298 Deal with autoinc.
12299 (cselib_lookup): Add memmode argument, pass it on.
12300 (cselib_lookup_from_insn): Add memmode.
12301 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12302 (struct cselib_record_autoinc_data): New.
12303 (cselib_record_autoinc_cb): New fn.
12304 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12305 mode to cselib_lookup. Reset autoinced REGs here instead of...
12306 (cselib_process_insn): ... here.
12307 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12308 to cselib_lookup.
12309 (add_uses): Likewise, also to cselib_subst_to_values.
12310 (add_stores): Likewise.
12311 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12312 cselib_subst_to_values.
12313 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12314 * gcse.c (do_local_cprop): Adjusted.
12315 * postreload.c (reload_cse_simplify_set): Adjusted.
12316 (reload_cse_simplify_operands): Adjusted.
12317 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12318
12319 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12320
12321 PR tree-optimization/45122
12322 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12323 unsafe assumptions when there's more than one loop exit.
12324
12325 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12326
12327 PR target/47272
12328 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12329 Document using vector double with the load/store builtins, and
12330 that the load/store builtins always use Altivec instructions.
12331
12332 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12333 to use altivec memory instructions, even on VSX.
12334 (vector_altivec_store_<mode>): Ditto.
12335
12336 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12337 function.
12338
12339 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12340 V2DF, V2DI support to load/store overloaded builtins.
12341
12342 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12343 altivec load/store builtins for V2DF/V2DI types.
12344
12345 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12346 set avoid indexed addresses on power6 if -maltivec.
12347 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12348 vector_altivec_load/vector_altivec_store builtins.
12349 (altivec_expand_st_builtin): Ditto.
12350 (altivec_expand_builtin): Add VSX memory builtins.
12351 (rs6000_init_builtins): Add V2DI types to internal types.
12352 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12353 load/store builtins.
12354 (rs6000_address_for_altivec): Insure memory address is appropriate
12355 for Altivec.
12356
12357 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12358 vec_vsx_ld and vec_vsx_st.
12359 (vsx_store_<mode>): Ditto.
12360
12361 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12362 variables to hold long long types for VSX vector memory builtins.
12363 (RS6000_BTI_unsigned_long_long): Ditto.
12364 (long_long_integer_type_internal_node): Ditti.
12365 (long_long_unsigned_type_internal_node): Ditti.
12366
12367 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12368 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12369 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12370
12371 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12372 short cuts.
12373 (vec_vsx_st): Ditto.
12374
12375 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12376
12377 * config/pa/pa-hpux10.opt: New.
12378 * config/hpux11.opt (pthread): New Driver option.
12379 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12380 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12381
12382 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12383
12384 * config/ia64/vms.opt: New.
12385 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12386
12387 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12388
12389 PR target/47580
12390 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12391 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12392 generator functions.
12393 (vsx_floatuns<VSi><mode>2): Ditto.
12394 (vsx_fix_trunc<mode><VSi>2): Ditto.
12395 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12396
12397 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12398
12399 * config/i386/djgpp.opt (posix): New Driver option.
12400
12401 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12402
12403 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12404 Move to the unsupported targets list.
12405
12406 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12407
12408 PR rtl-optimization/47525
12409 * df-scan.c: Update copyright years.
12410 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12411 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12412
12413 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12414
12415 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12416 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12417 (ASM_OUTPUT_ASCII): Remove.
12418 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12419
12420 2011-02-02 Jeff Law <law@redhat.com>
12421
12422 PR middle-end/47543
12423 * reload.c (find_reloads_address): Handle reg+d address where both
12424 components are invalid by reloading the entire address.
12425
12426 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12427 Richard Guenther <rguenther@suse.de>
12428
12429 PR tree-optimization/40979
12430 PR bootstrap/47044
12431 * passes.c (init_optimization_passes): After LIM call copy_prop
12432 and DCE to clean up.
12433 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12434
12435 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12436
12437 PR tree-optimization/47576
12438 PR tree-optimization/47555
12439 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12440 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12441 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12442 * tree-scalar-evolution.c (follow_ssa_edge): Use
12443 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12444
12445 2011-02-02 Richard Guenther <rguenther@suse.de>
12446
12447 PR tree-optimization/47566
12448 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12449
12450 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12451
12452 PR debug/47106
12453 PR debug/47402
12454 * tree-inline.c (declare_return_variable): Remove unused caller
12455 variable.
12456
12457 PR debug/47106
12458 PR debug/47402
12459 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12460 * cfgexpand.c (account_used_vars_for_block): Use them.
12461 * tree-nrv.c (tree_nrv): Likewise.
12462 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12463 (dump_scope_block): Likewise.
12464 (remove_unused_locals): Likewise.
12465
12466 PR debug/47106
12467 PR debug/47402
12468 * tree-inline.c (declare_return_variable): Add result decl to
12469 local decls only once.
12470 * gimple-low.c (record_vars_into): Mark newly-created variables
12471 as referenced.
12472
12473 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12474
12475 PR debug/47498
12476 PR debug/47501
12477 PR debug/45136
12478 PR debug/45130
12479 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12480 debug insns.
12481 (no_real_insns_p, schedule_block, set_priorities): Drop special
12482 treatment of boundary debug insns.
12483 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12484 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12485 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12486 (BOUNDARY_DEBUG_INSN_P): Likewise.
12487 (SCHEDULE_DEBUG_INSN_P): Likewise.
12488 * sched-rgn.c (init_ready_list): Drop special treatment of
12489 boundary debug insns.
12490 * final.c (rest_of_clean_state): Clear notes' BB.
12491
12492 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12493
12494 * config/openbsd.opt (assert=): New Driver option.
12495
12496 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12497
12498 * config/i386/nto.opt: New.
12499 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12500
12501 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12502
12503 * config/i386/netware.opt: New.
12504 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12505
12506 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12507
12508 * config/interix.opt (posix): New Driver option.
12509
12510 2011-02-01 DJ Delorie <dj@redhat.com>
12511
12512 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12513
12514 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12515 class for A0/A1.
12516
12517 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12518
12519 PR tree-optimization/47561
12520 * toplev.c (process_options): Print the Graphite flags. Add
12521 flag_loop_flatten to the list of options requiring Graphite.
12522
12523 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12524
12525 * config/i386/cygming.opt (posix): New Driver option.
12526
12527 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12528
12529 * config/arm/vxworks.opt: New.
12530 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12531
12532 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12533
12534 * config/alpha/elf.opt: New.
12535 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12536 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12537
12538 2011-02-01 Richard Guenther <rguenther@suse.de>
12539
12540 PR tree-optimization/47559
12541 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12542 store-motion on references that can throw.
12543
12544 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12545
12546 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12547 * tree-pass.h (TDF_CSELIB): New macro.
12548 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12549 cselib_lookup): Check for it rather than for TDF_DETAILS.
12550
12551 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12552
12553 PR driver/47547
12554 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12555 is HOST_BIT_BUCKET.
12556
12557 * opts.c (finish_options): Don't add x_aux_base_name if it is
12558 HOST_BIT_BUCKET.
12559
12560 2011-02-01 Richard Guenther <rguenther@suse.de>
12561
12562 PR tree-optimization/47555
12563 Revert
12564 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12565
12566 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12567
12568 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12569
12570 PR gcc/46692
12571 * config/lm32/t-lm32: Add multilib for all CPU options.
12572
12573 2011-02-01 Richard Guenther <rguenther@suse.de>
12574
12575 PR tree-optimization/47541
12576 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12577 sure to have a field at offset zero.
12578
12579 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12580
12581 * config/arc/arc.opt (EB, EL): New Driver options.
12582
12583 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12584
12585 * config/alpha/osf5.opt: New.
12586 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12587
12588 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12589
12590 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12591
12592 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12593
12594 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12595 -floop-interchange.
12596 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12597 is an alias of -floop-interchange and that it requires the
12598 Graphite infrastructure.
12599 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12600 flag_loop_interchange based on the value of flag_tree_loop_linear.
12601
12602 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12603 Richard Guenther <rguenther@suse.de>
12604
12605 PR tree-optimization/47538
12606 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12607 type instead of r1type, except for comparisons. For right
12608 shifts and comparisons punt if there are mismatches in
12609 sizetype vs. non-sizetype types.
12610
12611 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12612
12613 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12614 avx_runtime.
12615
12616 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12617
12618 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12619 version number.
12620 * configure: Regenerate.
12621
12622 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12623
12624 * configure.ac (gcc_cv_ld_static_option): Define.
12625 (gcc_cv_ld_dynamic_option): Define.
12626 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12627 instead.
12628 (HAVE_LD_STATIC_DYNAMIC): Update message.
12629 (LD_STATIC_OPTION): Define.
12630 (LD_DYNAMIC_OPTION): Define.
12631 * configure: Regenerate.
12632 * config.in: Regenerate.
12633 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12634 HAVE_LD_STATIC_DYNAMIC]: Use them.
12635
12636 2011-01-31 Nick Clifton <nickc@redhat.com>
12637
12638 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12639 registers inside interrupt handlers if the handler is not a leaf
12640 function.
12641
12642 2011-01-31 Nick Clifton <nickc@redhat.com>
12643
12644 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12645 reg_renumber returning an INVALID_REGNUM.
12646
12647 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12648
12649 PR libgcj/44341
12650 * doc/install.texi: Document host options discarded when cross
12651 configuring target libraries.
12652
12653 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12654
12655 Reverted:
12656 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12657 PR debug/45136
12658 PR debug/45130
12659 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12660 debug insns.
12661 (no_real_insns_p, schedule_block, set_priorities): Drop special
12662 treatment of boundary debug insns.
12663 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12664 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12665 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12666 (BOUNDARY_DEBUG_INSN_P): Likewise.
12667 (SCHEDULE_DEBUG_INSN_P): Likewise.
12668 * sched-rgn.c (init_ready_list): Drop special treatment of
12669 boundary debug insns.
12670 * final.c (rest_of_clean-state): Clear notes' BB.
12671
12672 2011-01-31 Alan Modra <amodra@gmail.com>
12673
12674 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12675 toc relative expressions as we do in print_operand_address.
12676
12677 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12678
12679 * doc/extend.texi: Follow spelling conventions.
12680 * doc/invoke.texi: Fix a typo.
12681
12682 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12683
12684 * config/hpux11.opt: New.
12685 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12686 ia64*-*-hpux*): Use hpux11.opt.
12687
12688 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12689
12690 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12691 to tmake_file.
12692
12693 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12694
12695 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12696 support sites.
12697
12698 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12699
12700 * doc/install.texi (Binaries): Remove outdated reference for
12701 Motorola 68HC11/68HC12 downloads.
12702
12703 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12704
12705 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12706 Drepper's paper.
12707
12708 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12709
12710 PR bootstrap/47147
12711 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12712 used by NetBSD.
12713
12714 2011-01-28 Ahmad Sharif <asharif@google.com>
12715
12716 * value-prof.c (check_counter): Corrected error message.
12717
12718 2011-01-29 Jie Zhang <jie@codesourcery.com>
12719
12720 * config/arm/arm.c (arm_legitimize_reload_address): New.
12721 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12722 arm_legitimize_reload_address.
12723 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12724
12725 2011-01-28 Ian Lance Taylor <iant@google.com>
12726
12727 * godump.c (go_define): Ignore macros whose definitions include
12728 two adjacent operands.
12729
12730 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12731
12732 PR target/42894
12733 * varasm.c (force_const_mem): Store copy of x in desc->constant
12734 instead of x itself.
12735 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12736 itself into REG_EQUAL note.
12737
12738 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12739
12740 * config/freebsd.opt (posix, rdynamic): New Driver options.
12741
12742 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12743
12744 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12745 -Bstatic/-Bdynamic.
12746 * configure: Regenerate.
12747
12748 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12749
12750 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12751 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12752
12753 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12754
12755 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12756 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12757 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12758 (s390_preferred_reload_class): Make static. Change return and
12759 'rclass' argument type to reg_class_t.
12760
12761 2011-01-27 Jan Hubicka <jh@suse.cz>
12762
12763 PR middle-end/46949
12764 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12765 (process_function_and_variable_attributes): Check defined weakrefs.
12766
12767 2011-01-27 Martin Jambor <mjambor@suse.cz>
12768
12769 PR tree-optimization/47228
12770 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12771 build_ref_for_offset.
12772
12773 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12774
12775 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12776
12777 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12778
12779 PR rtl-optimization/46856
12780 * postreload.c (reload_combine_recognize_const_pattern): Do not
12781 separate cc0 setter and user on cc0 targets.
12782
12783 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12784
12785 PR c/43082
12786 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12787 passed a VOID_TYPE expression, immediately emit an error and
12788 return error_mark_node.
12789
12790 2011-01-26 Jeff Law <law@redhat.com>
12791
12792 PR rtl-optimization/47464
12793 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12794 rather than may_trap_p as needed.
12795
12796 2011-01-26 DJ Delorie <dj@redhat.com>
12797
12798 PR rtl-optimization/46878
12799 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12800 setter/user dependency as well.
12801
12802 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12803
12804 PR rtl-optimization/44469
12805 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12806 after removing trivially dead basic blocks.
12807
12808 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12809
12810 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12811 * config/frv/frv.h (LINK_SPEC): Likewise.
12812 * config/i386/netware.h (LINK_SPEC): Likewise.
12813 * config/m68k/linux.h (ASM_SPEC): Likewise.
12814 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12815 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12816 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12817 * config/sparc/linux.h (ASM_SPEC): Likewise.
12818 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12819 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12820
12821 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12822
12823 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12824 * config/frv/frv.h (ASM_SPEC): Likewise.
12825 * config/m68k/linux.h (ASM_SPEC): Likewise.
12826 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12827 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12828 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12829 * config/sparc/linux.h (ASM_SPEC): Likewise.
12830 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12831 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12832
12833 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12834
12835 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12836 * config/frv/frv.h (LINK_SPEC): Likewise.
12837 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12838
12839 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12840
12841 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12842 * config/frv/frv.h (ASM_SPEC): Likewise.
12843 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12844 * config/m68k/linux.h (ASM_SPEC): Likewise.
12845 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12846 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12847 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12848 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12849 * config/sparc/linux.h (ASM_SPEC): Likewise.
12850 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12851 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12852 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12853
12854 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12855
12856 PR target/46997
12857 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12858 (*mux2): Ditto.
12859 (vec_extract_evenodd_help): Ditto.
12860 (vec_extract_evenv4hi): Ditto.
12861 (vec_extract_oddv4hi): Ditto.
12862 (vec_interleave_lowv2si): Ditto.
12863 (vec_interleave_highv2si): Ditto.
12864 (vec_extract_evenv2si): Ditto.
12865 (vec_extract_oddv2si: Ditto.
12866 (vec_pack_trunc_v2si): Ditto.
12867
12868 2011-01-22 Jan Hubicka <jh@suse.cz>
12869
12870 PR target/47237
12871 * cgraph.h (cgraph_local_info): New field can_change_signature.
12872 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12873 signature can change.
12874 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12875 can change.
12876 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12877 (cgraph_function_versioning): We can not change signature of functions
12878 that don't allow that.
12879 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12880 (lto_input_node): Likewise.
12881 * ipa-inline.c (compute_inline_parameters): Compute
12882 local.can_change_signature.
12883 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12884 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12885 functions that can not change signature.
12886 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12887 init_cumulative_args): Do not use local calling conventions
12888 for functions that can not change signature.
12889
12890 2011-01-22 Jan Hubicka <jh@suse.cz>
12891
12892 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12893
12894 2011-01-26 Richard Guenther <rguenther@suse.de>
12895
12896 PR tree-optimization/47190
12897 * cgraphunit.c (process_common_attributes): New function.
12898 (process_function_and_variable_attributes): Use it.
12899
12900 2011-01-26 Richard Guenther <rguenther@suse.de>
12901
12902 PR lto/47423
12903 * cgraphbuild.c (record_eh_tables): Record reference to personality
12904 function.
12905
12906 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12907
12908 PR debug/45454
12909 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12910 non-debug insns from moving up.
12911
12912 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12913
12914 PR target/40125
12915 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12916 t-dlldir{,-x} fragment for build and add it to tmake_file.
12917 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12918 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12919 * config/i386/t-dlldir: New file.
12920 (SHLIB_DLLDIR): Define.
12921 * config/i386/t-dlldir-x: New file.
12922 (SHLIB_DLLDIR): Define.
12923 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12924 (SHLIB_INSTALL): Use it.
12925
12926 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12927
12928 PR target/47246
12929 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12930 lower bound of the allowed Thumb-2 coprocessor load/store
12931 index range to -256. Add explaining comment.
12932
12933 2011-01-25 Ian Lance Taylor <iant@google.com>
12934
12935 * godump.c (go_define): Improve lexing of macro expansion to only
12936 accept expressions which match Go spec.
12937
12938 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12939
12940 PR c++/43601
12941 * tree.c (handle_dll_attribute): Handle it.
12942 * doc/extend.texi (@item dllexport): Mention it.
12943 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12944
12945 2011-01-25 Ian Lance Taylor <iant@google.com>
12946
12947 PR tree-optimization/26854
12948 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12949 (decl_jump_unsafe): Move higher in file, with no other change.
12950 (bind): Set has_jump_unsafe_decl if appropriate.
12951 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12952 (check_earlier_gotos): Likewise.
12953 (c_check_switch_jump_warnings): Likewise.
12954
12955 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12956
12957 * doc/invoke.texi (Warning Options): Add missing hyphen.
12958 (-fprofile-dir): Minor grammatical fixes.
12959 (-fbranch-probabilities): Likewise.
12960
12961 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12962
12963 PR debug/45136
12964 PR debug/45130
12965 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12966 debug insns.
12967 (no_real_insns_p, schedule_block, set_priorities): Drop special
12968 treatment of boundary debug insns.
12969 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12970 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12971 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12972 (BOUNDARY_DEBUG_INSN_P): Likewise.
12973 (SCHEDULE_DEBUG_INSN_P): Likewise.
12974 * sched-rgn.c (init_ready_list): Drop special treatment of
12975 boundary debug insns.
12976 * final.c (rest_of_clean-state): Clear notes' BB.
12977
12978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12979
12980 * Makefile.in (LAMBDA_H): Removed.
12981 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12982 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12983 lambda-trans.o, and tree-loop-linear.o.
12984 (lto-symtab.o): Remove dependence on LAMBDA_H.
12985 (tree-loop-linear.o): Remove rule.
12986 (lambda-mat.o): Same.
12987 (lambda-trans.o): Same.
12988 (lambda-code.o): Same.
12989 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12990 (tree-vect-slp.o): Same.
12991 * hwint.h (gcd): Moved here.
12992 (least_common_multiple): Same.
12993 * lambda-code.c: Removed.
12994 * lambda-mat.c: Removed.
12995 * lambda-trans.c: Removed.
12996 * lambda.h: Removed.
12997 * tree-loop-linear.c: Removed.
12998 * lto-symtab.c: Do not include lambda.h.
12999 * omega.c (gcd): Removed.
13000 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13001 * tree-data-ref.c (print_lambda_vector): Moved here.
13002 (lambda_vector_copy): Same.
13003 (lambda_matrix_copy): Same.
13004 (lambda_matrix_id): Same.
13005 (lambda_vector_first_nz): Same.
13006 (lambda_matrix_row_add): Same.
13007 (lambda_matrix_row_exchange): Same.
13008 (lambda_vector_mult_const): Same.
13009 (lambda_vector_negate): Same.
13010 (lambda_matrix_row_negate): Same.
13011 (lambda_vector_equal): Same.
13012 (lambda_matrix_right_hermite): Same.
13013 * tree-data-ref.h: Do not include lambda.h.
13014 (lambda_vector): Moved here.
13015 (lambda_matrix): Same.
13016 (dependence_level): Same.
13017 (lambda_transform_legal_p): Removed declaration.
13018 (lambda_collect_parameters): Same.
13019 (lambda_compute_access_matrices): Same.
13020 (lambda_vector_gcd): Same.
13021 (lambda_vector_new): Same.
13022 (lambda_vector_clear): Same.
13023 (lambda_vector_lexico_pos): Same.
13024 (lambda_vector_zerop): Same.
13025 (lambda_matrix_new): Same.
13026 * tree-flow.h (least_common_multiple): Removed declaration.
13027 * tree-parloops.c (lambda_trans_matrix): Moved here.
13028 (LTM_MATRIX): Same.
13029 (LTM_ROWSIZE): Same.
13030 (LTM_COLSIZE): Same.
13031 (LTM_DENOMINATOR): Same.
13032 (lambda_trans_matrix_new): Same.
13033 (lambda_matrix_vector_mult): Same.
13034 (lambda_transform_legal_p): Same.
13035 * tree-pass.h (pass_linear_transform): Removed declaration.
13036 * tree-ssa-loop.c (tree_linear_transform): Removed.
13037 (gate_tree_linear_transform): Removed.
13038 (pass_linear_transform): Removed.
13039 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13040 flag_loop_interchange.
13041
13042 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13043
13044 PR tree-optimization/47265
13045 PR tree-optimization/47443
13046 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13047 if name still has some uses.
13048
13049 2011-01-25 Martin Jambor <mjambor@suse.cz>
13050
13051 PR tree-optimization/47382
13052 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13053 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13054
13055 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13056
13057 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13058 sjlj_except_unwind_info.
13059
13060 2011-01-25 Richard Guenther <rguenther@suse.de>
13061
13062 PR tree-optimization/47426
13063 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13064 visible functions results escape.
13065
13066 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13067
13068 PR target/45701
13069 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13070 (arm_get_frame_offsets): Use it.
13071
13072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13073 Jakub Jelinek <jakub@redhat.com>
13074
13075 PR tree-optimization/47271
13076 * tree-if-conv.c (bb_postdominates_preds): New.
13077 (if_convertible_bb_p): Call bb_postdominates_preds.
13078 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13079 (predicate_scalar_phi): Call bb_postdominates_preds.
13080
13081 2011-01-25 Nick Clifton <nickc@redhat.com>
13082
13083 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13084 * config/rx/rx.c (rx_function_value): Likewise.
13085 (rx_promote_function_mode): Likewise.
13086 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13087 in order to make it legitimate.
13088 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13089 make sure that the first operand is the same as the result register.
13090 (addsi3_unspec): Delete.
13091 (subdi3): Do not accept immediate operands.
13092 (subdi3_internal): Likewise.
13093
13094 2011-01-25 Jeff Law <law@redhat.com>
13095
13096 PR rtl-optimization/37273
13097 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13098 handle them like argument loads from stack slots. Do not double
13099 count memory for memory constants and argument loads from stack slots.
13100
13101 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13102
13103 PR tree-optimization/47427
13104 PR tree-optimization/47428
13105 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13106 coalesce if the new root var would be TREE_READONLY.
13107
13108 2011-01-25 Richard Guenther <rguenther@suse.de>
13109
13110 PR middle-end/47414
13111 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13112 correct type for TBAA.
13113
13114 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13115
13116 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13117 (close_phi_written_to_memory): Call for_each_index with
13118 dr_indices_valid_in_loop.
13119
13120 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13121
13122 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13123 when it is initialized.
13124
13125 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13126
13127 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13128 call to graphite_find_data_references_in_stmt.
13129 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13130 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13131 call to graphite_find_data_references_in_stmt.
13132 (analyze_drs_in_stmts): Same.
13133 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13134 in which the scalar analysis of indices is performed.
13135 (create_data_ref): Same. Update call to dr_analyze_indices.
13136 (find_data_references_in_stmt): Update call to create_data_ref.
13137 (graphite_find_data_references_in_stmt): Same.
13138 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13139 declaration.
13140 (create_data_ref): Same.
13141 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13142 call to create_data_ref.
13143
13144 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13145
13146 * graphite-sese-to-poly.c (build_poly_scop): Move
13147 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13148
13149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13150
13151 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13152 VAR_DECL, PARM_DECL, and RESULT_DECL.
13153
13154 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13155
13156 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13157 in a reduction PBB.
13158 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13159 that have already been marked as PBB_IS_REDUCTION.
13160
13161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13162
13163 * graphite-scop-detection.c (same_close_phi_node): New.
13164 (remove_duplicate_close_phi): New.
13165 (make_close_phi_nodes_unique): New.
13166 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13167
13168 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13169
13170 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13171 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13172 of both data references to be the same.
13173
13174 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13175
13176 * graphite-dependences.c (build_lexicographical_constraint): Remove
13177 the gdim parameter.
13178 (build_lexicographical_constraint): Adjust call to
13179 ppl_powerset_is_empty.
13180 (dependence_polyhedron): Same.
13181 (graphite_legal_transform_dr): Same.
13182 (graphite_carried_dependence_level_k): Same.
13183 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13184 parameter.
13185 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13186
13187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13188
13189 * graphite-sese-to-poly.c
13190 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13191 (close_phi_written_to_memory): New.
13192 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13193 and unshare_expr.
13194
13195 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13196
13197 * doc/install.texi: Update the expected version number of PPL to 0.11.
13198 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13199 #if PPL_VERSION_MINOR < 11.
13200
13201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13202
13203 * graphite-dependences.c: Include graphite-cloog-util.h.
13204 (new_poly_ddr): Inlined into dependence_polyhedron.
13205 (free_poly_ddr): Moved close by new_poly_ddr.
13206 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13207 Early return NULL when ppl_powerset_is_empty returns true.
13208 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13209 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13210 (graphite_legal_transform_dr): Call new_poly_ddr.
13211 (graphite_carried_dependence_level_k): Same.
13212 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13213 (dot_transformed_deps_stmt_1): Removed.
13214 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13215 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13216 (dot_deps_1): Call dot_deps_2.
13217 * Makefile.in (graphite-dependences.o): Add missing dependence on
13218 graphite-cloog-util.h.
13219
13220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13221
13222 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13223 (build_lexicographical_constraint): Same.
13224 (dependence_polyhedron_1): Same.
13225 (graphite_legal_transform_dr): Same.
13226 (graphite_carried_dependence_level_k): Same.
13227 * graphite-ppl.c (ppl_powerset_is_empty): New.
13228 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13229 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13230
13231 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13232
13233 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13234 the "a followed by b" relation and document it.
13235
13236 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13237
13238 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13239 iteration when the bag of constraints is empty.
13240
13241 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13242
13243 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13244
13245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13246
13247 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13248 nest and two loop depths as parameters.
13249 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13250 lst_perfect_nestify.
13251
13252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13253
13254 * graphite-dependences.c (print_pddr): Call
13255 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13256
13257 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13258
13259 * graphite-ppl.c (debug_gmp_value): New.
13260 * graphite-ppl.h (debug_gmp_value): Declared.
13261
13262 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13263
13264 * doc/install.texi: Document availability of cloog-0.16.
13265
13266 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13267
13268 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13269 invalid postdominance info.
13270
13271 2011-01-24 Jan Hubicka <jh@suse.cz>
13272
13273 PR c/21659
13274 * doc/extend.texi (weak pragma): Drop claim that it must
13275 appear before definition.
13276 * varasm.c (merge_weak, declare_weak): Only sanity check
13277 that DECL is not output at a time it is declared weak.
13278
13279 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13280
13281 * machmode.def: Fixed comments.
13282
13283 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13284
13285 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13286
13287 2011-01-24 Paul Koning <ni1d@arrl.net>
13288
13289 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13290 WORDS_BIG_ENDIAN.
13291
13292 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13293
13294 PR target/46519
13295 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13296 (block_info): Add scanned and prev.
13297 (move_or_delete_vzeroupper_2): Return if the basic block
13298 has been scanned and the upper 128bit state is unchanged
13299 from the last scan.
13300 (move_or_delete_vzeroupper_1): Return true if the exit
13301 state is changed.
13302 (move_or_delete_vzeroupper): Visit basic blocks using the
13303 work-list based algorithm based on vt_find_locations in
13304 var-tracking.c.
13305
13306 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13307
13308 2011-01-24 Nick Clifton <nickc@redhat.com>
13309
13310 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13311 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13312 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13313 then define __v850e1__.
13314 * doc/invoke.texi: Document -mv850es.
13315
13316 2011-01-24 Richard Henderson <rth@redhat.com>
13317
13318 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13319 compound unordered comparisons.
13320 * config/rx/rx.c (rx_split_fp_compare): Remove.
13321 * config/rx/rx-protos.h: Update.
13322 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13323 (cbranchsf4): Don't call rx_split_fp_compare.
13324 (*cbranchsf4): Use rx_split_cbranch.
13325 (*cmpsf): Don't accept "i" constraint.
13326 (*conditional_branch): Only valid after reload.
13327 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13328
13329 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13330
13331 PR target/47385
13332 * config/rs6000/altivec.md (vector constant splitters): Add
13333 support for creating vector single precision constants if -mvsx is
13334 used and we would create the constant using Altivec primitives.
13335
13336 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13337 Richard Sandiford <rdsandiford@googlemail.com>
13338
13339 PR rtl-optimization/47166
13340 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13341 mechanism for PRE_MODIFY and POST_MODIFY.
13342 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13343 reloadreg.
13344
13345 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13346
13347 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13348
13349 2011-01-22 Jan Hubicka <jh@suse.cz>
13350
13351 PR lto/47333
13352 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13353
13354 2011-01-22 Jan Hubicka <jh@suse.cz>
13355
13356 PR tree-optimization/43884
13357 PR lto/44334
13358 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13359 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13360
13361 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13362
13363 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13364 * config/s390/s390.c (s390_register_move_cost,
13365 s390_memory_move_cost): New.
13366 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13367
13368 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13369
13370 PR middle-end/47401
13371 * except.c (sjlj_assign_call_site_values): Move setting the
13372 crtl->uses_eh_lsda flag to ...
13373 (sjlj_mark_call_sites): ... here.
13374 (sjlj_emit_function_enter): Support NULL dispatch label.
13375 (sjlj_build_landing_pads): In a function with no landing pads
13376 that still has must-not-throw regions, generate code to register
13377 a personality function with empty LSDA.
13378
13379 2011-01-21 Richard Henderson <rth@redhat.com>
13380
13381 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13382
13383 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13384
13385 * compare-elim.c: New file.
13386 * Makefile.in (OBJS-common): Add it.
13387 (compare-elim.o): New.
13388 * common.opt (fcompare-elim): New.
13389 * opts.c (default_options_table): Add OPT_fcompare_elim.
13390 * tree-pass.h (pass_compare_elim_after_reload): New.
13391 * passes.c (init_optimization_passes): Add it.
13392 * recog.h: Protect against re-inclusion.
13393 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13394 * doc/invoke.texi (-fcompare-elim): Document it.
13395 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13396 * doc/tm.texi: Rebuild.
13397
13398 2011-01-22 Nick Clifton <nickc@redhat.com>
13399
13400 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13401 rx_split_fp_compare.
13402
13403 2011-01-22 Nick Clifton <nickc@redhat.com>
13404
13405 * config/rx/rx.md (UNSPEC_CONST): New.
13406 (deallocate_and_return): Wrap the amount popped off the stack in
13407 an UNSPEC_CONST in order to stop it being rejected by
13408 -mmax-constant-size.
13409 (pop_and_return): Add a "(return)" rtx.
13410 (call): Drop the immediate operand.
13411 (call_internal): Likewise.
13412 (call_value): Likewise.
13413 (call_value_internal): Likewise.
13414 (sibcall_internal): Likewise.
13415 (sibcall_value_internal): Likewise.
13416 (sibcall): Likewise. Generate an explicit call using
13417 sibcall_internal.
13418 (sibcall_value): Likewise.
13419 (mov<>): FAIL if a constant operand is not legitimate.
13420 (addsi3_unpsec): New pattern.
13421
13422 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13423 (ok_for_max_constant): New function.
13424 (gen_safe_add): New function.
13425 (rx_expand_prologue): Use gen_safe_add.
13426 (rx_expand_epilogue): Likewise.
13427 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13428 UNSPEC CONSTs.
13429
13430 2011-01-21 Jeff Law <law@redhat.com>
13431
13432 PR tree-optimization/47053
13433 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13434 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13435 statements are deleted.
13436 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13437 is nonempty, then purge dead edges and cleanup the CFG.
13438
13439 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13440
13441 PR debug/47402
13442 Temporarily revert:
13443 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13444 PR debug/47106
13445 * tree-dfa.c (create_var_ann): Mark variable as used.
13446
13447 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13448
13449 PR middle-end/45566
13450 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13451 notes from other section in hot/cold partitioning even if
13452 last_action is -3. Increment call_site_base.
13453
13454 PR rtl-optimization/47366
13455 * fwprop.c (forward_propagate_into): Return bool. If
13456 any changes are made, -fnon-call-exceptions is used and
13457 REG_EH_REGION note is present, call purge_dead_edges
13458 and return true if it purged anything.
13459 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13460 any EH edges were purged.
13461
13462 2011-01-21 Jeff Law <law@redhat.com>
13463
13464 PR rtl-optimization/41619
13465 * caller-save.c (setup_save_areas): Break out code to determine
13466 which hard regs are live across calls by examining the reload chains
13467 so that it is always used.
13468 Eliminate code which checked REG_N_CALLS_CROSSED.
13469
13470 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13471
13472 PR tree-optimization/47355
13473 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13474 NOP has non-debug uses beyond PHIs in new_bb.
13475
13476 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13477
13478 PR debug/47106
13479 * cfgexpand.c (account_used_vars_for_block): Only account vars
13480 that are annotated as used.
13481 (estimated_stack_frame_size): Don't set TREE_USED.
13482 * tree-dfa.c (create_var_ann): Mark variable as used.
13483
13484 2011-01-21 Richard Guenther <rguenther@suse.de>
13485
13486 PR middle-end/47395
13487 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13488
13489 2011-01-21 Richard Guenther <rguenther@suse.de>
13490
13491 PR tree-optimization/47365
13492 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13493 (vn_reference_lookup_pieces): Adjust.
13494 (vn_reference_lookup): Likewise.
13495 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13496 (vn_reference_lookup_3): Only look through kills if in
13497 VN_WALKREWRITE mode.
13498 (vn_reference_lookup_pieces): Adjust.
13499 (vn_reference_lookup): Likewise.
13500 (visit_reference_op_load): Likewise.
13501 (visit_reference_op_store): Likewise.
13502 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13503 (compute_avail): Likewise.
13504 (eliminate): Likewise.
13505
13506 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13507
13508 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13509 DECL_IGNORED_P non-reg vars if they are used.
13510
13511 PR tree-optimization/47391
13512 * varpool.c (const_value_known_p): Return false if
13513 decl is volatile.
13514
13515 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13516
13517 PR bootstrap/47215
13518 * config/i386/i386.c (ix86_local_alignment): Handle
13519 case for va_list_type_node is nil.
13520 (ix86_canonical_va_list_type): Likewise.
13521
13522 2011-01-21 Alan Modra <amodra@gmail.com>
13523
13524 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13525 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13526
13527 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13528
13529 * config/arm/arm.md (define_attr type): Rename f_load
13530 and f_store to f_fpa_load and f_fpa_store. Update.
13531 (write_conflict): Deal with rename fallout.
13532 (*push_fp_multi): Likewise.
13533 * config/arm/fpa.md (f_load): Use f_fpa_load.
13534 (f_store): Use f_fpa_store.
13535 (*movsf_fpa): Likewise.
13536 (*movdf_fpa): Likewise.
13537 (*movxf_fpa): Likewise.
13538 (*thumb2_movsf_fpa): Likewise.
13539 (*thumb2_movdf_fpa): Likewise.
13540 (*thumb2_movxf_fpa): Likewise.
13541 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13542 f_loadd and f_stored.
13543 (*thumb2_movdi_vfp): Likewise.
13544 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13545 (*thumb2_movsi_vfp): Likewise.
13546 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13547 Use f_loads instead of f_load.
13548 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13549
13550 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13551
13552 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13553 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13554 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13555 (xtensa_mode_dependent_address_p): New function.
13556 (constantpool_address_p): Make static. Change return type to bool.
13557 Change argument type to const_rtx. Use CONST_INT_P predicate.
13558
13559 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13560
13561 PR debug/46583
13562 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13563
13564 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13565
13566 PR debug/47283
13567 * cfgexpand.c (expand_debug_expr): Instead of generating
13568 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13569 etc. handling.
13570
13571 2011-01-20 Richard Guenther <rguenther@suse.de>
13572
13573 PR middle-end/47370
13574 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13575 the pointer operand of MEM_REFs.
13576
13577 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13578
13579 PR tree-optimization/46130
13580 * ipa-split.c (consider_split): If return_bb contains non-virtual
13581 PHIs other than for retval or if split_function would not adjust it,
13582 refuse to split.
13583
13584 2011-01-20 Richard Guenther <rguenther@suse.de>
13585
13586 PR tree-optimization/47167
13587 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13588 Revert previous change, only avoid enumeral type changes.
13589
13590 2011-01-19 Mike Stump <mikestump@comcast.net>
13591
13592 * doc/tm.texi.in (BRANCH_COST): Englishify.
13593 * doc/tm.texi (BRANCH_COST): Likewise.
13594
13595 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13596
13597 PR c++/47291
13598 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13599 (gen_scheduled_generic_parms_dies): New functions.
13600 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13601 generation for the end of CU compilation.
13602 (dwarf2out_finish): Generate template parameters DIEs here.
13603
13604 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13605
13606 PR debug/46240
13607 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13608 debug bind stmt on merge edges.
13609
13610 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13611
13612 PR debug/47079
13613 PR debug/46724
13614 * function.c (instantiate_expr): Instantiate incoming rtl of
13615 implicit arguments, and recurse on VALUE_EXPRs.
13616 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13617 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13618
13619 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13620
13621 * c-parser.c (c_parser_for_statement): Initialize
13622 collection_expression.
13623
13624 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13625
13626 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13627
13628 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13629
13630 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13631 (LINK_SHLIB_SPEC): Don't use %(link_path).
13632 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13633
13634 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13635
13636 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13637 (NO_SHARED_LIB_SUPPORT): Remove.
13638 (LINK_SHLIB_SPEC): Remove one conditional definition.
13639
13640 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13641
13642 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13643 %{call_shared}.
13644 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13645 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13646 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13647 %{call_shared} and conditionals on these options not being passed.
13648 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13649 %{call_shared}.
13650
13651 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13652
13653 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13654 simplify.
13655
13656 * ipa-split.c: Spelling fixes.
13657
13658 2011-01-19 Richard Henderson <rth@redhat.com>
13659
13660 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13661 (*mulsi3): Likewise.
13662
13663 * longlong.h [__mn10300__] (count_leading_zeros): New.
13664 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13665 [__mn10300__] (add_ssaaaa, subddmmss): New.
13666 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13667 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13668
13669 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13670
13671 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13672
13673 2011-01-19 Richard Henderson <rth@redhat.com>
13674
13675 * config/mn10300/mn10300.md (addsi3_flags): New.
13676 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13677 (subsi3_flags, subc_internal, subdi3): New.
13678 (subdi3_internal, *subdi3_degenerate): New.
13679 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13680
13681 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13682 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13683 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13684 * config/mn10300/mn10300-protos.h: Update.
13685 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13686 (return_ret): Likewise. Rename from return_internal_regs.
13687 (return_internal): Remove.
13688
13689 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13690 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13691 (mn10300_legitimate_constant_p): Likewise.
13692 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13693 (mn10300_frame_size): New.
13694 (mn10300_expand_prologue): Use it.
13695 (mn10300_expand_epilogue): Likewise.
13696 (mn10300_initial_offset): Likewise.
13697 * config/mn10300/mn10300-protos.h: Update.
13698 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13699 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13700 (prologue, epilogue, return_internal): Tidy output code.
13701 (mn10300_store_multiple_operation, return): Likewise.
13702 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13703 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13704 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13705 (load_pic, am33_load_pic): New.
13706 (mn10300_load_pic0, mn10300_load_pic1): New.
13707
13708 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13709 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13710 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13711 (cc_flags_for_mode, cc_flags_for_code): New.
13712 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13713 overflow flag is not valid. Validate that the flags we need
13714 for the comparison are valid.
13715 (mn10300_output_cmp): Remove.
13716 (mn10300_output_add): New.
13717 (mn10300_select_cc_mode): Use cc_flags_for_code.
13718 (mn10300_split_cbranch): New.
13719 (mn10300_match_ccmode): New.
13720 (mn10300_split_and_operand_count): New.
13721 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13722 to the function.
13723 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13724 (addsi3): ... here. Use mn10300_output_add.
13725 (*addsi3_flags): New.
13726 (*am33_subsi3, *mn10300_subsi3): Merge...
13727 (subsi3): ... here. Use attribute isa.
13728 (*subsi3_flags): New.
13729 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13730 when possible.
13731 (*am33_andsi3, *mn10300_andsi3): Merge...
13732 (andsi3): ... here.
13733 (*andsi3_flags): New.
13734 (andsi3 splitters): New.
13735 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13736 (iorsi3): ... here.
13737 (*iorsi3_flags): New.
13738 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13739 (xorsi3): ... here.
13740 (*xorsi3_flags): New.
13741 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13742 (one_cmplsi2): ... here.
13743 (*one_cmplsi2_flags): New.
13744 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13745 instead of "dax" in constraints. Use mn10300_split_cbranch.
13746 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13747 use matching constraints to eliminate a self-comparison.
13748 (*integer_conditional_branch): Rename from integer_conditional_branch.
13749 Use int_mode_flags to match CC_REG.
13750 (*cbranchsi4_btst, *btstsi): New.
13751 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13752 mn10300_split_cbranch.
13753 (*am33_cmpsf): Rename from am33_cmpsf.
13754 (*float_conditional_branch): Rename from float_conditional_branch.
13755 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13756 (zero_extendqisi2): ... here.
13757 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13758 (zero_extendhisi2): ... here.
13759 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13760 (extendqisi2): ... here.
13761 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13762 (extendhisi2): ... here.
13763 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13764 (ashlsi3): ... here.
13765 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13766 (lshrsi3): ... here.
13767 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13768 (ashrsi3): ... here.
13769 (consecutive add peephole): Remove.
13770 * config/mn10300/predicates.md (label_ref_operand): New.
13771 (int_mode_flags): New.
13772 (CCZN_comparison_operator): New.
13773
13774 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13775 (throughput_42_latency_43): New reservation.
13776 (mulsidi3, umulsidi3): New expanders.
13777 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13778 the MDR register to allocation; separately allocate the low and
13779 high parts of the DImode result.
13780 (umulsidi3_internal): Similarly.
13781 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13782 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13783 (udivsi3, umodsi3): Remove.
13784 (udivmodsi4, divmodsi4): New expanders.
13785 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13786 (*divmodsi4): Simiarly.
13787 (ext_internal): New.
13788
13789 * config/mn10300/constraints.md ("z"): New constraint.
13790 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13791 (FIXED_REGISTERS): Don't fix MDR.
13792 (CALL_USED_REGSITERS): Reformat nicely.
13793 (REG_ALLOC_ORDER): Add MDR.
13794 (enum regclass): Add MDR_REGS.
13795 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13796 (IRA_COVER_CLASSES): Add MDR_REGS.
13797 (REGNO_REG_CLASS): Handle MDR_REG.
13798 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13799 (mn10300_register_move_cost): Likewise.
13800 * config/mn10300/mn10300.md (MDR_REG): New.
13801 (*movsi_internal): Handle moves to/from MDR_REGS.
13802
13803 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13804 POST_MODIFY.
13805 (mn10300_secondary_reload): Tidy combination reload classes.
13806 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13807 addresses for AM33. Allow symbolic offsets for reg+imm.
13808 (mn10300_regno_in_class_p): New.
13809 (mn10300_legitimize_reload_address): New.
13810 * config/mn10300/mn10300.h (enum reg_class): Remove
13811 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13812 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13813 SP_OR_GENERAL_REGS.
13814 (REG_CLASS_NAMES): Update to match.
13815 (REG_CLASS_CONTENTS): Likewise.
13816 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13817 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13818 (REGNO_IN_RANGE_P): Remove.
13819 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13820 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13821 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13822 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13823 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13824 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13825 (REGNO_GENERAL_P): New.
13826 (HAVE_POST_MODIFY_DISP): New.
13827 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13828 (LEGITIMIZE_RELOAD_ADDRESS): New.
13829 * config/mn10300/mn10300-protos.h: Update.
13830
13831 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13832 DATA_REGS for AM33 stack-pointer destination.
13833 (mn10300_preferred_output_reload_class): Likewise.
13834 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13835 into a form appropriate for ...
13836 (TARGET_SECONDARY_RELOAD): New.
13837 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13838 * config/mn10300/mn10300-protos.h: Update.
13839 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13840 reload_insi; use the "A" constraint for the scratch; handle AM33
13841 moves of sp to non-address registers.
13842
13843 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13844 (*movqi_internal): ... here.
13845 (*am33_movhi, *mn10300_movhi): Merge into...
13846 (*movhi_internal): ... here.
13847 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13848 as the source/destination of moves from/to SP.
13849 (movsf): Only allow for AM33-2.
13850 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13851 any integer constant constraint. Only allow for AM33-2. Tidy
13852 all of the alternative outputs.
13853 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13854 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13855 for MN103.
13856 (udivsi3, umodsi3): New patterns for MN103 only.
13857
13858 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13859
13860 * doc/tm.texi.in: Spell out that a lack of register class unions
13861 can lead to ICEs.
13862 * doc/tm.texi: Regenerate.
13863
13864 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13865
13866 PR rtl-optimization/47337
13867 * dce.c (check_argument_store): New function.
13868 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13869
13870 PR tree-optimization/47290
13871 * tree-eh.c (infinite_empty_loop_p): New function.
13872 (cleanup_empty_eh): Use it.
13873
13874 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13875
13876 PR target/46997
13877 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13878 (a64_expand_widen_sum): Ditto.
13879 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13880 (vec_extract_evenodd_help): Ditto.
13881 (vec_extract_evenv4hi): Ditto.
13882 (vec_extract_oddv4hi): Ditto.
13883 (vec_extract_evenv2si): Ditto.
13884 (vec_extract_oddv2si): Ditto.
13885 (vec_extract_evenv2sf): Ditto.
13886 (vec_extract_oddv2sf): Ditto.
13887 (vec_pack_trunc_v4hi: Ditto.
13888 (vec_pack_trunc_v2si): Ditto.
13889 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13890 (vec_interleave_highv8qi): Ditto.
13891 (mix1_r): Ditto.
13892 (vec_extract_oddv8qi): Ditto.
13893 (vec_interleave_lowv4hi): Ditto.
13894 (vec_interleave_highv4hi): Ditto.
13895 (vec_interleave_lowv2si): Ditto.
13896 (vec_interleave_highv2si): Ditto.
13897
13898 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13899
13900 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13901 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13902 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13903 (pa_c_mode_for_suffix): New.
13904 (TARGET_EXPAND_BUILTIN): Define.
13905 (TARGET_C_MODE_FOR_SUFFIX): Define.
13906 (pa_builtins): Define.
13907 (pa_init_builtins): Register __float128 type and init new support
13908 builtins.
13909 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13910 * config/pa/quadlib.c (_U_Qfcopysign): New.
13911
13912 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13913
13914 PR middle-end/46894
13915 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13916 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13917 are defined.
13918
13919 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13920
13921 PR tree-optimization/47179
13922 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13923 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13924
13925 2011-01-18 Richard Guenther <rguenther@suse.de>
13926
13927 PR rtl-optimization/47216
13928 * emit-rtl.c: Include tree-flow.h.
13929 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13930 of replicating it with different semantics.
13931 * Makefile.in (emit-rtl.o): Adjust.
13932
13933 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13934
13935 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13936 (cortex_a9_dp): Handle neon types correctly.
13937
13938 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13939
13940 PR rtl-optimization/47299
13941 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13942 subtarget. Use normal multiplication if both operands are constants.
13943 * expmed.c (expand_widening_mult): Don't try to optimize constant
13944 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13945 before using it.
13946
13947 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13948
13949 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13950 spacing after 'e.g.', typos, comma, hyphenation.
13951
13952 2011-01-17 Richard Henderson <rth@redhat.com>
13953
13954 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13955 (rx_restricted_mem_operand): New.
13956 (rx_shift_operand): Use register_operand.
13957 (rx_source_operand, rx_compare_operand): Likewise.
13958 * config/rx/rx.md (addsi3_flags): New expander.
13959 (adddi3): Rewrite as expander.
13960 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13961 (subsi3_flags): New expander.
13962 (subdi3): Rewrite as expander.
13963 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13964
13965 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13966 (rx_init_builtins): Remove sat builtin.
13967 (rx_expand_builtin): Likewise.
13968 * config/rx/rx.md (ssaddsi3): New.
13969 (*sat): Rename from sat. Represent the CC_REG input.
13970
13971 * config/rx/predicates.md (rshift_operator): New.
13972 * config/rx/rx.c (rx_expand_insv): Remove.
13973 * config/rx/rx-protos.h: Update.
13974 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13975 operand to the canonical position.
13976 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13977 (*bitclr, *bitclr_in_memory): Similarly.
13978 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13979 (insv): Retain the zero_extract in the expansion.
13980
13981 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13982 (bswaphi2, bitinvert, revw): Likewise.
13983
13984 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13985 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13986 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13987 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13988 (bitset, bitset_in_memory): Likewise.
13989 (bitinvert, bitinvert_in_memory): Likewise.
13990 (bitclr, bitclr_in_memory): Likewise.
13991 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13992 (rx_strend, rx_cmpstrn): Likewise.
13993 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13994 (bitop peep2 patterns): Remove.
13995
13996 * config/rx/rx.c (rx_match_ccmode): New.
13997 * config/rx/rx-protos.h: Update.
13998 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13999 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14000 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14001 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14002 (fix_truncsfsi2, floatsisf2): Likewise.
14003 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14004 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14005 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14006 (*subsi3_flags, *xorsi3_flags): New.
14007
14008 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14009
14010 * config/rx/rx.c (rx_print_operand): Remove workaround for
14011 unsplit comparison operations.
14012
14013 * config/rx/rx.md (movsicc): Split after reload.
14014 (*movsicc): Merge *movsieq and *movsine via match_operator.
14015 (*stcc): New pattern.
14016
14017 * config/rx/rx.c (rx_float_compare_mode): Remove.
14018 * config/rx/rx.h (rx_float_compare_mode): Remove.
14019 * config/rx/rx.md (cstoresi4): Split after reload.
14020 (*sccc): New pattern.
14021
14022 * config/rx/predicates.md (label_ref_operand): New.
14023 (rx_z_comparison_operator): New.
14024 (rx_zs_comparison_operator): New.
14025 (rx_fp_comparison_operator): New.
14026 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14027 Validate that the flags are set properly for the comparison.
14028 (rx_gen_cond_branch_template): Remove.
14029 (rx_cc_modes_compatible): Remove.
14030 (mode_from_flags): New.
14031 (flags_from_code): Rename from flags_needed_for_conditional.
14032 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14033 (rx_select_cc_mode): Likewise.
14034 (rx_split_fp_compare): New.
14035 (rx_split_cbranch): New.
14036 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14037 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14038 (*cbranchsf4): Similarly.
14039 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14040 match_operator and rx_split_cbranch.
14041 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14042 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14043 (*cmpsi): Rename from cmpsi.
14044 (*tstsi): Rename from tstsi.
14045 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14046 (*conditional_branch): Rename from conditional_branch.
14047 (*reveresed_conditional_branch): Remove.
14048 (b<code>): Remove expander.
14049 * config/rx/rx-protos.h: Update.
14050
14051 * config/rx/rx.c (rx_compare_redundant): Remove.
14052 * config/rx/rx.md (cmpsi): Don't use it.
14053 * config/rx/rx-protos.h: Update.
14054
14055 * config/rx/rx-modes.def (CC_F): New mode.
14056 * config/rx/rx.c (rx_select_cc_mode): New.
14057 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14058 * config/rx/rx-protos.h: Update.
14059
14060 2011-01-17 Richard Henderson <rth@redhat.com>
14061
14062 * except.c (dump_eh_tree): Fix stray ; after for statement.
14063
14064 2011-01-17 Richard Guenther <rguenther@suse.de>
14065
14066 PR tree-optimization/47313
14067 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14068 handling before copying the body. Properly deal with
14069 by-reference result in SSA form.
14070
14071 2011-01-17 Ian Lance Taylor <iant@google.com>
14072
14073 PR target/47219
14074 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14075 (struct_value_alias_set): Don't define.
14076 (sparc_option_override): Don't set sparc_sr_alias_set and
14077 struct_value_alias_set.
14078 (save_or_restore_regs): Use gen_frame_mem rather than calling
14079 set_mem_alias_set.
14080 (sparc_struct_value_rtx): Likewise.
14081
14082 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14083
14084 PR target/47318
14085 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14086 (_mm_maskstore_pd): Likewise.
14087 (_mm_maskload_ps): Likewise.
14088 (_mm_maskstore_ps): Likewise.
14089 (_mm256_maskload_pd): Change mask to __m256i.
14090 (_mm256_maskstore_pd): Likewise.
14091 (_mm256_maskload_ps): Likewise.
14092 (_mm256_maskstore_ps): Likewise.
14093
14094 * config/i386/i386-builtin-types.def: Updated.
14095 (ix86_expand_special_args_builtin): Likewise.
14096
14097 * config/i386/i386.c (bdesc_special_args): Update
14098 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14099 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14100 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14101 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14102
14103 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14104 Use <avxpermvecmode> on mask register.
14105 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14106
14107 2011-01-17 Olivier Hainque <hainque@adacore.com>
14108 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14109 Eric Botcazou <ebotcazou@adacore.com>
14110
14111 PR target/46655
14112 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14113 if <= USHRT_MAX in 32-bit mode.
14114
14115 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14116
14117 * doc/install.texi (Configuration, Specific): Wrap long
14118 lines in examples. Allow line wrapping in long options
14119 and URLs where beneficial for PDF output.
14120
14121 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14122
14123 * config/mips/mips.c (mips_classify_symbol): Don't return
14124 SYMBOL_PC_RELATIVE for nonlocal labels.
14125
14126 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14127
14128 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14129
14130 2011-01-15 Jan Hubicka <jh@suse.cz>
14131
14132 PR tree-optimization/47276
14133 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14134 declarations as needed.
14135
14136 2011-01-15 Martin Jambor <mjambor@suse.cz>
14137
14138 * common.opt (fdevirtualize): New flag.
14139 * doc/invoke.texi (Option Summary): Document it.
14140 * opts.c (default_options_table): Add devirtualize flag.
14141 * ipa-prop.c (detect_type_change): Return immediately if
14142 devirtualize flag is not set.
14143 (detect_type_change_ssa): Likewise.
14144 (compute_known_type_jump_func): Likewise.
14145 (ipa_analyze_virtual_call_uses): Likewise.
14146
14147 2011-01-14 Martin Jambor <mjambor@suse.cz>
14148
14149 PR tree-optimization/45934
14150 PR tree-optimization/46302
14151 * ipa-prop.c (type_change_info): New type.
14152 (stmt_may_be_vtbl_ptr_store): New function.
14153 (check_stmt_for_type_change): Likewise.
14154 (detect_type_change): Likewise.
14155 (detect_type_change_ssa): Likewise.
14156 (compute_complex_assign_jump_func): Check for dynamic type change.
14157 (compute_complex_ancestor_jump_func): Likewise.
14158 (compute_known_type_jump_func): Likewise.
14159 (compute_scalar_jump_functions): Likewise.
14160 (ipa_analyze_virtual_call_uses): Likewise.
14161 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14162
14163 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14164
14165 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14166 * config/i386/i386.opt (msse5): New Alias.
14167
14168 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14169
14170 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14171 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14172 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14173 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14174
14175 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14176
14177 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14178 -mcpu options.
14179 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14180 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14181 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14182 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14183 Likewise.
14184 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14185
14186 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14187
14188 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14189
14190 2011-01-14 Mike Stump <mikestump@comcast.net>
14191
14192 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14193 * config/fr30/fr30.md: Likweise
14194 (movsi_push): Likewise.
14195 (movsi_pop): Likewise.
14196 (enter_func): Likewise.
14197 * config/moxie/moxie.md (movsi_push): Likewise.
14198 (movsi_pop): Likewise.
14199
14200 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14201
14202 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14203 %{no_archive} %{exact_version}.
14204 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14205 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14206 %{no_archive} %{exact_version}.
14207 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14208 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14209 * config/mips/vxworks.h: Likewise.
14210
14211 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14212
14213 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14214
14215 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14216
14217 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14218 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14219
14220 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14221
14222 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14223 -nodefaultlib.
14224
14225 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14226
14227 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14228 for mcpu not cpu.
14229 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14230 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14231 not cpu.
14232 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14233 Don't handle -shlib.
14234
14235 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14236
14237 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14238 (CC1_SPEC): Don't handle -profile.
14239
14240 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14241
14242 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14243 * config/mips/mips.h (CC1_SPEC): Likewise.
14244
14245 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14246
14247 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14248 * config/mips/mips.h (CC1_SPEC): Likewise.
14249
14250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14251
14252 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14253 * config/m32r/linux.h (LINK_SPEC): Likewise.
14254 * config/mips/linux.h (LINK_SPEC): Likewise.
14255 * config/mips/linux64.h (LINK_SPEC): Likewise.
14256 * config/sparc/linux.h (LINK_SPEC): Likewise.
14257 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14258 LINK_SPEC): Likewise.
14259 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14260
14261 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14262
14263 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14264 %{version:-v}.
14265 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14266
14267 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14268
14269 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14270 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14271
14272 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14273
14274 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14275
14276 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14277
14278 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14279 supports -Bstatic/-Bdynamic.
14280 * configure: Regenerate.
14281
14282 2011-01-14 Jan Hubicka <jh@suse.cz>
14283 Jack Howarth <howarth@bromo.med.uc.edu>
14284
14285 PR target/46037
14286 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14287 when checking debug_info_level. Test write_symbols instead of
14288 debug_hooks->var_location when setting flag_var_tracking_uninit.
14289
14290 2011-01-14 Richard Guenther <rguenther@suse.de>
14291
14292 PR tree-optimization/47179
14293 * target.def (ref_may_alias_errno): New target hook.
14294 * targhooks.h (default_ref_may_alias_errno): Declare.
14295 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14296 (default_ref_may_alias_errno): New function.
14297 * target.h (struct ao_ref_s): Declare.
14298 * tree-ssa-alias.c: Include target.h.
14299 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14300 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14301 (targhooks.o): Likewise.
14302 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14303 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14304
14305 2011-01-14 Richard Guenther <rguenther@suse.de>
14306
14307 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14308
14309 2011-01-14 Richard Guenther <rguenther@suse.de>
14310
14311 PR tree-optimization/47280
14312 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14313 return CFG changes.
14314 (tree_ssa_forward_propagate_single_use_vars): Deal with
14315 CFG changes from associate_plusminus.
14316
14317 2011-01-14 Richard Guenther <rguenther@suse.de>
14318
14319 PR middle-end/47281
14320 Revert
14321 2011-01-11 Richard Guenther <rguenther@suse.de>
14322
14323 PR tree-optimization/46076
14324 * tree-ssa.c (useless_type_conversion_p): Conversions from
14325 unprototyped to empty argument list function types are useless.
14326
14327 2011-01-14 Richard Guenther <rguenther@suse.de>
14328
14329 PR tree-optimization/47286
14330 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14331
14332 2011-01-14 Martin Jambor <mjambor@suse.cz>
14333
14334 PR middle-end/46823
14335 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14336
14337 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14338
14339 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14340 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14341 * config/xtensa/xtensa.c (xtensa_libcall_value,
14342 xtensa_function_value_regno_p): New functions.
14343 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14344
14345 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14346
14347 PR c++/47213
14348 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14349 PE specific hook.
14350 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14351 New function prototype.
14352 * config/i386/winnt.c (i386_pe_assemble_visibility):
14353 Warn only if attribute was specified by user.
14354
14355 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14356
14357 PR target/47251
14358 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14359 floating point.
14360 (floatunsdidf2_fcfidu): Ditto.
14361
14362 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14363
14364 * config/s390/s390.c (print_operand_address): Replace 'error' with
14365 'output_operand_lossage'.
14366 (print_operand): Likewise.
14367
14368 2011-01-13 Jeff Law <law@redhat.com>
14369
14370 PR rtl-optimization/39077
14371 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14372 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14373 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14374 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14375 * gcse.c (prune_insertions_deletions): New function.
14376 (compute_pre_data): Use it.
14377
14378 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14379
14380 PR debug/PR46973
14381 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14382 static function.
14383 (prune_unused_types_mark): Use it.
14384
14385 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14386
14387 PR rtl-optimization/45352
14388 * sel-sched.c: Update copyright years.
14389 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14390 in the advancing loop when we have issued issue_rate insns.
14391
14392 2011-01-12 Richard Henderson <rth@redhat.com>
14393
14394 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14395 (TARGET_MD_ASM_CLOBBERS): New.
14396
14397 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14398 (TARGET_DELEGITIMIZE_ADDRESS): New.
14399
14400 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14401 (clzsi2, *bsch): New patterns.
14402
14403 * config/mn10300/mn10300.md (INT): New mode iterator.
14404 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14405
14406 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14407 flag_split_wide_types.
14408
14409 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14410 (mn10300_trampoline_init): Rewrite without a template, an immediate
14411 load and a direct branch.
14412 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14413
14414 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14415
14416 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14417 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14418 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14419 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14420
14421 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14422
14423 PR debug/47209
14424 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14425 of type.
14426
14427 2011-01-12 Jan Hubicka <jh@suse.cz>
14428
14429 PR driver/47244
14430 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14431 (PLUGIN_COND_CLOSE): New macro.
14432 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14433
14434 2011-01-12 Richard Guenther <rguenther@suse.de>
14435
14436 PR lto/47259
14437 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14438 register variables in a MEM_REF.
14439
14440 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14441
14442 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14443 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14444 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14445 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14446 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14447 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14448 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14449 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14450 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14451 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14452 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14453 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14454 * config/gnu-user.h: New. Copied from linux.h.
14455 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14456 GNU_USER_TARGET_STARTFILE_SPEC.
14457 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14458 GNU_USER_TARGET_ENDFILE_SPEC.
14459 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14460 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14461 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14462 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14463 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14464 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14465 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14466 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14467 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14468 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14469 * config/arm/linux-eabi.h (CC1_SPEC): Use
14470 GNU_USER_TARGET_CC1_SPEC.
14471 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14472 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14473 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14474 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14475 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14476 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14477 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14478 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14479
14480 2011-01-12 Richard Guenther <rguenther@suse.de>
14481
14482 PR other/46946
14483 * doc/invoke.texi (ffast-math): Document it is turned on
14484 with -Ofast.
14485
14486 2011-01-12 Jan Hubicka <jh@suse.cz>
14487
14488 PR tree-optimization/47233
14489 * opts.c (common_handle_option): Disable ipa-reference with profile
14490 feedback.
14491
14492 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14493
14494 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14495 error message.
14496
14497 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14498
14499 * c-parser.c (c_lex_one_token): Updated and reindented some
14500 comments. No changes in code.
14501
14502 2011-01-11 Ian Lance Taylor <iant@google.com>
14503
14504 * godump.c (go_output_var): Don't output the variable if there is
14505 already a type with the same name.
14506
14507 2011-01-11 Ian Lance Taylor <iant@google.com>
14508
14509 * godump.c (go_format_type): Don't generate float80.
14510
14511 2011-01-11 Richard Henderson <rth@redhat.com>
14512
14513 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14514 declaration. Rewrite for both speed and size.
14515 (mn10300_address_cost_1): Remove.
14516 (mn10300_register_move_cost): New.
14517 (mn10300_memory_move_cost): New.
14518 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14519 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14520 extensions, shifts, BSWAP, CLZ.
14521 (mn10300_wide_const_load_uses_clr): Remove.
14522 (TARGET_REGISTER_MOVE_COST): New.
14523 (TARGET_MEMORY_MOVE_COST): New.
14524 * config/mn10300/mn10300-protos.h: Update.
14525 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14526
14527 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14528 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14529 * config/mn10300/mn10300-protos.h: Update.
14530 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14531 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14532 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14533 (*test_int_bitfield, *test_byte_bitfield): Remove.
14534 (*bit_test, *subreg_bit_test): Remove.
14535 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14536
14537 * config/mn10300/constraints.md ("c"): Rename from "A".
14538 ("A", "D"): New constraint letters.
14539 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14540 (fmssf4, fnmasf4, fnmssf4): Likewise.
14541
14542 * config/mn10300/mn10300.md (isa): New attribute.
14543 (enabled): New attribute.
14544
14545 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14546 (abssf2, negsf2): Define only for hardware fp.
14547 (sqrtsf2): Reformat.
14548 (addsf3, subsf3, mulsf3): Merge expander and insn.
14549
14550 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14551 (DEBUGGER_AUTO_OFFSET): Remove.
14552 (DEBUGGER_ARG_OFFSET): Remove.
14553
14554 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14555 Emit register stores with the same offsets as the hardware.
14556 (mn10300_store_multiple_operation): Don't check that the register
14557 save offsets are monotonic.
14558 * config/mn10300/mn10300-protos.h: Update.
14559
14560 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14561
14562 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14563 in terms of the value on the stack, not the MDR register.
14564
14565 2011-01-11 Jan Hubicka <jh@suse.cz>
14566
14567 PR lto/45721
14568 PR lto/45375
14569 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14570 (symbol_alias_set_destroy, symbol_alias_set_contains,
14571 propagate_aliases_backward): Declare.
14572 * lto-streamer-out.c (struct sets): New sturcture.
14573 (trivally_defined_alias): New function.
14574 (output_alias_pair_p): Rewrite.
14575 (output_unreferenced_globals): Fix output of alias pairs.
14576 (produce_symtab): Likewise.
14577 * ipa.c (function_and_variable_visibility): Set weak alias destination
14578 as needed in lto.
14579 * varasm.c (symbol_alias_set_t): Remove.
14580 (symbol_alias_set_destroy): Export.
14581 (propagate_aliases_forward, propagate_aliases_backward): New functions
14582 based on ...
14583 (compute_visible_aliases): ... this one; remove.
14584 (trivially_visible_alias): New
14585 (trivially_defined_alias): New.
14586 (remove_unreachable_alias_pairs): Rewrite.
14587 (finish_aliases_1): Reorganize code checking if alias is defined.
14588 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14589 in LTO mode.
14590
14591 2011-01-11 Richard Guenther <rguenther@suse.de>
14592
14593 PR tree-optimization/46076
14594 * tree-ssa.c (useless_type_conversion_p): Conversions from
14595 unprototyped to empty argument list function types are useless.
14596
14597 2011-01-11 Richard Guenther <rguenther@suse.de>
14598
14599 PR middle-end/45235
14600 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14601 volatile MEMs as MEM_READONLY_P.
14602
14603 2011-01-11 Richard Guenther <rguenther@suse.de>
14604
14605 PR tree-optimization/47239
14606 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14607
14608 2011-01-11 Jeff Law <law@redhat.com>
14609
14610 PR tree-optimization/47086
14611 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14612 IVs from statements that might throw.
14613
14614 2011-01-10 Jan Hubicka <jh@suse.cz>
14615
14616 PR lto/45375
14617 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14618
14619 2011-01-10 Jan Hubicka <jh@suse.cz>
14620
14621 PR lto/45375
14622 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14623 when correcting profile.
14624
14625 2011-01-10 Jan Hubicka <jh@suse.cz>
14626
14627 PR lto/46083
14628 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14629 DECL_FINI_PRIORITY.
14630 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14631 Restore DECL_FINI_PRIORITY.
14632
14633 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14634
14635 * doc/gimple.texi: Fix quoting of multi-word return values in
14636 @deftypefn statements. Ensure presence of return value. Wrap
14637 overlong @deftypefn lines.
14638 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14639 descriptions of removed functions.
14640 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14641 of multi-word return value in @deftypefn statement.
14642
14643 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14644
14645 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14646 (Conditional Expressions, Logical Operators)
14647 (Statement and operand traversals): Do not indent smallexample
14648 code. Fix duplicate function argument in example.
14649
14650 2011-01-10 Jeff Law <law@redhat.com>
14651
14652 PR tree-optimization/47141
14653 * ipa-split.c (split_function): Handle case where we are
14654 returning a value and the return block has a virtual operand phi.
14655
14656 2011-01-10 Jan Hubicka <jh@suse.cz>
14657
14658 PR tree-optimization/47234
14659 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14660 (pass_feedback_split_functions): Declare.
14661 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14662 tree-profile.
14663 * ipa-split.c (gate_split_functions): Update comments; disable
14664 split-functions for profile_arc_flag and branch_probabilities.
14665 (gate_feedback_split_functions): New function.
14666 (execute_feedback_split_functions): New function.
14667 (pass_feedback_split_functions): New global var.
14668
14669 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14670
14671 PR lto/46760
14672 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14673 calling gimple_call_set_cannot_inline.
14674
14675 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14676
14677 * config/darwin-sections.def: Remove unused section.
14678
14679 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14680
14681 PR c++/47218
14682 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14683
14684 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14685
14686 PR objc/47232
14687 * c-parser.c (c_parser_declaration_or_fndef): Improved
14688 error message.
14689
14690 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14691
14692 * config/i386/winnt.c (i386_pe_start_function): Make sure
14693 to switch back to function's section.
14694
14695 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14696
14697 PR gcc/46902
14698 PR testsuite/46912
14699 * plugin.c: Move include of dlfcn.h from here...
14700 * system.h: ... to here.
14701
14702 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14703
14704 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14705 file name.
14706 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14707 two extra empty pages in PDF output.
14708
14709 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14710
14711 PR objc/47078
14712 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14713 for error recovery purposes behave as if it was not specified so
14714 that the default type is usd.
14715
14716 2011-01-07 Jan Hubicka <jh@suse.cz>
14717
14718 PR tree-optmization/46469
14719 * ipa.c (function_and_variable_visibility): Clear needed flags on
14720 nodes with external decls; handle weakrefs merging correctly.
14721
14722 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14723
14724 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14725 not false.
14726
14727 2011-01-07 Jan Hubicka <jh@suse.cz>
14728
14729 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14730 and no longer claim that gold is required for linker plugin.
14731 * configure: Regenerate.
14732 * gcc.c (PLUGIN_COND): New macro.
14733 (LINK_COMMAND_SPEC): Use it.
14734 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14735 * config.in (HAVE_LTO_PLUGIN): New.
14736 * configure.ac (--with-lto-plugin): New parameter; autodetect
14737 HAVE_LTO_PLUGIN.
14738
14739 2011-01-07 Jan Hubicka <jh@suse.cz>
14740
14741 PR tree-optimization/46367
14742 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14743 when we can update original.
14744 (cgraph_mark_inline_edge): Sanity check.
14745 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14746
14747 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14748
14749 * config/spu/spu.h (ASM_COMMENT_START): Define.
14750
14751 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14752
14753 PR driver/42445
14754 * gcc.c (%>S): New.
14755 (SWITCH_KEEP_FOR_GCC): Likewise.
14756 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14757 (do_spec_1): Handle "%>".
14758
14759 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14760
14761 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14762
14763 PR target/47201
14764 * config/i386/i386.c (ix86_delegitimize_address): If
14765 simplify_gen_subreg fails, return orig_x.
14766
14767 PR bootstrap/47187
14768 * value-prof.c (gimple_stringop_fixed_value): Handle
14769 lhs of the call properly.
14770
14771 2011-01-07 Jan Hubicka <jh@suse.cz>
14772
14773 PR lto/45375
14774 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14775
14776 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14777
14778 * target.def (function_switched_text_sections): New hook.
14779 * doc/tm.texi: Regenerated.
14780 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14781 * final.c (default_function_switched_text_sections): New.
14782 (final_scan_insn): Call function_switched_text_sections when a
14783 mid-function section change occurs.
14784 * output.h (default_function_switched_text_sections): Declare.
14785 * config/darwin-protos.h (darwin_function_switched_text_sections):
14786 Likewise.
14787 * config/darwin.c (darwin_function_switched_text_sections): New.
14788 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14789
14790 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14791
14792 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14793 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14794 the secondary code fragment when outputting for DWARF == 2.
14795
14796 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14797
14798 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14799 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14800 Remove.
14801 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14802 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14803
14804 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14805
14806 PR debug/46704
14807 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14808 when it is not empty.
14809
14810 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14811
14812 Bobcat Enablement
14813 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14814 (case ${target}): Add btver1.
14815 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14816 -march=native recognize btver1 processors.
14817 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14818 btver1 def_and_undef
14819 * config/i386/i386.c (struct processor_costs btver1_cost): New
14820 btver1 cost table.
14821 (m_BTVER1): New definition.
14822 (m_AMD_MULTIPLE): Includes m_BTVER1.
14823 (initial_ix86_tune_features): Add btver1 tune.
14824 (processor_target_table): Add btver1 entry.
14825 (static const char *const cpu_names): Add btver1 entry.
14826 (software_prefetching_beneficial_p): Add btver1.
14827 (ix86_option_override_internal): Add btver1 instruction sets.
14828 (ix86_issue_rate): Add btver1.
14829 (ix86_adjust_cost): Add btver1.
14830 * config/i386/i386.h (TARGET_BTVER1): New definition.
14831 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14832 (enum processor_type): Add PROCESSOR_BTVER1.
14833 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14834
14835 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14836
14837 PR target/43309
14838 * config/i386/i386.c (legitimize_tls_address)
14839 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14840 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14841 (tls_initial_exec_64_sun): New pattern.
14842
14843 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14844
14845 * doc/invoke.texi (Overall Options): Improve wording and markup
14846 of the description of -wrapper.
14847
14848 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14849
14850 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14851 rdynamic, threads): New Driver options.
14852
14853 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14854
14855 PR target/38118
14856 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14857 if coming from .tdata.
14858 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14859
14860 2011-01-06 Jan Hubicka <jh@suse.cz>
14861
14862 PR lto/47188
14863 * collect2.c (main): Do not enable LTOmode when plugin is active.
14864
14865 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14866
14867 PR other/45915
14868 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14869 --version output if supported.
14870 * configure: Regenerate.
14871
14872 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14873
14874 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14875 Driver options.
14876
14877 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14878
14879 PR c/47150
14880 * c-convert.c (convert): When converting a complex expression
14881 other than COMPLEX_EXPR to a different complex type, ensure
14882 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14883 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14884 when converting COMPLEX_TYPE.
14885
14886 2011-01-06 Ira Rosen <irar@il.ibm.com>
14887
14888 PR tree-optimization/47139
14889 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14890 only the last reduction value is used outside the loop. Update
14891 documentation.
14892
14893 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14894
14895 * config/rtems.opt: New.
14896 * config.gcc (*-*-rtems*): Use rtems.opt.
14897
14898 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14899
14900 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14901 processors do not support 3DNow instructions.
14902
14903 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14904
14905 * config/spu/spu.c (spu_option_override): Set parameter
14906 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14907
14908 2011-01-05 Jan Hubicka <jh@suse.cz>
14909
14910 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14911 at the command line.
14912
14913 2011-01-05 Martin Jambor <mjambor@suse.cz>
14914
14915 PR lto/47162
14916 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14917 deltas on streamed outgoing edges.
14918 (output_node_opt_summary): Output info for outgoing edges only when
14919 the node is in new parameter set.
14920 (output_cgraph_opt_summary): New parameter set, passed to the two
14921 aforementioned functions. Update its forward declaration and its
14922 callee too.
14923
14924 2011-01-05 Tom Tromey <tromey@redhat.com>
14925
14926 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14927 operator to c_finish_omp_atomic.
14928 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14929 (build_unary_op): Update.
14930 (build_modify_expr): Update.
14931 (build_asm_expr): Update.
14932
14933 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14934
14935 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14936 newly inserted insns.
14937 (pad_bb): Likewise.
14938 (spu_emit_branch_hint): Likewise.
14939 (insert_hbrp_for_ilb_runout): Likewise.
14940 (spu_machine_dependent_reorg): Call df_finish_pass after
14941 schedule_insns returns.
14942
14943 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14944
14945 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14946
14947 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14948
14949 PR tree-optimization/47005
14950 * tree-sra.c (struct access): Add 'non_addressable' bit.
14951 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14952 (decide_one_param_reduction): Return 0 if the parameter is passed by
14953 reference and one of the accesses in the group is non_addressable.
14954
14955 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14956
14957 PR tree-optimization/47056
14958 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14959 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14960 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14961
14962 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14963
14964 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14965 initializer. Skip view conversions from aggregate types.
14966
14967 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14968
14969 PR bootstrap/47055
14970 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14971
14972 2011-01-04 Philipp Thomas <pth@suse.de>
14973
14974 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14975 obvious typo.
14976
14977 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14978
14979 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14980 on empty epilogue sequences.
14981
14982 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14983
14984 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14985 non-static): New Driver options.
14986
14987 2011-01-04 Jie Zhang <jie@codesourcery.com>
14988
14989 PR driver/47137
14990 * gcc.c (default_compilers[]): Set combinable field to 0
14991 for all assembly languages.
14992
14993 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14994
14995 * config/mips/loongson3a.md: New file.
14996 * config/mips/mips.md: Include loongson3a.md.
14997 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14998 TUNE_LOONGSON_3A.
14999
15000 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15001
15002 PR middle-end/47017
15003 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15004 instead of convert_memory_address_addr_space on the base expression.
15005
15006 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15007
15008 * config/spu/spu.c (spu_option_override): Update error text
15009 for bad -march= / -mtune= values.
15010
15011 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15012
15013 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15014 if branch-hint optimization will be performed.
15015
15016 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15017
15018 PR tree-optimization/47148
15019 * ipa-split.c (split_function): Convert arguments to
15020 DECL_ARG_TYPE if possible.
15021
15022 PR tree-optimization/47155
15023 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15024 when computing uns.
15025
15026 PR rtl-optimization/47157
15027 * combine.c (try_combine): If undobuf.other_insn becomes
15028 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15029 and set *new_direct_jump_p too.
15030
15031 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15032
15033 PR tree-optimization/47021
15034 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15035
15036 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15037
15038 * gcc.c (process_command): Update copyright notice dates.
15039 * gcov.c (print_version): Likewise.
15040 * gcov-dump.c (print_version): Likewise.
15041 * mips-tfile.c (main): Likewise.
15042 * mips-tdump.c (main): Likewise.
15043
15044 2011-01-03 Martin Jambor <mjambor@suse.cz>
15045
15046 PR tree-optimization/46801
15047 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15048 aggregate fields start at byte boundary instead of the bit-field flag.
15049
15050 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15051
15052 PR driver/47137
15053 * gcc.c (main): Revert revision 168407.
15054
15055 2011-01-03 Martin Jambor <mjambor@suse.cz>
15056
15057 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15058
15059 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15060
15061 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15062 vector optab to expand vector/scalar shift, update gimple to vector.
15063
15064 2011-01-03 Martin Jambor <mjambor@suse.cz>
15065
15066 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15067 a thunk.
15068
15069 2011-01-03 Martin Jambor <mjambor@suse.cz>
15070
15071 PR tree-optimization/46984
15072 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15073 HOST_WIDE_INT.
15074 (cgraph_create_indirect_edge): Fixed line length.
15075 (cgraph_indirect_call_info): Declare.
15076 (cgraph_make_edge_direct) Update declaration.
15077 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15078 (cgraph_create_indirect_edge): Use it.
15079 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15080 callees.
15081 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15082 the new thunk_delta representation.
15083 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15084 HOST_WIDE_INT.
15085 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15086 (ipa_read_indirect_edge_info): Likewise.
15087 * lto-cgraph.c (output_edge_opt_summary): New function.
15088 (output_node_opt_summary): Call it on all outgoing edges.
15089 (input_edge_opt_summary): New function.
15090 (input_node_opt_summary): Call it on all outgoing edges.
15091
15092 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15093
15094 PR driver/47137
15095 * gcc.c (main): Don't check have_o when settting combine_inputs.
15096
15097 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15098
15099 * regrename.c: Add general comment describing the pass.
15100 (struct du_head): Remove 'length' field.
15101 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15102 (regrename_optimize): Do not sort chains. Rework comments, add others.
15103 Force renaming to the preferred class (if any) in the first pass and do
15104 not consider registers that belong to it in the second pass.
15105 (create_new_chain): Do not set 'length' field.
15106 (scan_rtx_reg): Likewise.
15107
15108 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15109
15110 PR tree-optimization/47140
15111 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15112 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15113 to bit_value_binop.
15114
15115 PR rtl-optimization/47028
15116 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15117 parm_birth_insn instead of at the beginning of first bb.
15118
15119 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15120
15121 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15122 Remove the word "see" before "@pxref".
15123 * doc/rtl.texi: Remove the word "see" before "@pxref".
15124
15125 2011-01-01 Jan Hubicka <jh@suse.cz>
15126
15127 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15128 memory.
15129
15130 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15131
15132 PR target/38662
15133 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15134
15135 \f
15136 Copyright (C) 2011 Free Software Foundation, Inc.
15137
15138 Copying and distribution of this file, with or without modification,
15139 are permitted in any medium without royalty provided the copyright
15140 notice and this notice are preserved.