]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
PR c++/49058
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
774e9d58 12011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2
3 * c-typeck.c (build_function_call_vec): Tweak call to
4 check_function_arguments.
5
e54d36c4 62011-05-23 Richard Guenther <rguenther@suse.de>
7
8 PR tree-optimization/49115
9 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
10 is not necessarily carried out, do not claim it kills the ref.
11 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12
e07c7898 132011-05-23 Richard Guenther <rguenther@suse.de>
14
15 PR middle-end/15419
16 * builtins.c (fold_builtin_memory_op): Be less restrictive about
17 what pointer types we accept for folding.
18
c177b341 192011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20
21 * gthr-gnat.c: Remove.
22 * gthr-gnat.h: Remove.
23 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
24 * config/t-freebsd (LIB2ADDEH): Likewise.
25 * config/t-linux (LIB2ADDEH): Likewise.
26 * config/t-sol2 (LIB2ADDEH): Likewise.
27 * config/ia64/t-vms (LIB2ADDEH): Likewise.
28 * configure.ac (target_thread_file): Remove gnat handling.
29 * configure: Regenerate.
30 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
31
ea1e6352 322011-05-23 Tristan Gingold <gingold@adacore.com>
33 Eric Botcazou <ebotcazou@adacore.com>
34
35 * gcov.c (create_file_names): If no object directory is specified,
36 keep the directory of the file.
37
3f25492e 382011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39
40 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
41 * configure: Regenerate.
42
d430af93 432011-05-23 Jakub Jelinek <jakub@redhat.com>
44
45 PR middle-end/48973
46 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
47 failed and the comparison has a single bit signed type, use
48 constm1_rtx instead of const1_rtx for true value.
49 (do_store_flag): If ops->type is single bit signed type, disable
50 signel bit test optimization and pass -1 instead of 1 as last
51 parameter to emit_store_flag_force.
52
dba7464a 532011-05-23 Tom de Vries <tom@codesourcery.com>
54
55 PR target/45098
56 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
57 function.
58 (infer_loop_bounds_from_undefined): Use new function.
59
dd71e058 602011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
61
62 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
63 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
64 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
65 and -O0 otherwise.
66 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
67
50f4aeca 682011-05-22 Eric Botcazou <ebotcazou@adacore.com>
69
70 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
71 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
72 returns true.
73
6c035750 742011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
75
76 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
77
ebbcbb93 782011-05-22 Eric Botcazou <ebotcazou@adacore.com>
79
80 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
81 UNSPEC_MOVE_PIC pattern.
82
91464496 832011-05-22 Eric Botcazou <ebotcazou@adacore.com>
84
85 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
86 (sparc-*-rtems*): Likewise.
87 (sparc64-*-elf*): Likewise.
88 (sparc64-*-rtems*): Likewise.
89 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
90 * config/sparc/t-crtin: New file.
91 * config/sparc/t-sol2 (crti.o): Delete rule.
92 (crtn.o): Likewise.
93 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
94 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
95 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
96 (ENDFILE_SPEC): Add crtn.o.
97
478263cb 982011-05-22 Tom de Vries <tom@codesourcery.com>
99
100 PR middle-end/48689
101 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
102 CODE_CONTAINS_STRUCT (TS_COMMON).
103
fcae9057 1042011-05-22 Jakub Jelinek <jakub@redhat.com>
105
106 PR middle-end/49029
107 * expmed.c (extract_fixed_bit_field): Test whether target can be used
108 only after deciding which mode to use.
109
5d24f4be 1102011-05-22 Tom de Vries <tom@codesourcery.com>
111
112 PR target/45098
b01acfb8 113 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5d24f4be 114 for call to get_shiftadd_cost.
115
cef70b8a 1162011-05-22 Uros Bizjak <ubizjak@gmail.com>
117
118 PR target/49104
119 * config/i386/cpuid.h (bit_MMXEXT): New define.
120
89a2af15 1212011-05-22 Nick Clifton <nickc@redhat.com>
122
123 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
124 initialisation of non-existant args[2] element. Use args[] array
125 not arg[] array to pass arguments to build_function_type_list.
126
ca8206e4 1272011-05-22 Ira Rosen <ira.rosen@linaro.org>
128
129 PR tree-optimization/49087
cef70b8a 130 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
ca8206e4 131
b622b5f5 1322011-05-21 Jason Merrill <jason@redhat.com>
133
134 PR c++/49092
135 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
136 static storage duration.
137
d74fda7a 1382011-05-21 Eric Botcazou <ebotcazou@adacore.com>
139
140 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
141 frame pointer.
142
9ddcf03c 1432011-05-21 Eric Botcazou <ebotcazou@adacore.com>
144
145 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
146 false if there are call-saved registers here...
147 (sparc_can_use_return_insn_p): ...but here instead.
148 (save_or_restore_regs): Fix thinko.
149 (sparc_expand_prologue): Use current_function_is_leaf.
150 (sparc_frame_pointer_required): Likewise.
151
3e8d9684 1522011-05-21 Nick Clifton <nickc@redhat.com>
153
154 PR target/49098
155 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
156
248c24dd 1572011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
158
159 * gengtype.c (walk_type): Implemented "atomic" GTY option.
160 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
161
1e127302 1622011-05-21 Joseph Myers <joseph@codesourcery.com>
163
164 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
165 * optc-gen.awk: Move common code to opt-read.awk.
166 * opth-gen.awk: Likewise.
cef70b8a 167 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1e127302 168
f2af597c 1692011-05-20 Nathan Froyd <froydnj@codesourcery.com>
170
171 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
172
e0ae2fe2 1732011-05-20 Tom de Vries <tom@codesourcery.com>
174
175 PR target/45098
176 * tree-ssa-loop-ivopts.c: Include expmed.h.
177 (get_shiftadd_cost): New function.
178 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
179
ae4330d7 1802011-05-20 Jakub Jelinek <jakub@redhat.com>
181
182 PR bootstrap/49086
183 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
184 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
185
f0246315 1862011-05-20 Joseph Myers <joseph@codesourcery.com>
187
188 * Makefile.in: Update comment referring to $(OBJS-common).
189
32874486 1902011-05-20 Ian Lance Taylor <iant@google.com>
191
192 * godump.c (go_output_typedef): Put enum constants in the macro
193 hash table to avoid duplicate Go const definitions.
194
0b4f4daf 1952011-05-20 Joseph Myers <joseph@codesourcery.com>
196
197 * Makefile.in (LIBDEPS): Add libcommon.a.
198 (LIBS): Likewise.
199 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
200 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
201 pretty-print.o and version.o.
202 (OBJS-libcommon): New.
203 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
204 (BACKEND): Add libcommon.a.
205 (MOSTLYCLEANFILES): Likewise.
206 (libcommon.a): New.
207 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
208 (cpp$(exeext)): Likewise.
209 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
210 pretty-print.o and input.o.
211 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
212 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
213 (errors.o): Remove.
214 (mips-tfile): Don't explicitly use version.o.
215 (mips-tdump): Likewise.
216 (gcov.o): Depend on $(DIAGNOSTIC_H).
217 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
218 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
219 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
220 * gcov-dump.c: Include intl.h and diagnostic.h.
221 (main): Initialize diagnostics.
222 * gcov.c: Include diagnostic.h.
223 (fnotice): Remove.
224 (main): Initialize diagnostics.
225 * lto-wrapper.c: Include diagnostic.h.
226 (main): Initialize diagnostics.
227
aef23a85 2282011-05-20 Michael Matz <matz@suse.de>
229
230 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
231
02b9b70b 2322011-05-20 Michael Matz <matz@suse.de>
233 Richard Guenther <rguenther@suse.de>
234
235 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
236 use lto_streamer_cache_append directly instead of returning a VEC.
237 (preload_common_node): Remove.
238 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
239 track seen nodes.
240 (lto_streamer_cache_create): Call lto_preload_common_nodes.
241
06ec5ac4 2422011-05-20 Richard Guenther <rguenther@suse.de>
243
244 PR tree-optimization/49079
245 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
246 MEM_REFs correctly for the trailing array access detection.
247 Special case constants the same way as decls for overall size
248 constraining.
249
6ae2c051 2502011-05-20 Uros Bizjak <ubizjak@gmail.com>
251
252 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
253 argument expansion.
254
8a245b9d 2552011-05-20 Jakub Jelinek <jakub@redhat.com>
256
257 PR tree-optimization/49073
6ae2c051 258 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
259 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8a245b9d 260 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
261
c9819bb0 2622011-05-20 Richard Guenther <rguenther@suse.de>
263
264 PR middle-end/48849
265 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
266 of pointer types the same way the middle-end does.
267
4d83607a 2682011-05-20 Richard Guenther <rguenther@suse.de>
269
6ae2c051 270 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
271 or pointer-to chains. Delay all fixup to uniquify_nodes.
4d83607a 272
ad33e6a8 2732011-05-19 Quentin Neill <quentin.neill@amd.com>
274
275 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
276 (fma4_fmaddsub): Likewise
277
b2640e03 2782011-05-19 Jan Hubicka <jh@suse.cz>
279
280 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
281 (GIMPLE_TYPE_PAIR_SIZE): New macro.
282 (type_pair_cache): New static var.
283 (lookup_type_pair): Use fixed sized custom hash; make inline.
284 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
285 calls of lookup_type_pair.
286 (print_gimple_types_stats): Remove cache stats.
287 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
288 and gtc_ob.
289
d9973cb4 2902011-05-19 Uros Bizjak <ubizjak@gmail.com>
291
292 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
293 when TARGET_RDRND is active.
294 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
295 Generate dummy SImode target register when target is NULL.
296
bcbb3950 2972011-05-19 Joseph Myers <joseph@codesourcery.com>
298
299 * config/arm/arm-fpus.def: New.
300 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
301 arm-fpus.def.
302 * config/arm/arm-tables.opt: Regenerate.
303 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
304 (arm_option_override): Don't decode FPU name to string here.
305 * config/arm/arm.opt (mfpu=): Use Enum.
306 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
307 Update dependencies.
308
11091b4d 3092011-05-19 Joseph Myers <joseph@codesourcery.com>
310
311 * collect2.c: Include diagnostic.h.
312 (fatal_perror, fatal, error, fancy_abort): Remove.
313 (main): Set progname. Call xmalloc_set_program_name and
314 diagnostic_initialize.
315 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
316 scan_libraries, resolve_lib_name): Call fatal_error instead of
317 fatal and fatal_perror.
318 * collect2.h (error, fatal, fatal_perror): Don't declare.
319 * tlink.c: Include diagnostic-core.h.
320 (recompile_files): Call fatal_error instead of fatal_perror.
321 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
322 pretty-print.o and input.o.
323 (collect2.o, tlink.o): Update dependencies.
324
c2b88971 3252011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326
327 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
328
3468b0d6 3292011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
330
331 PR target/40483
332 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
333 COMDAT group syntax, both SPARC and x86 variants.
334 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
335 * configure: Regenerate.
336 * config/sol2.h (TARGET_SOLARIS): Define.
337 (PUSHSECTION_FORMAT): Remove.
338 (SECTION_NAME_FORMAT): Define.
339 * config/sol2.c: Include hashtab.h.
340 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
341 expansion, using SECTION_NAME_FORMAT.
342 (solaris_comdat_htab): New variable.
343 (struct comdat_entry): Define.
344 (comdat_hash): New function.
345 (comdat_eq): New function.
346 (solaris_elf_asm_comdat_section): New function.
347 (solaris_define_comdat_signature): New function.
348 (solaris_code_end): New function.
349 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
350 (solaris_code_end): Declare.
351 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
352 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
353 solaris_code_end.
354 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
355 Remove ATTRIBUTE_UNUSED.
356 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
357 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
d9973cb4 358 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3468b0d6 359 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
360 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
361 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
362 (PUSHSECTION_FORMAT): Remove.
363 (SECTION_NAME_FORMAT): Redefine.
364
d515ee79 3652011-05-19 Kai Tietz <ktietz@redhat.com>
366
367 * tree-cfg.c (verify_gimple_assign_binary): Barf on
368 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
369 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
370
f5030be1 3712011-05-19 Anatoly Sokolov <aesok@post.ru>
372 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
373
374 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
375
dda02ea2 3762011-05-19 Richard Guenther <rguenther@suse.de>
377
378 PR middle-end/48985
379 * tree-object-size.c (addr_object_size): If the pointed-to
380 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
381
bddb3763 3822011-05-19 Richard Guenther <rguenther@suse.de>
383
384 * gimple.c (gimple_types_compatible_p_1): Compare names of
385 the types themselves.
386 (iterative_hash_gimple_type): And hash them that way.
387 (gimple_register_type_1): If we register a main variant properly
388 initialize the leader to ourselves.
389
055d6bb2 3902011-05-19 Tom de Vries <tom@codesourcery.com>
391
392 PR target/45098
393 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
394 get_loop_invariant_expr_id.
395 (get_loop_invariant_expr_id): Use get_expr_id.
396 (parm_decl_cost): New function.
397 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
398 Improve bound cost estimation. Use different inv_expr_id for elim and
399 express cases.
400
ee36045b 4012011-05-19 Tom de Vries <tom@codesourcery.com>
402
403 PR target/45098
404 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
405 cost_base.cost == 0.
406
03f65847 4072011-05-18 H.J. Lu <hongjiu.lu@intel.com>
408
409 PR target/49002
410 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
411 Properly handle load cast.
412
556a56dd 4132011-05-18 Jakub Jelinek <jakub@redhat.com>
414
415 PR tree-optimization/49039
416 * tree-vrp.c (extract_range_from_binary_expr): For
417 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
418 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
419
9881cd2d 4202011-05-18 Tom de Vries <tom@codesourcery.com>
421
422 PR target/45098
423 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
424
b26e9e37 4252011-05-18 Uros Bizjak <ubizjak@gmail.com>
426
427 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
428 (*tls_global_dynamic_64): Ditto.
429 (*tls_local_dynamic_base_32_gnu): Ditto.
430 (*tls_local_dynamic_base_64): Ditto.
431 (tls_initial_exec_64_sun): Ditto.
432
0d7700ef 4332011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
434
435 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
436 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
437 bf592-none.
438 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
439 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
440 * config/bfin/bfin.c (bfin_cpus): Add bf592.
441 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
b26e9e37 442 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
0d7700ef 443 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
444 * config/bfin/elf.h (LIB_SPEC): Add bf592.
445
8bbee4a9 4462011-05-18 Joseph Myers <joseph@codesourcery.com>
447
448 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
b26e9e37 449 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8bbee4a9 450 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
451 target_thread_pointer, arm_structure_size_boundary, struct
452 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
453 struct abi_name, arm_all_abis): Remove.
b26e9e37 454 (arm_option_override) Don't process most enumerated option values here.
455 Don't process target_fpe_name here. Work with integer not string for
456 structure size boundary; use separate diagnostics for each case.
8bbee4a9 457 * config/arm/arm.h (enum float_abi_type, enum
458 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
459 to arm-opts.h.
460 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
461 arm_structure_size_boundary): Remove.
462 * config/arm/arm.opt (mabi=): Use Enum and Init.
463 (arm_abi_type): New Enum and EnumValue entries.
464 (mfloat-abi=): Use Enum and Init.
465 (float_abi_type): New Enum and EnumValue entries.
b26e9e37 466 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8bbee4a9 467 (mfp16-format=): Use Enum and Init.
468 (arm_fp16_format_type): New Enum and EnumValue entries.
469 (mstructure-size-boundary=): Use UInteger and Init.
470 (mtp=): Use Enum and Init.
471 (arm_tp_type): New Enum and EnumValue entries.
472
b523dd6d 4732011-05-18 Richard Guenther <rguenther@suse.de>
474
475 PR tree-optimization/49018
476 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
477 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
478 gimple_has_side_effects.
479
ce89f696 4802011-05-18 Richard Guenther <rguenther@suse.de>
481
482 * gimple.c (gimple_register_type_1): New function, split out from ...
483 (gimple_register_type): ... here. Avoid infinite recursion.
484
39a5d6b1 4852011-05-18 Ira Rosen <ira.rosen@linaro.org>
486
487 PR tree-optimization/41881
488 * tree-vectorizer.h (struct _loop_vec_info): Add new field
489 reduction_chains along with a macro for its access.
490 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
491 (destroy_loop_vec_info): Free reduction chains.
492 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
493 (vect_is_slp_reduction): New function.
494 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
495 (vect_create_epilog_for_reduction): Support SLP reduction chains.
496 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
497 definition types for reduction chains.
498 (vect_supported_load_permutation_p): Don't allow permutations for
499 reduction chains.
500 (vect_analyze_slp_instance): Support reduction chains.
501 (vect_analyze_slp): Try to build SLP instance from reduction chains.
502 (vect_get_constant_vectors): Handle reduction chains.
503 (vect_schedule_slp_instance): Mark the first statement of the
504 reduction chain as reduction.
505
21009880 5062011-05-18 Ira Rosen <ira.rosen@linaro.org>
507
508 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
509 names for group elements access.
510 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
511 reduction chains as well. Remove data reference and interleaving
512 related words from the fields names.
513 * tree-vect-loop.c (vect_transform_loop): Use new names for group
514 elements access.
515 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
516 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
517 vect_update_interleaving_chain, vect_same_range_drs,
518 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
519 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
520 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
521 vect_analyze_group_access, vect_analyze_data_ref_access,
522 vect_create_data_ref_ptr, vect_transform_strided_load,
523 vect_record_strided_load_vectors): Likewise.
524 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
525 vect_model_load_cost, vectorizable_store, vectorizable_load,
526 vect_remove_stores, new_stmt_vec_info): Likewise.
527 * tree-vect-slp.c (vect_build_slp_tree,
528 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
529
9ad3a576 5302011-05-18 Richard Guenther <rguenther@suse.de>
531
532 PR middle-end/48989
533 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
534 operand verification.
535 (verify_gimple_assign_binary): Likewise.
536 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
537 to non-1-precision BOOLEAN_TYPEs.
538
4fb583ad 5392011-05-18 Tom de Vries <tom@codesourcery.com>
540
541 PR target/45098
542 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
543
fd2b4bf0 5442011-05-18 Jakub Jelinek <jakub@redhat.com>
545
546 PR tree-optimization/49000
547 * tree-ssa.c (execute_update_addresses_taken): Call
548 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
549 be rewritten and decl has been marked for renaming, reset
550 the debug stmt.
551
0ea4d98d 5522011-05-17 Joseph Myers <joseph@codesourcery.com>
553
554 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
555 enum_opts_set when testing if attributes have set -mfpmath=.
556
3eb76ba5 5572011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
558
559 * config/mips/mips.c (mips_handle_option): Remove unused variable.
560
839c5aac 5612011-05-17 Uros Bizjak <ubizjak@gmail.com>
562
563 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
564 info->entry with 0
565 * tree-inline.c (maybe_inline_call_in_expr): Initialize
566 id.transform_lang_insert_block with NULL.
567
5682011-05-17 Uros Bizjak <ubizjak@gmail.com>
ca242583 569
570 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
571 (output_fp_compare): Change args 3 and 4 to bool.
572 (ix86_expand_call): Change arg 6 to bool.
573 (ix86_attr_length_immediate_default): Change arg 2 to bool.
574 (ix86_attr_length_vex_default): Change arg 3 to bool.
575 * config/i386/i386.md: Update all uses.
576 * config/i386/i386.c: Ditto.
577 (ix86_flags_dependent): Change return type to bool.
578
e8dcede0 5792011-05-17 Richard Guenther <rguenther@suse.de>
580
581 * gimple.c (type_hash_pair_compare): Fix comparison.
582
f5e139e8 5832011-05-17 Richard Guenther <rguenther@suse.de>
584
585 * gimple.c (iterative_hash_gimple_type): Simplify singleton
586 case some more, fix final hash value of the non-singleton case.
587
e47af1f1 5882011-05-17 Richard Guenther <rguenther@suse.de>
589
590 PR bootstrap/49013
591 Revert
592 2011-05-16 Richard Guenther <rguenther@suse.de>
593
594 * gimple.c (gimple_types_compatible_p_1): Use names of the
595 type itself, not its main variant.
596 (iterative_hash_gimple_type): Likewise.
597
46237a73 5982011-05-17 Richard Guenther <rguenther@suse.de>
599
600 * gimple.c (gimple_register_canonical_type): Use the main-variant
601 leader for computing the canonical type.
602
7e6e7156 6032011-05-17 Nick Clifton <nickc@redhat.com>
604
6145a46d 605 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
606 moves.
607
7e6e7156 608 * config/rx/rx.md: Add peephole to remove redundant extensions
609 after loads.
5341fa53 610 (bitset_in_memory): Use rx_restricted_mem_operand.
611 (bitinvert_in_memory): Likewise.
612 (bitclr_in_memory): Likewise.
7e6e7156 613
5c07e5ac 6142011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
615 Nick Clifton <nickc@redhat.com>
616
617 * config/rx/rx.md: Add peepholes to match a register move followed
618 by a comparison of the moved register. Replace these with an
619 addition of zero that does both actions in one instruction.
620
feb218cb 6212011-05-17 Jakub Jelinek <jakub@redhat.com>
622
623 PR target/48986
624 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
625 predicate to allow CONST_INT.
626 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
627
9105695c 6282011-05-16 Joseph Myers <joseph@codesourcery.com>
629
630 * opts-common.c (opt_enum_arg_to_value): New.
631 * opts.h (opt_enum_arg_to_value): Declare.
632 * config/i386/i386.opt (fpmath): Remove.
633 (mfpmath=): Use Enum, Init and Save.
634 (fpmath_unit): New Enum and EnumValue entries.
635 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
636 name for function fpmath state.
637 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
638 * config/i386/i386.c: Include diagnostic.h.
639 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
ca242583 640 (ix86_target_string): Take enum fpmath_unit value instead of string.
9105695c 641 (ix86_debug_options): Update call to ix86_target_string.
ca242583 642 (ix86_option_override_internal): Don't process fpmath strings here.
9105695c 643 (x86_function_specific_save, ix86_function_specific_restore):
644 Don't handle fpmath state specially.
645 (ix86_function_specific_print): Pass fpmath state to
646 ix86_target_string instead of printing in this function.
647 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
648 Handle enum attributes.
649 (IX86_ATTR_ENUM, ix86_opt_enum): New.
650 (ix86_valid_target_attribute_tree): Update option_strings
651 handling. Handle fpmath as enum option.
652 (ix86_can_inline_p): Update field names for function fpmath state.
653 (ix86_expand_builtin): Update call to ix86_target_string.
654 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
655 (ix86_fpmath): Remove.
656 * config/i386/t-i386 (i386.o): Update dependencies.
657
e9a7bf99 6582011-05-16 Joseph Myers <joseph@codesourcery.com>
659
660 PR preprocessor/48677
661 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
662 from decoded_options[0], not from itself.
663
25d5a263 6642011-05-16 Uros Bizjak <ubizjak@gmail.com>
665
666 * config/i386/constraints.md (z): New constraint.
667 * config/i386/i386.c (c): New mode attribute.
668 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
669 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
670 constraint for operand 0.
671 (*call_vzeroupper): Ditto.
672 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
673 (*call_rex64_ms_sysv_vzeroupper): Ditto.
674 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
675 Use "lzm" constraint for operand 0.
676 (*call_pop_vzeroupper): Ditto.
677 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
678 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
679 constraint for operand 0.
680 (*sibcall_vzeroupper): Ditto.
681 (*sibcall_rex64_ms_sysv): Ditto.
682 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
683 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
684 *sibcall_pop_1. Use "Uz" constraint for operand 0.
685 (*sibcall_pop_vzeroupper): Ditto.
686 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
687 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
688 mode iterator. Use "<c>zm" constraint for operand 1.
689 (*call_value_vzeroupper): Ditto.
690 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
ca242583 691 for operand 1.
25d5a263 692 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
693 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
694 *call_value_pop_1. Use "lzm" constraint for operand 1.
695 (*call_value_pop_vzeroupper): Ditto.
696 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
697 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
698 mode iterator. Use "Uz" constraint for operand 1.
699 (*sibcall_value_vzeroupper): Ditto.
700 (*sibcall_value_rex64_ms_sysv): Ditto.
701 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
702 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
703 constraint for operand 1.
704 (*sibcall_value_pop_vzeroupper): Ditto.
705 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
706 and "z" constraint for operand 2.
707 (*tls_global_dynamic_32_gnu): Ditto.
708 (*tls_local_dynamic_base_32_gnu): Ditto.
709 (*tls_local_dynamic_base_64): Ditto.
710 (*tls_local_dynamic_32_once): Ditto.
711 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
712 Update all callers.
713 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
714
9351e6d9 7152011-05-16 Richard Guenther <rguenther@suse.de>
716
717 * gimple.c (gimple_types_compatible_p_1): Use names of the
718 type itself, not its main variant.
719 (iterative_hash_gimple_type): Likewise.
720
dc9aeee0 7212011-05-16 Richard Guenther <rguenther@suse.de>
722
25d5a263 723 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
724 always visit pointer target and function result and argument types.
dc9aeee0 725
18642e81 7262011-05-16 Jason Merrill <jason@redhat.com>
727
728 PR c++/48999
729 * tree-inline.c (copy_statement_list): Put back recursion.
730
db19f75e 7312011-05-16 Georg-Johann Lay <avr@gjlay.de>
732
733 PR target/27663
734 PR target/41076
735 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
736 * config/avr/avr.md ("*ior<mode>qi.byte0",
737 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
738
04f600bb 7392011-05-16 Georg-Johann Lay <avr@gjlay.de>
740
741 PR target/45099
742 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
743 register is needed for a function argument.
744
9532776c 7452011-05-16 Richard Guenther <rguenther@suse.de>
746
747 * gimple.c (struct type_hash_pair): New type.
748 (type_hash_pair_compare): New function.
25d5a263 749 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
9532776c 750
9973add0 7512011-05-16 Revital Eres <revital.eres@linaro.org>
752
25d5a263 753 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
9973add0 754
6a1210e5 7552011-05-15 Uros Bizjak <ubizjak@gmail.com>
756
757 * config/i386/i386.md (floating point move splitters): Fix
758 usage of standard_80387_constant_p.
25d5a263 759 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6a1210e5 760
751f709b 7612011-05-15 Uros Bizjak <ubizjak@gmail.com>
762
763 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
764
2fd20c29 7652011-05-14 Eric Botcazou <ebotcazou@adacore.com>
766
767 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
768 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
769 (tree_ssa_lim_finalize): Likewise.
770
ec679bd0 7712011-05-14 Uros Bizjak <ubizjak@gmail.com>
772
773 * config/i386/constraint.md (Yd, Yx): New register constraints.
774 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
775 Yd conditional register constraint.
776 (*movtf_internal): Use standard_sse_constant_opcode.
777 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
778 Yx conditional register constraint.
779 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
780 Yd conditional register constraint. Use standard_sse_constant_p to
781 check for valid SSE constants and call standard_sse_constant_opcode to
782 output SSE insn.
783 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
784 constants and call standard_sse_constant_opcode to output SSE insn.
785 * config/i386/i386.c (ix86_option_ovverride_internal): Set
786 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
787 optimize_size is set.
788 (standard_sse_constant_opcode): Output conditional AVX insn templates.
789
9e412fd2 7902011-05-14 Tobias Burnus <burnus@net-b.de>
791
792 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
793
93f713da 7942011-05-13 Martin Jambor <mjambor@suse.cz>
795
796 * ipa-prop.c (ipa_cst_from_jfunc): New function.
797 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
798 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
799 (evaluate_conditions_for_ipcp_clone): Removed.
800 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
801 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
802 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
803
6d31b223 8042011-05-13 Eric Botcazou <ebotcazou@adacore.com>
805
806 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
807 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
808 lieu of MAY_HAVE_DEBUG_STMTS.
809 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
810 debug statements if !MAY_HAVE_DEBUG_STMTS.
811
e95cac88 8122011-05-13 Martin Thuresson <martint@google.com>
813
814 PR gcov-profile/47793
815 * libgcov.c (gcov_exit): Support relative profile paths.
816 * doc/invoke.texi (-fprofile-dir): Update for above change.
817
8b55830c 8182011-05-13 Richard Guenther <rguenther@suse.de>
819
820 * gimple.c (gimple_canonical_types_compatible_p): Do not use
821 type-pair caching, do not compare hashes.
822
afec0a77 8232011-05-13 Nathan Froyd <froydnj@codesourcery.com>
824
825 PR middle-end/48965
826 * tree-cfg.c (edge_to_cases_cleanup): Return true.
827 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
828
d994b25f 8292011-05-13 Kai Tietz <ktietz@redhat.com>
830
831 * gimplify.c (gimplify_expr): Make sure operand is boolified.
832 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
833 compatible type for TRUTH_NOT_EXPR.
834
2db1a5bf 8352011-05-13 H.J. Lu <hongjiu.lu@intel.com>
836
6d31b223 837 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2db1a5bf 838 (ix86_hard_regno_mode_ok): Change return value to bool. Use
839 can_create_pseudo_p ().
840
1f51cf89 8412011-05-13 Richard Guenther <rguenther@suse.de>
842
843 PR lto/48978
844 * gimple.c (iterative_hash_gimple_type): Revert change in
845 pointer target and function result and argument hashing.
846
6e079bbc 8472011-05-13 Uros Bizjak <ubizjak@gmail.com>
848
849 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
850 (*movxf_internal_nointeger): Ditto.
851 (*movdf_internal_rex64): Ditto.
852 (*movdf_internal): Ditto.
853 (*movdf_internal_nointeger): Ditto.
854 (*movsf_internal): Ditto.
855 (sincos splitters): Use can_create_pseudo ().
856
c16ca027 8572011-05-13 Joseph Myers <joseph@codesourcery.com>
858
859 * config/i386/i386-opts.h: New.
860 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
861 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
862 ix86_section_threshold): Remove.
863 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
864 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
865 OPT_mbranch_cost_.
866 (ix86_option_override_internal): Don't decode strings for options
867 other than -march=, -mtune= and -mfpmath=. Don't allow for
868 __attribute__ uses in remaining diagnostics for options with
6e079bbc 869 string arguments. Don't check for integer arguments being negative.
c16ca027 870 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6e079bbc 871 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
c16ca027 872 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
873 ix86_branch_cost, ix86_section_threshold): Remove.
874 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
875 HeaderInclude.
876 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
877 but not Var.
878 (masm=): Use Enum and Init.
879 (asm_dialect): New Enum and EnumValue entries.
880 (mbranch-cost=): Use UInteger.
881 (mlarge-data-threshold=): Use UInteger and Init.
882 (mcmodel=): Use Enum and Init.
883 (cmodel): New Enum and EnumValue entries.
884 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
885 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
886 mregparm=): Use UInteger.
887 (mstringop-strategy=): Use Enum and Init.
888 (stringop_alg): New Enum and EnumValue entries.
889 (mtls-dialect=): Use Enum and Init.
890 (tls_dialect): New Enum and EnumValue entries.
891 (mabi=): Use Enum and Init.
892 (calling_abi): New Enum and EnumValue entries.
893 (mveclibabi=): Use Enum and Init.
894 (ix86_veclibabi): New Enum and EnumValue entries.
895
710e2b30 8962011-05-13 Nick Clifton <nickc@redhat.com>
897
6e079bbc 898 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
899 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
710e2b30 900
008eaf24 9012011-05-13 Kai Tietz <ktietz@redhat.com>
902
903 PR middle-end/48984
904 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
905 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
906 (gimple_boolify): Check for cast for boolean_type_node instead for
907 BOOLEAN_TYPE.
908
b43efa05 9092011-05-13 Richard Guenther <rguenther@suse.de>
910
911 PR tree-optimization/48172
912 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
913 multiplying by number of iterations for equal step.
914 (vect_create_cond_for_alias_checks): Likewise.
915
bc6c87c1 9162011-05-13 Andreas Schwab <schwab@redhat.com>
917
918 * configure.ac: Use AS_HELP_STRING throughout.
919 * configure: Regenerate.
920
7da01271 9212011-05-12 H.J. Lu <hongjiu.lu@intel.com>
922
6e079bbc 923 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
7da01271 924 (ix86_emit_restore_regs_using_mov): Likewise.
925 (ix86_emit_restore_sse_regs_using_mov): Likewise.
926
5d57e68b 9272011-05-12 Anatoly Sokolov <aesok@post.ru>
928
929 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
930 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
931 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
932 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
933 RTX_OK_FOR_OLO10_P): ...here.
934 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
935 SYMBOLIC_CONST.
936
4c7817e5 9372011-05-12 Kai Tietz <ktietz@redhat.com>
938
939 * gimplify.c (gimple_boolify): Re-boolify expression
940 arguments even if expression type is of kind BOOLEAN_TYPE.
941 (gimplify_boolean_expr): Removed.
942 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
943 and XOR. Additional take care that we keep expression's type.
944 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
945 of TRUTH_AND|OR|XOR_EXPR.
946
39760a87 9472011-05-12 Jakub Jelinek <jakub@redhat.com>
948
949 PR tree-optimization/48975
950 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
951 on all bbs here and free and clear ifc_bbs at the end.
952
488a4664 9532011-05-12 Richard Guenther <rguenther@suse.de>
954
955 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
956 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
957 until after simple checks.
958 (gimple_types_compatible_p): Likewise.
959 (iterative_hash_gimple_type): Always hash pointer targets
960 and function return and argument types.
961 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
962 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
963 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
964 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
965 completely in the simple compare section.
966 (gimple_register_canonical_type): Query the cache again after
967 registering.
968
76d8ef3b 9692011-05-12 Richard Guenther <rguenther@suse.de>
970
971 PR tree-optimization/48172
972 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
973 the number of iterations from the segment size calculation.
974 (vect_create_cond_for_alias_checks): Adjust.
975
ca88a6ea 9762011-05-12 Jakub Jelinek <jakub@redhat.com>
977
978 PR debug/48967
979 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
980 if validate_subreg fails.
981
9822011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
861b8aab 983
984 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
985 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
986 early.
987
103700c7 9882011-05-12 DJ Delorie <dj@redhat.com>
989
92514c2f 990 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
103700c7 991 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
992 created builtin into rx_builtins array.
993 (rx_builtin_decl): New function.
6e079bbc 994 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
103700c7 995
f7fcec1a 9962011-05-12 DJ Delorie <dj@redhat.com>
997 Nick Clifton <nickc@redhat.com>
998
999 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1000 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1001 (rx_is_legitimate_address): Add pre-decrement and post-increment
1002 addressing in HImode and QImode. Fix test for out of range
1003 REG+INT addressing.
103700c7 1004 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6e079bbc 1005 (rx_align_for_label): Test label before extracting its usage count.
f7fcec1a 1006 (rx_adjust_insn_lengths): Fix selection of insn codes.
103700c7 1007 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
f7fcec1a 1008
381824bd 10092011-05-11 Jason Merrill <jason@redhat.com>
1010
1011 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1012
53105d88 10132011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1014
1015 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1016 reindent the subsequent block.
1017
3cb9bbfa 10182011-05-11 Satoru Takabayashi <satorux@google.com>
1019 Paul Pluzhnikov <ppluzhnikov@google.com>
1020
6e079bbc 1021 * doc/install.texi (Configuration): Document --with-linker-hash-style.
c1c901bf 1022 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1023 * config.in: Add LINKER_HASH_STYLE.
1024 * configure.ac: Add --with-linker-hash-style.
1025 * configure: Regenerate.
3cb9bbfa 1026
4088c72c 10272011-05-11 Richard Guenther <rguenther@suse.de>
1028
1029 PR middle-end/48964
1030 * gimple.c (iterative_hash_canonical_type): Fix typo.
1031
a5421f96 10322011-05-11 Uros Bizjak <ubizjak@gmail.com>
1033
1034 * config/i386/i386.c (legitimize_tls_address)
ec679bd0 1035 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
a5421f96 1036 expanders directly for TARGET_GNU2_TLS. Determine pic and
1037 __tls_get_addr symbol reference here. Update call to
1038 gen_tls_global_dynamic_{32,64} for added arguments.
ec679bd0 1039 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
a5421f96 1040 expanders directly for TARGET_GNU2_TLS. Determine
1041 __tls_get_addr symbol reference here. Update call to
1042 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1043 unique UNSPEC REG_EQUIV to libcall block.
1044 (ix86_tls_get_addr): Declare static.
1045 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1046 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1047 Do not determine pic and __tls_get_addr symbol reference here. Do not
1048 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1049 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1050 (tls_global_dynamic_64): Add operand 2. Do not determine
1051 __tls_get_addr symbol reference here. Do not call
1052 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1053 (tls_local_dynamic_base64): Ditto for operand 1.
1054
f8c438a1 10552011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1056
1057 * function.c (expand_function_start): Initialize stack_check_probe_note
1058 only if the generic stack checking mechanism is used.
1059
26f54bd0 10602011-05-11 Richard Guenther <rguenther@suse.de>
1061
1062 PR tree-optimization/15256
1063 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1064 (A & B) | C, combine (A op CST1) op CST2.
1065 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1066 visit assigns that have uses.
1067
8f2eb9e1 10682011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1069
a5421f96 1070 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8f2eb9e1 1071 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1072 (unpack_ts_type_common_value_fields): ...this. Update comment.
1073 (unpack_value_fields): Adjust for renaming.
1074 (lto_input_ts_type_tree_pointers): Split into...
1075 (lto_input_ts_type_common_tree_pointer): ...this and...
1076 (lto_input_ts_type_non_common_tree_pointers): ...this.
1077 (lto_input_tree_pointers): Adjust for above split.
1078 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1079 (pack_ts_type_common_value_fields): ...this. Update comment.
1080 (lto_output_ts_type_tree_pointers): Split into...
1081 (lto_output_ts_type_common_tree_pointers): ...this and...
1082 (lto_output_ts_type_non_common_tree_pointers): ...this.
1083 (lto_output_tree_pointers): Adjust for above split.
1084 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1085 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1086 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1087 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1088 Define.
1089 (struct tree_type): Split into...
1090 (struct tree_type_common: ...this and...
1091 (struct tree_type_with_lang_specific): ...this and...
1092 (struct tree_type_non_common): ...this. Adjust accessor macros
1093 accordingly.
1094 (TYPE_VALUES_RAW): Define.
1095 (union tree_node): Update for above changes.
1096 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1097 TS_TYPE_NON_COMMON.
1098 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1099 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1100 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1101 * treestructu.def (TS_TYPE): Remove.
1102 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1103 Define.
1104
8ebd8f29 11052011-05-11 Jakub Jelinek <jakub@redhat.com>
1106
1107 PR debug/48159
1108 * tree-ssa.c (reset_debug_uses): New function.
1109 * tree-flow.h (reset_debug_uses): New prototype.
1110 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1111 * tree-loop-distribution.c (generate_loops_for_partition): Call
1112 reset_debug_uses on the stmts that will be removed. Keep around
1113 all debug stmts, don't count them as bits in partition bitmap.
1114 (generate_builtin): Don't count debug stmts or labels as bits in
1115 partition bitmap.
1116
564cba5f 11172011-05-11 Richard Guenther <rguenther@suse.de>
1118
1119 * gimple.c (gimple_type_hash_1): Merge with ...
1120 (gimple_type_hash): ... this.
1121 (gtc_visit): Remove mode parameter and simplify accordingly.
1122 (gimple_types_compatible_p_1): Likewise.
1123 (gimple_types_compatible_p): Likewise.
1124 (iterative_hash_gimple_type): Likewise.
1125 (visit): Likewise.
1126 (gimple_type_eq): Adjust.
1127
6f7f081f 11282011-05-11 Revital Eres <revital.eres@linaro.org>
1129
1130 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1131 enters the branch create an anti edge in the opposite direction
1132 to prevent the creation of reg-moves.
1133 * modulo-sched.c: Adjust comment to reflect the fact we are
1134 scheduling closing branch.
1135 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1136 (stage_count): New field in struct partial_schedule.
1137 (calculate_stage_count): New function.
1138 (normalize_sched_times): Rename to reset_sched_times and handle
1139 incrementing the sched time of the nodes by a constant value
1140 passed as parameter.
1141 (duplicate_insns_of_cycles): Skip closing branch.
1142 (sms_schedule_by_order): Schedule closing branch.
1143 (ps_insn_find_column): Handle closing branch.
1144 (sms_schedule): Call reset_sched_times and adjust the code to
1145 support scheduling of the closing branch.
1146 (ps_insert_empty_row): Update calls to normalize_sched_times
1147 and rotate_partial_schedule functions.
1148
a37d97a5 11492011-05-11 Richard Guenther <rguenther@suse.de>
1150
1151 PR middle-end/48953
1152 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1153
20c2121a 11542011-05-11 Joseph Myers <joseph@codesourcery.com>
1155
a5421f96 1156 * opts.c (finish_options): Move warning settings from process_options.
1157 * toplev.c (process_options): Move warning settings to finish_options.
20c2121a 1158
300da094 11592011-05-11 Richard Guenther <rguenther@suse.de>
1160
1161 PR tree-optimization/18041
1162 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1163 (simplify_bitwise_binary): ... this. Handle operand conversions
1164 by applying them to the result instead.
1165 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1166
e27d9de9 11672011-05-11 Richard Guenther <rguenther@suse.de>
1168
1169 * gimple.c (gimple_canonical_types_compatible_p): Split out
1170 from gimple_types_compatible_p and friends. Do not recurse
1171 to pointed-to types.
1172 (gimple_canonical_type_eq): Use it.
1173 (iterative_hash_canonical_type): Split out from
1174 iterative_hash_gimple_type and friends. Do not recurse
1175 to pointed-to types.
1176 (gimple_canonical_type_hash): Use it, allocate the hash here.
1177
cf961a94 11782011-05-11 Revital Eres <revital.eres@linaro.org>
1179
1180 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1181 recognizing doloop.
1182
29dc3c19 11832011-05-11 Revital Eres <revital.eres@linaro.org>
1184
1185 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1186 instead of PREV_INSN.
1187
90c2bcf0 11882011-05-11 Revital Eres <revital.eres@linaro.org>
1189
1190 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1191 * loop-doloop.c (doloop_condition_get): Likewise.
1192 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1193 (doloop_end): New.
1194 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1195
315119c9 11962011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1197
1198 * tree.def (CASE_LABEL_EXPR): Add an operand.
1199 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1200
b354cec8 12012011-05-10 Joseph Myers <joseph@codesourcery.com>
1202
1203 * c-decl.c (c_override_global_bindings_to_false): Remove.
1204 (global_bindings_p): Don't check
1205 c_override_global_bindings_to_false.
1206 * c-tree.h (c_override_global_bindings_to_false): Remove.
1207 * c-typeck.c (composite_type): Don't set
1208 c_override_global_bindings_to_false.
1209
2cf72ba5 12102011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1211
1212 PR target/48857, 48495
1213 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1214 (VSX_MODE): Ditto.
1215 (VSX_MOVE_MODE): Ditto.
1216 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1217 VSX vector types. Add V2DImode.
1218 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1219 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1220 (MODES_TIEABLE_P): Ditto.
1221
1222 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1223 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1224 VSX_VECTOR_MODE.
1225 (init_cumulative_args): Ditto.
1226 (rs6000_function_arg_boundary): Ditto.
1227 (rs6000_function_arg_advance_1): Ditto.
1228 (rs6000_function_arg): Ditto.
1229 (rs6000_function_ok_for_sibcall): Ditto.
1230 (emit_frame_save): Ditto.
1231 (rs6000_function_value): Ditto.
1232 (rs6000_libcall_value): Ditto.
1233
8633828c 12342011-05-10 Joseph Myers <joseph@codesourcery.com>
1235
1236 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1237 i386/darwin-lib.h to $libgcc_tm_file.
1238 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1239
73905b5d 12402011-05-10 Joseph Myers <joseph@codesourcery.com>
1241
1242 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1243
d41a5879 12442011-05-10 Joseph Myers <joseph@codesourcery.com>
1245
a5421f96 1246 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
d41a5879 1247 * config/rs6000/rs6000-tables.opt: New file (generated).
1248 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1249 rs6000/rs6000-tables.opt to extra_options.
1250 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1251 * config/rs6000/rs6000.c (rs6000_select): Remove.
1252 (processor_target_table): Move contents to rs6000-cpus.def.
1253 (darwin_rs6000_override_options): Check
1254 global_options_set.x_rs6000_cpu_index instead of
1255 rs6000_select[1].string.
1256 (rs6000_option_override_internal): Likewise.
1257 (rs6000_handle_option): Don't assert that global structures are in
1258 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1259 (rs6000_default_cpu): New variable.
1260 (rs6000_file_start): Set it instead of local default_cpu. Check
1261 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1262 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1263 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1264 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1265 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1266 rs6000_select): Remove.
1267 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1268 Remove.
1269 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1270 * config/rs6000/t-rs6000
1271 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1272 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1273 global_options_set.x_rs6000_cpu_index instead of
1274 rs6000_select[1].string.
1275 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1276 global_options_set.x_rs6000_cpu_index instead of
1277 rs6000_select[1].string.
1278
3be74046 12792011-05-10 Joseph Myers <joseph@codesourcery.com>
1280
1281 * config.gcc (libgcc_tm_file): Define instead of including files
1282 from ../../libgcc/config/ in tm_file.
a5421f96 1283 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3be74046 1284 * configure: Regenerate.
1285 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1286 libgcc_tm.h, cs-libgcc_tm.h): New.
1287 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1288 (clean): Remove libgcc_tm.h.
1289 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1290 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1291 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1292
1086ba15 12932011-05-10 Georg-Johann Lay <avr@gjlay.de>
1294
1295 PR target/48896
1296 * config/avr/avr.c (avr_ret_register): Return unsigned int
1297 instead of int.
1298 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1299 it to avr_libcall_value.
1300 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1301 expand_expr.
1302 (avr_expand_binop_builtin): Ditto.
1303 (avr_expand_unop_builtin): Ditto.
1304
001afa63 13052011-05-10 DJ Delorie <dj@redhat.com>
1306
1307 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1308 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1309 * config/rx/rx.c (rx_align_for_label): Add label and
1310 uses_threshold parameters. Do not align when the label is not
1311 used enough.
1312 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1313
6afd0544 13142011-05-10 Richard Guenther <rguenther@suse.de>
1315
1316 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1317 a series of conversions and apply foldings similar to what
1318 fold-const does.
1319 (tree_ssa_forward_propagate_single_use_vars): Call it.
1320
36637ccf 13212011-05-10 Jakub Jelinek <jakub@redhat.com>
1322
4e392ca1 1323 PR tree-optimization/48611
1324 PR tree-optimization/48794
1325 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1326 referenced from RESX or EH_DISPATCH arguments.
1327
36637ccf 1328 PR debug/48928
1329 * dfp.c (decimal_to_decnumber): Handle conversion from
1330 dconst{1,2,m1,half}.
1331
e1626ed3 13322011-05-09 Uros Bizjak <ubizjak@gmail.com>
1333
1334 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1335 for !flag_prefer_avx128.
1336 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1337
05539e47 13382011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1339
1340 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1341 (fold_ternary_loc): Use expr_location_or.
1342
85413a3c 13432011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1344
1345 PR debug/48853
1346 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1347 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1348 Pmode and mem_mode is not VOIDmode.
1349
05539e47 13502011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
ece7f9e3 1351
05539e47 1352 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1353 TYPE_QUAL_RESTRICT): Convert to enum.
ece7f9e3 1354
d3d379e7 13552011-05-09 Uros Bizjak <ubizjak@gmail.com>
1356
1357 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1358 (const_pow2_1_to_8_operand): Ditto.
1359 (const_pow2_1_to_128_operand): Ditto.
1360 (const_pow2_1_to_32768_operand): Ditto.
1361 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1362 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1363 in insn constraint to check integer value of operand 3.
1364 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1365
1366 (PINSR_MODE): New mode iterator.
1367 (sse2p4_1): New mode attribute.
1368 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1369 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1370 iterator. Use const_int_operand instead of
1371 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1372 exact_log2 in insn constraint to check integer value of operand 3.
1373
13742011-05-09 Uros Bizjak <ubizjak@gmail.com>
1375
1376 * config/i386/sse.md (blendbits): Remove mode attribute.
1377 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1378 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1379 Check integer value of operand 3 in insn constraint.
1380
79e191db 13812011-05-09 Richard Guenther <rguenther@suse.de>
1382
1383 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1384 for diagnostics.
1385 (lto_symtab_merge): Likewise. Do not register types here.
1386 (lto_symtab_merge_decls_2): Likewise.
1387 (lto_symtab_merge_decls_1): Likewise.
1388 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1389 * gimple.c (enum gtc_mode): Declare.
1390 (gimple_types_compatible_p): Make static.
1391
5b225bb2 13922011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1393
1394 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1395 temporary register to match Pmode.
1396
18c3cd78 13972011-05-09 Uros Bizjak <ubizjak@gmail.com>
1398
1399 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1400 and *vec_concatv4si_1_avx.
1401
34347cd4 14022011-05-09 Uros Bizjak <ubizjak@gmail.com>
1403
1404 PR rtl-optimization/48927
1405 * ira-conflicts.c (commutative_constraint_p): Use
1406 recog_data.alternative_enabled_p to disable alternatives where
1407 "enabled" attribute is false.
1408 (get_dup_num): Ditto.
1409 * ira-lives.c (single_reg_class): Ditto.
1410 (ira_implicitly_set_insn_hard_regs): Ditto.
1411
d0a639c4 14122011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1413
1414 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1415 (dataflow_set_preserve_mem_locs): Likewise.
1416
14172011-05-09 Philipp Thomas <pth@suse.de>
1418
516bc58f 1419 * config/mep/mep.c (mep_validate_vliw): Syntax description
1420 should not be translated.
1421
64bd95e1 14222011-05-09 Joseph Myers <joseph@codesourcery.com>
1423
1424 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1425 * config/mips/mips-tables.opt: New file (generated).
34347cd4 1426 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
64bd95e1 1427 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1428 MIPS_ARCH_OPTION_NATIVE): Define.
1429 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1430 mips-cpus.def.
1431 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1432 mips_parse_cpu): Remove.
1433 (mips_cpu_info_from_opt, mips_default_arch): New.
1434 (mips_handle_option): Don't assert that global structures are in
1435 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1436 (mips_option_override): Use new variables and functions to set
34347cd4 1437 state of these options. Use strcmp to check for individual CPU names.
64bd95e1 1438 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1439 definition.
1440 * config/mips/mips.opt (march=): Use ToLower and Enum.
1441 (mips): Use ToLower, Enum and Var.
1442 (mtune=): Use ToLower and Enum.
1443 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1444
4075ce4a 14452011-05-08 Jan Hubicka <jh@suse.cz>
1446
1447 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1448 Arrange type pairs to be UID ordered.
1449 (gimple_lookup_type_leader): Make inline.
1450
81705807 14512011-05-09 Nick Clifton <nickc@redhat.com>
1452
fcbb2025 1453 PR target/48899
1454 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1455 PROCESSOR_DEFAULT.
1456
81705807 1457 PR target/48897
1458 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1459 variable 's'.
1460
9a86832e 14612011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1462
1463 * combine.c (simplify_comparison): Abstract out parts into...
1464 (simplify_compare_const): ... new function.
1465 (try_combine): Generalize parallel arithmetic/compare combining
1466 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1467
8bae3ea4 14682011-05-08 Jan Hubicka <jh@suse.cz>
1469
1470 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
34347cd4 1471 (cgraph_create_virtual_clone): Call hooks once virtual clone
1472 is finished.
8bae3ea4 1473 * cgraph.h (cgraph_clone_node): Update prototype.
34347cd4 1474 * ipa-cp.c (ipcp_estimate_growth): Use
1475 estimate_ipcp_clone_size_and_time.
8bae3ea4 1476 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1477 * lto-cgraph.c (input_node): Update.
1478 * ipa-inline.c (recursive_inlining): Update.
1479 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1480 (evaluate_conditions_for_known_args): Break out from ...
1481 (evaluate_conditions_for_edge): ... here.
1482 (evaluate_conditions_for_ipcp_clone): New function.
1483 (inline_node_duplication_hook): Update clone summary based
1484 on parameter map.
1485 (estimate_callee_size_and_time): Rename to ...
1486 (estimate_node_size_and_time): take NODE instead of EDGE;
1487 take POSSIBLE_TRUTHS as argument.
1488 (estimate_callee_size_and_time): Update.
1489 (estimate_ipcp_clone_size_and_time): New function.
1490 (do_estimate_edge_time): Update.
1491
714e9434 14922011-05-08 Richard Guenther <rguenther@suse.de>
1493
1494 PR middle-end/48908
1495 PR middle-end/48905
1496 * expmed.c (expand_shift_1): Compute adjusted constant shift
1497 amount manually.
1498
163e62fb 14992011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1500
1501 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1502
381b6dc3 15032011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1504
1505 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1506
43d19b74 15072011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1508
1509 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1510
0656d247 15112011-05-07 Jan Hubicka <jh@suse.cz>
1512
56bef313 1513 * ipa-inline-transform.c (inline_call): Account when program size
1514 decreases.
0656d247 1515 * ipa-inline.c (relative_time_benefit): New function.
56bef313 1516 (edge_badness): Reorganize to be power 2 based; fix thinko when
1517 computing badness for negative growth; update comments to match
1518 reality; better dumps.
0656d247 1519
1d2bb655 15202011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1521
1522 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1523 type to bool and adjust comment.
1524 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1525 (fold_mathfn_compare): Remove calls to global_bindings_p.
1526 (fold_inf_compare): Likewise.
1527 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1528 * c-tree.h (global_bindings_p): Adjust prototype.
1529 * c-decl.c (global_bindings_p): Return bool and simplify.
1530
f09431f1 15312011-05-07 Zdenek Dvorak <ook@ucw.cz>
1532
1533 PR tree-optimization/48837
1534 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1535 when accumulator transformation is performed.
1536
ffe461d9 15372011-05-06 Jan Hubicka <jh@suse.cz>
1538
56bef313 1539 * i386.h (ix86_tune_indices): Add
1540 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
34347cd4 1541 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
56bef313 1542 * i386.c (initial_ix86_tune_features): Add
1543 X86_SOFTARE_PREFETCHING_BENEFICIAL.
ffe461d9 1544 (software_prefetching_beneficial_p): Remove predicate.
1545 (ix86_option_override_internal): Use new macro.
1546
e825447c 15472011-05-06 Jan Hubicka <jh@suse.cz>
1548
1549 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1550
91bf9d9a 15512011-05-06 Jan Hubicka <jh@suse.cz>
1552
1553 * cgraph.c (cgraph_add_thunk): Create real function node instead
1554 of alias node; finalize it and mark needed/reachale; arrange visibility
1555 to be right and add it into the corresponding same comdat group list.
1556 (dump_cgraph_node): Dump thunks.
1557 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
56bef313 1558 cgraph_function_with_gimple_body_p,
1559 cgraph_first_function_with_gimple_body,
91bf9d9a 1560 cgraph_next_function_with_gimple_body): New functions.
1561 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1562 New macros.
1563 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1564 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1565 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1566 devirtualization when optimizing.
1567 (verify_cgraph_node): Verify thunks.
1568 (cgraph_analyze_function): Analyze thunks.
1569 (cgraph_mark_functions_to_output): Output thunks only in combination
1570 with function they are assigned to.
1571 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1572 alias into normal node.
1573 (assemble_thunks): New functoin.
1574 (cgraph_expand_function): Use it.
1575 * lto-cgraph.c (lto_output_node): Stream thunks.
1576 (input_overwrite_node): Stream in thunks.
1577 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1578 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1579 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1580 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1581 (inline_analyze_function): Do not care about thunk jump functions.
1582 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
56bef313 1583 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1584 cgraph_function_with_gimple_body_p.
1585 * passes.c (do_per_function_toporder): Use
1586 cgraph_function_with_gimple_body_p.
91bf9d9a 1587 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1588 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1589 (function_called_by_processed_nodes_p): Likewise.
1590
b9f8199f 15912011-05-06 Joseph Myers <joseph@codesourcery.com>
1592
1593 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1594 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1595 entries.
1596 (mabi=): Replace with separate entries for mabi=altivec,
1597 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1598 mabi=ieeelongdouble and mabi=ibmlongdouble.
1599 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1600 check for -mabi=spe without SPE ABI support here.
1601 (rs6000_handle_option): Replace OPT_mabi_ handling with
1602 OPT_mabi_altivec and OPT_mabi_spe handling.
1603
779ad5d0 16042011-05-06 Cary Coutant <ccoutant@google.com>
1605
1606 * dwarf2out.c (contains_subprogram_definition): New function.
1607 (should_move_die_to_comdat): Call it.
1608
06a81e3f 16092011-05-06 Jeff Law <law@redhat.com>
1610
1611 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1612 remove_ctrl_stmt_and_useless_edges.
1613 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1614 (fixup_template_block, thread_single_edge): Likewise.
1615 (mark_threaded_blocks): Use THREAD_TARGET.
1616
61f51476 16172011-05-06 Alan Modra <amodra@gmail.com>
1618
1619 PR target/48900
1620 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1621 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1622
41f4c13a 16232011-05-06 Uros Bizjak <ubizjak@gmail.com>
1624
1625 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1626 constraint modifier to "r".
1627
83f34ac5 16282011-05-06 Joseph Myers <joseph@codesourcery.com>
1629
1630 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1631 fall through for OPT_mcmodel_.
1632
29335855 16332011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1634
1635 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1636 instruction sizes.
41f4c13a 1637 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
29335855 1638
d6d485a9 16392011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1640
34347cd4 1641 PR target/47930
1642 * config/arm/arm.opt (marm): Document it.
1643 (mthumb): Reject negative variant.
d6d485a9 1644
80a05cde 16452011-05-06 Uros Bizjak <ubizjak@gmail.com>
1646
1647 PR target/48898
1648 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1649 Fix typo in "ccvt" variable name.
1650
c2881874 16512011-05-06 Tristan Gingold <gingold@adacore.com>
1652
1653 PR target/48895
1654 * config/vms/vms-ar.c (main): Remove cwd variable.
1655
bc40ee90 16562011-05-06 Jakub Jelinek <jakub@redhat.com>
1657
1658 PR debug/48902
1659 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1660
b6e3dd65 16612011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1662
1663 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1664 * gimplify.c (gimplify_switch_expr): Likewise.
1665 * omp-low.c (expand_omp_sections): Likewise.
1666 * tree-eh.c (lower_try_finally_switch): Likewise.
1667 (lower_eh_dispatch): Likewise.
1668 * tree.h (build_case_label): Declare.
1669 * tree.c (build_case_label): Define.
1670
17476aac 16712011-05-05 Jason Merrill <jason@redhat.com>
1672
1673 PR c++/40975
1674 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1675 (copy_statement_list): Don't recurse.
1676 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1677 STATEMENT_LIST.
1678
b444e5be 16792011-05-05 Joseph Myers <joseph@codesourcery.com>
1680
1681 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1682 through from -mfpu= handling.
1683 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1684
fbc27330 16852011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1686
1687 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1688 POST_MODIFY.
1689
637c9296 16902011-05-05 Steve Ellcey <sje@cup.hp.com>
1691
1692 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1693 for 11.31.
1694 (hppa[12]*-*-hpux11*): Ditto.
1695 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1696 * config/ia64/hpux-unix2003.h: New.
1697 * config/pa/pa-hpux1131.opt: New.
1698 * config/pa/pa-hpux1131.h: New.
1699 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1700 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
48054c99 1701 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
637c9296 1702
a9b10eec 17032011-05-05 Jakub Jelinek <jakub@redhat.com>
1704
1705 PR debug/48853
1706 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1707 instead of mode as 3rd argument to recursive call.
1708 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1709 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1710 VOIDmode.
1711 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1712 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1713 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1714 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1715
e3c4ab51 17162011-05-05 Julian Brown <julian@codesourcery.com>
1717
1718 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1719 parenthesis in D-register case.
1720
a4a5a0e9 17212011-05-05 Joseph Myers <joseph@codesourcery.com>
1722
1723 * opt-functions.awk (var_type_struct): Handle Enum options.
1724 * optc-gen.awk: Don't check range of variables of character type.
1725 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1726 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1727 rs6000_sdata_name, rs6000_explicit_options): Remove.
1728 (rs6000_option_override_internal): Check for -malign-power here.
1729 Use global_options_set instead of rs6000_explicit_options.
1730 (rs6000_parse_fpu_option): Remove.
1731 (rs6000_handle_option): Access variables via opts and opts_set
1732 pointers. Use error_at and warning_at. Add fall-through
1733 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1734 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1735 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1736 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1737 here. Don't use rs6000_parse_fpu_option.
1738 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1739 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1740 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1741 (mrecip=): Use Var.
1742 (mspe): Use Var and Save.
1743 (mtraceback=): Use Enum and Var.
1744 (rs6000_traceback_type): New Enum and EnumValue entries.
1745 (mfloat-gprs=): Use Enum, Var and Save.
1746 (rs6000_float_gprs): New Enum and EnumValue entries.
1747 (mlong-double-): use Var and Save.
1748 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1749 (malign-): Use Enum and Var.
1750 (rs6000_alignment_flags): New Enum and EnumValue entries.
1751 (mfpu=): Use Enum.
1752 (fpu_type_t): New Enum and EnumValue entries.
1753 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1754 global_options_set instead of rs6000_explicit_options.
1755 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1756 global_options_set instead of rs6000_explicit_options.
1757 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1758 global_options_set instead of rs6000_explicit_options.
1759 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1760 global_options_set instead of rs6000_explicit_options.
1761 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1762 global_options_set instead of rs6000_explicit_options.
1763 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1764 global_options_set instead of rs6000_explicit_options.
1765 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1766 definition.
1767 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1768 global_options_set instead of rs6000_explicit_options.
1769 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1770 (rs6000_cmodel): New Enum and EnumValue entries.
1771 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1772 global_options_set instead of rs6000_explicit_options.
1773 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1774 (mtls-size=): Use Enum and Var.
1775 (rs6000_tls_size): New Enum and EnumValue entries.
1776
5820f58d 17772011-05-05 Michael Matz <matz@suse.de>
1778
1779 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1780 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1781 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1782 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1783 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1784 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1785 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1786 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1787 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1788 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1789 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1790 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1791 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1792 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1793 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1794 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1795
32d37219 17962011-05-05 Richard Guenther <rguenther@suse.de>
1797
1798 * expmed.c (expand_variable_shift): Rename to ...
1799 (expand_shift_1): ... this. Take an expanded shift amount.
1800 For rotates recurse directly not building trees for the shift amount.
1801 (expand_variable_shift): Wrap around expand_shift_1.
1802 (expand_shift): Adjust.
1803
bb0794f9 18042011-05-05 Jakub Jelinek <jakub@redhat.com>
1805
1806 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1807
a5aff672 18082011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1809
1810 * tree.h (get_pending_sizes): Remove prototype.
1811 (put_pending_size): Likewise.
1812 (put_pending_sizes): Likewise.
1813 * stor-layout.c (pending_sizes): Delete.
1814 (get_pending_sizes): Likewise.
1815 (put_pending_size): Likewise.
1816 (put_pending_sizes): Likewise.
1817 (variable_size): Do not call put_pending_size and tidy up.
1818 * function.h (struct function): Remove dont_save_pending_sizes_p.
1819 * lto-streamer-in.c (input_function): Do not stream it.
1820 * lto-streamer-out.c (output_function): Likewise.
1821 * tree-inline.c (initialize_cfun): Do not copy it.
1822 * c-decl.c (store_parm_decls): Do not set it.
1823 * omp-low.c (create_task_copyfn): Likewise.
1824 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1825
d56eb220 18262011-05-05 Uros Bizjak <ubizjak@gmail.com>
1827
1828 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1829 conditions.
1830 (*movdf_internal): Ditto.
1831 (*movdf_internal_nointeger): Ditto.
1832 (*movsf_internal): Ditto.
1833
4232a958 18342011-05-05 Joseph Myers <joseph@codesourcery.com>
1835
1836 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1837 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1838 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1839 (c_variable_size): Remove.
1840 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1841 call put_pending_sizes.
1842 (get_parm_info): Add parameter expr. Use it to set
1843 arg_info->pending_sizes.
1844 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1845 get_pending_sizes.
1846 * c-parser.c (c_parser_parms_declarator): Update call to
1847 c_parser_parms_list_declarator.
1848 (c_parser_parms_list_declarator): Take parameter expr. Update
1849 call to push_parm_decl. Update recursive call. Don't call
1850 get_pending_sizes. Update calls to get_parm_info.
1851 (c_parser_objc_method_definition): Update calls to
1852 c_parser_objc_method_decl and objc_start_method_definition.
d56eb220 1853 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4232a958 1854 (c_parser_objc_method_decl): Add parameter expr. Update call to
1855 grokparm.
d56eb220 1856 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4232a958 1857 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1858 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1859
c275616e 18602011-05-05 Michael Hope <michael.hope@linaro.org>
1861
d56eb220 1862 PR pch/45979
1863 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1864 __ARM_EABI__ hosts.
c275616e 1865
f17d2d13 18662011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1867
1868 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1869 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1870 (spu_output_mi_thunk): New function.
1871
b82b45b4 18722011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1873
1874 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1875 targetm.asm_out.print_operand.
1876 * config/sol2.c: Include target.h.
1877
ba5b0608 18782011-05-04 Jan Hubicka <jh@suse.cz>
1879
1880 * ipa-inline.c (reset_edge_caches): New function.
1881 (update_caller_keys): Add check_inlinablity_for; do not
1882 reset edge caches; remove now unnecesary loop.
d56eb220 1883 (update_callee_keys): Add comments; reset node_growth_cache of callee.
ba5b0608 1884 (update_all_callee_keys): Likewise.
1885 (inline_small_functions): Sanity check cache; update code
1886 recomputing it.
1887
8c936e55 18882011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1889
1890 PR rtl-optimization/47612
1891 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1892 as the last insn of the sequence to be moved.
1893
9d4ede2c 18942011-05-04 Tobias Burnus <burnus@net-b.de>
1895
1896 PR fortran/48864
1897 * doc/invoke.texi (Ofast): Document that it
1898 enables Fortran's -fno-protect-parens.
1899
343f07cb 19002011-05-04 Uros Bizjak <ubizjak@gmail.com>
1901
1902 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1903
f682b737 19042011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1905
1906 * stor-layout.c (variable_size): Do not issue errors.
1907
2c46738d 19082011-05-04 Richard Guenther <rguenther@suse.de>
1909
1910 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1911 for array-ref indices.
1912 (tree_coverage_counter_addr): Likewise.
1913 (build_fn_info_type): Use size_int for index types.
1914 (build_gcov_info): Likewise.
1915
ceb7b692 19162011-05-04 Richard Guenther <rguenther@suse.de>
1917
1918 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1919 to build_int_cst.
1920 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1921 for constructor indices.
1922 (push_init_level): Likewise.
1923
49130e9a 19242011-05-04 Richard Guenther <rguenther@suse.de>
1925
1926 * explow.c (promote_mode): Move variable declarations before code.
1927
5edc3af9 19282011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1929
1930 * tree.h (build_function_type_array): Declare.
1931 (build_varargs_function_type_array): Declare.
1932 (build_function_type_vec, build_varargs_function_type_vec): Define.
1933 * tree.c (build_function_type_array_1): New function.
1934 (build_function_type_array): New function.
1935 (build_varargs_function_type_array): New function.
1936
2814125e 19372011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1938
1939 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1940 before setting STMT_VINFO_TYPE.
1941
27a82950 19422011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1943
1944 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1945 instead of spu_pass_by_reference.
1946
adaf4ef0 19472011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1948
1949 * calls.c (emit_library_call_value_1): Invoke
1950 promote_function_mode hook on libcall arguments.
1951 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1952 argument being NULL.
1953 * targhooks.c (default_promote_function_mode): Lisewise.
1954 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1955 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1956
1957 * doc/tm.texi: Document that TYPE argument might be NULL.
1958
9282cadb 19592011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1960
1961 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1962
55ed3ae7 19632011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1964
1965 From Bernd Schmidt
1966 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1967
a3702d5e 19682011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1969
1970 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1971 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1972 Move ...
1973 * mips-tfile.c: ... here.
1974 Don't include coretypes.h, tm.h, filenames.h.
1975 (saber_stop): Remove definition and all calls.
1976 [__SABER__]: Remove.
1977 (__LINE__): Remove default.
1978 (Size_t, Ptrdiff_t): Remove definitions.
1979 Replace by size_t, ptrdiff_t.
1980 [!MIPS_DEBUGGING_INFO]: Remove.
1981 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1982 (progname): Add const.
1983 (STATIC): Remove.
1984 Replace all uses by static.
1985 (ALIGN_SYMTABLE_OFFSET): Remove default.
1986 * mips-tdump.c: Don't include coretypes.h, tm.h.
1987 Remove !MIPS_IS_STAB guard.
1988 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1989 $(TM_H), filenames.h dependencies.
1990 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1991
08d2cf2d 19922011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1993
1994 From Jie Zhang
1995 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1996 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1997
edf1112c 19982011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1999
2000 From Bernd Schmidt
2001 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2002 account and save/restore RETS.
2003 (PROFILE_BEFORE_PROLOGUE): Define.
2004 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2005 the push insn to use predecrement.
2006
6d8651b5 20072011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2008
2009 From Jie Zhang
2010 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2011
f9b3e8f5 20122011-05-04 Nick Clifton <nickc@redhat.com>
2013
2014 * config/mn10300/mn10300.c: Include cfgloop.h.
2015 (DUMP): New macro.
2016 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2017 Lcc or a FLcc insn into the instruction stream.
2018 (mn10300_block_contains_call): New function. Returns true if the
2019 given basic block contains a CALL insn.
2020 (mn10300_loop_contains_call_insn): New function. Returns true if
2021 the given loop contains a CALL insn.
2022 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2023 to use the SETLB and Lcc or FLcc insns.
2024 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2025 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2026 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2027 disable the SETLB optimization.
2028 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2029 __SETLB__ or __NO_SETLB__.
2030 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2031 (movsf_internal): Handle MDR register.
2032 (cmpsi): Make visible.
2033 (setlb): New pattern.
2034 (Lcc): New pattern.
2035 (FLcc): New pattern.
2036
dd196988 20372011-05-04 Uros Bizjak <ubizjak@gmail.com>
2038
2039 PR target/48860
2040 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2041 for reg<->xmm moves.
2042 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2043 (vec_concatv2di_rex64_sse): Ditto.
2044 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2045 (*vec_extractv2di_1_rex64): Ditto.
2046
2047 Revert:
2048 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2049
2050 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2051 reg<->xmm moves.
2052 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2053
317e2a67 20542011-05-04 Richard Guenther <rguenther@suse.de>
2055
2056 * tree.h (int_const_binop): Remove notrunc argument.
2057 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2058 create integer constants that are properly truncated.
2059 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2060 (const_binop): Remove zero notrunc argument to int_const_binop.
2061 (size_binop_loc): Likewise.
2062 (fold_div_compare): Likewise.
2063 (maybe_canonicalize_comparison_1): Likewise.
2064 (fold_comparison): Likewise.
2065 (fold_binary_loc): Likewise.
2066 (multiple_of_p): Likewise.
2067 * expr.c (store_constructor): Likewise.
2068 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2069 (maybe_fold_stmt_addition): Likewise.
2070 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2071 * stor-layout.c (layout_type): Likewise.
2072 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2073 * tree-sra.c (build_ref_for_offset): Likewise.
2074 (build_user_friendly_ref_for_offset): Likewise.
2075 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2076 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2077 * tree-ssa-loop-niter.c (inverse): Likewise.
2078 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2079 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2080 * tree-switch-conversion.c (check_range): Likewise.
2081 (build_constructors): Likewise.
2082 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2083 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2084 (extract_range_from_assert): Likewise.
2085 (vrp_int_const_binop): Likewise.
2086 (extract_range_from_binary_expr): Likewise.
2087 (extract_range_from_unary_expr): Likewise.
2088 (check_array_ref): Likewise.
2089 (find_case_label_range): Likewise.
2090 (simplify_div_or_mod_using_ranges): Likewise.
2091 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2092 comparing case labels for merging.
2093
4b665711 20942011-05-03 Mark Wielaard <mjw@redhat.com>
2095
2096 * dwarf2out.c (debug_str_hash_forced): Removed.
2097 (gen_label_for_indirect_string): Removed.
2098 (get_debug_string_label): Removed.
2099 (AT_string_form): Generate label directly.
2100 (output_indirect_string): Test indirect_string_node for
2101 DW_FORM_strp instead of checking label and refcount.
2102 (prune_indirect_string): Removed.
2103 (prune_unused_types): Don't check debug_str_hash_forced or
2104 call prune_indirect_string.
2105
7cdcc48d 21062011-05-04 Alexandre Oliva <aoliva@redhat.com>
2107
2108 PR other/48093
2109 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2110
ad971558 21112011-05-04 Alexandre Oliva <aoliva@redhat.com>
2112
2113 PR debug/47994
2114 PR debug/47919
2115 * combine.c (try_combine): Skip debug insns at m_split tests.
2116
fb512453 21172011-04-26 Mark Wielaard <mjw@redhat.com>
2118
2119 PR42288
2120 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2121 when info_section_emitted.
2122
498fed4e 21232011-05-03 Joseph Myers <joseph@codesourcery.com>
2124
2125 * config/mips/mips-opts.h: New.
2126 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2127 to mips-opts.h.
2128 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2129 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2130 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2131 via opts pointer.
2132 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2133 mips-opts.h.
2134 (mips_abi, mips_code_readable): Don't declare.
dd196988 2135 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
498fed4e 2136 (mabi=): Use Enum and Var.
2137 (mips_abi): New Enum and EnumValue entries.
2138 (mcode-readable=): Use Enum and Var.
2139 (mips_code_readable_setting): New Enum and EnumValue entries.
2140 (mr10k-cache-barrier=): Use Enum and Var.
2141 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2142
19ad01f7 21432011-05-03 Jan Hubicka <jh@suse.cz>
2144
2145 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2146 replace hash by pointer map.
2147 (cgraph_node_set_element_def, cgraph_node_set_element,
2148 const_cgraph_node_set_element, varpool_node_set_element_def,
2149 varpool_node_set_element, const_varpool_node_set_element): Remove.
2150 (free_cgraph_node_set, free_varpool_node_set): New function.
2151 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2152 * tree-emutls.c: Free varpool node set.
2153 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2154 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2155 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2156 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2157 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2158 Move here from ipa.c; implement using pointer_map
2159 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2160 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2161 debug_cgraph_node_set, varpool_node_set_new,
2162 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2163 dump_varpool_node_set, debug_varpool_node_set):
2164 Move to ipa-uitls.c.
2165 * passes.c (ipa_write_summaries): Update.
2166
8c09c40e 21672011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2168
343f07cb 2169 From Mike Frysinger:
2170 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2171 bf542/bf544/bf547/bf548/bf549.
8c09c40e 2172
6eecb88e 21732011-05-03 Uros Bizjak <ubizjak@gmail.com>
2174
2175 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2176
61b8983f 21772011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2178
2179 From Bernd Schmidt:
2180 * config/bfin/bfin.md (MOVCC): New mode_macro.
2181 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2182 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2183 comments from generated assembly.
2184
1c4dac4c 21852011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2186
2187 From Bernd Schmidt
2188 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2189 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2190 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2191 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2192 * config/bfin/lib1funcs.asm (___muldi3): New function.
2193
2a3cbbd4 21942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2195
2196 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2197 build_function_type_list instead of build_function_type.
2198 Rearrange initialization of `args' to do so.
2199
646d20a3 22002011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2203 instead of build_function_type.
2204
7f5e75d2 22052011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2206
2207 * config/rs6000/rs6000.c (spe_init_builtins): Call
2208 build_function_type_list instead of build_function_type.
2209 (paired_init_builtins, altivec_init_builtins): Likewise.
2210 (builtin_function_type): Likewise.
2211
03e08c98 22122011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2213
2214 * config/sh/sh.c (sh_media_init_builtins): Call
2215 build_function_type_list instead of build_function_type.
2216
130631cc 22172011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2218
2219 * config/sparc/sparc.c (sparc_file_end): Call
2220 build_function_type_list instead of build_function_type.
2221
3fecf4a0 22222011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2223
2224 * config/alpha/alpha.c (alpha_init_builtins): Call
2225 build_function_type_list instead of build_function_type.
2226
b4e90796 22272011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2228
2229 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2230 build_function_type_list instead of build_function_type.
2231
5753b57e 22322011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2233
2234 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2235 build_function_type_list instead of build_function_type.
2236 Delete `endlink' variable.
2237
c0010db9 22382011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2239
2240 * config/avr/avr.c (avr_init_builtins): Call
2241 build_function_type_list instead of build_function_type.
2242
740c08af 22432011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2244
2245 * config/picochip/picochip.c (picochip_init_builtins): Call
2246 build_function_type_list instead of build_function_type.
2247 Delete `endlink' variable.
2248
9989d11e 22492011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2250
2251 * config/bfin/bfin.c (bfin_init_builtins): Call
2252 build_function_type_list instead of build_function_type.
2253
5e3eb736 22542011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2255
2256 From Bernd Schmidt
2257 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2258 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2259
35bd123e 22602011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2261
2262 From Jie Zhang:
2263 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2264 libbffastfp overrides libgcc when -mfast-fp.
2265
6a0cacf9 22662011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
a581fd25 2267
2268 Originally from Bernd Schmidt
2269 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2270 * config/bfin/bfin.c (override_options): Test it and error if
2271 TARGET_FDPIC.
2272
274c4c98 22732011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2274
2275 Originally From Bernd Schmidt
2276 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2277 FD-PIC.
2278
eb31063a 22792011-05-03 Jeff Law <law@redhat.com>
2280
2281 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2282 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2283 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6eecb88e 2284 than accessing AUX field directly. Free the AUX field before
2285 clearing it.
eb31063a 2286 (thread_block, thread_through_loop_header): Likewise.
2287 (thread_single_edge, mark_threaded_blocks): Likewise.
2288 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2289 (register_jump_thread): Do not attempt to thread to a NULL edge.
6eecb88e 2290
756dcd13 22912011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2292
2293 * function.c (init_function_start): Call decide_function_section.
2294 * varasm.c (decide_function_section): New function.
2295 (assemble_start_function): When not using
2296 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2297 or first_function_block_is_cold.
2298 * rtl.h (decide_function_section): Declare.
2299
d99e41e8 23002011-05-03 Uros Bizjak <ubizjak@gmail.com>
2301 Jakub Jelinek <jakub@redhat.com>
2302
2303 PR target/48774
2304 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2305 only succeed if req_mode is the same as set_mode.
2306
1a860023 23072011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2308
2309 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2310 * genemit.c (gen_exp): Handle RETURN.
2311 * emit-rtl.c (verify_rtx_sharing): Likewise.
2312 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2313 * rtl.c (copy_rtx): RETURN is shared.
2314 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2315 (ret_rtx): New.
2316 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2317 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2318 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2319 * config/cris/cris.c (cris_expand_return): Likewise.
2320 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2321 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2322 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2323 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2324 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2325 Likewise.
2326 * config/v850/v850.c (expand_epilogue): Likewise.
2327 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2328 * config/arm/arm.md (epilogue): Likewise.
2329 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2330 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2331 variable to ret_reg.
2332
3efe00ad 23332011-05-03 Richard Guenther <rguenther@suse.de>
2334
2335 PR lto/48846
2336 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2337 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2338 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2339
8f49133b 23402011-05-03 Richard Guenther <rguenther@suse.de>
2341
2342 * c-decl.c (grokdeclarator): Instead of looking at
2343 TREE_OVERFLOW check if the constant fits in the index type.
2344
672b3f5b 23452011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2346
2347 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2348 (vec_store_lanes<mode><mode>): Likewise.
2349
94b7b4dd 23502011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2351
2352 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2353 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2354 convert_optab_index values.
2355 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2356 * genopinit.c (optabs): Initialize the new optabs.
2357 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2358 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2359 (expand_STORE_LANES): New functions.
2360 * tree.h (build_array_type_nelts): Declare.
2361 * tree.c (build_array_type_nelts): New function.
2362 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2363 (vect_model_load_cost): Likewise.
2364 (vect_store_lanes_supported, vect_load_lanes_supported)
2365 (vect_record_strided_load_vectors): Declare.
2366 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2367 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2368 (vect_transform_strided_load): Split out statement recording into...
2369 (vect_record_strided_load_vectors): ...this new function.
2370 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2371 (write_vector_array, create_array_ref): New functions.
2372 (vect_model_store_cost): Add store_lanes_p argument.
2373 (vect_model_load_cost): Add load_lanes_p argument.
2374 (vectorizable_store): Try to use store-lanes functions for
2375 interleaved stores.
2376 (vectorizable_load): Likewise load-lanes and loads.
2377 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2378 to vect_model_store_cost.
2379 (vect_build_slp_tree): Likewise vect_model_load_cost.
2380
13d3ceb9 23812011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2382
2383 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2384 * hooks.c (hook_bool_mode_uhwi_false): New function.
2385 * target.def (array_mode_supported_p): New hook.
2386 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2387 * doc/tm.texi: Regenerate.
2388 * stor-layout.c (mode_for_array): New function.
2389 (layout_type): Use it.
2390 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2391 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2392
51d5dcac 23932011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2394
2395 PR target/48723
2396 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2397 for -fstack-check if the size to allocate is negative.
2398
6198e8f6 23992011-05-02 Lawrence Crowl <crowl@google.com>
2400
2401 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2402 (timevar_cond_start): New for starting a timer only when it is not
2403 already running.
2404 (timevar_cond_stop): New for stopping a timer when it was not already
2405 running.
2406
2407 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2408 (timevar_cond_start): New as above.
2409 (timevar_cond_stop): New as above.
2410
2411 * timevar.def: Add start/stop timers for compiler phases,
2412 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2413 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2414 and TV_PHASE_FINALIZE.
2415 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2416 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2417 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2418 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2419 Make unused TV_OVERLOAD into a start/stop timer.
2420
2421 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2422 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2423 to indicate that they are start/stop timers.
2424
2425 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2426 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2427 Move initialization to do_compile.
2428 (do_compile): Add initialization from above.
2429 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2430
2431 * c-decl.c (c_write_global_declarations): Add start/stop of
2432 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2433
2434 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2435 or TV_PARSE_INLINE, as appropriate.
2436 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2437 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2438
d55ebb6a 24392011-05-02 Jason Merrill <jason@redhat.com>
2440
2441 PR c++/40975
2442 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2443
74a1cbcf 24442011-05-02 Simon Martin <simartin@users.sourceforge.net>
2445
2446 PR c/35445
2447 * c-decl.c (finish_decl): Only create a composite if the types are
2448 compatible.
2449
4bccad5e 24502011-05-02 Joseph Myers <joseph@codesourcery.com>
2451
2452 * config/fr30/fr30-protos.h (Mmode): Don't define.
2453 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2454 definition where used.
2455 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2456 define. Expand definitions where used.
2457 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2458 Expand definitions where used.
2459 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2460 rx_function_arg, rx_function_arg_advance,
2461 rx_function_arg_boundary): Expand definitions of those macros.
2462 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2463 definition where used.
2464
31b44162 24652011-05-02 Uros Bizjak <ubizjak@gmail.com>
2466
2467 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2468 reg<->xmm moves.
2469 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2470 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2471 with *movv2sf_internal_rex64_avx.
2472 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2473 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2474 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2475 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2476 "vex" in "prefix" attribute calculation.
2477 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2478
fa0aee40 24792011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2480
343f07cb 2481 PR target/47951
2482 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2483 inputs match the output.
fa0aee40 2484
611b3016 24852011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2486
2487 PR target/47955
2488 * config/m68k/m68k.c (m68k_expand_prologue): Set
2489 current_function_static_stack_size.
2490
3ed05fdb 24912011-05-02 Jan Hubicka <jh@suse.cz>
2492
2493 * lto-streamer.c (lto_streamer_cache_insert_1,
2494 lto_streamer_cache_lookup, lto_streamer_cache_create,
2495 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2496 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2497
d078aadd 24982011-05-02 Joseph Myers <joseph@codesourcery.com>
2499
2500 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2501 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2502 config/m68k/t-opts: New files.
2503 * config/m68k/m68k-tables.opt: New file (generated).
2504 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2505 extra_options and m68k/t-opts to tmake_file.
2506 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2507 (all_isas): Initialize using m68k-isas.def.
2508 (all_microarchs): Initialize using m68k-microarchs.def.
2509 (m68k_find_selection): Remove.
2510 (m68k_handle_option): Don't assert that global structures are in
2511 use. Use error_at. Access variables via opts pointer. Don't
2512 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2513 directly for -m68020-40 and -m68020-60.
2514 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2515 m68k_tune_entry here.
2516 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2517 to m68k-opts.h.
2518 (m68k_library_id_string): Remove declaration.
31b44162 2519 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
d078aadd 2520 (m68k_library_id_string): New Variable.
2521 (march=, mcpu=, mtune=): Use Enum and Var.
2522
a3f07b52 25232011-05-02 Richard Guenther <rguenther@suse.de>
2524
2525 * varasm.c (output_constructor_regular_field): Compute zero-based
2526 index with double-ints. Make sure to ICE instead of producing
2527 wrong code.
2528 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2529 in asserts. Properly use a signed type.
2530
6fe5844b 25312011-05-02 Uros Bizjak <ubizjak@gmail.com>
2532
2533 * config/i386/sse.md (V): New mode iterator.
2534 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2535 TARGET_SSE2.
2536 (V_256): Rename from AVX256MODE.
2537 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2538 condition to all users.
2539 (VF1): Ditto.
2540 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2541 condition to all users.
2542 (VF_128): Make V4SF mode unconditional.
2543 (VF_256): Rename from AVX256MODEF2P.
2544 (VI4F_128): Rename from SSEMODE4S.
2545 (VI8F_128): Rename from SSEMODE2D.
2546 (VI4F_256): Rename from AVX256MODE8P.
2547 (VI8F_256): Rename from AVX256MODE4P.
2548 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2549 (ssescalarmodesuffix): Remove SF and DF modes.
2550 (SSEMODE124): Remove.
2551 (SSEMODE1248): Ditto.
2552 (SSEMODEF2P): Ditto.
2553 (AVXMODEF2P): Ditto.
2554 (AVXMODEFDP): Ditto.
2555 (AVXMODEFSP): Ditto.
2556 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2557 unconditional.
2558 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2559 unconditional.
2560 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2561 xop_pcmov_<mode>256. Use V mode iterator.
2562
2563 Adjust RTX patterns globally for renamed mode attributes.
2564
c03ae898 25652011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2566
2567 * haifa-sched.c (sched_emit_insn): Emit insn before first
2568 non-scheduled insn. Inform back-end about new insn. Add
2569 new insn to scheduled_insns list.
2570
b81ffaee 25712011-05-02 Richard Guenther <rguenther@suse.de>
2572
2573 PR tree-optimization/48822
2574 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2575 (process_scc): Indicate which iteration we start.
2576
673ca05f 25772011-05-02 Jan Hubicka <jh@suse.cz>
2578
2579 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2580 (lto_section_overrun): New.
2581 * lto-section-out.c (append_block): Rename to ...
2582 (lto_append_block): ... this one; export.
2583 (lto_output_1_stream): Move lto lto-streamer.h
2584 (lto_output_data_stream): Update.
2585 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2586 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2587 functions.
2588
4aa24247 25892011-05-02 Richard Guenther <rguenther@suse.de>
2590
2591 * tree.c (tree_code_counts): New global array.
2592 (record_node_allocation_statistics): Count individual tree codes.
2593 (dump_tree_statistics): Dump individual code stats.
2594
0a0ca4d6 25952011-05-01 Jan Hubicka <jh@suse.cz>
2596
2597 * ipa-inline.c (caller_growth_limits): Fix thinko when
2598 looking for largest stack frame.
2599 * ipa-inline.h (dump_inline_summary): Declare.
2600 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2601 on stack usage.
2602 (dump_inline_summary): Export.
2603 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2604
ade444a4 26052011-05-01 Anatoly Sokolov <aesok@post.ru>
2606
2607 * reginfo.c (memory_move_cost): Change rclass argument type form
2608 'enum reg_class' to reg_class_t.
2609 * reload.h (memory_move_cost): Update prototype.
2610 * postreload.c reload_cse_simplify_set): Change type dclass var to
2611 reg_class_t.
2612 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2613 Update prototype.
2614 (ira_allocate_and_set_costs): Change aclass argument type form
2615 'enum reg_class' to reg_class_t.
6fe5844b 2616 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
ade444a4 2617 Change aclass argument type to reg_class_t.
2618 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2619 to reg_class_t.
2620 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2621 memory_move_cost call.
2622
2623 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2624 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2625 Change type tmp var to reg_class_t.
2626
6f60f0b6 26272011-04-30 Jan Hubicka <jh@suse.cz>
2628
2629 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2630 inlining into function with flatten attribute.
2631 (want_inline_small_function_p): Be more realistic about inlining
2632 cold calls where callee size grows.
2633
06240b6f 26342011-04-30 Jan Hubicka <jh@suse.cz>
2635
2636 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2637 flags.
2638
028b4ba2 26392011-04-30 Anatoly Sokolov <aesok@post.ru>
2640
2641 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2642 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2643 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2644 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2645 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2646 (print_operand): Rename to...
2647 (sparc_print_operand): ...this. Make static. Adjust
2648 sparc_print_operand function call.
2649 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2650 functions.
2651
9da15f94 26522011-04-30 Jan Hubicka <jh@suse.cz>
2653
6fe5844b 2654 PR middle-end/48752
9da15f94 2655 * ipa-inline.c (early_inliner): Disable when doing late
2656 addition of function.
2657
8853d378 26582011-04-30 Jakub Jelinek <jakub@redhat.com>
2659
e86bbaee 2660 * dwarf2out.c (get_address_mode): New inline.
2661 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2662 if not dwarf_strict emit
2663 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2664 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2665 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2666 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2667 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2668 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2669 mem_loc_descriptor callers.
2670 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2671 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2672 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2673 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2674 (base_types): New variable.
2675 (get_base_type_offset, calc_base_type_die_sizes,
2676 base_type_for_mode, mark_base_types, base_type_cmp,
2677 move_marked_base_types): New functions.
2678 (calc_die_sizes): Assert that die_offset is 0 or equal to
2679 next_die_offset.
2680 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2681 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2682 callers. If not dwarf_strict, call mem_loc_descriptor even for
2683 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2684 (gen_subprogram_die): Don't give up on call site parameters
2685 with non-integral or large integral modes. Adjust
2686 mem_loc_descriptor callers.
2687 (prune_unused_types): Call prune_unused_types_mark on base_types
2688 vector entries.
2689 (resolve_addr): Call mark_base_types.
2690 (dwarf2out_finish): Call move_marked_base_types.
2691
8853d378 2692 PR tree-optimization/48809
2693 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2694 type.
2695 (gen_inbound_check): Don't compute index_expr - range_min in utype
2696 again, instead reuse SSA_NAME initialized in build_arrays.
2697 Remove two useless gsi_for_stmt calls.
2698
444e6845 26992011-04-29 Jeff Law <law@redhat.com>
2700
2701 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2702
7771d558 27032011-04-29 Martin Jambor <mjambor@suse.cz>
2704
2705 * cgraph.h (cgraph_postorder): Remove declaration.
2706 * ipa-utils.h (ipa_free_postorder_info): Declare.
2707 (ipa_reverse_postorder): Likewise.
2708 * cgraphunit.c: Include ipa-utils.h.
2709 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2710 * ipa-inline.c: Include ipa-utils.h.
2711 (ipa_inline): Update call to ipa_reverse_postorder.
2712 * ipa-pure-const.c (propagate_pure_const): Update call to
2713 ipa_reduced_postorder and ipa_print_order. Call
2714 ipa_free_postorder_info to clean up.
2715 (propagate_nothrow): Likewise.
2716 * ipa-reference.c (propagate): Removed a useless call to
2717 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2718 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2719 * ipa.c: Include ipa-utils.h.
2720 (ipa_profile): Update call to ipa_reverse_postorder.
2721 (cgraph_postorder): Moved to...
2722 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2723 (ipa_utils_print_order): Renamed to ipa_print_order.
2724 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2725 comments.
2726 (ipa_free_postorder_info): New function.
2727 * passes.c: Include ipa-utils.h.
2728 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2729 (ipa_write_summaries): Likewise.
2730 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2731 (cgraphunit.o): Likewise.
2732 (ipa.o): Likewise.
2733 (ipa-inline.o): Likewise.
2734
905aa3bd 27352011-04-29 Jan Hubicka <jh@suse.cz>
2736
2737 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2738 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2739 * ipa-inline.h (clause_t): Turn into unsigned int.
2740 * ipa-inline-analysis.c (add_clause): Do more simplification.
2741 (and_predicates): Shortcut more cases.
2742 (predicates_equal_p): Move forward; check that clauses are properly
2743 ordered.
2744 (or_predicates): Shortcut more cases.
2745 (edge_execution_predicate): Rewrite as...
2746 (set_cond_stmt_execution_predicate): ... this function; handle
2747 __builtin_constant_p.
2748 (set_switch_stmt_execution_predicate): New .
2749 (compute_bb_predicates): New.
2750 (will_be_nonconstant_predicate): Update TODO.
2751 (estimate_function_body_sizes): Use compute_bb_predicates
2752 and free them later, always try to estimate if stmt is constant.
2753 (estimate_time_after_inlining, estimate_size_after_inlining):
2754 Gracefully handle optimized out edges.
2755 (read_predicate): Fix off by one error.
2756
141d02d1 27572011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2758
2759 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2760
109cfbe4 27612011-04-27 Xinliang David Li <davidxl@google.com>
2762
2763 * tree-profile.c (init_ic_make_global_vars): Set
2764 tls attribute on ic vars.
2765 * coverage.c (coverage_end_function): Initialize
2766 function_list with zero.
2767
7002a1c8 27682011-04-29 Richard Guenther <rguenther@suse.de>
2769
2770 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2771 for the type of the result.
2772 (fold_builtin_isascii): Likewise.
2773 (fold_builtin_toascii): Use integer_type_node where appropriate.
2774 (fold_builtin_logb): Likewise.
2775 (fold_builtin_frexp): Likewise.
2776 (fold_builtin_strstr): Likewise.
2777 (fold_builtin_strpbrk): Likewise.
2778 (fold_builtin_fputs): Likewise.
2779 (fold_builtin_sprintf): Likewise.
2780 (fold_builtin_snprintf): Likewise.
2781 (fold_builtin_printf): Likewise.
2782 (do_mpfr_remquo): Use a proper type for the assigned constant.
2783 (do_mpfr_lgamma_r): Likewise.
2784 * dwarf2out.c (resolve_one_addr): Use size_int.
2785 * except.c (init_eh): Likewise.
2786 (assign_filter_values): Use integer_type_node for filter values.
2787 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2788 indices.
2789 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2790 for EH region numbers.
2791 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2792 for the shift amount.
2793
f5ff0b21 27942011-04-29 Richard Guenther <rguenther@suse.de>
2795
2796 * expr.h (expand_shift): Rename to ...
2797 (expand_variable_shift): ... this.
2798 (expand_shift): Take a constant shift amount.
2799 * expmed.c (expand_shift): Rename to ...
2800 (expand_variable_shift): ... this.
2801 (expand_shift): New wrapper around expand_variable_shift.
2802 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2803 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2804 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2805 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2806 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2807 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2808 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2809 emit_store_flag_1, emit_store_flag): Likewise.
2810 * builtins.c (expand_builtin_signbit): Likewise.
2811 * calls.c (load_register_parameters): Likewise.
2812 * function.c (assign_parm_setup_block): Likewise.
2813 * lower-subreg.c (resolve_shift_zext): Likewise.
2814 * optabs.c (widen_bswap, expand_abs_nojump,
2815 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2816 * spu/spu.c (spu_expand_extv): Likewise.
2817 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2818
b3d480fb 28192011-04-29 Richard Guenther <rguenther@suse.de>
2820
2821 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2822 for the remapped region number.
2823 * predict.c (build_predict_expr): Use integer_type_node for the
2824 predict kind.
2825 * fold-const.c (fold_binary_loc): Use integer_type_node for
2826 the shift amount. Use a proper type for the PLUS_EXPR operand.
2827
d534cab0 28282011-04-29 Michael Matz <matz@suse.de>
2829
2830 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2831 other trees that just builtins.
2832 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2833
bad12c62 28342011-04-29 Richard Guenther <rguenther@suse.de>
2835
2836 * tree-nested.c (get_trampoline_type): Use size_int.
2837 (get_nl_goto_field): Likewise.
2838 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2839 for all indexes.
2840 (lower_eh_constructs_2): Likewise.
2841 (lower_resx): Likewise.
2842 (lower_eh_dispatch): Likewise.
2843 * tree-mudflap.c (mf_build_string): Use size_int.
2844 (mudflap_register_call): Use integer_type_node for the flag.
2845 (mudflap_enqueue_constant): Use size_int.
2846 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2847 instead of rebuilding it.
2848
cb755135 28492011-04-29 Richard Guenther <rguenther@suse.de>
2850
2851 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2852 Handle OBJ_TYPE_REF.
2853 (find_func_aliases_for_call): Use it more consistently.
2854
d0aa45d0 28552011-04-29 Alexandre Oliva <aoliva@redhat.com>
2856
2857 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2858 (rank_for_schedule): Use it.
2859 (schedule_block): Set it.
2860
06306fd3 28612011-04-28 David Li <davidxl@google.com>
2862
2863 * tree.c (crc32_string): Use crc32_byte.
2864 (crc32_byte): New function.
2865 * tree.h (crc32_byte): New function.
2866 * gcov.c (read_graph_file): Handle new cfg_cksum.
2867 (read_count_file): Ditto.
2868 * profile.c (instrument_values): Ditto.
2869 (get_exec_counts): Ditto.
2870 (read_profile_edge_counts): Ditto.
2871 (compute_branch_probabilities): Ditto.
2872 (compute_value_histograms): Ditto.
2873 (branch_prob): Ditto.
2874 (end_branch_prob): Ditto.
2875 * coverage.c (read_counts_file): Ditto.
2876 (get_coverage_counts): Ditto.
2877 (tree_coverage_counter_addr): Ditto.
2878 (coverage_checksum_string): Ditto.
2879 (coverage_begin_output): Ditto.
2880 (coverage_end_function): Ditto.
2881 (build_fn_info_type): Ditto.
2882 (build_fn_info_value): Ditto.
2883 * libgcov.c (gcov_exit): Ditto.
2884 * gcov-dump.c (tag_function): Ditto.
2885 (compute_checksum): Remove.
2886
bcfc04db 28872011-04-29 Alan Modra <amodra@gmail.com>
2888
2889 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2890 unspec plus offset. Tidy macho code.
2891
cc91b414 28922011-04-29 Martin Jambor <mjambor@suse.cz>
2893
2894 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2895 node instead of a decl. Update all callers.
2896 * cgraph.h: Update declaration.
2897
bc937a44 28982011-04-28 Ira Rosen <ira.rosen@linaro.org>
2899
2900 PR tree-optimization/48765
2901 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2902 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2903 to indicate if loop aware SLP is being used. Scan the statements
2904 and update the vectorization factor according to the type of
2905 vectorization before statement analysis.
2906 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2907 pass it to vect_analyze_loop_operations.
2908 (vectorizable_reduction): Set number of copies to 1 in case of pure
2909 SLP statement.
2910 * tree-vect-stmts.c (vectorizable_conversion,
2911 vectorizable_assignment, vectorizable_shift,
2912 vectorizable_operation, vectorizable_type_demotion,
2913 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2914 Likewise.
2915 (vectorizable_condition): Move the check that it is not SLP
2916 vectorization before the number of copies check.
2917 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2918 to vectorize the loop using SLP.
2919
aefc445c 29202011-04-28 Jakub Jelinek <jakub@redhat.com>
2921
2922 PR middle-end/48597
2923 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2924 inline asm.
2925
6ee152ce 29262011-04-28 Joseph Myers <joseph@codesourcery.com>
2927
2928 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2929 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2930 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2931 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2932 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2933 linux*.h headers.
6fe5844b 2934 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6ee152ce 2935 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2936 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2937 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6fe5844b 2938 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6ee152ce 2939 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2940 REG_NAME.
2941 * config/i386/linux.h (REG_NAME): Don't define.
2942 * config/i386/linux64.h (REG_NAME): Don't define.
2943 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2944 Undefine before defining.
2945
0b50fa0e 29462011-04-28 Jan Hubicka <jh@suse.cz>
2947
6fe5844b 2948 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2949 nonconstant_names array.
0b50fa0e 2950 (estimate_function_body_sizes): Build nonconstant_names array; handle
2951 BUILT_IN_CONSTANT_P.
2952
bd2bd89d 29532011-04-28 Richard Guenther <rguenther@suse.de>
2954
2955 PR bootstrap/48804
2956 Revert
2957 2011-04-28 Richard Guenther <rguenther@suse.de>
2958
2959 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2960 as late as possible.
6fe5844b 2961
bbe0034f 29622011-04-28 Richard Guenther <rguenther@suse.de>
2963
2964 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2965 (debug_constraint): Do it here.
2966 (dump_constraints): And here.
2967 (rewrite_constraints): And here.
2968 (dump_constraint_edge): Remove.
2969 (dump_constraint_graph): Rewrite to produce DOT output.
2970 (solve_constraints): Build succ graph as late as possible.
2971 Dump constraint graphs before and after solving.
2972
882f2f67 29732011-04-28 Richard Guenther <rguenther@suse.de>
2974
2975 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2976 New function split out from ...
2977 (find_func_aliases): ... here. Call it.
2978 (find_func_aliases_for_call): Likewise.
2979
8bf8131a 29802011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2981
2982 * internal-fn.h (internal_fn_name_array): Declare.
2983 (internal_fn_flags_array): Likewise.
2984
63d5e521 29852011-04-27 Uros Bizjak <ubizjak@gmail.com>
2986
2987 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2988 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2989 Move from sse.md.
2990 (ssemodefsuffix): Remove.
2991 (ssevecmodesuffix): New mode attribute.
2992 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2993 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2994 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2995 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2996 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2997 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2998 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2999 ssemodesuffix mode attribute.
3000 (float splitters): Use ssevecmodesuffix mode attribute.
3001 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3002 (sseinsmode): Rename from avxvecmode.
3003 (avxsizesuffix): Rename from avxmodesuffix.
3004 (sseintvecmode): Rename from avxpermvecmode.
3005 (ssedoublevecmode): Rename from ssedoublesizemode.
3006 (ssehalfvecmode): Rename from avxhalfvecmode.
3007 (ssescalarmode): Rename from avxscalarmode.
3008 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3009 templates for ssemodesuffix mode attribute.
3010 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3011 mode attribute.
3012
3013 Adjust RTX patterns globally for renamed mode attributes.
3014
6a18c0be 30152011-04-27 Jan Hubcika <jh@suse.cz>
3016
3017 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3018 * ipa-inline-analysis.c: Include alloc-pool.h.
3019 (edge_predicate_pool): New.
3020 (trye_predicate_p): New function
3021 (false_predicate_p): New function.
3022 (add_clause): Sanity check that false clauses are "optimized";
3023 never add clauses to predicate that is already known to be false.
3024 (and_predicate): Use flase_predicate_p.
3025 (evaulate_predicate): Rename to ...
3026 (evaluate_predicate): ... this one; update all callers; assert
3027 that false is not listed among possible truths.
3028 (dump_predicate): Use true_predicate_p.
3029 (account_size_time): Use false_predicate_p.
3030 (evaulate_conditions_for_edge): Rename to ...
3031 (evaluate_conditions_for_edge) ... this one.
3032 (edge_set_predicate): New function.
3033 (inline_edge_duplication_hook): Duplicate edge predicates.
3034 (inline_edge_removal_hook): Free edge predicates.
63d5e521 3035 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6a18c0be 3036 (dump_inline_summary): Update.
3037 (estimate_function_body_sizes): Set edge predicates.
3038 (estimate_calls_size_and_time): Handle predicates.
3039 (estimate_callee_size_and_time): Update.
3040 (remap_predicate): Add toplev_predicate; update comment.
3041 (remap_edge_predicates): New function.
3042 (inline_merge_summary): Compute toplev predicate; update.
3043 (read_predicate): New function.
3044 (read_inline_edge_summary): Use it.
3045 (inline_read_section): Likewise.
3046 (write_predicate): New function.
3047 (write_inline_edge_summary): Use it.
3048 (inline_write_summary): Likewise.
3049 (inline_free_summary): Free alloc pool and edge summary vec.
3050
b392ee8b 30512011-04-27 Richard Guenther <rguenther@suse.de>
3052
3053 * tree-ssa-structalias.c (changed_count): Remove.
3054 (changed): Use a bitmap.
3055 (unify_nodes): Adjust.
3056 (do_sd_constraint): Likewise.
3057 (do_ds_constraint): Likewise.
3058 (do_complex_constraint): Likewise.
3059 (solve_graph): Likewise.
3060
4f7a1122 30612011-04-27 Jan Hubicka <jh@suse.cz>
3062
3063 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3064
4581fd42 30652011-04-27 Uros Bizjak <ubizjak@gmail.com>
3066
3067 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3068 (avx_vperm2f128_*_operand): Ditto.
3069 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3070 Use avx_vpermilp_parallel in insn condition.
3071 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3072 Use avx_vperm2f128_parallel in insn condition.
3073
e44576dd 30742011-04-27 Richard Guenther <rguenther@suse.de>
3075
3076 * Makefile.in (tree-ssa-structalias.o): Remove
3077 gt-tree-ssa-structalias.h dependency.
3078 (GTFILES): Remove tree-ssa-structalias.c.
3079 * tree.c (allocate_decl_uid): New function.
3080 (make_node_stat): Use it.
3081 (copy_node_stat): Likewise.
3082 * tree.h (allocate_decl_uid): Declare.
3083 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3084 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3085 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4581fd42 3086 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
e44576dd 3087 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3088 (struct heapvar_map): Likewise.
3089 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3090 heapvar_insert): Likewise.
3091 (make_heapvar_for): Rename to ...
3092 (make_heapvar): ... this. Simplify.
3093 (fake_var_decl_obstack): New global var.
3094 (build_fake_var_decl): New function.
3095 (make_constraint_from_heapvar): Adjust.
3096 (handle_lhs_call): Likewise.
3097 (create_function_info_for): Likewise.
3098 (intra_create_variable_infos): Likewise.
3099 (init_alias_vars): Allocate fake_var_decl_obstack.
3100 (init_alias_heapvars, delete_alias_heapvars): Remove.
3101 (compute_points_to_sets): Do not call init_alias_heapvars.
3102 (ipa_pta_execute): Likewise.
3103 (delete_points_to_sets): Free fake_var_decl_obstack.
3104
eca540eb 31052011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3106
3107 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3108 (si_from_UTItype, si_to_UTItype): New functions.
3109 (__udivmodti4): Use them to implement type-punning.
3110 * config/spu/multi3.c (union qword_TItype): New data type.
3111 (si_from_TItype, si_to_TItype): New functions.
3112 (__multi3): Use them to implement type-punning.
3113
431ad7e0 31142011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3115
3116 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3117
b1471ee0 31182011-04-27 Jan Hubicka <jh@suse.cz>
3119
3120 * ipa-prop.c (function_insertion_hook_holder): New holder.
3121 (ipa_add_new_function): New function.
4581fd42 3122 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3123 Register/deregister holder.
b1471ee0 3124
c5321600 31252011-04-27 Richard Guenther <rguenther@suse.de>
3126
3127 PR tree-optimization/48772
4581fd42 3128 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
c5321600 3129
9c455d1e 31302011-04-27 Richard Guenther <rguenther@suse.de>
3131
3132 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3133 TARGET_MEM_REF handling.
3134
127aa150 31352011-04-27 Nick Clifton <nickc@redhat.com>
3136
ca74bd85 3137 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3138 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3139 (REG_CLASS_NAMES): Likewise.
3140 (REG_CLASS_CONTENTS): Likewise.
3141 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3142 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3143 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3144 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3145 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3146 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3147 duplicate register classes.
51e83f48 3148 (frv_class_likely_spilled_p): Likewise.
ca74bd85 3149 (frv_register_move_cost): Likewise.
3150
127aa150 3151 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3152 end of the regno_reg_class array.
3153
4095a8c8 31542011-04-27 Jakub Jelinek <jakub@redhat.com>
3155
3156 PR c/48742
3157 * c-typeck.c (build_binary_op): Don't wrap arguments if
3158 int_operands is true.
3159
90d67aec 31602011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3161
3162 PR target/48767
3163 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3164 targetm.calls.must_pass_in_stack for void type.
3165
0835ad03 31662011-04-26 Jan Hubicka <jh@suse.cz>
3167
3168 * cgraphbuild.c (build_cgraph_edges): Update call
3169 of cgraph_create_edge and cgraph_create_indirect_edge.
3170 * cgraph.c (cgraph_create_edge_including_clones,
3171 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3172 cgraph_update_edges_for_call_stmt_node): Do not take nest
3173 argument; do not initialize call_stmt_size/time.
3174 (dump_cgraph_node): Do not dump nest.
3175 (cgraph_clone_edge): Do not take loop_nest argument;
3176 do not propagate it; do not clone call_stmt_size/time.
3177 (cgraph_clone_node): Likewise.
3178 (cgraph_create_virtual_clone): Update.
3179 * cgraph.h (struct cgraph_edge): Remove
3180 call_stmt_size/call_stmt_time/loop_nest.
3181 (cgraph_create_edge, cgraph_create_indirect_edge,
3182 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3183 prototype.
3184 * tree-emutls.c (gen_emutls_addr): Update.
3185 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3186 loop_nest; handle indirect calls, too.
3187 (clone_inlined_nodes): Do not care about updating inline summaries.
3188 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3189 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3190 stream call_stmt_size/call_stmt_time/loop_nest.
3191 * ipa-inline.c (edge_badness): Update.
3192 (ipa_inline): dump summaries after inlining.
3193 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4581fd42 3194 New.
0835ad03 3195 (inline_edge_summary): New function.
3196 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3197 (inline_edge_removal_hook): Handle edge summaries.
3198 (inline_edge_duplication_hook): New hook.
3199 (inline_summary_alloc): Alloc hooks.
3200 (initialize_growth_caches): Do not register removal hooks.
3201 (free_growth_caches); Do not free removal hook.
3202 (dump_inline_edge_summary): New function.
3203 (dump_inline_summary): Use it.
3204 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3205 (inline_update_callee_summaries): New function.
3206 (inline_merge_summary): Use it.
3207 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3208 (read_inline_edge_summary): New function.
3209 (inline_read_section): Use it.
3210 (write_inline_edge_summary): New function.
3211 (inline_write_summary): Use it.
3212 (inline_free_summary): Free edge new holders.
3213 * tree-inline.c (copy_bb): Update.
3214
75a2cdc8 32152011-04-26 Jason Merrill <jason@redhat.com>
3216
3217 * tree-eh.c (lower_try_finally_switch): Create the label along with
3218 the CASE_LABEL_EXPR.
3219
d958c180 32202011-04-26 David S. Miller <davem@davemloft.net>
3221 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3222
3223 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3224 * configure: Regenerate.
3225
9257db1b 32262011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3227
3228 PR target/48258
3229 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3230 reduction.
3231 (VEC_reduc): New code iterator and splitters for vector reduction.
3232 (VEC_reduc_name): Ditto.
3233 (VEC_reduc_rtx): Ditto.
3234 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3235 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3236
3237 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3238 support for extracting SF on VSX.
3239
3240 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3241 generating xscvspdp.
3242 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3243 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3244 double add, minimum, maximum vector reduction.
3245 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3246 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3247 optimize double vector reduction.
3248 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3249
792fc735 32502011-04-26 Joseph Myers <joseph@codesourcery.com>
3251
3252 * config/fr30/fr30.h (inhibit_libc): Don't define.
3253 * config/m32r/m32r-protos.h: Correct comment.
3254 * config/v850/v850.h (GHS_default_section_names,
3255 GHS_current_section_names): Use tree, not union tree_node *.
3256
8c3e8d68 32572011-04-26 Xinliang David Li <davidxl@google.com>
3258
4581fd42 3259 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8c3e8d68 3260 * c-family/c-opts.c (c_common_handle_option): Set
3261 warn_maybe_uninitialized.
3262 * opts.c (common_handle_option): Ditto.
3263 * common.opt: New option.
3264 * tree-ssa.c (warn_uninit): Add one more parameter.
3265 (warn_uninitialized_var): Pass warning code.
3266 * tree-flow.h: Interface change.
3267
3268
4f823da5 32692011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3270
4581fd42 3271 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4f823da5 3272 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3273 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3274
35c73f70 32752011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3276
3277 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3278 * config/mips/mips.opt (mmips-tfile): Remove.
3279
3280 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3281 mips-tdump reference to ...
4581fd42 3282 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
35c73f70 3283 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3284 reference by Tru64 UNIX.
3285
89c993b6 32862011-04-26 Jakub Jelinek <jakub@redhat.com>
3287
a05063ec 3288 PR debug/48768
3289 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3290 is error_mark_node, set value to NULL.
3291
89c993b6 3292 PR tree-optimization/48734
3293 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3294 if return value from maybe_fold_*_comparsions isn't something
3295 the code is prepared to handle.
3296
3c0bc3f2 32972011-04-26 Uros Bizjak <ubizjak@gmail.com>
3298
3299 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3300 mode check.
3301 (ext_QIreg_nomode_operands): Remove.
3302 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3303 (*andsi_1): Ditto.
3304 (*andhi_1): Ditto.
3305
db7e6009 33062011-04-26 Andrew Stubbs <ams@codesourcery.com>
3307
3308 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3309
5da6a36e 33102011-04-26 Richard Guenther <rguenther@suse.de>
3311
3312 * c-typeck.c (build_unary_op): Do not expand array-refs via
3313 pointer arithmetic. Only adjust qualifiers for function types.
3314
33152011-04-26 Richard Guenther <rguenther@suse.de>
3316
3317 PR middle-end/48694
3318 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3319 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3c0bc3f2 3320 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3321 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5da6a36e 3322
8de5c43e 33232011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3324
6fe5844b 3325 * doc/extend.texi: Document __underlying_type.
8de5c43e 3326
844593f2 33272011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3328
3329 * config/rs6000/titan.md (automata_option "progress"): Remove.
3330
50258e8d 33312011-04-25 Jeff Law <law@redhat.com>
3332
3333 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3334
cdd0bb4b 33352011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 * system.h (ENUM_BITFIELD): Remove.
3338
8ebe31d6 33392011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
51d5dcac 3340 Eric Botcazou <ebotcazou@adacore.com>
8ebe31d6 3341
3342 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3343 for STORE_FLAG_VALUE==-1 case.
3344
58ba8f5d 33452011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3346
3347 PR target/43804
3348 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3349 LEGITIMATE_PIC_OPERAND_P.
3350
5cb1b112 33512011-04-24 Jan Hubicka <jh@suse.cz>
3352
3353 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3354 WPA hack.
3c0bc3f2 3355 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3356 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3357 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5cb1b112 3358 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3359 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3360 Sanity check predicate length.
3361 (remap_predicate): Likewise; sanity check jump functions.
3362 (inline_read_section, inline_write_summary): Sanity check
3363 predicate length.
3364
a799da27 33652011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3366
3367 PR other/48748
3368 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3369 __is_literal_type, and __is_trivial; update throughout about
3370 possibly cv-qualified void types.
3371
832d4c31 33722011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3373
3374 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3375 testsuite and make it version agnostic.
3376
ca0564e6 33772011-04-22 Jan Hubicka <jh@suse.cz>
3378
3379 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3380
6ba60c90 33812011-04-23 Jakub Jelinek <jakub@redhat.com>
3382
3383 PR c/48685
3384 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3385 to VOID_TYPE even around MODIFY_EXPR.
3386
f9cc5f3e 33872011-04-22 Mike Stump <mikestump@comcast.net>
3388
f61e26f9 3389 * gensupport.c (read_md_rtx): Fix typo in comment.
f9cc5f3e 3390 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3391 comment.
3392
a41f2a28 33932011-04-22 Jan Hubicka <jh@suse.cz>
3394
3395 * gengtype.c (open_base_files): Add ipa-inline.h include.
3c0bc3f2 3396 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3397 ipa-prop.c; update all uses.
a41f2a28 3398 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3c0bc3f2 3399 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3400 merge summary of inlined function into former caller.
a41f2a28 3401 * ipa-inline.c (max_benefit): Remove.
3402 (edge_badness): Compensate for removal of benefits.
3c0bc3f2 3403 (update_caller_keys): Use
3404 reset_node_growth_cache/reset_edge_growth_cache.
a41f2a28 3405 (update_callee_keys): Likewise.
3406 (update_all_callee_keys): Likewise.
3c0bc3f2 3407 (inline_small_functions): Do not collect max_benefit; do not reset
3408 estimated_growth; call free_growth_caches and initialize_growth_caches.
3409 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3410 struct size_time_entry): New structures.
a41f2a28 3411 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3c0bc3f2 3412 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3413 and estimated_growth.
a41f2a28 3414 (edge_growth_cache_entry): New structure.
3415 (node_growth_cache, edge_growth_cache): New global vars.
3416 (estimate_growth): Turn into inline.
3417 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3418 initialize_growth_caches, free_growth_caches): Declare.
3419 (estimate_edge_growth): Rewrite.
3420 (estimate_edge_time): Implement as inline cache lookup.
3c0bc3f2 3421 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3422 functions.
a41f2a28 3423 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3424 (NUM_CONDITIONS): New constant.
3425 (predicate_conditions): New enum.
3426 (IS_NOT_CONSTANT): New constant.
3427 (edge_removal_hook_holder): New var.
3428 (node_growth_cache, edge_growth_cache): New global vars.
3c0bc3f2 3429 (true_predicate, single_cond_predicate, false_predicate,
3430 not_inlined_predicate, add_condition, add_clause, and_predicates,
3431 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3432 dump_clause, dump_predicate, account_size_time,
a41f2a28 3433 evaulate_conditions_for_edge): New functions.
3434 (inline_summary_alloc): Move to heap.
3435 (inline_node_removal_hook): Clear condition and entry vectors.
3436 (inline_edge_removal_hook): New function.
3437 (initialize_growth_caches, free_growth_caches): New function.
3438 (dump_inline_summary): Update.
3439 (edge_execution_predicate): New function.
3440 (will_be_nonconstant_predicate): New function.
3441 (estimate_function_body_sizes): Compute BB and constantness predicates.
3442 (compute_inline_parameters): Do not clear estimated_growth.
3443 (estimate_edge_size_and_time): New function.
3444 (estimate_calls_size_and_time): New function.
3445 (estimate_callee_size_and_time): New function.
3446 (remap_predicate): New function.
3447 (inline_merge_summary): New function.
3448 (do_estimate_edge_time): New function based on...
3449 (estimate_edge_time): ... this one.
3450 (do_estimate_edge_growth): New function.
3451 (do_estimate_growth): New function based on....
3452 (estimate_growth): ... this one.
3453 (inline_analyze_function): Analyze after deciding on jump functions.
3454 (inline_read_section): New function.
3455 (inline_read_summary): Use it.
3456 (inline_write_summary): Write all the new data.
3457 * ipa-prop.c (ipa_get_param_decl_index): Export.
3458 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3c0bc3f2 3459 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3460 Declare.
3461 (ipa_get_lattice): Move here from ipa-cp.c
a41f2a28 3462 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3463 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3464 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3465 cgraph_edge_inlinable_p): Remove.
3466 * cgraphunit.c: Include ipainline.h
3c0bc3f2 3467 (cgraph_process_new_functions): Update call of
3468 compute_inline_parameters.
a41f2a28 3469
0ac7bb2f 34702011-04-22 Richard Guenther <rguenther@suse.de>
3471
3472 * tree.c (build_int_cst): Properly create canonicalized integer
3473 constants.
3474 (build_int_cst_type): Remove scary comments.
3475
68ebb06f 34762011-04-22 Xinliang David Li <davidxl@google.com>
3477
3478 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3479 by default when -Wno-error is not specified.
3480 * opts-global.c (decode_options): Remove call to
3481 control_warning_options.
3482
19d861b9 34832011-04-22 Jakub Jelinek <jakub@redhat.com>
3484
3485 PR tree-optimization/48717
3486 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3487 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3488
e9da2473 34892011-04-22 Joseph Myers <joseph@codesourcery.com>
3490
3491 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3492 definition where used.
3493
af06e5ef 34942011-04-22 Jakub Jelinek <jakub@redhat.com>
3495
3496 PR c/48716
3497 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3498 TREE_STATIC variables declared inside of some OpenMP construct.
3499
a5c37976 35002011-04-22 Martin Jambor <mjambor@suse.cz>
3501
3502 PR middle-end/48585
19e1bfc7 3503 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
a5c37976 3504
ac4e675f 35052011-04-22 Alexander Monakov <amonakov@ispras.ru>
3506
3507 PR c/36750
3508 * c-typeck.c (pop_init_level): Do not warn about initializing
3509 with ` = {0}'.
3510
0645b79d 35112011-04-22 Alan Modra <amodra@gmail.com>
3512
3513 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3514 when returning call_cookie.
3515 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3516 pointers, to functions with no more vector args than the current
3517 function, and some non-local calls for ABI_V4.
3518 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3519 sibcall_nonlocal_aix64): Combine to ..
3520 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3521 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3522 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3523 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3524 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3525 operand.
3526 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3527 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3528 sibcall_value_symbolic_64): Delete.
3529
1ad3e14c 35302011-04-21 Xinliang David Li <davidxl@google.com>
3531
3532 * cgraph.h: Remove pid.
3533 * cgraph.c: Remove pid.
3534 * value-prof.c (init_node_map): New function.
3535 (del_node_map): New function.
3536 (find_func_by_funcdef_no): New function.
3537 (gimple_ic_transform): Call new function.
3538 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3539 * function.c (get_last_funcdef_no): New function.
3540 * function.h (get_last_funcdef_no): New function.
3541 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3542 to libgcov function.
3543 (tree-profiling): Call node map init and delete function.
3544
bcebc172 35452011-04-21 Ian Lance Taylor <iant@google.com>
3546
3547 * godump.c (go_format_type): Use exported Go name for anonymous
3548 field name.
3549
fc6bcbe2 35502011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3551
3552 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3553 Call builtin_function_type_list instead of builtin_function_type.
3554 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3555
7bb58c4d 35562011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3557
3558 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3559 build_function_type_list instead of build_function_type.
3560 Delete variable `endlink'.
3561
61b4d1b5 35622011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3563
3564 * config/s390/s390.c (s390_init_builtins): Call
3565 build_function_type_list instead of build_function_type.
3566
58711bd3 35672011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3568
3569 * config/ia64/ia64.c (ia64_init_builtins): Call
3570 build_function_type_list instead of builtin_function_type.
3571
2a24c3a6 35722011-04-21 Easwaran Raman <eraman@google.com>
3573
9bbe51a2 3574 * cfgexpand.c (stack_var): Remove OFFSET...
2a24c3a6 3575 (add_stack_var): ...and its reference here...
3576 (expand_stack_vars): ...and here.
3577 (stack_var_cmp): Sort by descending order of size.
3578 (partition_stack_vars): Change heuristic.
19e1bfc7 3579 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2a24c3a6 3580 (dump_stack_var_partition): Add newline after each partition.
3581
f0a34d7c 35822011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3583 Jeff Law <law@redhat.com>
3584
3c0bc3f2 3585 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
f0a34d7c 3586 * gengtype.c (matching_file_name_substitute): Likewise.
3587
81a847ed 35882011-04-21 Richard Guenther <rguenther@suse.de>
3589
3590 PR lto/48703
19e1bfc7 3591 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
81a847ed 3592
d5c50c6d 35932011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3594
3595 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3596
a49d1bae 35972011-04-21 Richard Guenther <rguenther@suse.de>
3598
3599 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3600 file name.
3601
2622064f 36022011-04-21 Richard Guenther <rguenther@suse.de>
3603
3604 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3605 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3606 Use DECL_P, not SSA_VAR_P.
3607 (ptr_derefs_may_alias_p): Likewise.
3608 (ptr_deref_may_alias_ref_p_1): Likewise.
3609 (decl_refs_may_alias_p): Likewise.
3610 (refs_may_alias_p_1): Likewise.
3611 (ref_maybe_used_by_call_p_1): Likewise.
3612 (call_may_clobber_ref_p_1): Likewise.
3613 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3614 are either MEM_REF or TARGET_MEM_REF.
3615 (indirect_refs_may_alias_p): Likewise.
3616 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3617 for MEM_EXPR of indirect calls.
3618
235b5b0e 36192011-04-21 Tristan Gingold <gingold@adacore.com>
3620
3621 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3622 (dst_file_info_struct): Remove flen field.
3623 (lookup_filename): Remove code that set flen field.
3624
72b989d8 36252011-04-21 Tristan Gingold <gingold@adacore.com>
3626
3627 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3628
57026a70 36292011-04-21 Uros Bizjak <ubizjak@gmail.com>
3630
3631 PR target/48708
3632 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3633 vec_extract and vec_concat for non-SSE4_1 targets.
3634
91234829 36352011-04-21 Richard Guenther <rguenther@suse.de>
3636
3637 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3638 return statements.
3639
d503b516 36402011-04-21 Joseph Myers <joseph@codesourcery.com>
3641
3642 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3643 undefine.
3644 (FILE): Don't undefine.
3645
842ae815 36462011-04-21 Joseph Myers <joseph@codesourcery.com>
3647
3648 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3649 struct rtx_def *.
3650 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3651 struct rtx_def *.
3652 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
57026a70 3653 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
842ae815 3654 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3655 rtx_def *.
3656 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3657 definitions where used.
3658 * config/microblaze/microblaze.h (struct microblaze_args): Use
3659 rtx, not struct rtx_def *.
3660 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3661 rtx_def *.
57026a70 3662 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3663 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
842ae815 3664 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3665 not struct rtx_def *.
3666 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3667 struct rtx_def *.
3668 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3669 rtx_def *.
57026a70 3670 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
842ae815 3671
27b32feb 36722011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3673
3674 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3675 operand_equal_p to compare DR_BASE_ADDRESSes.
3676 (vect_check_interleaving): Likewise.
3677
dddb35a9 36782011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3679
3680 PR target/46329
3681 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3682 for all Neon struct constants.
3683
ca316360 36842011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3685
3686 * target.def (legitimate_constant_p): New hook.
3687 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3688 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3689 * doc/tm.texi: Regenerate.
3690 * hooks.h (hook_bool_mode_rtx_true): Declare.
3691 * hooks.c (hook_bool_mode_rtx_true): Define.
3692 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3693 * calls.c (precompute_register_parameters): Replace uses of
3694 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3695 (emit_library_call_value_1): Likewise.
3696 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3697 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3698 * ira-costs.c (scan_one_insn): Likewise.
3699 * recog.c (general_operand, immediate_operand): Likewise.
3700 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3701 * reload1.c (init_eliminable_invariants): Likewise.
3702
3703 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3704 mode argument.
3705 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3706 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3707 argument.
3708 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3709 * config/alpha/predicates.md (input_operand): Update call to
3710 alpha_legitimate_constant_p.
3711
3712 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3713 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3714 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3715 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3716 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3717 (arm_legitimate_constant_p): New functions.
3718 (arm_cannot_force_const_mem): Make static.
3719
3720 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3721
3722 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3723 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3724 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3725 instead of bfin_legitimate_constant_p.
3726 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3727 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3728
3729 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3730
3731 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3732
3733 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3734 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3735 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3736 (frv_legitimate_constant_p): Make static. Add a mode argument.
3737
3738 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3739 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3740 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3741
3742 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3743 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3744 * config/i386/i386.c (legitimate_constant_p): Rename to...
3745 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3746 argument.
3747 (ix86_cannot_force_const_mem): Update accordingly.
3748 (ix86_legitimate_address_p): Likewise.
3749 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3750 * config/i386/i386.md: Update commentary.
3751
3752 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3753 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3754 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3755 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3756
3757 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3758
3759 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3760 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3761 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3762 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3763
3764 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3765 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3766 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3767
3768 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3769 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3770 (m32r_legitimate_constant_p): New function.
3771
3772 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3773 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3774 LEGITIMATE_CONSTANT_P.
3775 (LEGITIMATE_CONSTANT_P): Delete.
3776 * config/m68k/m68k.c (m68k_expand_prologue): Call
3777 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3778 (m68k_legitimate_constant_p): New function.
3779 * config/m68k/m68k.md: Update comments.
3780
3781 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3782 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3783 (mcore_legitimate_constant_p): New function.
3784
3785 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3786 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3787 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3788 Add a mode argument.
3789 (mep_legitimate_address): Update accordingly.
3790 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3791
3792 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3793 Delete.
3794 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3795 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3796 static. Check OP's mode for VOIDmode.
3797 (microblaze_legitimate_constant_p): New function.
3798 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3799
3800 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3801 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3802 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3803 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3804 * config/mips/predicates.md: Update comments.
3805
3806 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3807 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3808 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3809 (mmix_legitimate_constant_p): Make static, return a bool, and take
3810 a mode argument.
3811 (mmix_print_operand_address): Update accordingly.
3812
3813 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3814 Delete.
3815 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
57026a70 3816 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3817 static. Add a mode argument.
ca316360 3818 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3819
3820 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3821
3822 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3823 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3824 (pa_legitimate_constant_p): New function.
3825
3826 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3827
3828 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3829 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3830 (pdp11_legitimate_constant_p): New function.
3831
3832 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3833 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3834 (rs6000_legitimate_constant_p): New function.
3835
3836 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3837 (rx_legitimate_constant_p): ...this.
3838 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3839 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3840 (rx_legitimate_constant_p): ...this.
3841 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3842 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3843
3844 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3845 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3846 * config/s390/s390.c (legitimate_constant_p): Rename to...
3847 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3848 and add a mode argument.
3849 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3850
3851 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3852
3853 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3854 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3855 (sh_legitimate_constant_p): New function.
3856
3857 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3858 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3859 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3860 (legitimate_constant_p): Rename to...
3861 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3862 argument.
3863 (constant_address_p): Update accordingly.
3864
3865 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3866 argument and return a bool.
3867 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3868 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3869 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3870 (spu_rtx_costs): Update accordingly.
3871 * config/spu/predicates.md (vec_imm_operand): Likewise.
3872
3873 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3874
3875 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3876 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3877 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3878
3879 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3880 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3881 * config/vax/vax.c (legitimate_constant_p): Likewise.
3882
3883 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3884 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3885 (xtensa_legitimate_constant_p): New function.
3886
7d7d7bd2 38872011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3888
3889 * target.def (cannot_force_const_mem): Add a mode argument.
3890 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3891 * doc/tm.texi: Regenerate.
3892 * hooks.h (hook_bool_mode_rtx_false): Declare.
3893 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3894 (hook_bool_mode_const_rtx_true): Likewise.
3895 (hook_bool_mode_rtx_false): New function.
3896 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3897 to be non-VOID. Update call to cannot_force_const_mem.
3898 (find_reloads): Update accordingly.
3899 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3900 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3901 argument.
3902 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3903 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3904 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3905 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3906 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3907 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3908 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3909 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3910 (m68k_cannot_force_const_mem): ...this new function.
3911 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3912 argument.
3913 (mips_const_insns, mips_legitimize_const_move): Update calls.
3914 (mips_secondary_reload_class): Likewise.
3915 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3916 (pa_cannot_force_const_mem): ...this new function.
57026a70 3917 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7d7d7bd2 3918 (rs6000_cannot_force_const_mem): ...this new function.
3919 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3920 argument.
3921 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3922 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3923 to...
3924 (xtensa_cannot_force_const_mem): ...this new function.
3925
a2a9d516 39262011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3927
3928 * config/mips/mips.c (mips16_build_function_stub): Call
3929 build_function_type_list instead of build_function_type.
3930 (mips16_build_call_stub): Likewise.
3931
43a83738 39322011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3933
3934 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3935 instead of build_function_type.
3936
ab27801e 39372011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3938
3939 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3940 instead of build_function_type.
3941
bd4b3ce4 39422011-04-20 Uros Bizjak <ubizjak@gmail.com>
3943
3944 PR target/48678
3945 * config/i386/i386.md (insv): Change operand 0 constraint to
3946 "register_operand". Change operand 1 and 2 constraint to
3947 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3948 * config/i386/sse.md (sse4_1_pinsrb): Export.
3949 (sse2_pinsrw): Ditto.
3950 (sse4_1_pinsrd): Ditto.
3951 (sse4_1_pinsrq): Ditto.
3952 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3953 * config/i386/i386.c (ix86_expand_pinsr): New.
3954
6a818150 39552011-04-20 Easwaran Raman <eraman@google.com>
3956
3957 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3958 containing union type only with -fstrict-aliasing.
3959
dd045aee 39602011-04-20 Jim Meyering <meyering@redhat.com>
3961
3962 Remove useless if-before-free tests.
3963 * calls.c (expand_call, save_area): Likewise.
3964 * cfgcleanup.c (try_forward_edges): Likewise.
3965 * collect2.c (collect_execute): Likewise.
3966 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3967 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3968 * coverage.c (coverage_checksum_string): Likewise.
3969 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3970 * cselib.c (cselib_init): Likewise.
3971 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3972 (df_set_clean_cfg): Likewise.
3973 * function.c (free_after_compilation): Likewise.
3974 * gcc.c (do_spec_1, main): Likewise.
3975 * gcov.c (create_file_names): Likewise.
3976 * gensupport.c (identify_predicable_attribute): Likewise.
3977 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3978 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3979 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3980 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3981 * ipa-pure-const.c (local_pure_const): Likewise.
3982 * ipa-reference.c (propagate): Likewise.
3983 * ira-costs.c (free_ira_costs): Likewise.
3984 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3985 * matrix-reorg.c (mat_free): Likewise.
3986 * prefix.c (get_key_value): Likewise.
3987 * profile.c (compute_value_histograms): Likewise.
3988 * reload1.c (free_reg_equiv): Likewise.
3989 * sched-deps.c (free_deps): Likewise.
3990 * sel-sched-ir.c (fence_clear): Likewise.
3991 * sese.c (set_rename, if_region_set_false_region): Likewise.
3992 * tree-data-ref.c (free_rdg): Likewise.
3993 * tree-eh.c (lower_try_finally): Likewise.
3994 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3995 * tree-ssa-live.c (delete_var_map): Likewise.
3996 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3997 * tree-ssa-pre.c (phi_trans_add): Likewise.
3998
39efead8 39992011-04-20 Jakub Jelinek <jakub@redhat.com>
4000
4001 PR tree-optimization/48611
4002 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4003 beyond ERT_MUST_NOT_THROW region.
4004
516cedbd 40052011-04-20 Catherine Moore <clm@codesourcery.com>
4006
4007 * config/mips/mips.opt (mfix-24k): New.
4008 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4009 * config/mips/mips.md (length): Increase by 4 for stores if
4010 fixing 24K errata.
4011 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4012 all noreorder if fixing 24K errata.
4013 * doc/invoke.texi: Document mfix-24k.
4014
efecc03c 40152011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4016
4017 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
57026a70 4018 quad-word modes, reduce to 9-bit index range when above 1016 limit.
efecc03c 4019
72a26e19 40202011-04-20 Andrew Stubbs <ams@codesourcery.com>
4021
4022 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4023 (const_ok_for_op): ... to here.
4024
6cfb1e41 40252011-04-20 Kai Tietz <ktietz@redhat.com>
4026
57026a70 4027 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4028 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6cfb1e41 4029
d48b5575 40302011-04-20 Andrew Stubbs <ams@codesourcery.com>
4031
4032 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4033
2cac353d 40342011-04-20 Richard Guenther <rguenther@suse.de>
4035
4036 PR tree-optimization/47892
4037 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4038 are if-convertible.
4039
f551006d 40402011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4041
4042 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4043
512b78c2 40442011-04-20 Tristan Gingold <gingold@adacore.com>
4045
4046 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4047
7c2339f8 40482011-04-20 Georg-Johann Lay <avr@gjlay.de>
4049
4050 PR target/18145
4051
4052 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4053 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4054 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4055 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4056 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4057
4058 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4059 New prototype.
4060
4061 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4062 (avr_asm_named_section, avr_asm_output_aligned_common,
4063 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4064 New functions to update...
4065 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4066 (avr_asm_init_sections): Overwrite section callbacks for
4067 data_section, bss_section.
4068 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4069 from here to...
4070 (avr_file_end): ...here.
4071
0d2f7431 40722011-04-20 Richard Guenther <rguenther@suse.de>
4073
4074 PR middle-end/48695
4075 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
57026a70 4076 objects and types here. Adjust for their offset before comparing.
0d2f7431 4077
63fd99db 40782011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4079
4080 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4081 statement per copy.
4082
fb049fba 40832011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4084
4085 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4086 (GIMPLE_H): Include $(INTERNAL_FN_H).
4087 (OBJS-common): Add internal-fn.o.
4088 (internal-fn.o): New rule.
4089 * internal-fn.def: New file.
4090 * internal-fn.h: Likewise.
4091 * internal-fn.c: Likewise.
4092 * gimple.h: Include internal-fn.h.
4093 (GF_CALL_INTERNAL): New gf_mask.
4094 (gimple_statement_call): Put fntype into a union with a new
4095 internal_fn field.
4096 (gimple_build_call_internal): Declare.
4097 (gimple_build_call_internal_vec): Likewise.
4098 (gimple_call_same_target_p): Likewise.
4099 (gimple_call_internal_p): New function.
4100 (gimple_call_internal_fn): Likewise.
4101 (gimple_call_fntype): Return null for internal calls.
4102 (gimple_call_set_fntype): Assert that the function is not internal.
4103 (gimple_call_set_fn): Likewise.
4104 (gimple_call_set_fndecl): Likewise.
4105 (gimple_call_set_internal_fn): New function.
4106 (gimple_call_addr_fndecl): Handle null functions.
4107 (gimple_call_return_type): Likewise null types.
4108 * gimple.c (gimple_build_call_internal_1): New function.
4109 (gimple_build_call_internal): Likewise.
4110 (gimple_build_call_internal_vec): Likewise.
4111 (gimple_call_same_target_p): Likewise.
4112 (gimple_call_flags): Handle calls to internal functions.
4113 (gimple_call_fnspec): New function.
4114 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4115 (gimple_has_side_effects): Handle null functions.
4116 (gimple_rhs_has_side_effects): Likewise.
4117 (gimple_call_copy_skip_args): Handle calls to internal functions.
4118 * cfgexpand.c (expand_call_stmt): Likewise.
4119 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4120 * gimple-fold.c (gimple_fold_call): Handle null functions.
4121 (gimple_fold_stmt_to_constant_1): Don't fold
4122 calls to internal functions.
4123 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4124 functions.
4125 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4126 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4127 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4128 (do_warn_unused_result): Likewise.
4129 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4130 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4131 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4132 the target of a call.
4133 (initialize_hash_element): Update accordingly.
4134 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4135 (iterative_hash_hashable_expr): Handle calls to internal functions.
4136 (print_expr_hash_elt): Likewise.
4137 * tree-ssa-pre.c (can_value_number_call): Likewise.
4138 (eliminate): Handle null functions.
4139 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4140 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4141 (find_func_aliases): Likewise.
4142 * value-prof.c (gimple_ic_transform): Likewise.
4143 (gimple_indirect_call_to_profile): Likewise.
4144 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4145 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4146
d826e131 41472011-04-19 Jan Hubicka <jh@suse.cz>
4148
4149 * ipa-inline-transform.c (save_inline_function_body): Add comments.
0616321d 4150 * ipa-inline.c (inline_small_functions): Compute summaries first,
4151 populate heap later.
d826e131 4152
8cbc43ff 41532011-04-19 Jan Hubicka <jh@suse.cz>
4154
4155 * cgraph.h (save_inline_function_body): Remove.
4156 * ipa-inline-transform.c: New file, broke out of...
4157 * ipa-inline.c: ... this one; Update toplevel comment.
4158 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4159 make global.
4160 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4161 (cgraph_mark_inline_edge): Rename to inline_call; move to
4162 ipa-inline-transform.c.
4163 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4164 move to ipa-inline-transform.c
4165 (recursive_inlining, inline_small_functions, flatten_function,
4166 ipa_inline, inline_always_inline_functions,
4167 early_inline_small_functions): Update.
4168 (inline_transform): Move to ipa-inline-transform.c.
4169 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4170 Declare.
4171 * Makefile.in (ipa-inline-transform.o): New file.
4172 * cgraphunit.c (save_inline_function_body): Move to
4173 ipa-inline-transform.c
4174
5dfa0f5a 41752011-04-19 DJ Delorie <dj@redhat.com>
4176
4177 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4178 registers if we already know there aren't any.
4179 (m32c_emit_epilogue): Don't emit a barrier here.
4180 (m32c_emit_eh_epilogue): Likewise.
4181 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4182 operands at expand time.
4183 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4184 int" wchar type.
4185 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4186 duplicates. Provide aliases instead.
4187 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4188 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4189 the compiler.
4190
7fbdfd9f 41912011-04-19 Anatoly Sokolov <aesok@post.ru>
4192
4193 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4194 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4195 (general_or_i64_p, sparc_register_move_cost): New function.
4196
046f323e 41972011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4198
4199 * doc/install.texi (Configuration, --enable-threads): Remove mach.
bd4b3ce4 4200 Add lynx, mipssde. Sort table.
046f323e 4201
8154e1e3 42022011-04-19 Xinliang David Li <davidxl@google.com>
bd4b3ce4 4203
0616321d 4204 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4205 not negative.
8154e1e3 4206
7a425ed6 42072011-04-19 Jakub Jelinek <jakub@redhat.com>
4208
4209 PR target/48678
4210 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4211 is a SUBREG with non-MODE_INT mode inside of it.
4212
3658fd1d 42132011-04-19 Martin Jambor <mjambor@suse.cz>
4214
4215 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4216 also according to actual contants.
4217 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4218 (gimple_fold_call): Use it.
4219 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4220
cf3b9c67 42212011-04-19 Martin Jambor <mjambor@suse.cz>
4222
4223 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4224 non-pointer assignments.
4225
09a2b4db 42262011-04-19 Martin Jambor <mjambor@suse.cz>
4227
4228 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4229 account anc_offset and otr_type from the indirect edge info.
4230 * ipa-prop.c (get_ancestor_addr_info): New function.
4231 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4232 get_ancestor_addr_info, call it.
4233 (ipa_note_param_call): Do not initialize information about polymorphic
4234 calls, return the indirect call graph edge. Remove the last
4235 parameter, adjust all callers.
4236 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4237 parameters. Initialize polymorphic information in the indirect edge.
4238
c693f407 42392011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4240
4241 PR lto/48148
4242 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4243 the types if they have different enumeration identifiers.
4244
cf262be9 42452011-04-19 Jan Hubicka <jh@suse.cz>
4246
4247 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4248 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4249 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4250 (optimize_function_for_size_p) ... here.
4251
e400b89a 42522011-04-19 Richard Guenther <rguenther@suse.de>
4253
4254 PR lto/48207
4255 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4256 langhook.
4257
59a52681 42582011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4259
4260 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4261 if DECL_NO_INLINE_WARNING_P is set on the function.
4262
06efbe8c 42632011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4264
4265 PR fortran/47976
4266 * reload1.c (inc_for_reload): Return void. All callers changed.
4267 (emit_input_reload_insns): Don't try to delete previous output
4268 reloads to a register, or record spill_reg_store for autoincs.
c64b1f41 4269
42702011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4271
4272 * gengtype.h: Updated copyright year.
4273 (struct input_file_st): Add inpisplugin field.
4274 (type_fileloc): New function.
4275 * gengtype.c
4276 (write_typed_struct_alloc_def): Add gcc_assert.
4277 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4278 (write_typed_alloc_defns): Don't output for plugin files.
4279 (input_file_by_name): Clear inpisplugin field.
4280 (main): Set inpisplugin field for plugin files.
4281
465d0f82 42822011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4283
4284 * gengtype-state.c (string_eq): New.
4285 (read_state): Use string_eq instead of strcmp when creating the
4286 state_ident_tab.
4287
a54e3e7b 42882011-04-19 Wei Guozhi <carrot@google.com>
4289
4290 PR target/47855
4291 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4292 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4293 linkage.
4294 * config/arm/constraints.md (Uu): New constraint.
4295 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4296
b0a47c39 42972011-04-19 Tristan Gingold <gingold@adacore.com>
4298
4299 * config.gcc (-*-*-*vms): Added.
4300 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4301 definitions moved.
4302 * config/vms/vms-ld.c: New file.
4303 * config/vms/vms-ar.c: New file.
4304 * config/vms/t-vmsnative: New file.
4305
e51c3f95 43062011-04-18 Xinliang David Li <davidxl@google.com>
4307
4308 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4309
a00321c8 43102011-04-18 Jakub Jelinek <jakub@redhat.com>
4311
4312 PR middle-end/48661
4313 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4314 if TREE_TYPE (v) is non-NULL.
4315
4316 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4317 gimple_get_virt_mehtod_for_binfo.
4318 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4319 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4320 callers.
4321 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4322
19410918 43232011-04-18 Michael Matz <matz@suse.de>
faa7e9d5 4324 Steve Ellcey <sje@cup.hp.com>
4325
19410918 4326 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4327 use its mode as source mode if it isn't VOIDmode.
faa7e9d5 4328
6f836859 43292011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4330
4331 * doc/passes.texi: Fill crossref nodes.
4332
e66d204f 43332011-04-18 Jim Meyering <meyering@redhat.com>
4334
19410918 4335 Fix doubled-word typos in comments and strings
e66d204f 4336 * config/alpha/vms-unwind.h: s/for for/for/
4337 * config/arm/unwind-arm.h: Likewise.
4338 * config/microblaze/microblaze.c: Likewise.
4339 * config/sh/constraints.md: s/in in/in/
4340 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4341
dcab66ec 43422011-04-18 Uros Bizjak <ubizjak@gmail.com>
4343
4344 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4345 (AVX_FLOAT_MODE_P): Ditto.
4346 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4347 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4348 (AVX_VEC_FLOAT_MODE_P): Ditto.
4349 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4350 (UNSPEC_MASKSTORE): Ditto.
4351 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4352 Merge from <sse>_movmsk<ssemodesuffix> and
4353 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4354 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4355 iterator.
4356 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4357 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4358 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4359
4055a556 43602011-04-18 Jan Hubicka <jh@suse.cz>
4361
33b2724f 4362 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4363
4055a556 4364 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4365 (want_inline_function_called_once_p): Break out the logic from
4366 ipa_inline.
4367 (edge_badness): Ensure that profile is not misupdated.
4368 (lookup_recursive_calls): Prioritize by call frequencies.
4369 (inline_small_functions): Move program size estimates here;
4370 actually process whole queue even when unit growth has been
4371 met. (to properly compute inline_failed reasons and for the
dcab66ec 4372 case unit size decrease.) Revisit comments on recursive inlining.
4055a556 4373 (ipa_inline): Remove unit summary code; first inline hot calls
4374 of functions called once, cold calls next.
4375 (order, nnodes): Remove unused variables.
4376 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4377 (GTFILES): Remove ipa-inline.c
4378 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4379
f1a4e5a7 43802011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4381
4382 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4383
38afa546 43842011-04-18 Jie Zhang <jie@codesourcery.com>
f1a4e5a7 4385 Richard Earnshaw <rearnsha@arm.com>
38afa546 4386
4387 * arm.c (neon_builtin_type_bits): Remove.
4388 (typedef enum neon_builtin_mode): New.
4389 (T_MAX): Don't define.
4390 (typedef enum neon_builtin_datum): Remove bits, codes[],
4391 num_vars and base_fcode. Add mode, code and fcode.
4392 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4393 VAR10): Change accordingly.
4394 (neon_builtin_data[]): Change accordingly
4395 (arm_init_neon_builtins): Change accordingly.
4396 (neon_builtin_compare): Remove.
4397 (locate_neon_builtin_icode): Remove.
4398 (arm_expand_neon_builtin): Change accordingly.
4399
4400 * arm.h (enum arm_builtins): Move to ...
4401 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4402
4403 * arm.c (arm_builtin_decl): Declare.
4404 (TARGET_BUILTIN_DECL): Define.
4405 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4406 (arm_builtin_decls[]): New.
4407 (arm_init_neon_builtins): Store builtin declarations in
4408 arm_builtin_decls[].
4409 (arm_init_tls_builtins): Likewise.
4410 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4411 (arm_builtin_decl): New.
4412
419ae64a 44132011-04-18 Richard Guenther <rguenther@suse.de>
4414
4415 * tree.c (upper_bound_in_type): Build properly canonicalized
4416 INTEGER_CSTs.
4417 (lower_bound_in_type): Likewise.
4418
6fec5449 44192011-04-18 Richard Guenther <rguenther@suse.de>
4420
4421 * gimple.h (gimple_call_addr_fndecl): New function.
4422 (gimple_call_fndecl): Use it.
4423 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4424 for direct calls.
4425 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4426 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4427
faa89065 44282011-04-18 Richard Guenther <rguenther@suse.de>
4429
4430 PR middle-end/48650
4431 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4432
1cdbcae1 44332011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4434
4435 PR lto/48492
4436 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4437 DECL_IN_CONSTANT_POOL without RTL.
4438
fd4b5409 44392011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4440 Ira Rosen <ira.rosen@linaro.org>
4441
4442 PR target/48252
4443 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4444 to match neon_vzip/vuzp/vtrn_internal.
4445 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4446 outputs explicitly dependent on both inputs.
4447 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4448
c344bf60 44492011-04-18 Jakub Jelinek <jakub@redhat.com>
4450
4451 PR tree-optimization/48616
4452 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4453 whether the shift is by scalar or vector based on whether all SLP
4454 scalar stmts have the same rhs.
4455
f120c9d7 44562011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4457
4458 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4459 memory operands.
4460
d57287ab 44612011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4462
4463 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4464 registers.
4465
629c326d 44662011-04-17 Jan Hubicka <jh@suse.cz>
4467
4468 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1cdbcae1 4469 * cgrpahunit.c (cgraph_finalize_function): Do not set
4470 finalized_by_frontend.
629c326d 4471 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4472 finalized_by_frontend.
4473
9742b4a1 44742011-04-17 Jan Hubicka <jh@suse.cz>
4475
4476 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4477 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4478 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1cdbcae1 4479 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4480 method.
9742b4a1 4481 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4482 gimple-fold.c
4483 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4484
30f589a5 44852011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4486
4487 PR lto/48538
4488 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4489 is non-null before accessing it.
4490 (input_cgraph): Remove trailing spaces.
4491
4f7f77aa 44922011-04-17 Revital Eres <revital.eres@linaro.org>
4493
4494 * params.def (sms-min-sc): New param flag.
4495 * modulo-sched.c (sms_schedule): Use it.
4496 * doc/invoke.texi (sms-min-sc): Document it.
4497
4869c23f 44982011-04-17 Jan Hubicka <jh@suse.cz>
4499
4500 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4501 present, also set gimple_call_set_cannot_inline.
4502 * ipa-inline.c: Update toplevel comment.
4503 (MAX_TIME): Remove.
4504 (cgraph_clone_inlined_nodes): Fix linebreaks.
4505 (cgraph_check_inline_limits): Restructure to ...
4506 (caller_growth_limits): ... this one; be more tolerant
4507 on growth in nested inline chains; add explanatory comment;
4508 fix stack accounting thinko introduced by previous patch.
4509 (cgraph_default_inline_p): Remove.
4510 (report_inline_failed_reason): New function.
4511 (can_inline_edge_p): New function.
4512 (can_early_inline_edge_p): New function.
4513 (leaf_node_p): Move upwards in file.
4514 (want_early_inline_function_p): New function.
4515 (want_inline_small_function_p): New function.
4516 (want_inline_self_recursive_call_p): New function.
4517 (cgraph_edge_badness): Rename to ...
4518 (edge_badness) ... this one; fix linebreaks.
4519 (update_edge_key): Update call of edge_baddness; add
4520 detailed dump about queue updates.
4521 (update_caller_keys): Use can_inline_edge_p and
4522 want_inline_small_function_p.
4523 (cgraph_decide_recursive_inlining): Rename to...
4524 (recursive_inlining): Use can_inline_edge_p and
dcab66ec 4525 want_inline_self_recursive_call_p; simplify and remove no longer
4526 valid FIXME.
4869c23f 4527 (cgraph_set_inline_failed): Remove.
4528 (add_new_edges_to_heap): Use can_inline_edge_p and
4529 want_inline_small_function_p.
4530 (cgraph_decide_inlining_of_small_functions): Rename to ...
4531 (inline_small_functions): ... this one; cleanup; use
dcab66ec 4532 can/want predicates; cleanup debug ouput; work edges till fibheap
4533 is exhausted and do not stop once unit growth is reached; remove
4534 later loop processing remaining edges.
4869c23f 4535 (cgraph_flatten): Rename to ...
4536 (flatten_function): ... this one; use can_inline_edge_p
4537 and can_early_inline_edge_p predicates.
4538 (cgraph_decide_inlining): Rename to ...
4539 (ipa_inline): ... this one; remove unreachable nodes before
4540 inlining functions called once; simplify the pass.
4541 (cgraph_perform_always_inlining): Rename to ...
4542 (inline_always_inline_functions): ... this one; use
dcab66ec 4543 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4869c23f 4544 (cgraph_decide_inlining_incrementally): Rename to ...
4545 (early_inline_small_functions): ... this one; simplify
4546 using new predicates; cleanup; make dumps prettier.
4547 (cgraph_early_inlining): Rename to ...
4548 (early_inliner): newer inline regular functions into always-inlines;
4549 fix updating of call stmt summaries.
4550 (pass_early_inline): Update for new names.
4551 (inline_transform): Fix formating.
4552 (gate_cgraph_decide_inlining): Rename to ...
4553 (pass_ipa_inline): ... this one.
4554 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4555 * ipa-inline-analysis.c (dump_inline_summary): Update.
4556 (compute_inline_parameters): Do not compute disregard_inline_limits;
4557 look for mismatching arguments.
4558 (estimate_growth): Fix handlig of non-trivial self recursion.
4559 (inline_read_summary): Do not read info->disregard_inline_limits.
4560 (inline_write_summary): Do not write info->disregard_inline_limits.
30f589a5 4561 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4562 and move all checks into can_inline_edge_p predicate; re-enable code
4563 comparing optimization levels.
4869c23f 4564 (expand_call_inline): Do not test inline_forbidden_into_p.
4565 * Makefile.in (ipa-inline.o): Update arguments.
4566
d1fdaace 45672011-04-17 Revital Eres <revital.eres@linaro.org>
4568
4569 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4570
81653d3e 45712011-04-17 Revital Eres <revital.eres@linaro.org>
4572
4573 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4574
94a9bddf 45752011-04-17 Michael Matz <matz@suse.de>
4576
4577 PR tree-optimization/48622
4578 PR lto/48645
4579 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4580 in same order as they're written.
4581
c063d2da 45822011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4583
4584 * config/pa/predicates.md: Reorganize and simplify predicates.
4585 Eliminate duplicate code checks.
4586 (arith_operand): Rename to arith14_operand
4587 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4588 * config/pa/pa.md: Use renamed operands.
4589 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4590 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4591 arith11_operand, adddi3_operand, indexed_memory_operand,
4592 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4593 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4594 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4595 move_dest_operand, move_src_operand, prefetch_cc_operand,
4596 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4597 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4598 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4599 div_operand, int5_operand, movb_comparison_operator,
4600 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4601 arith_double_operand, ireg_operand, lhs_lshift_operand,
4602 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4603 integer_store_memory_operand): Likewise.
4604 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4605 (integer_store_memory_operand, read_only_operand,
4606 function_label_operand, borx_reg_operand,
4607 non_hard_reg_operand): Likewise.
4608 (eq_neq_comparison_operator): Delete unused operator.
4609 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4610 function_label_operand.
4611 (emit_move_sequence): Likewise.
4612
b6fc7168 46132011-04-16 Uros Bizjak <ubizjak@gmail.com>
4614
4615 * config/i386/sse.md (sseunpackmode): New mode attribute.
4616 (ssepackmode): Ditto.
4617 (vec_pack_trunc_<mode>): Macroize expander from
4618 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4619 (vec_unpacks_lo_<mode>): Macroize expander from
4620 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4621 (vec_unpacks_hi_<mode>): Macroize expander from
4622 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4623 (vec_unpacku_lo_<mode>): Macroize expander from
4624 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4625 (vec_unpacku_hi_<mode>): Macroize expander from
4626 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4627 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4628 ix86_expand_sse4_unpack.
4629 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4630
cbd7f5a0 46312011-04-16 Jan Hubicka <jh@suse.cz>
4632
4633 * cgraphbuild.c: Include ipa-inline.h.
4634 (reset_inline_failed): Use initialize_inline_failed.
4635 * cgraph.c: Include ipa-inline.h.
4636 (cgraph_create_node_1): Do not initialize estimated_growth.
4637 (initialize_inline_failed): More to ipa-inline-analysis.c
4638 (dump_cgraph_node): Do not dump inline flags.
4639 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4640 and disregard_inline_limits flags.
4641 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4642 time, size, estimated_growth.
b6fc7168 4643 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4644 Update.
cbd7f5a0 4645 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4646 DECL_DISREGARD_INLINE_LIMITS.
4647 (cgraph_analyze_function): Do not initialize
4648 node->local.disregard_inline_limits.
4649 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4650 inlinable, versionable and disregard_inline_limits.
4651 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
b6fc7168 4652 cgraph_check_inline_limits, cgraph_default_inline_p,
4653 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4654 add_new_edges_to_heap): Update.
4655 (cgraph_decide_inlining_of_small_function): Update; set
4656 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
cbd7f5a0 4657 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4658 cgraph_decide_inlining_incrementally): Update.
b6fc7168 4659 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4660 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4661 time, size and estimated_growth parameters.
cbd7f5a0 4662 (estimate_edge_growth): Update.
4663 (initialize_inline_failed): Declare.
4664 * ipa-split.c: Include ipa-inline.h
4665 (execute_split_functions): Update.
4666 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4667 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4668 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4669 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4670 estimated_growth to INT_MIN.
4671 (inline_node_duplication_hook): Likewise.
4672 (dump_inline_summary): Dump new fields.
4673 (compute_inline_parameters): Update.
4674 (estimate_edge_time, estimate_time_after_inlining,
4675 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4676 inline_write_summary):
4677 (initialize_inline_failed): Move here from cgraph.c.
4678 * tree-sra.c: Include ipa-inline.h.
4679 (ipa_sra_preliminary_function_checks): Update.
dcab66ec 4680 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4681 ipa-inline.h.
cbd7f5a0 4682
e5f53f2a 46832011-04-16 Uros Bizjak <ubizjak@gmail.com>
4684
4685 * config/i386/sse.md (V16): New mode iterator.
4686 (VI1, VI8): Ditto.
4687 (AVXMODEQI, AVXMODEDI): Remove.
4688 (sse2, sse3): New mode attribute.
4689 (mov<mode>): Use V16 mode iterator.
4690 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4691 (push<mode>1): Use V16 mode iterator.
4692 (movmisalign<mode>): Ditto.
4693 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4694 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4695 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4696 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4697 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4698 avx_movdqu<avxmodesuffix>.
4699 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4700 *avx_movdqu<avxmodesuffix>.
4701 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4702 avx_lddqu<avxmodesuffix>.
4703 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4704 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4705 avx_movnt<AVXMODEDI:mode>.
4706 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4707 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4708
45892a65 47092011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4710
4711 PR target/48629
4712 * haifa-sched.c (prune_ready_list, schedule_block): Use
4713 sched_pressure_p rather than flag_sched_pressure.
4714
6a0cacf9 47152011-04-15 Pat Haugen <pthaugen@us.ibm.com>
46052a74 4716
4717 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4718 cgraph_get_node instead of cgraph_get_create_node.
4719
9ecadf14 47202011-04-15 Jakub Jelinek <jakub@redhat.com>
4721
4722 * cfgexpand.c (expand_debug_expr): Use
4723 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4724
a882d754 47252011-04-15 Michael Matz <matz@suse.de>
4726
4727 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4728 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4729 * function.c (gimplify_parameters): Ditto.
4730 * gimplify.c (gimplify_vla_decl): Ditto.
4731
4732 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4733 (gimple_call_set_alloca_for_var): New inline function.
4734 (gimple_call_alloca_for_var_p): Ditto.
e5f53f2a 4735 * gimple.c (gimple_build_call_from_tree): Remember
4736 CALL_ALLOCA_FOR_VAR_P state.
a882d754 4737 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4738
4739 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4740 calls if they were for VLA objects.
4741
b3b1665e 47422011-04-15 Martin Jambor <mjambor@suse.cz>
4743
4744 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4745 of ADR_EXPRs.
4746
4559c6fc 47472011-04-15 Martin Jambor <mjambor@suse.cz>
4748
4749 PR middle-end/48601
4750 * tree-emutls.c (lower_emutls_function_body): Call
4751 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4752 result is non-NULL.
4753
394dd737 47542011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4755
4756 * c-decl.c (detect_field_duplicates): Call
4757 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4758
97cf41ec 47592011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4760
4761 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4762 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4763 * ipa-pure-const.c (check_stmt): Call it.
4764 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4765
abb08aa8 47662011-04-15 Richard Guenther <rguenther@suse.de>
4767
4768 PR tree-optimization/48290
4769 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4770 Properly decide inhibiting propagation based on the valueized
4771 operand. Do loop-closed SSA form preserving here ...
4772 (init_copy_prop): ... not here.
4773
8ba20934 47742011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4775
4776 PR target/48612
4777 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4778 (*ieee_smax<mode>3): Likewise.
4779
79dab3a2 47802011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4781
4782 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4783 Replace match_operand with match_dup for the third operand in
4784 these expanders.
4785
34dd021c 47862011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4787
4788 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4789 to track processing of conditionals. Update all callers.
4790 (try_combine, simplify_if_then_else): Update.
4791
3dd7d6a7 47922011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4793
4794 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4795 -fsched-pressure.
4796
83456a4b 47972011-04-15 Georg-Johann Lay <avr@gjlay.de>
e5f53f2a 4798
83456a4b 4799 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4800 instead of match_operand for operand 3.
4801
48eb616d 48022011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4803
4804 * recog.h (insn_operand_data): Add an "allows_mem" field.
4805 * genoutput.c (output_operand_data): Initialize it.
4806 * optabs.c (maybe_legitimize_operand_same_code): New function.
4807 (maybe_legitimize_operand): Use it when matching the original
4808 op->value.
4809
57859735 48102011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4811
4812 * gimplify.c: Fix issues in comments throughout.
4813 (voidify_wrapper_expr): Fix long line.
4814 (build_stack_save_restore): Likewise.
4815 (gimplify_loop_expr): Likewise.
4816 (gimplify_compound_lval): Likewise.
4817 (gimplify_init_ctor_eval): Likewise.
4818 (gimplify_modify_expr_rhs): Likewise.
4819 (omp_notice_threadprivate_variable): Likewise.
4820
317bd3b6 48212011-04-15 Eric Botcazou <ebotcazou@adacore.com>
a967d5e5 4822
317bd3b6 4823 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4824 original one if this is not a builtin function.
a967d5e5 4825
908f63e8 48262011-04-14 Jakub Jelinek <jakub@redhat.com>
4827
4828 PR target/48605
4829 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4830 offset it as needed based on top 2 bits in operands[3], change
4831 MEM mode to SFmode and mask those 2 bits away from operands[3].
4832
a758bf7d 48332011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4834
4835 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4836 change from objc_declare_protocols() to objc_declare_protocol().
4837
f6c74054 48382011-04-14 Uros Bizjak <ubizjak@gmail.com>
4839
4840 * config/i386/sse.md (sse4_1): New mode attribute.
4841 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4842 avx_blend<ssemodesuffix><avxmodesuffix> and
4843 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4844 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4845 avx_blendv<ssemodesuffix><avxmodesuffix> and
4846 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4847 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4848 avx_dp<ssemodesuffix><avxmodesuffix> and
4849 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4850 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4851 (sse4_1_packusdw): Merge with *avx_packusdw.
4852 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4853 (sse4_1_pblendw): Merge with *avx_pblendw.
4854 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4855 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4856 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4857 VF mode iterator.
4858 (sse4_1_round<ssescalarmodesuffix>): Merge with
4859 *avx_round<ssescalarmodesuffix>.
4860 (aesenc): Merge with *avx_aesenc.
4861 (aesenclast): Merge with *avx_aesenclast.
4862 (aesdec): Merge with *avx_aesdec.
4863 (aesdeclast): Merge with *avx_aesdeclast.
4864 (pclmulqdq): Merge with *pclmulqdq.
4865 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4866 New predicate.
4867 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4868
25c513b9 48692011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4870
4871 PR middle-end/48608
4872 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4873 (align_local_variable): This. Update DECL_ALIGN.
4874 (add_stack_var): Updated.
4875 (expand_one_stack_var): Likewise.
4876
07ff6a65 48772011-04-14 Richard Guenther <rguenther@suse.de>
4878
4879 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4880 Remove.
4881 (dse_initialize_block_local_data, dse_leave_block,
4882 record_voperand_set, get_stmt_uid): Likewise.
4883 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4884 (dse_optimize_stmt): Remove voperand set handling code.
4885 Simplify and improve to handle any kind of killing stmt.
4886 (dse_record_phi): Remove.
4887 (dse_enter_block): Simplify.
4888 (tree_ssa_dse): Likewise.
4889 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4890
c7b2cc59 48912011-04-14 Jan Hubicka <jh@suse.cz>
4892
4893 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4894 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4895 (cgraph_local_info): Remove inline_summary.
4896 * ipa-cp.c: Include ipa-inline.h.
4897 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4898 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4899 accesor.
4900 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4901 (input_overwrite_node): Do not set inline summary.
4902 (input_node): Do not stream inline summary.
4903 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4904 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4905 growth; we do not have inline parameters computed for that anyway.
4906 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4907 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4908 (inline_summary_t): New type and VECtor.
4909 (debug_inline_summary, dump_inline_summaries): Declare.
4910 (inline_summary): Use VOCtor.
4911 (estimate_edge_growth): Kill hack computing call stmt size directly.
4912 * lto-section-in.c (lto_section_name): Add inline section.
4913 * ipa-inline-analysis.c: Include lto-streamer.h
4914 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4915 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4916 (inline_summary_vec): Define.
4917 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4918 dump_inline_summaries): New functions.
f6c74054 4919 (estimate_function_body_sizes): Properly compute size/time of outgoing
4920 calls.
4921 (compute_inline_parameters): Alloc inline_summary; do not compute
4922 size/time of incomming calls.
c7b2cc59 4923 (estimate_edge_time): Avoid missing time summary hack.
4924 (inline_read_summary): Read inline summary info.
4925 (inline_write_summary): Write inline summary info.
4926 (inline_free_summary): Free all hooks and inline summary vector.
4927 * lto-streamer.h: Add LTO_section_inline_summary section.
4928 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4929 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4930
481fc474 49312011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4932
4933 * tree-vectorizer.h (vect_strided_store_supported): Add a
4934 HOST_WIDE_INT argument.
4935 (vect_strided_load_supported): Likewise.
4936 (vect_permute_store_chain): Return void.
4937 (vect_transform_strided_load): Likewise.
4938 (vect_permute_load_chain): Delete.
4939 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4940 count argument. Check that the count is a power of two.
4941 (vect_strided_load_supported): Likewise.
4942 (vect_permute_store_chain): Return void. Update after above changes.
4943 Assert that the access is supported.
4944 (vect_permute_load_chain): Likewise.
4945 (vect_transform_strided_load): Return void.
4946 * tree-vect-stmts.c (vectorizable_store): Update calls after
4947 above interface changes.
4948 (vectorizable_load): Likewise.
4949 (vect_analyze_stmt): Don't check for strided powers of two here.
4950
ca793672 49512011-04-14 Richard Guenther <rguenther@suse.de>
4952
4953 PR tree-optimization/48590
4954 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4955 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4956 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4957 BUILT_IN_STACK_SAVE.
4958 * tree-ssa-dce.c (propagate_necessity): Handle
4959 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4960
29d7200d 49612011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4962
4963 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4964 objc_declare_class.
4965
0c883ef3 49662011-04-14 Richard Guenther <rguenther@suse.de>
4967
4968 * tree.h (get_object_alignment_1): Declare.
4969 * builtins.c (get_object_alignment_1): Split out worker from ...
4970 (get_object_alignment): ... here.
4971 * fold-const.c (get_pointer_modulus_and_residue): Use
4972 get_object_alignment_1.
4973
bd5ba09f 49742011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4975
4976 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4977 type parameter.
4978 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4979 parameter. Generalise code to handle arrays as well as vectors.
4980 (vect_setup_realignment): Update accordingly.
4981 * tree-vect-stmts.c (vectorizable_store): Likewise.
4982 (vectorizable_load): Likewise.
4983
362eeee7 49842011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4985
4986 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4987 within the per-copy loop.
4988
0ffb7cb0 49892011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
ca4943f5 4990
4991 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4992 in the dump file.
4993
0ffb7cb0 49942011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
d98c9552 4995
4996 * doc/options.texi (Negative): Explicitly mention that the
4997 Negative chain must be circular.
4998
2149d019 49992011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5000
5001 * function.h (block_chainon): Declare.
5002 * function.c (block_chainon): Define.
5003
c5be380e 50042011-04-14 Anatoly Sokolov <aesok@post.ru>
f6c74054 5005 Eric Weddington <eric.weddington@atmel.com>
6a0cacf9 5006 Georg-Johann Lay <avr@gjlay.de>
f6c74054 5007
dcab66ec 5008 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
c5be380e 5009 New Includes
5010 (avr_init_builtins, avr_expand_builtin,
5011 avr_expand_delay_cycles, avr_expand_unop_builtin,
5012 avr_expand_binop_builtin ): New functions.
5013 (avr_builtin_id): New enum
5014 (struct avr_builtin_description): New struct
5015 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5016 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
f6c74054 5017
c5be380e 5018 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
f6c74054 5019 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
c5be380e 5020 UNSPECV_DELAY_CYCLES): new enumeration values
5021 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5022 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5023 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5024 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5025 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5026 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5027 "fmulsu"): New insns
f6c74054 5028
c5be380e 5029 * config/avr/avr-c.c: fix line endings
5030 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5031 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5032 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5033 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5034 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
f6c74054 5035
c5be380e 5036 * doc/extend.texi (AVR Built-in Functions): New node
5037 (Target Builtins): Add documentation of AVR
5038 built-in functions.
5039
cb7c66a8 50402011-04-14 Georg-Johann Lay <avr@gjlay.de>
5041
5042 PR target/44643
5043 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5044 alone. Error if non-const data has attribute progmem.
5045
d39db554 50462011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5047
5048 * tree.h (struct tree_constructor): Include tree_typed instead of
5049 tree_common.
5050 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5051 TS_TYPED instead of TS_COMMON.
5052
f6c74054 50532011-04-13 Uros Bizjak <ubizjak@gmail.com>
908dc1fc 5054
5055 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5056 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5057 (sse2_psadbw): Merge with *avx_psadbw.
5058 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5059 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5060 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5061 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5062 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5063 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5064 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5065 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5066 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5067 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5068 (ssse3_palignrti): Merge with *avx_palignrti.
5069
acb5ba8c 50702011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5071
5072 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5073 * tree-ssanames.c (fini_ssanames): VEC_free it.
5074 (make_ssa_name_fn): Update for VECness of free_ssanames.
5075 (release_ssa_name, release_dead_ssa_names): Likewise.
5076 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5077 tree_common.
5078 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5079 TS_TYPED instead of TS_COMMON.
5080
30c4e60d 50812011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5082
5083 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5084 statistics_counter_event.
5085 * tree-ssa-copyrename.c (stats): Define.
5086 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5087 statistics_counter_event.
5088 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5089 (bswap_stats, widen_mul_stats): Define.
5090 (insert_reciprocals): Increment rdivs_inserted.
5091 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5092 rfuncs_inserted. Add calls to statistics_counter_event.
5093 (execute_cse_sincos_1): Increment inserted.
5094 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5095 statistics_counter_event.
5096 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5097 of bswap_stats. Add calls to statistics_counter_event.
5098 (convert_mult_to_widen): Increment widen_mults_inserted.
5099 (convert_plusminus_to_widen): Increment maccs_inserted.
5100 (convert_mult_to_fma): Increment fmas_inserted.
5101 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5102 calls to statistics_counter_event.
5103
ca8cd143 51042011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5105
5106 PR rtl-optimization/48455
5107 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5108 `temp_costs->mem_cost'.
5109
99c67f24 51102011-04-13 Jan Hubicka <jh@suse.cz>
5111
5112 * ipa-inline.h: New file.
5113 * ipa-inline-analysis.c: New file. Broken out of ...
5114 * ipa-inline.c: ... this file; update toplevel comment;
5115 include ipa-inline.h
5116 (inline_summary): Move to ipa-inline.h
5117 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5118 ipa-inline-analysis.c.
19410918 5119 (cgraph_estimate_time_after_inlining): Rename to
5120 estiamte_time_after_inlining; move to ipa-inline-analysis.c
99c67f24 5121 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5122 to estimate_edge_growth.
5123 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5124 rename to estimate_size_after_inlining.
5125 (cgraph_mark_inline_edge): Update for new naming convention.
5126 (cgraph_check_inline_limits): Likewise.
5127 (cgraph_edge_badness): Likewise.
5128 (cgraph_decide_recursive_inlining): Likewise.
5129 (cgraph_decide_inlining_of_small_functions): Likewise.
5130 (cgraph_decide_inlining_incrementally): Likewise.
19410918 5131 (cgraph_estimate_growth): Rename to estimate_growth; move to
5132 ipa-inline-analysis.c.
99c67f24 5133 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5134 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5135 (compute_inline_parameters): Likewise.
5136 (compute_inline_parameters_for_current): Likewise.
5137 (pass_inline_parameters): Likewise.
5138 (inline_indirect_intraprocedural_analysis): Likewise.
5139 (analyze_function): Rename to inline_analyze_function; likewise.
5140 (add_new_function): Move to ipa-inline-analysis.c.
5141 (inline_generate_summary): Likewise.
5142 (inline_read_summary): Likewise.
5143 (inline_write_summary): Likewise.
5144 * Makefile.in (ipa-inline-analysis.c): New file.
5145
dc360156 51462011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5147
5148 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5149 * configure: Regenerate.
5150
189737d2 51512011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5152
5153 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5154 instead of tree_common.
5155 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5156 Likewise.
5157 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5158 TS_TYPED rather than TS_COMMON.
5159 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5160
b76e3d4f 51612011-04-01 Georg-Johann Lay <avr@gjlay.de>
5162
5163 PR target/45263
8a59320f 5164 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5165 r20 around calls of __tablejump_elpm__
b76e3d4f 5166
0f94f46b 51672011-04-13 Jakub Jelinek <jakub@redhat.com>
5168
5169 PR middle-end/48591
5170 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5171 NULL.
5172 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5173
8c72aae9 51742011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5175
5176 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5177 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5178 (cfi_vec): New typedef.
5179 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5180 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5181 (cie_cfi_vec): New static variable.
5182 (cie_cfi_head): Delete.
5183 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5184 declaration changed. Use vector rather than list operations.
5185 (new_cfi): Don't initialize the dw_cfi_next field.
5186 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5187 rather than list operations.
5188 (lookup_cfa): Use vector rather than list operations.
5189 (output_cfis): New argument upto. Accept a cfi_vec rather than
5190 a dw_cfi_ref list head as argument. All callers changed.
5191 Iterate over the vector using upto as a maximum index.
5192 (output_all_cfis): New static function.
5193 (output_fde): Use vector rather than list operations. Use the
5194 new upto argument for output_cfis rather than manipulating a
5195 list.
5196 (dwarf2out_begin_prologue): Change initializations to match
5197 new struct members.
5198 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5199 from the vector length rather than searching for the end of a list.
5200 Use output_all_cfis.
5201 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5202
4d58347f 52032011-04-13 Nick Clifton <nickc@redhat.com>
5204
5205 * config/rx/rx.md (movmemsi): Do not use this pattern when
5206 volatile pointers are involved.
5207
b11a97b3 52082011-04-13 Uros Bizjak <ubizjak@gmail.com>
5209
5210 * config/i386/sse.md (pinsrbits): Remove.
5211 (sse2_packsswb): Merge with *avx_packsswb.
5212 (sse2_packssdw): Merge with *avx_packssdw.
5213 (sse2_packuswb): Merge with *avx_packuswb.
5214 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5215 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5216 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5217 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5218 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5219 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5220 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5221 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5222 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5223 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5224 (sse2_loadld): Merge with *avx_loadld.
5225 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5226 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5227 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5228 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5229 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5230
9b88d08d 52312011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5232
5233 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5234 calling TREE_CHAIN.
5235 * print-tree.c (print_node): Likewise.
5236 * tree-inline.c (copy_tree_r): Likewise.
5237 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5238 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5239 instead of TS_COMMON.
5240 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5241 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5242 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5243 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5244 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5245 ...and these...
5246 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5247 * tree.h: ...here.
5248 (TREE_CHAIN): Check for a TS_COMMON structure.
5249 (TREE_TYPE): Check for a TS_TYPED structure.
5250
6a0cacf9 52512011-04-12 Pat Haugen <pthaugen@us.ibm.com>
190add86 5252
5253 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5254 cgraph_get_create_node instead of cgraph_node.
5255
4185cf58 52562011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5257
5258 * c-parser.c (c_parser_initelt): Updated call to
5259 objc_build_message_expr.
5260 (c_parser_postfix_expression): Likewise.
5261
99e7ad2e 52622011-04-12 Kai Tietz <ktietz@redhat.com>
5263
5264 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5265 MASK_MS_BITFIELD_LAYOUT bit.
5266
41b4f8f9 52672011-04-12 Jakub Jelinek <jakub@redhat.com>
5268
5269 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5270 assert it is always true.
5271 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5272 moves.
5273
05ca272f 52742011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5275
5276 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5277 compiling Objective-C to be more efficient.
5278
6c6c6ebd 52792011-04-12 Axel Freyn <axel-freyn@gmx.de>
5280
5281 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5282 argv_copied.
5283
50c0c258 52842011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5285
5286 * recog.h, genoutput.c, optabs.c: Revert last patch.
5287
458a8706 52882011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5289
908dc1fc 5290 PR target/48090
5291 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
458a8706 5292
9ee2b2ff 52932011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5294
5295 * recog.h (insn_operand_data): Add an "allows_mem" field.
5296 * genoutput.c (output_operand_data): Initialize it.
5297 * optabs.c (maybe_legitimize_operand_same_code): New function.
5298 (maybe_legitimize_operand): Use it when matching the original
5299 op->value.
5300
5d592141 53012011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5302
5303 * genpreds.c (process_define_predicate): Move most processing
5304 to gensupport.c. Continue to validate the expression.
5305 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5306 (process_define_predicate): Move processing to gensupport.c.
5307 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5308 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5309 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5310 argument.
5311 (valid_predicate_name_p): New function, split out from old
5312 genpreds.c:process_define_predicate.
5313 (process_define_predicate): New function, combining code from
5314 old genpreds.c and genrecog.c functions.
5315 (process_rtx): Call it for DEFINE_PREDICATE and
5316 DEFINE_SPECIAL_PREDICATE.
5317
e5bf7a7a 53182011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5319
5320 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5321 size of a '%A' memory reference.
5322 (T_DREG, T_QREG): New neon_builtin_type_bits.
5323 (arm_init_neon_builtins): Assert that the load and store operands
5324 are neon_struct_operands.
5325 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5326 (NEON_ARG_MEMORY): New builtin_arg.
5327 (neon_dereference_pointer): New function.
5328 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5329 Handle NEON_ARG_MEMORY.
5330 (arm_expand_neon_builtin): Update after above interface changes.
5331 Use NEON_ARG_MEMORY for loads and stores.
5332 * config/arm/predicates.md (neon_struct_operand): New predicate.
5333 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5334 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5335 (V_four_elem): Tweak formatting.
5336 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5337 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5338 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5339 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5340 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5341 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5342 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5343 Use %A in the output template.
5344 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5345 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5346 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5347 the width of the memory access. Remove post-increment.
5348 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5349
f213ed3d 53502011-04-12 Nick Clifton <nickc@redhat.com>
5351
5352 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5353 instruction for interrupt handlers if the target is the basic V850
5354 architecture.
5355 (expand_epilogue): Likewise.
5356
618d6675 53572011-04-12 Jakub Jelinek <jakub@redhat.com>
5358
5359 PR rtl-optimization/48549
5360 * combine.c (propagate_for_debug): Also stop after BB_END of
5361 this_basic_block. Process LAST and just stop processing after it.
5362 (combine_instructions): If last_combined_insn has been deleted,
5363 set last_combined_insn to its PREV_INSN.
5364
39f59e65 53652011-04-12 Richard Guenther <rguenther@suse.de>
5366
5367 PR tree-optimization/46076
5368 * gimple.h (struct gimple_statement_call): Add fntype field.
5369 (gimple_call_fntype): Adjust.
5370 (gimple_call_set_fntype): New function.
5371 * gimple.c (gimple_build_call_1): Set the call function type.
5372 * gimplify.c (gimplify_call_expr): Preserve the function
5373 type the frontend used for the call.
5374 (gimplify_modify_expr): Likewise.
5375 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5376 function type.
5377 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5378 function type.
5379 * tree-ssa.c (useless_type_conversion_p): Function pointer
5380 conversions are useless.
5381
5a90471f 53822011-04-12 Martin Jambor <mjambor@suse.cz>
5383
5384 * cgraph.h (cgraph_node): Remove function declaration.
5385 (cgraph_create_node): Declare.
5386 (cgraph_get_create_node): Likewise.
5387 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5388 Updated all callers.
5389 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5390 the decl does not already exist. Call cgraph_get_create_node instead
5391 of cgraph_node.
5392 (cgraph_get_create_node): New function.
5393 (cgraph_same_body_alias): Update comment.
5394 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5395 assert it does not return NULL.
5396 (cgraph_update_edges_for_call_stmt): Likewise.
5397 (cgraph_clone_edge): Likewise.
5398 (cgraph_create_virtual_clone): Likewise.
5399 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5400 instead of cgraph_node.
5401 (cgraph_add_new_function): Call cgraph_create_node or
5402 cgraph_get_create_node instead of cgraph_node.
5403 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5404 instead of cgraph_node.
5405 (record_eh_tables): Likewise.
5406 (mark_address): Likewise.
5407 (mark_load): Likewise.
5408 (build_cgraph_edges): Call cgraph_get_create_node instead
5409 of cgraph_node.
5410 (rebuild_cgraph_edges): Likewise.
5411 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5412 instead of cgraph_node.
5413 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5414 cgraph_node.
5415 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5416 cgraph_create_node instead of cgraph_node.
5417 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5418 of cgraph_node.
5419 * lto-cgraph.c (input_node): Likewise.
5420 * lto-streamer-in.c (input_function): Likewise.
5421 * varasm.c (mark_decl_referenced): Likewise.
5422 (assemble_alias): Likewise.
5423
53f79206 54242011-04-12 Martin Jambor <mjambor@suse.cz>
5425
5426 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5427 instead of cgraph_node and assert it does not return NULL.
5428 * lto-streamer-in.c (lto_read_body): Likewise.
5429 * omp-low.c (new_omp_context): Likewise.
5430 (create_task_copyfn): Likewise.
5431 * tree-emutls.c (lower_emutls_function_body): Likewise.
5432 * matrix-reorg.c (transform_allocation_sites): Likewise.
5433
ef31075b 54342011-04-12 Jakub Jelinek <jakub@redhat.com>
5435
5436 PR c/48552
5437 * c-typeck.c (build_asm_expr): Error out on attempts to use
5438 void type outputs or inputs for constraints that allow reg or
5439 don't allow memory.
5440
06adefdc 54412011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5442 Richard Earnshaw <rearnsha@arm.com>
5443
5444 PR target/48250
5445 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5446 to use sign-magnitude offsets. Reject unsupported unaligned
5447 cases. Add detailed description in comments.
5448 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5449 condition from TARGET_32BIT to TARGET_ARM.
5450
1646aa85 54512011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5452
5453 * tree.h (struct typed_tree): New.
5454 (struct tree_common): Include it instead of tree_base.
5455 (TREE_TYPE): Update for new location of type field.
5456 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5457 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5458 (union tree_node): Add typed field.
5459 * treestruct.def (TS_TYPED): New.
5460 * lto-streamer.c (check_handled_ts_structures): Handle it.
5461 * tree.c (MARK_TS_TYPED): New macro.
5462 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5463
895fb8da 54642011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5465
5466 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5467 (force_nonfallthru): Do not alter the loop nest if no basic block
5468 was created.
5469
54702011-04-11 Uros Bizjak <ubizjak@gmail.com>
ba2558f8 5471
5472 * config/i386/sse.md (VI): New mode iterator.
5473 (SSEMODEI): Remove.
5474 (AVX256MODEI): Ditto.
5475 (AVXMODEF4P): Ditto.
5476 (avxvecpsmode): Ditto.
5477 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5478 (sse2_andnot<mode>3): New expander.
5479 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5480 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5481 (<any_logic:code><mode>3): Use VI mode iterator.
5482 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5483 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5484 (*andnottf3): Handle AVX three-operand constraints.
5485 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5486
153d662d 54872011-04-11 Joseph Myers <joseph@codesourcery.com>
ba2558f8 5488 Robert Millan <rmh@gnu.org>
153d662d 5489
5490 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5491 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5492 GNU_USER_DYNAMIC_LINKER64): Define.
5493 (REG_NAME): Don't undefine.
5494 (MD_UNWIND_SUPPORT): Undefine.
5495 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5496 (REG_NAME): Don't undefine.
5497 (MD_UNWIND_SUPPORT): Undefine.
ba2558f8 5498 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
153d662d 5499
00049821 55002011-04-11 Joseph Myers <joseph@codesourcery.com>
5501
5502 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5503 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5504
850ff64c 55052011-04-11 Xinliang David Li <davidxl@google.com>
5506
5507 * value-profile.c (check_ic_target): New function.
5508 (gimple_ic_transform): Sanity check indirect call target.
5509 * gimple-low.c (gimple_check_call_args): Interface change.
5510 (gimple_check_call_matching_types): New function.
5511 * tree-inline.c (tree_can_inline_p): Call new function.
6e9b96ec 5512
55132011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5514
5515 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5516 tree-pretty-print.h & realmpfr.h.
5517
bc9b5bdf 55182011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5519
5520 PR middle-end/48464
5521 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5522 (setup_allocno_and_important_classes): Ditto.
5523
493a87fa 55242011-04-11 Joseph Myers <joseph@codesourcery.com>
5525
5526 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5527 GNU_USER_DYNAMIC_LINKER.
5528 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5530 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5531 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5532 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5533 GNU_USER_TARGET_OS_CPP_BUILTINS.
5534 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5535 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5536 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5537 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5538 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5539 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5540 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5541 GNU_USER_TARGET_OS_CPP_BUILTINS.
5542 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5543 GNU_USER_DYNAMIC_LINKER.
5544 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5545 GNU_USER_TARGET_OS_CPP_BUILTINS.
5546 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5547 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5548 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5549 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5550 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5551 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5552 GNU_USER_DYNAMIC_LINKER64): Remove.
5553 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5554 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5555 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5556 GNU_USER_DYNAMIC_LINKER.
5557 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5558 GNU_USER_TARGET_OS_CPP_BUILTINS.
5559 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5560 GNU_USER_TARGET_OS_CPP_BUILTINS.
5561 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5562 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5563 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5564 GNU_USER_TARGET_OS_CPP_BUILTINS.
5565 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5566 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5567 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5568 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5569 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5570 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5571 GNU_USER_DYNAMIC_LINKER.
5572 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5573 GNU_USER_TARGET_OS_CPP_BUILTINS.
5574 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5575 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5576 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5577 GNU_USER_DYNAMIC_LINKER.
5578 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5580 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5581 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5582 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5583 GNU_USER_DYNAMIC_LINKER.
5584 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5585 GNU_USER_DYNAMIC_LINKERN32.
5586 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5587 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5588 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5589 GNU_USER_DYNAMIC_LINKER32.
5590 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5592 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5593 GNU_USER_DYNAMIC_LINKER.
5594 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5595 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5596 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5597 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
ba2558f8 5598 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
493a87fa 5599 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5600 GNU_USER_DYNAMIC_LINKER32.
5601 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5602 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5603 GNU_USER_DYNAMIC_LINKER.
5604 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5605 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5606 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5607 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5608 GNU_USER_DYNAMIC_LINKER64.
5609 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5610 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5611 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5612 GNU_USER_DYNAMIC_LINKER.
5613 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5614 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5615 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5616 GNU_USER_DYNAMIC_LINKER.
5617 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5618 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5619 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5620 GNU_USER_DYNAMIC_LINKER32.
5621 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5622 GNU_USER_DYNAMIC_LINKER64.
5623 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5624 GNU_USER_DYNAMIC_LINKER64.
5625 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5626 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5627 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
ba2558f8 5629 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
493a87fa 5630
059631af 56312011-04-11 Joseph Myers <joseph@codesourcery.com>
5632
5633 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5634 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5635 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5636 GNU_USER_DYNAMIC_LINKER.
5637 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5638 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5639 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5640 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5641 GNU_USER_DYNAMIC_LINKER64.
5642 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5643 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5644 GNU_USER_LINK_EMULATION.
5645 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5646 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5647 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5648 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5649 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5650 CPP_SPEC, CC1_SPEC): Remove.
5651 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5652 (GNU_USER_DYNAMIC_LINKER): Define.
5653 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5654 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5655 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5656 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5657 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5658 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5659 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5660 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5661 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5662 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5663 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5664 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5665 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5666 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5667 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5668 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5669 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5670 GNU_USER_DYNAMIC_LINKER.
5671 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5672 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5673 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5674 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5675 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5676 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5677 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5678 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5679 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
ba2558f8 5680 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
059631af 5681
31db4638 56822011-04-11 Kai Tietz <ktietz@redhat.com>
5683
5684 PR target/9601
5685 PR target/11772
5686 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5687 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5688 comment.
5689 (ix86_is_msabi_thiscall): Removed.
5690 (ix86_is_type_thiscall): Likewise.
5691 (ix86_get_callcvt): New function.
5692 (ix86_comp_type_attributes): Simplify check.
5693 (ix86_function_regparm): Use ix86_get_callcvt for calling
5694 convention attribute checks.
5695 (ix86_return_pops_args): Likewise.
5696 (ix86_static_chain): Likewise.
5697 (x86_this_parameter): Likewise.
5698 (x86_output_mi_thunk): Likewise.
5699 (ix86_function_type_abi): Optimize check for types without attributes.
5700 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5701 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5702 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5703 by flag-values.
5704 (IX86_BASE_CALLCVT): Helper macro.
5705 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5706 Use ix86_get_callcvt for calling convention attribute checks and avoid
5707 symbol-decoration for stdcall in TARGET_RTD case.
5708 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5709 Likewise.
5710 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5711 for declaration.
5712
d8f82f6b 57132011-04-11 Uros Bizjak <ubizjak@gmail.com>
5714
5715 * config/i386/sse.md (VI_128): New mode iterator.
5716 (VI12_128): Rename from SSEMODE12.
5717 (VI14_128): Rename from SSEMODE14.
5718 (VI124_128): New mode iterator.
5719 (VI24_128): Rename from SSEMODE248.
5720 (VI248_128): Rename from SSEMODE248.
5721 (SSEMODE124C8): Remove.
5722 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5723 (*sse2_<plusminus_insn><mode>3): Merge with
5724 *avx_<plusminus_insn><mode>3.
5725 (*mulv8hi3): Merge with *avx_mulv8hi3.
5726 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5727 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5728 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5729 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5730 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5731 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5732 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5733 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5734 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5735 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5736 (*<smaxmin:code>v8hi3): Ditto.
5737 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5738 (*<smaxmin:code>v16qi3): Ditto.
5739 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5740 (*sse2_eq<mode>3): Ditto.
5741 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5742 (*sse2_gt<mode>3): Ditto.
5743 (vcondv2di): Split out of vcond<mode>.
5744 (vconduv2di): Split out of vcondu<mode>.
5745
22eb3302 57462011-04-11 Richard Guenther <rguenther@suse.de>
5747
5748 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5749 before calling tree_low_cst.
5750
783bb57e 57512011-04-11 Richard Guenther <rguenther@suse.de>
5752
5753 * stor-layout.c (layout_type): Compute all array index size operations
5754 in the original type.
5755 (initialize_sizetypes): Add comment.
5756 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5757
69304750 57582011-04-11 Joseph Myers <joseph@codesourcery.com>
5759
5760 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5761
924de091 57622011-04-11 Martin Jambor <mjambor@suse.cz>
5763
5764 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5765 of cgraph_node, handle NULL return value.
5766 (cgraph_global_info): Likewise.
5767 (cgraph_rtl_info): Likewise.
5768 * tree-inline.c (estimate_num_insns): Likewise.
5769 * gimplify.c (unshare_body): Likewise.
5770 (unvisit_body): Likewise.
5771 (gimplify_body): Likewise.
5772 * predict.c (optimize_function_for_size_p): Likewise.
5773 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5774 (call_may_clobber_ref_p_1): Likewise.
5775 * varasm.c (function_section_1): Likewise.
5776 (assemble_start_function): Likewise.
5777
fd6a3c41 57782011-04-11 Martin Jambor <mjambor@suse.cz>
5779
5780 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5781 of cgraph_node.
5782 * final.c (rest_of_clean_state): Likewise.
5783 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5784 * passes.c (pass_init_dump_file): Likewise.
5785 (execute_all_ipa_transforms): Likewise.
5786 (function_called_by_processed_nodes_p): Likewise.
5787 * predict.c (maybe_hot_frequency_p): Likewise.
5788 (probably_never_executed_bb_p): Likewise.
5789 (compute_function_frequency): Likewise.
5790 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5791 (unnest_nesting_tree_1): Likewise.
5792 (lower_nested_functions): Likewise.
5793 * tree-optimize.c (execute_fixup_cfg): Likewise.
5794 (tree_rest_of_compilation): Likewise.
5795 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5796 * tree-sra.c (ipa_early_sra): Likewise.
5797 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5798 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5799 * ipa.c (record_cdtor_fn): Likewise.
5800 * ipa-inline.c (cgraph_early_inlining): Likewise.
5801 (compute_inline_parameters_for_current): Likewise.
5802 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5803 * ipa-pure-const.c (local_pure_const): Likewise.
5804 * ipa-split.c (split_function): Likewise.
5805 (execute_split_functions): Likewise.
5806 * cgraphbuild.c (build_cgraph_edges): Likewise.
5807 (rebuild_cgraph_edges): Likewise.
5808 (cgraph_rebuild_references): Likewise.
5809 (remove_cgraph_callee_edges): Likewise.
5810 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5811 (verify_cgraph_node): Likewise.
5812 (cgraph_analyze_functions): Likewise.
5813 (cgraph_preserve_function_body_p): Likewise.
5814 (save_inline_function_body): Likewise.
5815 (save_inline_function_body): Likewise.
5816 * tree-inline.c (copy_bb): Likewise.
5817 (optimize_inline_calls): Likewise.
5818
6416d4a5 58192011-04-11 Martin Jambor <mjambor@suse.cz>
5820
5821 PR tree-optimization/48195
5822 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5823 ipa_check_create_edge_args.
5824 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5825 ipa_check_create_edge_args.
5826 * ipa-inline.c (inline_generate_summary): Do not call
5827 ipa_check_create_node_params and ipa_check_create_edge_args.
5828 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5829 ipa_check_create_edge_args.
5830
d82cf2b2 58312011-04-09 Anatoly Sokolov <aesok@post.ru>
5832
5833 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5834 instead of loop.
5835 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5836 * function.c (record_hard_reg_sets): Likewise.
5837 * ira.c (compute_regs_asm_clobbered): Likewise.
5838 * sched-deps.c (sched_analyze_1): Likewise.
5839 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5840
69c7c3a1 58412011-04-09 Xinliang David Li <davidxl@google.com>
5842
5843 PR tree-optimization/PR48484
5844 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5845 has_valid_pred lazily
5846
33672307 58472011-04-09 Duncan Sands <baldrick@free.fr>
5848
5849 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5850
1aaffeb7 58512011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5852
5853 * combine.c (combine_validate_cost): Adjust comments. Set registered
5854 cost of I0 to zero at the end, if any.
5855
71320908 58562011-04-08 Xinliang David Li <davidxl@google.com>
5857
1aaffeb7 5858 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5859 to insane profile data.
71320908 5860
8154e1e3 58612011-04-08 Xinliang David Li <davidxl@google.com>
5862
5863 * ipa-cp.c (ipcp_update_profiling): Correct
5864 negative scale factor due to insane profile data.
5865
33e4567d 58662011-04-08 Xinliang David Li <davidxl@google.com>
5867
5868 * final.c (dump_basic_block_info): New function.
5869 (final): Dump basic block.
5870 (final_scan_insn): Remove old dump.
5871
8ea84229 58722011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5873
1aaffeb7 5874 PR target/47829
5875 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5876 crtbegin/crtend.
8ea84229 5877
409e049a 58782011-04-08 Michael Matz <matz@suse.de>
5879
5880 PR middle-end/48389
5881 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5882 functions.
5883 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5884 * rtl.h (rebuild_jump_labels_chain): Declare.
5885 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5886 insns inserted on edges.
5887
9a4818f1 58882011-04-08 Joseph Myers <joseph@codesourcery.com>
5889
5890 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5891 * config/arm/arm-arches.def: New.
5892 * config/arm/arm-opts.h: New.
5893 * config/arm/genopt.sh: New.
5894 * config/arm/arm-tables.opt: New (generated).
5895 * config/arm/arm.c (arm_handle_option, arm_target_help,
5896 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5897 (all_architectures): Get most table contents from arm-arches.def.
5898 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5899 arm_selected_tune here.
5900 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5901 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5902 (march=, mcpu=, mtune=): Use Enum and Var.
5903 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5904 (arm.o): Update dependencies.
db012761 5905
409e049a 59062011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
db012761 5907
5908 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5909 of header_file.
5910 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5911 (write_typed_alloc_defns): Likewise.
5912 (main): Calls write_typed_alloc_defns with output_header.
5913
1dceb3f2 59142011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5915
1aaffeb7 5916 PR inline-asm/48435
1dceb3f2 5917 * ira-color.c (setup_profitable_hard_regs): Add comments.
5918 Don't take prohibited hard regs into account.
5919 (setup_conflict_profitable_regs): Rename to
5920 get_conflict_profitable_regs.
5921 (check_hard_reg_p): Check prohibited hard regs.
5922
f2606961 59232011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5924
5925 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5926 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5927 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5928
5ddb2975 59292011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5930
5931 PR target/48366
5932 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
c063d2da 5933 move from floating point to shift amount register.
5ddb2975 5934 (emit_move_sequence): Remove secondary reload support for floating
5935 point to shift amount amount register copies.
5936 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5937 amount register copies.
5938 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5939 register, return false if mode isn't a scalar integer mode.
5940 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5941
d71dc717 59422011-04-08 Richard Guenther <rguenther@suse.de>
5943
5944 * gimple.c (gimple_call_flags): Remove kludge.
5945
a060ed03 59462011-04-08 Alexander Monakov <amonakov@ispras.ru>
5947
5948 * sel-sched.c (sel_region_init): Move call to
5949 sel_setup_region_sched_flags after setup_current_loop_nest.
5950
c15d7785 59512011-04-08 Andrey Belevantsev <abel@ispras.ru>
5952
5953 PR rtl-optimization/48272
c15d7785 5954 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5955 init_insn_reg_pressure_info. Adjust a caller.
5956 * sched-int.h (init_insn_reg_pressure_info): Declare.
5957 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5958 when sched-pressure is enabled.
5959
e1f47fd3 59602011-04-08 Richard Guenther <rguenther@suse.de>
5961
5962 * gimple.c (gimple_set_modified): Do not queue calls to
5963 MODIFIED_NORETURN_CALLS here ...
5964 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5965
f463da94 59662011-04-08 Richard Guenther <rguenther@suse.de>
5967
5968 PR lto/48467
5969 * toplev.c (lang_dependent_init): Do not open asm_out_file
5970 in WPA mode, nor perform debug machinery initialization.
5971 (finalize): Do not unlink asm_out_file in WPA mode.
5972
2de00a2d 59732011-04-08 Richard Guenther <rguenther@suse.de>
5974
5975 * gimple.h (gimple_call_fntype): New function.
5976 (gimple_call_return_type): Use it.
5977 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5978 * gimple-low.c (gimple_check_call_args): Likewise.
5979 * gimple.c (gimple_call_flags): Likewise.
5980 (gimple_call_arg_flags): Likewise.
5981 (gimple_call_return_flags): Likewise.
5982 * tree-cfg.c (verify_gimple_call): Likewise.
5983 (do_warn_unused_result): Likewise.
5984 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5985 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5986
8ff642e9 59872011-04-08 Dmitry Melnik <dm@ispras.ru>
5988
5989 PR rtl-optimization/48235
5990 * sel-sched.c (code_motion_process_successors): Recompute the last
5991 insn in basic block if control flow changed.
5992 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5993 Update condition for ilist_remove.
5994
b73edd22 59952011-04-08 Alexander Monakov <amonakov@ispras.ru>
5996
5997 PR rtl-optimization/48302
5998 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5999 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6000 it to record added preheader blocks.
6001 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6002 on to sel_add_loop_preheaders.
6003 (sel_region_init): Move call to setup_current_loop_nest after
6004 sel_init_bbs.
6005
a8d6ade3 60062011-04-08 Alexander Monakov <amonakov@ispras.ru>
6007
6008 PR target/48273
6009 * cfgloop.h (loop_has_exit_edges): New helper.
6010 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6011 non-clonable.
6012 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6013 that have no exit edges.
6014
def66588 60152011-04-08 Alexander Monakov <amonakov@ispras.ru>
6016
6017 PR rtl-optimization/48442
6018 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6019 all callers. Adjust assert.
6020
570e2049 60212011-04-08 Jakub Jelinek <jakub@redhat.com>
6022
6023 PR tree-optimization/48377
6024 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6025 is_packed to true even for types with smaller TYPE_ALIGN than
6026 TYPE_SIZE.
6027
707b84a3 60282011-04-08 Richard Guenther <rguenther@suse.de>
6029
6030 PR bootstrap/48513
6031 * doc/tm.texi: Re-generate.
6032
08508cbf 60332011-04-08 Wei Guozhi <carrot@google.com>
6034
6035 PR target/47855
6036 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6037 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6038 * config/arm/arm.md (*push_multi): Change the length computation to
6039 call a C function.
6040
fa8d6f0f 60412011-04-08 Anatoly Sokolov <aesok@post.ru>
6042
6043 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6044 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6045 * doc/tm.texi: Regenerate.
6046 * system.h (ASM_OUTPUT_BSS): Poison.
6047 * varasm.c (asm_output_bss): Remove function.
6048 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
d8f82f6b 6049
fa8d6f0f 6050 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6051 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6052 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6053 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6054 Likewise.
6055 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6056 Likewise.
6057 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6058 Likewise.
6059 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6060
8f139ed9 60612011-04-07 Joseph Myers <joseph@codesourcery.com>
6062
6063 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6064 EnumValue lines.
6065
17e4f171 60662011-04-07 Joseph Myers <joseph@codesourcery.com>
6067
6068 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6069 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6070 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6071 OPT_mcpu32.
6072 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6073 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6074 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6075 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6076 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6077 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6078 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6079 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6080 options. Don't map other m68k options manually. Don't handle
6081 old-style options as canonical.
6082 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
d8f82f6b 6083 * doc/install.texi (m68k-*-*): Document binutils version requirement.
17e4f171 6084
202bbc06 60852011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6086
6087 * basic-block.h (force_nonfallthru): Move to...
6088 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6089 (force_nonfallthru): ...here.
6090 * cfghooks.c (force_nonfallthru): New function.
6091 * cfgrtl.c (force_nonfallthru): Rename into...
6092 (rtl_force_nonfallthru): ...this.
6093 (commit_one_edge_insertion): Do not set AUX field.
6094 (commit_edge_insertions): Do not discover new basic blocks.
6095 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6096 (cfg_layout_rtl_cfg_hooks): Likewise.
6097 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6098 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6099 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6100
91d92c6c 61012011-04-07 Anatoly Sokolov <aesok@post.ru>
6102
6103 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6104 Remove macros.
6105
45c0368c 61062011-04-07 Uros Bizjak <ubizjak@gmail.com>
6107
6108 * config/i386/sse.md: Update copyright year.
6109 (avxcvtvecmode): Remove.
6110 (sse_movhlps): Merge with *avx_movhlps.
6111 (sse_movlhps): Merge with *avx_movlhps.
6112 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6113 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6114 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6115 (sse_loadhps): Merge with *avx_loadhps.
6116 (sse_storelps): Merge with *avx_storelps.
6117 (sse_loadlps): Merge with *avx_loadlps.
6118 (sse_movss): Merge with *avx_movss.
6119 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6120 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6121 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6122 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6123 (vec_set<mode>_0): Ditto.
6124 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6125 (sse4_1_insertps): Merge with *avx_insertps.
6126 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6127 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6128 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6129 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6130 (sse2_storehpd): Merge with *avx_storehpd.
6131 (sse2_loadhpd): Merge with *avx_loadhpd.
6132 (sse2_loadlpd): Merge with *avx_loadlpd.
6133 (sse2_movsd): Merge with *avx_movsd.
6134 (*vec_concatv2df): Merge with *vec_concatv2df.
6135
0444b5eb 61362011-04-07 Jakub Jelinek <jakub@redhat.com>
6137
6138 PR debug/48343
6139 * combine.c (combine_instructions): Add last_combined_insn,
45c0368c 6140 update it if insn is after it, pass it to all try_combine calls.
0444b5eb 6141 (try_combine): Add last_combined_insn parameter, pass it instead of
6142 i3 to propagate_for_debug.
6143
45c0368c 61442011-04-07 Nick Clifton <nickc@redhat.com>
23add660 6145
6146 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6147 to handle MDR <-> data register transfers.
6148 (movhi_internal): Likewise.
6149
1994bf18 61502011-04-07 Alan Modra <amodra@gmail.com>
6151
6152 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6153 previous stack info.
6154
0f38cfdd 61552011-04-07 Tom de Vries <tom@codesourcery.com>
6156
6157 PR target/43920
6158 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6159 flow_find_cross_jump. Swap variables to implement backward replacement.
6160 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6161
4ef44dfa 61622011-04-07 Tom de Vries <tom@codesourcery.com>
6163
6164 PR target/43920
6165 * cfgcleanup.c (walk_to_nondebug_insn): New function.
45c0368c 6166 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6167 and bb2.
6168 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6169 src1 or src2. Redirect edges to the last basic block. Update
6170 frequency and count on multiple basic blocks in case of fallthru.
4ef44dfa 6171
764aef11 61722011-04-07 Tom de Vries <tom@codesourcery.com>
6173
6174 PR target/43920
6175 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6176 function.
45c0368c 6177 (old_insns_match_p): Change return type. Replace return false/true
6178 with return dir_none/dir_both. Use can_replace_by.
6179 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6180 direction from dir_p. Register replacement direction in dir, last_dir
6181 and afterlast_dir. Handle new return type of old_insns_match_p using
764aef11 6182 merge_dir. Return replacement direction in dir_p.
6183 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6184 return type of old_insns_match_p.
6185 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6186 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6187 flow_find_cross_jump.
6188 * basic-block.h (enum replace_direction): New type.
6189 (flow_find_cross_jump): Add parameter to declaration.
6190
887423c0 61912011-04-06 Uros Bizjak <ubizjak@gmail.com>
6192
6193 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6194 (AVXMODEDCVTPS2DQ): Ditto.
6195 (VEC_FLOAT_MODE): Ditto.
6196 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6197 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6198 (<any_logic:code><mode>3): Use VF mode iterator.
6199 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6200 Use VF mode iterator.
6201 (copysign<mode>3): Use VF mode iterator.
6202 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6203 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6204 (*<any_logic:code><MODEF:mode>3): Merge with
6205 *avx_<any_logic:code><MODEF:mode>3.
6206 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6207 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6208 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6209 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6210 (sse2_cvtdq2ps): Use %v modifier.
6211 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6212 (avx_cvtps2dq<avxmodesuffix>): Remove.
6213 (sse2_cvtps2dq): Use %v modifier.
6214 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6215 (avx_cvttps2dq<avxmodesuffix>): Remove.
6216 (sse2_cvttps2dq): Use %v modifier.
6217 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6218 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6219 (sse2_cvtsd2siq): Fix insn template.
6220 (sse2_cvtsd2siq_2): Ditto.
6221 (sse2_cvttsd2siq): Ditto.
6222 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6223 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6224
cf09cacb 62252011-04-06 Joseph Myers <joseph@codesourcery.com>
6226
6227 * gcov-io.c: Use GCC Runtime Library Exception.
6228
9410ca1e 62292011-04-06 Jakub Jelinek <jakub@redhat.com>
6230
6231 PR debug/48466
6232 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6233 as base_reg whatever register reg has been eliminated to, instead
6234 of hardcoding STACK_POINTER_REGNUM.
6235
c94b1d0e 62362011-04-06 Joseph Myers <joseph@codesourcery.com>
6237
6238 * doc/tm.texi.in: Document C target hooks as separate from general
6239 target hooks.
6240 * doc/tm.texi: Regenerate.
6241 * genhooks.c (struct hook_desc): Add docname field.
6242 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6243 docname field.
6244 (hook_array): Include c-target.def.
6245 (emit_documentation): Use docname field in output.
6246 (emit_init_macros): Take docname argument. Only emit definitions
6247 for hooks matching docname.
6248 (main): Expect additional arguments in all cases. Pass argument
6249 to emit_init_macros.
6250 * target.def: Move initial macro definitions and comments to
6251 target-hooks-macros.h.
6252 (gcc_targetcm): Move to c-family/c-target.def.
6253 * target.h (targetcm): Move declaration to c-family/c-target.h.
6254 * targhooks.c (default_handle_c_option): Move to
6255 c-family/c-opts.c.
6256 * targhooks.h (default_handle_c_option): Move declaration to
6257 c-family/c-common.h.
6258 * target-hooks-macros.h: New file.
6259 * config.gcc (target_has_targetcm): Define and use to add to
6260 c_target_objs and cxx_target_objs.
6261 * config/default-c.c: New file.
6262 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6263 of target.h and target-def.h.
6264 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6265 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6266 darwin_check_cfstring_format_arg): Make static.
6267 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6268 TARGET_STRING_OBJECT_REF_TYPE_P,
6269 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6270 * config/darwin-protos.h (darwin_objc_construct_string,
6271 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6272 declare.
6273 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6274 TARGET_STRING_OBJECT_REF_TYPE_P,
887423c0 6275 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
c94b1d0e 6276 * config/t-darwin (darwin-c.o): Update dependencies.
6277 * system.h (TARGET_HAS_TARGETCM): Poison.
6278 * Makefile.in (TARGET_H): Update.
6279 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6280 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6281 (default-c.o): New target.
6282 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
887423c0 6283 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
c94b1d0e 6284 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6285 c-target.def.
6286 (build/genhooks.o): Update dependencies.
6287
cd800728 62882011-04-06 Richard Guenther <rguenther@suse.de>
887423c0 6289
cd800728 6290 * ipa-inline.c (enum inlining_mode): Remove.
6291 (cgraph_flatten): Use some other token.
6292 (cgraph_edge_early_inlinable_p): New function, split out from ...
6293 (cgraph_perform_always_inlining): New function, split out from ...
6294 (cgraph_decide_inlining_incrementally): ... here.
6295 (cgraph_mark_inline_edge): Adjust.
6296 (cgraph_early_inlining): Re-structure.
6297 (pass_early_inline): Require SSA form.
6298
c6bc553f 62992011-04-06 Andrew Stubbs <ams@codesourcery.com>
d91bf430 6300 Julian Brown <julian@codesourcery.com>
6301 Mark Shinwell <shinwell@codesourcery.com>
6302
6303 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6304 LO_REGS only for Thumb-1.
6305 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6306 be used in short instructions when optimising for size on Thumb-2.
6307
28f9c1a1 63082011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6309
6310 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6311 associated with user returns to be preserved.
6312
96df1423 63132011-04-06 Tristan Gingold <gingold@adacore.com>
6314
c6bc553f 6315 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6316 symbol_queue_size, DBXOUT_DECR_NESTING,
96df1423 6317 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6318 if XCOFF_DEBUGGING_INFO.
6319
27e5502d 63202011-04-06 Uros Bizjak <ubizjak@gmail.com>
6321
6322 * config/i386/i386.md (attribute isa): New.
6323 (attribute enabled): New.
6324 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6325 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6326 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6327 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6328 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6329 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6330 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6331 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6332
6333 * config/i386/sse.md (VF): New mode iterator.
6334 (VF1): Ditto.
6335 (VF2): Ditto.
6336 (VF_128): Ditto.
6337 (SSEMODEF4): Remove.
6338 (attribute sse): Handle V8SF and V4DF modes.
6339 (<absneg:code><mode>2): Use VF mode iterator.
6340 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6341 mode iterator.
6342 (<plusminus_insn><mode>3): Use VF mode iterator.
6343 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6344 Use VF mode iterator.
6345 (<sse>_vm<plusminus_insn><mode>3): Merge with
6346 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6347 (mul<mode>3): Use VF mode iterator.
6348 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6349 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6350 mode iterator.
6351 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6352 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6353 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6354 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6355 mode iterator.
6356 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6357 Use VF1 mode iterator.
6358 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6359 (sqrt<VF2:mode>2): New expander.
6360 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6361 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6362 and sqrtv2df2. Use VF mode iterator.
6363 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6364 mode iterator.
6365 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6366 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6367 Use VF1 mode iterator.
6368 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6369 (<smaxmin:code><mode>3): Use VF mode iterator.
6370 (*<smaxmin:code><mode>3_finite): Merge with
6371 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6372 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6373 (<sse>_vm<smaxmin:code><mode>2): Merge with
6374 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6375 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6376 mode iterator.
6377 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6378 mode iterator.
6379 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6380 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6381 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6382 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6383 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6384 VF mode iterator.
6385 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6386 Use VF_128 mode iterator.
6387 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6388 mode iterator.
6389 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6390 VF_128 mode iterator.
6391 (vcond<mode>): Use VF mode iterator.
6392 * config/i386/predicates.md (sse_comparison_operator): Merge with
6393 avx_comparison_float_operator. Do not declare as special_predicate.
6394 * config/i386/i386.c (struct builtin_description): Update for renamed
6395 compare patterns.
6396 (ix86_expand_args_builtin): Ditto.
6397 (ix86_expand_sse_compare_mask): Ditto.
6398
5ed92cc9 63992011-04-06 Richard Guenther <rguenther@suse.de>
6400
6401 * tree-inline.c (estimate_num_insns): For calls simply account
6402 for all passed arguments and a used return value.
6403
17c205c9 64042011-04-06 Richard Guenther <rguenther@suse.de>
27e5502d 6405
17c205c9 6406 PR tree-optimization/47663
6407 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6408 call_stmt_time fields.
6409 (cgraph_edge_inlinable_p): Declare.
6410 (cgraph_edge_recursive_p): New inline function.
6411 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6412 (cgraph_clone_edge): Copy it.
6413 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6414 Account for call stmt time.
6415 (cgraph_estimate_time_after_inlining): Take edge argument.
6416 (cgraph_estimate_edge_growth): Account call stmt size.
6417 (cgraph_estimate_size_after_inlining): Take edge argument.
6418 (cgraph_mark_inline_edge): Adjust.
6419 (cgraph_check_inline_limits): Likewise.
6420 (cgraph_recursive_inlining_p): Remove.
6421 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6422 (cgraph_decide_recursive_inlining): Take edge argument and
6423 adjust.
6424 (cgraph_decide_inlining_of_small_functions): Do not avoid
6425 diags for recursive inlining here.
6426 (cgraph_flatten): Adjust.
6427 (cgraph_decide_inlining_incrementally): Likewise.
6428 (estimate_function_body_sizes): Remove call cost handling.
6429 (compute_inline_parameters): Initialize caller edge call costs.
6430 (cgraph_estimate_edge_growth): New function.
6431 (cgraph_estimate_growth): Use it.
6432 (cgraph_edge_badness): Likewise.
6433 (cgraph_check_inline_limits): Take an edge argument.
6434 (cgraph_decide_inlining_of_small_functions): Adjust.
6435 (cgraph_decide_inlining): Likewise.
6436 * tree-inline.c (estimate_num_insns): Only account for call
6437 return value if it is used.
6438 (expand_call_inline): Avoid diagnostics on recursive inline
6439 functions here.
6440 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6441 (input_edge): Input edge call costs.
6442
85a30355 64432011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6444
6445 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6446
3df28f22 64472011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6448
6449 * doc/invoke.texi (Spec Files): Fix typo.
6450
b39a37c3 64512011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6452
6453 * profile.c (branch_prob): Move declaration of local variable. Remove
6454 obsolete ??? comment. Expand the location explicitly instead of using
6455 the LOCATION_FILE and LOCATION_LINE macros.
6456
a6864a24 64572011-04-06 Wei Guozhi <carrot@google.com>
6458
6459 PR target/47855
6460 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6461 (arm_cond_branch): Likewise.
6462 (arm_cond_branch_reversed): Likewise.
6463 (arm_jump): Likewise.
6464 (push_multi): Likewise.
6465 * config/arm/constraints.md (Py): New constraint.
6466
7f146d20 64672011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6468
6469 PR bootstrap/48471
6470 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6471 Move these...
6472 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6473 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6474 #ifdef DBX_DEBUGGING_INFO.
6475
2cd04cca 64762011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6477
6478 PR bootstrap/48403
6479 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6480 if old and new states differ.
6481
a6452d58 64822011-04-05 Joseph Myers <joseph@codesourcery.com>
6483
6484 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6485 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6486 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6487 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6488 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6489 mcfv4e): Use Alias.
6490 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6491 ColdFire options to -mcpu= options.
6492
895cf925 64932011-04-05 Jeff Law <law@redhat.com>
6494
6495 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6496 check if BB is a successor of LOOP->header and return
6497 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6498
748fd717 64992011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6500
6501 * cprop.c (struct reg_use): Remove.
6502 (reg_use_table): Make an array of RTX.
6503 (find_used_regs, constprop_register, local_cprop_pass,
6504 bypass_block): Simplify users of reg_use_table.
6505 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6506 on one of the uses found by find_used_regs.
6507
cebe9a67 65082011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6509
6510 PR bootstrap/48469
6511 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6512 declaration.
6513
2415b8ff 65142011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6515
6516 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6517 as an rtx.
6518 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6519
72269ab0 65202011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6521
6522 PR middle-end/48441
6523 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6524
2a0877d8 65252011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6526
6527 * combine.c: Include obstack.h.
6528 (struct insn_link): Define.
6529 (uid_log_links): Adjust type.
6530 (FOR_EACH_LOG_LINK): New macro.
6531 (insn_link_obstack): Declare.
6532 (alloc_insn_link): Define.
6533 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6534 type of link variables.
6535 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6536 (try_combine, record_promoted_values, distribute_notes): Likewise.
6537 (distribute_links): Likewise. Tweak prototype.
6538 (clear_log_links): Delete.
6539 (adjust_for_new_dest): Call alloc_insn_link.
6540 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6541
577cca34 65422011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6543
6544 * gcse.c (modify_mem_list): Convert to an array of VECs.
6545 (canon_modify_mem_list, compute_transp): Tweak formatting.
6546 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6547 (load_killed_in_block_p): Likewise.
6548 (record_last_mem_set_info): Likewise.
6549 (clear_modify_mem_tables): Likewise.
6550
bcf58f16 65512011-04-05 Tom de Vries <tom@codesourcery.com>
6552
6553 PR middle-end/48461
6554 * function.c (emit_use_return_register_into_block): Only define if
6555 HAVE_return.
6556
5cca4f1d 65572011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6558
6559 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6560
8cb00d70 65612011-04-05 Joseph Myers <joseph@codesourcery.com>
6562
6563 * config/rx/rx-opts.h: New.
6564 * config/rx/rx.c (rx_cpu_type): Remove.
6565 (rx_handle_option): Don't assert that global structures are in
6566 use. Access variables via opts pointer. Defer most handling of
6567 OPT_mint_register_. Use error_at.
6568 (rx_option_override): Handle deferred OPT_mint_register_ here.
6569 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6570 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6571 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6572 (rx_cpu_types): New Enum and EnumValue entries.
6573 (mint-register=): Use Defer and use Var accordingly.
6574
00e3fe44 65752011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6576
6577 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6578 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6579 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6580 Move these...
6581 (debug_free_queue, debug_nesting, symbol_queue_index):
6582 ...and these...
6583 * dbxout.c: ...to here. Make static.
6584
57c8e46c 65852011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6586
6587 * gcse.c (modify_pair): Define. Define a VEC of it.
6588 (canon_modify_mem_list): Convert to an array of VECs.
6589 (free_insn_expr_list_list): Delete.
6590 (clear_modify_mem_tables): Call VEC_free instead.
6591 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6592 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6593 (canon_list_insert, compute_transp): Likewise.
6594
ea5709fb 65952011-04-05 Tom de Vries <tom@codesourcery.com>
6596
6597 PR target/43920
6598 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6599 for size.
6600
f2c8a251 66012011-04-05 Tom de Vries <tom@codesourcery.com>
6602
6603 PR target/43920
6604 * function.c (emit_use_return_register_into_block): New function.
6605 (thread_prologue_and_epilogue_insns): Use
6606 emit_use_return_register_into_block.
6607
e1ebb662 66082011-04-05 Tom de Vries <tom@codesourcery.com>
6609
6610 PR target/43920
6611 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6612 insn.
6613
e8911909 66142011-04-05 Tom de Vries <tom@codesourcery.com>
6615
6616 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6617
e7d6d136 66182011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6619
d8f82f6b 6620 * config/arm/arm.md (define_constants for unspec): Replace with
6621 define_c_enum.
6622 (define_constants for unspecv): Replace with define_c_enum.
6623 * config/arm/neon.md (define_constants for unspec): Replace with
6624 define_c_enum.
e7d6d136 6625
f773da64 66262011-04-04 Richard Henderson <rth@redhat.com>
6627
62741f83 6628 PR bootstrap/48400
f773da64 6629 * dwarf2out.c (output_line_info): Always emit line info from
6630 at least one section.
6631 (dwarf2out_init): Create text_section_line_info here ...
6632 (set_cur_line_info_table): ... not here.
6633
62741f83 66342011-04-04 Vladimir Makarov <vmakarov@redhat.com>
212e5c4f 6635
6636 PR target/48380
6637 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
62741f83 6638 not called.
212e5c4f 6639
62741f83 6640 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
212e5c4f 6641
c8a32de3 66422011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6643
202325b0 6644 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6645 (expr_equiv_p): Remove.
6646 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6647 (hash_scan_set): Update call to insert_set_in_table.
6648 (dump_hash_table): Dump <dest, src> pair.
6649 (lookup_set): Simplify. Lookup <dest, src> pair.
6650 (compute_transp): Remove, fold heavily simplified code into...
6651 (compute_local_properties): ...here. Expect COMP and TRANSP
6652 unconditionally.
6653 (find_avail_set): Take set directly from struct expr.
6654 (find_bypass-set): Likewise.
6655 (bypass_block): Likewise.
6656 (cprop_insn): Likewise. Remove redundant INSN_P test.
6657
971ce6d5 6658 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6659 checks on form of COND from find_implicit_sets to here.
6660 (find_implicit_sets): Cleanup control flow. Split critical edges
6661 if it exposes implicit sets. Allocate/resize implicit_sets as
6662 necessary.
6663 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6664 changed something. Run df_analyze after find_implicit_sets if any
6665 edges were split. Do not allocate implicit_sets here.
6666
540960d1 6667 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6668 (gcse_obstack): Renamed to cprop_obstack.
6669 (GNEW, GNEWVEC, GNEWVAR): Remove.
6670 (gmalloc): Remove.
6671 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6672 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6673 (gcse_alloc): Likewise, and rename to cprop_alloc.
6674 (alloc_gcse_men, free_gcse_mem): Remove.
6675 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6676 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6677 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6678
c8a32de3 6679 * cprop.c (oprs_not_set_p): Remove.
6680 (mark_set, mark_clobber): Remove.
6681 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6682 (reg_not_set_p): New function.
6683 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6684 (cprop_insn): Likewise.
6685 (cprop_jump): Use FOR_EACH_EDGE.
6686
b5f4bfde 66872011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6688
6689 PR bootstrap/48403
6690 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6691 (rank_for_schedule): Use scheduled_insns vector instead of
6692 last_scheduled_insn.
6693 (ok_for_early_queue_removal): Likewise.
6694 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6695 we have a dbg_cnt.
6696 (choose_ready): Likewise.
6697 (commit_schedule): Use VEC_iterate.
6698 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6699 a dbg_cnt, use it and ensure the first insn is in the ready list.
6700 (haifa_sched_init): Allocate scheduled_insns.
6701 (sched_extend_ready_list): Don't allocate it; reserve space.
6702 (haifa_sched_finish): Free it.
6703
c3be4b75 67042011-04-04 Joseph Myers <joseph@codesourcery.com>
6705
6706 * optc-gen.awk: Always remove type from Variable entry before
6707 recording in var_seen.
6708
8ea8dad9 67092011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6710
6711 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6712 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6713 call to tidy_fallthru_edges.
6714
cb14e058 67152011-04-04 Joseph Myers <joseph@codesourcery.com>
6716
6717 * doc/options.texi (ToLower): Document.
45c0368c 6718 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
cb14e058 6719 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6720 * opts.h (cl_option): Add cl_tolower field.
6721 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6722 arguments with lowercase strings.
6723 * config/rx/rx.opt (mcpu=): Add ToLower.
6724 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6725 argument.
6726
f47cf939 67272011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6728
6729 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6730
ef0fd182 67312011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6732
6733 * config/vax/vax.c: Include reload.h.
6734
10829e0b 67352011-04-04 Anatoly Sokolov <aesok@post.ru>
6736
6737 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6738 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6739 (sparc_preferred_reload_class): New function.
6740
3e549002 67412011-04-04 Jakub Jelinek <jakub@redhat.com>
6742
517579e0 6743 PR debug/48401
3e549002 6744 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6745 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6746
544d4f58 67472011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6748
6749 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6750 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6751
b47778c4 67522011-04-03 Anatoly Sokolov <aesok@post.ru>
6753
6754 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6755 (ASM_OUTPUT_ALIGNED_BSS): Define.
6756
5cd33168 67572011-04-03 Michael Matz <matz@suse.de>
6758
6759 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6760 and next_slot members.
6761 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6762 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6763 (lto_streamer_cache_append): Declare.
6764 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6765 unsigned index, remove offset parameter, ensure that we append
6766 or update existing entries.
6767 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6768 parameter, update next_slot for append.
6769 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6770 parameter.
6771 (lto_streamer_cache_insert_at): Likewise.
6772 (lto_streamer_cache_append): New function.
6773 (lto_streamer_cache_lookup): Use unsigned index.
6774 (lto_streamer_cache_get): Likewise.
6775 (lto_record_common_node): Don't test tree_node_can_be_shared.
6776 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6777 (lto_streamer_cache_delete): Don't free offsets member.
6778 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6779 (lto_output_string_with_length): Use lto_output_data_stream.
6780 (lto_output_tree_header): Remove ix parameter, don't write it.
6781 (lto_output_builtin_tree): Likewise.
6782 (lto_write_tree): Adjust callers to above, don't track and write
6783 offset, write unsigned index.
6784 (output_unreferenced_globals): Don't emit all global vars.
6785 (write_global_references): Use unsigned indices.
6786 (lto_output_decl_state_refs): Likewise.
6787 (write_symbol): Likewise.
6788 * lto-streamer-in.c (lto_input_chain): Move earlier.
6789 (input_function): Use unsigned index.
6790 (input_alias_pairs): Don't read and then ignore all global vars.
6791 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6792 don't pass it back, use lto_streamer_cache_append.
6793 (lto_register_var_decl_in_symtab): Use unsigned index.
6794 (lto_register_function_decl_in_symtab): Likewise.
6795 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6796 index.
6797 (lto_get_builtin_tree): Don't read index, use
6798 lto_streamer_cache_append.
6799 (lto_read_tree): Adjust call to lto_materialize_tree.
6800
6801 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6802 don't use function calls in arguments to MIN.
6803
6804 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6805 twice.
6806
6807 * gimple.c (gimple_type_leader_entry): Mark deletable.
6808
a4649884 68092011-04-03 Alan Modra <amodra@gmail.com>
6810
6811 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6812
9ccd0eb4 68132011-04-03 Michael Matz <matz@suse.de>
6814
6815 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6816 an integer.
6817 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6818
bb903e9c 68192011-04-03 Michael Matz <matz@suse.de>
6820
e8b2c048 6821 * cgraphbuild.c (record_reference): Canonicalize constructor values.
bb903e9c 6822 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6823 without function context.
6824 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6825 current_function_decl and cfun.
6826
e7e718d0 68272011-04-03 Michael Matz <matz@suse.de>
6828
6829 * tree.c (decl_init_priority_insert): Don't create entry for
6830 default priority.
6831 (decl_fini_priority_insert): Ditto.
6832 (fields_compatible_p, find_compatible_field): Remove.
6833 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6834 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6835
e73ba0a7 68362011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6837
6838 * combine.c (try_combine): Remove useless local variable.
6839
e257cde2 68402011-04-03 Richard Guenther <rguenther@suse.de>
e7e718d0 6841 Ira Rosen <ira.rosen@linaro.org>
e257cde2 6842
6843 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6844 non-variable offsets and compare the remaining bases of the two
6845 accesses instead of looking for exact same data-ref.
6846
2255eb8d 68472011-04-02 Kai Tietz <ktietz@redhat.com>
6848
6b9414b9 6849 PR target/48416
6850 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6851
2255eb8d 6852 * i386.c (ix86_is_msabi_thiscall): New helper function.
6853 (ix86_is_type_thiscall): New helper function.
6854 (ix86_comp_type_attributes): Handle thiscall for method-functions
6855 special.
6856 (init_cumulative_args): Likewise.
6857 (find_drap_reg): Likewise.
6858 (ix86_static_chain): Likewise.
6859 (x86_this_parameter): Likewise.
6860 (x86_output_mi_thunk): Likewise.
6861
818dee1b 68622011-04-01 Olivier Hainque <hainque@adacore.com>
e7e718d0 6863 Nicolas Setton <setton@adacore.com>
6864 Eric Botcazou <ebotcazou@adacore.com>
818dee1b 6865
6866 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6867 (add_gnat_descriptive_type_attribute): New function.
6868 (gen_array_type_die): Call it.
6869 (gen_enumeration_type_die): Likewise.
6870 (gen_struct_or_union_type_die): Likewise.
6871 (modified_type_die): Likewise.
6872 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6873 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6874 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6875
b6a800c7 68762011-04-01 Jakub Jelinek <jakub@redhat.com>
6877
6878 PR bootstrap/48148
6879 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6880 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6881
6882 Revert:
6883 2011-03-17 Richard Guenther <rguenther@suse.de>
6884
6885 PR bootstrap/48148
6886 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6887 origin for decls in other ltrans units.
6888 (input_varpool_node): Likewise.
6889
3a175160 68902011-04-01 Jakub Jelinek <jakub@redhat.com>
6891
6892 PR middle-end/48335
6893 * expr.c (expand_assignment): Handle all possibilities
6894 if TO_RTX is CONCAT.
e8b2c048 6895 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3a175160 6896 (store_split_bit_field): If SUBREG_REG (op0) or
6897 op0 itself has smaller mode than word, return it
6898 for offset 0 and const0_rtx for out-of-bounds stores.
6899 If word is const0_rtx, skip it.
6900
87ad9aff 69012011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6902
6903 * config/h8300/h8300.c (print_operand_address): Rename to...
6904 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6905 Call h8300_print_operand and h8300_print_operand_address instead of
6906 print_operand and print_operand_address. Declare.
6907 (print_operand): Renake to...
6908 (h8300_print_operand): ...this. Make static. Adjust comments.
6909 Call h8300_print_operand instead of print_operand. Declare.
6910 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6911 (h8300_register_move_cost): Likewise.
6912 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6913 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6914 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6915 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6916 * config/h8300/h8300-protos.h (print_operand): Delete.
6917 (print_operand_address): Delete.
6918
8d141c17 69192011-04-01 Richard Henderson <rth@redhat.com>
6920
6921 PR 48400
6922 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6923 in strict mode before dwarf4. Re-order tests to early out
6924 before switching sections.
6925
424f5954 69262011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6927
6928 * config/h8300/constraints.md: New file.
6929 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6930 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6931 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6932 * config/h8300/predicates.md (bit_operand): Likewise.
6933 (incdec_operand): Use satisfies_constraint_M and
6934 satisfies_constraint_O. Don't use C code block.
6935 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6936 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6937 (compute_mov_length): Use satisfies_constraint_G.
6938 (fix_bit_operand): Use satisfies_constraint_U.
6939 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6940 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6941 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6942 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6943 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6944 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6945 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6946 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6947 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6948 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6949 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6950 (EXTRA_MEMORY_CONSTRAINT): Delete.
6951
7d9e1f9b 69522011-04-01 Andrew Pinski <pinskia@gmail.com>
6953 Michael Meissner <meissner@linux.vnet.ibm.com>
6954
6955 PR target/48262
6956 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6957 operands, as per the specifications.
6958
6959 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6960 (vec_extract_evenv4sf): Ditto.
6961 (vec_extract_evenv8hi): Ditto.
6962 (vec_extract_evenv16qi): Ditto.
6963 (vec_extract_oddv4si): Ditto.
6964
cb18bd3c 69652011-03-31 Mark Wielaard <mjw@redhat.com>
6966
6967 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6968 high_pc attribute if the CU has no associated code. Only output
6969 DW_AT_entry_pc for CU if not generating strict dwarf and
6970 dwarf_version < 4.
6971
0a9bd7c9 69722011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6973
6974 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6975 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6976 out of ...
6977 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6978 * final.c (final_start_function): Call the new function rather
6979 than using a NULL argument for dwarf2out_frame_debug.
6980
79d8d931 6981 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6982 that contains the prologue.
6983
b49b2e5c 6984 * haifa-sched.c (queue_insn): New arg REASON. All callers
6985 changed. Print it in debugging output.
6986
f193badd 6987 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6988
d2412f57 6989 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6990 Split most of the code into...
6991 (begin_move_insn): ... here. New function.
6992 (ebb_sched_info): Add a pointer to it.
6993 * haifa-sched.c (scheduled_insns): New static variable.
6994 (sched_extend_ready_list): Allocate it.
6995 (schedule_block): Use it to record the order of scheduled insns.
6996 Perform RTL changes to move insns only after all scheduling
6997 decisions have been made.
6998 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6999 begin_move_insn field.
7000 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7001 * sched-int.h (struct haifa_sched_info): Remove second argument
7002 from begin_schedule_ready hook. Add new member begin_move_insn.
7003 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7004 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7005
a0fc5ef1 7006 * haifa-sched.c (prune_ready_list): New function, broken out of
7007 schedule_block.
7008 (schedule_block): Use it.
7009
2ee49f28 70102011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7011
7012 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7013
440fcad1 70142011-04-01 Kai Tietz <ktietz@redhat.com>
7015
7016 * config.gcc (*-*-mingw*): Allow as option the
7017 posix threading model.
27e5502d 7018 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
440fcad1 7019 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7020 definition.
7021 (CPP_SPEC): Add pthread/no-pthread handling.
7022 (LIB_SPEC): Likewise.
7023 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7024 (LIB_SPEC): Likewise.
7025 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7026 flag to pass -pthread option for shared libgcc build.
7027 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7028 for shared libgcc build.
7029 * config/i386/t-mingw-pthread: New file.
7030 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7031 New define to enable use of library pthread by default.
7032 * config/i386/mingw.opt (pthread): New driver option.
7033 (no-pthread): New driver option.
e8b2c048 7034 * config/i386/cygming.opt: Make sure trailing empty line is retained.
440fcad1 7035 * config/i386/mingw-w64.opt: Likewise.
7036
6a0cacf9 70372011-04-01 Gary Funck <gary@intrepid.com>
5568b3c6 7038
7039 * c-decl.c (grokdeclarator): Fix formatting.
7040
32f79657 70412011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7042
7043 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7044 instead of n_operands.
7045 (set_storage_via_setmem): Likewise.
7046 * optabs.c (maybe_gen_insn): Likewise.
7047 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7048 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7049 (mips_expand_builtin_direct): Likewise.
7050 * config/spu/spu.c (expand_builtin_args): Likewise.
7051
cf85f835 70522011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7053
7054 * recog.h (insn_data_d): Add n_generator_args.
7055 * genoutput.c (data): Likewise.
7056 (output_insn_data): Print it.
7057 (max_opno, num_dups): Delete.
7058 (scan_operands): Just fill in "d->operand[...]".
7059 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7060
22add764 70612011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7062
7063 * gensupport.h (pattern_stats): New structure.
7064 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7065 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7066 (max_operand_1, max_operand_vec): Delete.
7067 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7068
ede4ebcb 70692011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7070
7071 * emit-rtl.c (emit_pattern_after_setloc): New function.
7072 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7073 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7074 (emit_pattern_after): New function.
7075 (emit_insn_after, emit_jump_insn_after): Call it.
7076 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7077 (emit_pattern_before_setloc): New function.
7078 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7079 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7080 Likewise.
7081 (emit_pattern_before): New function.
7082 (emit_insn_before, emit_jump_insn_before): Call it.
7083 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7084
1bc6c106 70852011-03-31 Richard Henderson <rth@redhat.com>
7086
7087 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7088 (dw_separate_line_info_entry): Remove.
7089 (enum dw_line_info_opcode): New.
7090 (dw_line_info_entry): Use it.
7091 (dw_line_info_table, dw_line_info_table_p): New.
7092 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7093 (line_info_table, line_info_label_num): Remove.
7094 (line_info_table_in_use): Remove.
7095 (separate_line_info_table): Remove.
7096 (separate_line_info_table_allocated): Remove.
7097 (separate_line_info_table_in_use): Remove.
7098 (LINE_INFO_TABLE_INCREMENT): Remove.
7099 (line_info_label_num): New.
7100 (cur_line_info_table): New.
7101 (text_section_line_info, cold_text_section_line_info): New.
7102 (separate_line_info): New.
7103 (SEPARATE_LINE_CODE_LABEL): Remove.
7104 (print_dwarf_line_table): Remove.
7105 (debug_dwarf): Don't dump it.
7106 (output_one_line_info_table): New.
7107 (output_line_info): Use it.
7108 (new_line_info_table): New.
7109 (set_cur_line_info_table): New.
7110 (dwarf2out_switch_text_section): Use it.
7111 (dwarf2out_begin_function): Likewise.
7112 (push_dw_line_info_entry): New.
7113 (dwarf2out_source_line): Rewrite for new line info tables.
7114 (dwarf2out_init): Remove dead initailizations.
7115
ec840af4 71162011-03-31 Joseph Myers <joseph@codesourcery.com>
7117
7118 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7119 various flags.
7120 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7121 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7122 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7123 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7124 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7125 * opt-functions.awk (flag_init, switch_bit_fields): New.
7126 (switch_flags): Don't handle flags moved to bit-fields. Don't
7127 generate CL_MISSING_OK or CL_SAVE.
7128 * optc-gen.awk: Update to generate bit-field output as well as
7129 flags field.
7130 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7131 bit-field instead of CL_REJECT_DRIVER flag.
7132 * opts-common.c (generate_canonical_option,
7133 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7134 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7135 instead of CL_REJECT_NEGATIVE flag.
7136 * toplev.c (print_switch_values): Use cl_report bit-field instead
7137 of CL_REPORT flag.
7138
e4d0ac02 71392011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7140
7141 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7142 a zero minimum index only if it is redundant.
7143
3c5273ff 71442011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7145
7146 PR rtl-optimization/48381
7147 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7148 instead of ira_class_hard_reg_index for calculating conflicting
7149 hard registers.
7150
45a41a6c 71512011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7152
7153 * cprop.c: Clean up hash table building.
7154 (reg_avail_info): Remove.
7155 (oprs_available_p): Remove.
7156 (record_last_reg_set_info): Remove.
7157 (record_last_set_info): Remove.
7158 (reg_available_p): New function.
7159 (gcse_constant_p): Do not treat unfolded conditions as constants.
7160 (make_set_regs_unavailable): New function.
7161 (hash_scan_set): Simplify with new reg_available_p.
7162 (compute_hash_table_work): Traverse insns stream only once.
7163 Do not compute reg_avail_info. Traverse insns in reverse order.
7164 Record implicit sets after recording explicit sets from the block.
7165
5c9d7b33 71662011-03-31 Michael Matz <matz@suse.de>
7167
e8b2c048 7168 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5c9d7b33 7169
958f5301 71702011-03-31 Anatoly Sokolov <aesok@post.ru>
7171
7172 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7173 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7174 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7175 (h8300_mode_dependent_address_p): New function.
7176 (h8300_get_index): Make static.
7177
1084097d 71782011-03-31 Jeff Law <law@redhat.com>
7179
413f000a 7180 * reload1.c (elimination_effects): Fix typo in recent change.
7181
e8b2c048 7182 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
1084097d 7183 typo potentially leading to null pointer dereference.
7184
7185 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7186 (setup_save_areas): Corresponding changes to avoid useless
7187 assignments.
7188
7189 * jump.c (reversed_comparison_code_parts): Avoid successive return
7190 statements when REVERSE_CONDITION is defined.
7191
7192 * expr.c (expand_assignment): Avoid useless assignments.
7193 (expand_expr_real_1): Likewise.
7194 (expand_expr_real_2): Avoid useless statements.
7195
7196 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7197
7198 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7199
7200 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7201 statements.
7202
7203 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7204
a19f368c 72052011-03-31 Joseph Myers <joseph@codesourcery.com>
7206
7207 PR target/47109
7208 * doc/tm.texi.in (TARGET_VERSION): Remove.
7209 * doc/tm.texi: Regenerate.
7210 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7211 * collect2.c (main): Don't use TARGET_VERSION.
7212 * mips-tdump.c (main): Don't use TARGET_VERSION.
7213 * mips-tfile.c (main): Don't use TARGET_VERSION.
e8b2c048 7214 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
a19f368c 7215 * config/rs6000/vxworksae.h: Remove.
7216 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7217 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7218 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7219 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7220 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7221 * config/arm/arm.h (TARGET_VERSION): Remove.
7222 * config/arm/coff.h (TARGET_VERSION): Remove.
7223 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7224 * config/arm/elf.h (TARGET_VERSION): Remove.
7225 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7226 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7227 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7228 * config/arm/pe.h (TARGET_VERSION): Remove.
7229 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7230 * config/arm/semi.h (TARGET_VERSION): Remove.
7231 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7232 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7233 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7234 * config/avr/avr.h (TARGET_VERSION): Remove.
7235 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7236 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7237 * config/frv/frv.h (TARGET_VERSION): Remove.
7238 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7239 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7240 * config/i386/darwin.h (TARGET_VERSION): Remove.
7241 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7242 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7243 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7244 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7245 * config/i386/gnu.h (TARGET_VERSION): Remove.
7246 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7247 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7248 * config/i386/linux.h (TARGET_VERSION): Remove.
7249 * config/i386/linux64.h (TARGET_VERSION): Remove.
7250 * config/i386/lynx.h (TARGET_VERSION): Remove.
7251 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7252 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7253 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7254 * config/i386/netware.h (TARGET_VERSION): Remove.
7255 * config/i386/nto.h (TARGET_VERSION): Remove.
7256 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7257 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7258 * config/ia64/elf.h (TARGET_VERSION): Remove.
7259 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7260 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7261 * config/ia64/linux.h (TARGET_VERSION): Remove.
7262 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7263 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7264 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7265 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7266 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7267 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7268 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7269 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7270 * config/m68k/linux.h (TARGET_VERSION): Remove.
7271 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7272 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7273 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7274 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7275 * config/mep/mep.h (TARGET_VERSION): Remove.
7276 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7277 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7278 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7279 * config/mips/linux.h (TARGET_VERSION): Remove.
7280 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7281 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7282 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7283 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7284 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7285 * config/pa/pa.h (TARGET_VERSION): Remove.
7286 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7287 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7288 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7289 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7290 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7291 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7292 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7293 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7294 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7295 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7296 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7297 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7298 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7299 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7300 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7301 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7302 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7303 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7304 * config/s390/linux.h (TARGET_VERSION): Remove.
7305 * config/s390/s390.h (TARGET_VERSION): Remove.
7306 * config/s390/tpf.h (TARGET_VERSION): Remove.
7307 * config/score/score.h (TARGET_VERSION): Remove.
7308 * config/sh/linux.h (TARGET_VERSION): Remove.
7309 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7310 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7311 * config/sh/sh.h (TARGET_VERSION): Remove.
7312 * config/sh/sh64.h (TARGET_VERSION): Remove.
7313 * config/sh/superh.h (TARGET_VERSION): Remove.
7314 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7315 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7316 * config/sparc/linux.h (TARGET_VERSION): Remove.
7317 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7318 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7319 TARGET_NAME32, TARGET_NAME): Remove.
7320 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7321 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7322 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7323 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7324 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7325 * config/spu/spu.h (TARGET_VERSION): Remove.
7326 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7327 * config/v850/v850.h (TARGET_VERSION): Remove.
7328 * config/vax/linux.h (TARGET_VERSION): Remove.
7329 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7330 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7331 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7332
d34dbd5a 73332011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7334
7335 PR target/48142
7336 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7337 frame-related from frame-unrelated adjustments to the stack pointer.
7338
240a87ff 73392011-03-31 Jakub Jelinek <jakub@redhat.com>
7340
7341 * common.opt (fdebug-types-section): Move earlier.
7342 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7343
6e715a90 73442011-03-31 Andreas Tobler <andreast@fgznet.ch>
7345
7346 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7347 var.
7348
edb0f60d 73492011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7350
7351 * tree.h (CASE_CHAIN): Define.
7352 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7353 (gimple_redirect_edge_and_branch): Likewise.
7354
13cf233a 73552011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7356
7357 PR middle-end/48367
7358 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7359 calculation.
7360
d3ea8518 73612011-03-30 Jeff Law <law@redhat.com>
7362
41a11049 7363 * PR bootstrap/48371
d3ea8518 7364 * reload1.c (reload): Fix botch in last change.
7365
7366 * reload.h (struct reload): Fix typo introduced in last change.
7367
0670b683 73682011-03-30 Joseph Myers <joseph@codesourcery.com>
7369
7370 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7371 Undocumented. Remove help text.
7372 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7373 -mhard-float.
7374
4e775b8e 73752011-03-30 Joseph Myers <joseph@codesourcery.com>
7376
7377 * doc/options.texi (NegativeAlias): Document.
7378 (Alias): Mention NegativeAlias.
7379 * opt-functions.awk: Handle NegativeAlias.
e8b2c048 7380 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4e775b8e 7381 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7382 * opts.h (CL_NEGATIVE_ALIAS): Define.
7383 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7384 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7385 OPT_mspe_.
7386 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7387 Alias entries.
7388 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7389 mno-spe and mno-isel instead of mspe=no and -misel=no.
7390
f6a02c02 73912011-03-29 Mark Wielaard <mjw@redhat.com>
7392
7393 * common.opt (fdebug-types-section): New flag.
7394 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7395 * dwarf2out.c (use_debug_types): New define.
7396 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7397 (print_die): Guard output of type unit signatures using
7398 use_debug_types.
7399 (build_abbrev_table): Replace assert of dwarf_version >= 4
7400 with assert on use_debug_types.
7401 (size_of_die): Likewise.
7402 (unmark_dies): Likewise.
7403 (value_format): Decide AT_ref_external form on use_debug_types.
7404 (output_die): Replace dwarf_version version check guard with
7405 use_debug_types where appropriate.
7406 (modified_type_die): Likewise.
7407 (gen_reference_type_die): Likewise.
7408 (dwarf2out_start_source_file): Likewise.
7409 (dwarf2out_end_source_file): Likewise.
7410 (prune_unused_types_walk_attribs): Likewise.
7411 (dwarf2out_finish): Likewise.
7412
04fd8b89 74132011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7414
7415 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7416
8b794819 74172011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7418
7419 PR rtl-optimization/48332
7420 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7421 mode of input operand N and modeN to its actual mode.
7422
1c654ff1 74232011-03-30 Jeff Law <law@redhat.com>
7424
7425 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7426 define accessor macro.
7427 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7428 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7429 (reg_equiv_init): Likewise.
7430 (reg_equivs_size): New variable.
7431 (reg_equiv_init_size): Remove.
7432 (allocate_initial_values): Move prototype to here from....
7433 * integrate.h (allocate_initial_values): Remove prototype.
7434 * integrate.c: Include reload.h.
7435 (allocate_initial_values): Corresponding changes.
7436 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7437 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7438 (update_equiv_regs): Corresponding changes.
7439 (ira): Corresponding changes.
7440 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7441 (push_secondary_reload): Corresponding changes.
7442 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7443 (make_memloc, find_reloads_address): Corresponding changes.
7444 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7445 (find_reloads_address_1): Corresponding changes.
7446 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7447 (refers_to_regno_for_reload_p): Corresponding changes.
7448 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7449 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7450 * reload1.c: Include ggc.h.
7451 (grow_reg_equivs): New function.
7452 (replace_pseudos_in, reload): Corresponding changes.
7453 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7454 (eliminate_regs_1, elimination_effects): Corresponding changes.
7455 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7456 (delete_output_reload): Likewise.
7457 * caller-save.c (mark_referenced_regs): Corresponding changes.
7458 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7459 * frv/predicates.md (frv_load_operand): Corresponding changes.
7460 * microblaze/microblaze.c (double_memory_operand): Corresponding
7461 changes.
7462 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7463 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e8b2c048 7464 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
1c654ff1 7465 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7466 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7467 changes.
7468 * pa/pa.c (emit_move_sequence): Corresponding changes.
7469 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7470
a6c8b951 74712011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7472
7473 PR target/47551
7474 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7475 structure modes. Don't check neon_vector_mem_operand for
7476 vector or structure modes.
7477
92d6c32b 74782011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7479 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7480
7481 PR target/43590
7482 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7483 operand 1 and reshuffle the operands to match.
7484 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7485
22db0e0c 74862011-03-30 Christian Schüler <cschueler@gmx.de>
7487
16973751 7488 PR driver/48208
22db0e0c 7489 * config/c.opt (F): Added 'Driver' to -F option.
e8b2c048 7490
16973751 7491 PR driver/48260
22db0e0c 7492 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7493 handler function.
7494 * config/darwin.opt: Added '-arch' option.
7495
776f1390 74962011-03-30 Nick Clifton <nickc@redhat.com>
7497
7498 * config/rx/rx.md: Add peepholes and patterns to combine
7499 extending loads and simple arithmetic instructions.
7500 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e8b2c048 7501 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7502 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
776f1390 7503 modes to use pre-decrement and post-increment addressing.
e8b2c048 7504 (rx_is_restricted_memory_address): Add range checking of REG+INT
776f1390 7505 addresses.
e8b2c048 7506 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7507 (rx_memory_move_cost): Adjust cost of stores.
7508 (rx_adjust_insn_length): New function.
776f1390 7509
51f5794e 75102011-03-30 Jakub Jelinek <jakub@redhat.com>
7511
7512 PR c/48305
7513 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7514 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7515 matching arg00/arg01 types.
7516
1513fa88 75172011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7518
7519 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7520 last_location to UNKNOWN_LOCATION.
7521
29111057 75222011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7523
7524 PR target/48349
7525 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7526 FLOAT_SSE_REGS.
7527
477d403f 75282011-03-30 Joseph Myers <joseph@codesourcery.com>
7529 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7530
7531 PR bootstrap/48337
7532 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7533 Init(PROCESSOR_V7).
7534 (sparc_cpu): Likewise.
7535 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7536 PROCESSOR_V7.
7537
c7b32822 75382011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7539
7540 PR target/48336
7541 PR middle-end/48342
7542 PR rtl-optimization/48345
7543 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7544 hard regs for given mode from profitable regs when doing secondary
7545 allocation.
7546
255a8494 75472011-03-29 Jeff Law <law@redhat.com>
7548
7549 PR bootstrap/48327
7550 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7551 do_not_duplicate field.
7552 (lookup_redirection_data): Corresponding changes.
7553 (create_duplicates): Always create a template block.
7554 (redirect_edges): Remove code which reused the original block
7555 when it was going to become unreachable code.
7556 (thread_block): Don't set do_not_duplicate field.
7557
607eb2c8 75582011-03-29 Joseph Myers <joseph@codesourcery.com>
7559
7560 * lto-opts.c (register_user_option_p, lto_register_user_option):
7561 Make type argument unsigned.
7562 * lto-streamer.h (lto_register_user_option): Make type argument
7563 unsigned.
7564 * opth-gen.awk: Make CL_* macros unsigned.
7565 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7566 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7567 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7568 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7569 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7570 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7571 (find_opt): Make lang_mask argument unsigned.
7572
f6c60bdb 75732011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7574
7575 PR rtl-optimization/48331
7576 PR rtl-optimization/48334
7577 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7578 for any used algorithm.
7579
71a39acf 75802011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7581
7582 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7583 to parent_max.
7584
656e2b9d 75852011-03-29 Uros Bizjak <ubizjak@gmail.com>
7586
7587 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7588 (alpha_option_override): Don't set alpha_sr_alias_set.
7589 (emit_frame_store_1): Use gen_frame_mem rather than calling
7590 set_mem_alias_set.
7591 (alpha_expand_epilogue): Ditto.
7592
8bdf488e 75932011-03-29 Ira Rosen <ira.rosen@linaro.org>
7594
7595 PR tree-optimization/48290
7596 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7597 vectorization, check that relevant phis in the basic block after
7598 the inner loop are really inner loop's exit phis.
7599
4031f63d 76002011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7601
49bc82f1 7602 PR debug/48190
4031f63d 7603 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7604 (cached_dw_loc_list_def): New structure.
7605 (cached_dw_loc_list): New typedef.
7606 (cached_dw_loc_list_table): New variable.
7607 (cached_dw_loc_list_table_hash): New function.
7608 (cached_dw_loc_list_table_eq): Likewise.
7609 (add_location_or_const_value_attribute): Take a bool cache_p.
7610 Cache the list when the parameter is true.
7611 (gen_formal_parameter_die): Update caller.
7612 (gen_variable_die): Likewise.
7613 (dwarf2out_finish): Likewise.
7614 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7615 while generating debug info for the decl.
7616 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7617 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7618 (resolve_addr): Cache the result of resolving a chain of
7619 location lists.
7620
66d9a7b9 76212011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7622
7623 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7624 conflict object hard regset nodes have intersecting hard reg sets.
656e2b9d 7625
66d9a7b9 7626 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7627 after regstat_init_n_sets_and_refs.
7628
7629 * ira.c: Add more comments at the top.
7630 (setup_stack_reg_pressure_class, setup_pressure_classes):
7631 Add comments how we compute the register pressure classes.
7632 (setup_allocno_and_important_classes): Add more comments.
7633 (setup_class_translate_array, reorder_important_classes)
7634 (setup_reg_class_relations): Add comments.
7635
7636 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7637 start of the file.
7638
7639 * ira-color.c: Add 2011 to the Copyright line.
7640 (assign_hard_reg): Add more comments.
7641 (improve_allocation): Ditto.
7642
7643 * ira-costs.c: Add 2011 to the Copyright line.
7644 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7645 comments.
7646 (setup_regno_cost_classes_by_mode): Ditto.
7647
7648 Initial patches from ira-improv branch:
7649
7650 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7651
dcab66ec 7652 * ira-build.c (ira_create_object): Remove initialization of
66d9a7b9 7653 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7654 (ira_create_allocno): Remove initialization of
7655 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7656 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7657 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7658 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7659 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7660 Initialize ALLOCNO_ADD_DATA.
7661 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7662 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7663 ALLOCNO_REG.
7664 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7665 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7666
7667 * ira.c (ira_reallocate): Remove.
7668 (setup_pressure_classes): Call
7669 ira_init_register_move_cost_if_necessary. Use
7670 ira_register_move_cost instead of ira_get_register_move_cost.
7671 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7672 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7673
7674 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7675 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7676 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7677 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7678 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7679 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7680 Fix formatting.
656e2b9d 7681 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
66d9a7b9 7682 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7683 (struct allocno_color_data): New.
7684 (allocno_color_data_t): New typedef.
7685 (allocno_color_data): New definition.
7686 (ALLOCNO_COLOR_DATA): New macro.
7687 (struct object_color_data): New.
7688 (object_color_data_t): New typedef.
7689 (object_color_data): New definition.
7690 (OBJECT_COLOR_DATA): New macro.
7691 (update_copy_costs, calculate_allocno_spill_cost): Call
7692 ira_init_register_move_cost_if_necessary. Use
7693 ira_register_move_cost instead of ira_get_register_move_cost.
7694 (move_spill_restore, update_curr_costs): Ditto.
7695 (allocno_spill_priority): Make it inline.
656e2b9d 7696 (color_pass): Allocate and free allocno_color_dat and object_color_data.
66d9a7b9 7697 (struct coalesce_data, coalesce_data_t): New.
7698 (allocno_coalesce_data): New definition.
7699 (ALLOCNO_COALESCE_DATA): New macro.
7700 (merge_allocnos, coalesced_allocno_conflict_p): Use
7701 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7702 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7703 (coalesce_allocnos): Ditto.
7704 (setup_coalesced_allocno_costs_and_nums): Ditto.
7705 (collect_spilled_coalesced_allocnos): Ditto.
7706 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7707 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7708 (coalesce_spill_slots): Ditto.
7709 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7710 free allocno_coalesce_data.
7711
7712 * ira-conflicts.c: Fix formatting.
7713 (process_regs_for_copy): Call
7714 ira_init_register_move_cost_if_necessary. Use
7715 ira_register_move_cost instead of ira_get_register_move_cost.
7716 (build_object_conflicts): Optimize.
7717
7718 * ira-costs.c (record_reg_classes): Optimize. Call
7719 ira_init_register_move_cost_if_necessary. Use
7720 ira_register_move_cost, ira_may_move_in_cost, and
7721 ira_may_move_out_cost instead of ira_get_register_move_cost and
7722 ira_get_may_move_cost.
7723 (record_address_regs): Ditto.
7724 (scan_one_insn): Optimize.
7725 (find_costs_and_classes): Optimize.
7726 (process_bb_node_for_hard_reg_moves): Call
7727 ira_init_register_move_cost_if_necessary. Use
7728 ira_register_move_cost instead of ira_get_register_move_cost.
7729
7730 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7731 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7732 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7733 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7734 definitions.
7735 (ira_initiate_emit_data, ira_finish_emit_data)
7736 (create_new_allocno): New functions.
656e2b9d 7737 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
66d9a7b9 7738 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7739 Use ira_register_move_cost instead of ira_get_register_move_cost.
7740
7741 * ira-int.h: Fix some comments.
656e2b9d 7742 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7743 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
66d9a7b9 7744 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7745 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7746 add_data.
7747 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7748 bitfield after mode. Make hard_regno a short int. Make
7749 hard_regno short. Remove first_coalesced_allocno and
7750 next_coalesced_allocno. Move mem_optimized_dest_p,
7751 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7752 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7753 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7754 temp, colorable_p. Add new member add_data.
7755 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7756 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7757 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7758 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7759 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7760 (ALLOCNO_ADD_DATA): New macro.
7761 (ira_emit_data_t): New typedef.
7762 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7763 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7764 from struct ira_allocno.
7765 (ALLOCNO_EMIT_DATA): New macro.
7766 (ira_allocno_emit_data, allocno_emit_reg): New.
7767 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
656e2b9d 7768 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
66d9a7b9 7769 (OBJECT_ADD_DATA): New macro.
7770 (ira_reallocate): Remove.
7771 (ira_initiate_emit_data, ira_finish_emit_data): New.
7772 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7773 (ira_init_register_move_cost_if_necessary): New.
7774 (ira_object_conflict_iter_next): Merge into
7775 ira_object_conflict_iter_cond.
656e2b9d 7776 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
66d9a7b9 7777
dcab66ec 7778 * ira-live.c (process_single_reg_class_operands): Call
66d9a7b9 7779 ira_init_register_move_cost_if_necessary. Use
7780 ira_register_move_cost instead of ira_get_register_move_cost.
7781
7782 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7783
7784 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7785
7786 * ira-costs.c: Fix formatting.
7787 (cost_classes, cost_classes_num): Remove.
7788 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7789 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7790 (cost_classes_del, cost_classes_htab): New.
7791 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7792 (initiate_regno_cost_classes, setup_cost_classes): New.
7793 (setup_regno_cost_classes_by_aclass): New.
656e2b9d 7794 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
66d9a7b9 7795 (record_reg_classes): Use regno_cost_classes instead of
7796 cost_classes. Move checking opposite operand up.
7797 (record_address_regs): Use regno_cost_classes
7798 instead of cost_classes.
7799 (scan_one_insn): Ditto. Use always general register.
7800 (print_allocno_costs): Use regno_cost_classes instead of
7801 cost_classes.
7802 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7803 (find_costs_and_classes): Set up cost classes for each registers.
7804 Use also their mode for this. Use regno_cost_classes instead of
7805 cost_classes.
7806 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7807 cost_classes.
7808 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7809 (ira_costs, ira_set_pseudo_classes): Call
7810 initiate_regno_cost_classes and finish_regno_cost_classes.
7811
7812 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7813
7814 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7815
7816 * target.def (ira_cover_classes): Remove.
7817
656e2b9d 7818 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
66d9a7b9 7819
7820 * doc/tm.texi.in: Ditto.
7821
7822 * ira-conflicts.c: Remove mentioning cover classes from the file.
7823 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
656e2b9d 7824 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
66d9a7b9 7825
7826 * targhooks.c (default_ira_cover_classes): Remove.
7827
7828 * targhooks.h (default_ira_cover_classes): Ditto.
7829
7830 * haifa-sched.c: Remove mentioning cover classes from the file.
7831 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7832 ira_pressure_classes and ira_pressure_classes_num instead of
7833 ira_reg_class_cover_size and ira_reg_class_cover. Use
7834 sched_regno_pressure_class instead of sched_regno_cover_class.
7835 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7836 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7837
7838 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7839 classes from the file.
7840 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7841 (struct object_hard_regs, struct object_hard_regs_node): New.
7842 (struct ira_object): New members profitable_hard_regs,
7843 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7844 (struct ira_allocno): Rename cover_class to aclass. Rename
7845 cover_class_cost and updated_cover_class_cost to class_cost and
7846 updated_class_cost. Remove splay_removed_p and
7847 left_conflict_size. Add new members colorable_p.
7848 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7849 (ALLOCNO_COLORABLE_P): New macro.
7850 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7851 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7852 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7853 (OBJECT_...): Rename parameter C to O.
7854 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7855 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7856 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7857 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7858 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7859 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7860 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7861 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7862 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7863 x_ira_reg_class_subunion.
7864 (ira_max_memory_move_cost, ira_max_register_move_cost)
7865 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7866 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7867 (ira_important_class_nums, ira_reg_class_superunion): New macros.
656e2b9d 7868 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
66d9a7b9 7869 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7870 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7871 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7872 (ira_tune_allocno_costs_and_cover_classes): Rename to
7873 ira_tune_allocno_costs.
7874 (ira_debug_hard_regs_forest): New.
7875 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7876 (ira_object_conflict_iter_next): Fix comments.
656e2b9d 7877 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
66d9a7b9 7878 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7879 cover_class to aclass.
7880 (ira_allocate_and_accumulate_costs): Ditto.
7881 (ira_allocate_and_set_or_copy_costs): Ditto.
7882
7883 * opts.c (decode_options): Remove ira_cover_class check.
7884
7885 * ira-color.c: Remove mentioning cover classes from the file. Use
7886 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7887 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7888 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7889 (splay-tree.h): Remove include.
7890 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7891 before copy_freq_compare_func.
7892 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7893 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7894 New definitions.
7895 (hard_regs_roots, hard_regs_node_vec): Ditto.
7896 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7897 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7898 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7899 (create_new_object_hard_regs_node): Ditto.
7900 (add_new_object_hard_regs_node_to_forest): Ditto.
656e2b9d 7901 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
66d9a7b9 7902 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7903 Ditto.
7904 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7905 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7906 (remove_unused_object_hard_regs_nodes): Ditto.
7907 (enumerate_object_hard_regs_nodes): Ditto.
7908 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7909 (object_hard_regs_subnode_t): Ditto.
7910 (struct object_hard_regs_subnode): Ditto.
7911 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7912 (setup_object_hard_regs_subnode_index): Ditto.
7913 (get_object_hard_regs_subnodes_num): Ditto.
7914 (form_object_hard_regs_nodes_forest): Ditto.
7915 (finish_object_hard_regs_nodes_tree): Ditto.
7916 (finish_object_hard_regs_nodes_forest): Ditto.
7917 (allocnos_have_intersected_live_ranges_p): Rename to
656e2b9d 7918 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
66d9a7b9 7919 (pseudos_have_intersected_live_ranges_p): Rename to
7920 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7921 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7922 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7923 (update_copy_costs): Remove assert. Skip cost update if the hard
7924 reg does not belong the class.
7925 (assign_hard_reg): Process only profitable hard regs.
7926 (uncolorable_allocnos_num): Make it scalar.
7927 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7928 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7929 and ira_reg_class_max_nregs.
7930 (bucket_allocno_compare_func): Check frequency first.
7931 (sort_bucket): Add compare function as a parameter.
7932 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7933 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7934 (push_allocno_to_stack): Rewrite for checking new allocno
7935 colorability.
656e2b9d 7936 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
66d9a7b9 7937 (push_only_colorable): Pass new parameter to sort_bucket.
7938 (push_allocno_to_spill): Remove.
7939 (allocno_spill_priority_compare): Make it inline and rewrite.
7940 (splay_tree_allocate, splay_tree_free): Remove.
7941 (allocno_spill_sort_compare): New function.
7942 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7943 build and use splay tree. Choose first allocno in uncolorable
7944 allocno bucket to spill. Remove setting spill cost.
7945 (all_conflicting_hard_regs): Remove.
7946 (setup_allocno_available_regs_num): Check only profitable hard
7947 regs. Print info about hard regs nodes.
7948 (setup_allocno_left_conflicts_size): Remove.
7949 (put_allocno_into_bucket): Don't call
656e2b9d 7950 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
66d9a7b9 7951 (improve_allocation): New.
7952 (color_allocnos): Call setup_profitable_hard_regs,
7953 form_object_hard_regs_nodes_forest, improve_allocation,
7954 finish_object_hard_regs_nodes_forest. Setup spill cost.
7955 (print_loop_title): Use pressure classes.
7956 (color_allocnso): Ditto.
7957 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7958 and allocnos_for_spilling.
7959 (ira_sort_regnos_for_alter_reg): Don't setup members
7960 {first,next}_coalesced_allocno.
7961 (color): Remove allocating and freeing removed_splay_allocno_vec.
7962 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7963 prohibited_class_mode_regs.
7964
7965 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7966 formatting.
7967 (update_allocno_pressure_excess_length): Use pressure classes.
7968 (inc_register_pressure, dec_register_pressure): Check for pressure
7969 class.
7970 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7971 pressure class. Use ira_reg_class_nregs instead of
7972 ira_reg_class_max_nregs.
7973 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7974 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7975 (single_reg_class): Use ira_reg_class_nregs instead of
7976 ira_reg_class_max_nregs.
7977 (process_bb_node_lives): Use pressure classes.
7978
7979 * ira-emit.c: Remove mentioning cover classes from the file. Use
7980 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7981 (change_loop): Use pressure classes.
7982 (modify_move_list): Call ira_set_allocno_class instead of
7983 ira_set_allocno_cover_class.
7984
7985 * ira-build.c: Remove mentioning cover classes from the file. Use
7986 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7987 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7988 ALLOCNO_UPDATED_CLASS_COST instead of
7989 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7990 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7991 (ira_create_allocno): Remove initialization of
7992 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7993 ALLOCNO_COLORABLE_P.
7994 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7995 Update conflict regs for the objects.
7996 (create_cap_allocno): Remove assert. Don't propagate
7997 ALLOCNO_AVAILABLE_REGS_NUM.
7998 (ira_free_allocno_costs): New function.
7999 (finish_allocno): Change a part of code into call of
8000 ira_free_allocno_costs.
8001 (low_pressure_loop_node_p): Use pressure classes.
8002 (object_range_compare_func): Don't compare classes.
8003 (setup_min_max_conflict_allocno_ids): Ditto.
8004
8005 * loop-invariant.c: Remove mentioning cover classes from the file.
8006 Use ira_pressure_classes and ira_pressure_classes_num instead of
8007 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
656e2b9d 8008 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8009 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8010 Use reg_allocno_class instead of reg_cover_class.
66d9a7b9 8011 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8012 STACK_REG_COVER_CLASS.
8013 (get_regno_cover_class): Rename to get_regno_pressure_class.
8014 (move_loop_invariants): Initialize and finalize regstat.
8015
8016 * ira.c: Remove mentioning cover classes from the file. Add
8017 comments about coloring without cover classes. Use ALLOCNO_CLASS
8018 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8019 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8020 setup_class_subset_and_memory_move_costs.
8021 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8022 (setup_cover_and_important_classes): Rename to
8023 setup_allocno_and_important_classes.
8024 (setup_class_translate_array): New.
8025 (setup_class_translate): Call it for allocno and pressure classes.
8026 (cover_class_order): Rename to allocno_class_order.
8027 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8028 of ira_class_translate.
8029 (reorder_important_classes): Set up ira_important_class_nums.
8030 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8031 (print_class_cover): Rename to print_classes. Add parameter.
8032 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8033 Print pressure classes too.
8034 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8035 setup_reg_subclasses.
656e2b9d 8036 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
66d9a7b9 8037 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8038 (setup_prohibited_class_mode_regs): Use
656e2b9d 8039 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
66d9a7b9 8040 (clarify_prohibited_class_mode_regs): New function.
8041 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8042 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8043 (ira_init_once): Initialize them.
8044 (free_register_move_costs): Process them.
8045 (ira_init): Move calls of find_reg_classes and
8046 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8047 Call clarify_prohibited_class_mode_regs.
8048 (ira_no_alloc_reg): Remove.
8049 (too_high_register_pressure_p): Use pressure classes.
8050
8051 * sched-deps.c: Remove mentioning cover classes from the file.
8052 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8053 ira_pressure_classes and ira_pressure_classes_num instead of
8054 ira_reg_class_cover_size and ira_reg_class_cover.
8055 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8056 sched_regno_pressure_class instead of sched_regno_cover_class.
8057 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8058 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8059
8060 * ira.h: Add 2010 to Copyright.
8061 (ira_no_alloc_reg): Remove external.
8062 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8063 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8064 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8065 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8066 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8067 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8068 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8069 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8070 x_ira_no_alloc_regs.
656e2b9d 8071 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
66d9a7b9 8072 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8073 ira_allocno_classes_num and ira_allocno_classes.
8074 (ira_class_translate): Rename to ira_allocno_class_translate.
8075 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8076 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8077 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8078 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8079 (ira_no_alloc_regs): New.
8080
8081 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8082 classes from the file. Use ALLOCNO_CLASS instead of
8083 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8084 ALLOCNO_COVER_CLASS_COST.
8085 (regno_cover_class): Rename to regno_aclass.
8086 (record_reg_classes): Use ira_reg_class_subunion instead of
8087 ira_reg_class_union.
8088 (record_address_regs): Check overflow.
8089 (scan_one_insn): Ditto.
656e2b9d 8090 (print_allocno_costs): Print total mem cost fore regional allocation.
66d9a7b9 8091 (print_pseudo_costs): Use REG_N_REFS.
8092 (find_costs_and_classes): Use classes intersected with them on the
8093 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8094 ira_reg_class_union. Use ira_allocno_class_translate and
8095 regno_aclass instead of ira_class_translate and regno_cover_class.
8096 Modify code for finding regno_aclass. Setup preferred classes for
8097 the next pass.
8098 (setup_allocno_cover_class_and_costs): Rename to
8099 setup_allocno_class_and_costs. Use regno_aclass instead of
8100 regno_cover_class. Use ira_set_allocno_class instead of
8101 ira_set_allocno_cover_class.
8102 (init_costs, finish_costs): Use regno_aclass instead of
8103 regno_cover_class.
8104 (ira_costs): Use setup_allocno_class_and_costs instead of
8105 setup_allocno_cover_class_and_costs.
8106 (ira_tune_allocno_costs_and_cover_classes): Rename to
8107 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8108 by processing objects. Use ira_reg_class_max_nregs instead of
8109 ira_reg_class_nregs.
8110
8111 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8112
8113 * sched-int.h: Remove mentioning cover classes from the file.
8114 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8115
8116 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8117 classes from the file.
8118 (struct reg_pref): Rename coverclass into allocnoclass.
8119 (reg_cover_class): Rename to reg_allocno_class.
8120
656e2b9d 8121 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
66d9a7b9 8122
8123 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8124
8125 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8126
8127 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8128
8129 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8130
8131 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8132
8133 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8134
8135 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8136
8137 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8138
8139 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8140
8141 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8142 (i386_ira_cover_classes): Ditto.
8143
8144 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8145
8146 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8147
8148 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8149
8150 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8151
8152 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8153
8154 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8155
8156 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8157 (mips_ira_cover_classes): Ditto.
8158
8159 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8160
8161 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8162
8163 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8164
8165 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8166
8167 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8168
8169 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8170 (IRA_COVER_CLASSES_VSX): Ditto.
8171
8172 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8173 (rs6000_ira_cover_classes): Ditto.
8174
8175 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8176
8177 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8178
8179 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8180
8181 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8182
8183 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8184
8185 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8186
8187 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8188
8189 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8190
8191 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8192
8193 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8194
06eb3ccd 81952011-03-29 Jakub Jelinek <jakub@redhat.com>
8196
c6dedfd4 8197 PR debug/48253
8198 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8199 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8200 dw_fde_unlikely_section_end_label, cold_in_std_section,
8201 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8202 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8203 fields.
8204 (output_fde): Use dw_fde_second_{begin,end} if second is
8205 true, otherwise dw_fde_{begin,end}.
8206 (output_call_frame_info): Test dw_fde_second_begin != NULL
8207 instead of dw_fde_switched_sections.
8208 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8209 fields, initialize new fields. Initialize in_std_section
8210 unconditionally from the first partition.
8211 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8212 dw_fde_second_begin is non-NULL.
8213 (dwarf2out_switch_text_section): Stop initializing removed
8214 dw_fde_struct fields, initialize new fields, initialize
8215 also dw_fde_end here. Set dw_fde_switch_cfi even when
8216 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8217 (struct var_loc_list_def): Add last_before_switch field.
8218 (arange_table, arange_table_allocated, arange_table_in_use,
8219 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8220 (size_of_aranges): Count !in_std_section and !second_in_std_section
8221 hunks in fdes, instead of looking at arange_table_in_use.
8222 (output_aranges): Add aranges_length argument, don't call
8223 size_of_aranges here. Instead of using aranges_table*
8224 emit ranges for fdes when !in_std_section resp.
8225 !second_in_std_section.
8226 (dw_loc_list): Break ranges crossing section switch.
8227 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
656e2b9d 8228 use dw_fde_second_end instead of dw_fde_end as end of last range.
c6dedfd4 8229 (gen_subprogram_die): Don't call add_arange. Use
8230 dw_fde_{begin,end} for first partition and if switched
8231 section dw_fde_second_{begin,end} for the second.
8232 (var_location_switch_text_section_1,
8233 var_location_switch_text_section): New functions.
8234 (dwarf2out_begin_function): Initialize cold_text_section even
8235 when function_section () isn't text_section.
8236 (prune_unused_types): Don't walk arange_table.
8237 (dwarf2out_finish): Don't needlessly test
8238 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8239 If info_section_emitted, call size_of_aranges and if it indicates
8240 non-empty .debug_aranges, call output_aranges with the computed
8241 size. Stop using removed dw_fde_struct fields, use
8242 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8243 for second.
8244
06eb3ccd 8245 PR debug/48203
8246 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8247 create ENTRY_VALUE if incoming or address of incoming's MEM
8248 is a hard REG.
8249 * dwarf2out.c (mem_loc_descriptor): Don't emit
8250 DW_OP_GNU_entry_value of DW_OP_fbreg.
8251 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8252 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8253 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8254 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8255 ENTRY_VALUE_EXPs.
8256 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8257 is a REG_P or MEM_P with REG_P address, compute hash directly
8258 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8259 (preserve_only_constants): Don't clear VALUES forwaring
8260 ENTRY_VALUE to some other VALUE.
8261
03a5dda9 82622011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8263
8264 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8265 instead of GEN_INT.
8266
8c593757 82672011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8268
8269 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8270 block before expanding the statement.
8271 (expand_gimple_stmt_1): Likewise. Set them here...
8272 (expand_gimple_stmt): ...and not here. Tidy.
8273 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8274 unknown.
8275
07abdb66 82762011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8277
8278 * Makefile.in: New rule for cprop.o.
8279 * gcse.c: Move constant/copy propagation to cprop.c.
8280 (compute_local_properties): Only handle expression tables.
8281 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8282 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8283 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8284 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
656e2b9d 8285 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
07abdb66 8286 compute_cprop_data, find_used_regs, try_replace_reg,
8287 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8288 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8289 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8290 find_bypass_set, reg_killed_on_edge, bypass_block,
8291 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8292 execute_rtl_cprop, pass_rtl_cprop): Move to...
8293 * cprop.c: ...here. New file, constant/copy propagation for RTL
8294 moved from gcse.c to here with minor cleanups in duplicated code.
8295
8e4ee659 82962011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8297
8298 * config/i386/i386.c (flag_opts): Fix a typo in
8299 -mavx256-split-unaligned-store.
8300
9f4cd859 83012011-03-28 Anatoly Sokolov <aesok@post.ru>
8302
8303 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8304 LIBCALL_VALUE): Remove macros.
8305 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8306 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8307 (h8300_function_value, h8300_libcall_value,
8308 h8300_function_value_regno_p): New functions.
8309
d80478df 83102011-03-28 Anatoly Sokolov <aesok@post.ru>
8311
8312 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8313
42b013bc 83142011-03-28 Jeff Law <law@redhat.com>
8315
8316 * tree-ssa-threadupdate.c (redirect_edges): Call
8317 create_edge_and_update_destination_phis as needed.
8318 (create_edge_and_update_destination_phis): Accept new BB argument.
8319 All callers updated.
8320 (thread_block): Do not update the profile when threading around
8321 intermediate blocks.
8322 (thread_single_edge): Likewise.
8323 (determine_bb_domination_status): If BB is not a successor of the
8324 loop header, return NONDOMINATING.
8325 (register_jump_thread): Note when we register a jump thread around
8326 an intermediate block.
8327 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8328 (thread_across_edge): Use it.
8329
35f74ece 83302011-03-28 Tristan Gingold <gingold@adacore.com>
8331
8332 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8333 when for_return is 2.
8334
8f9c21d9 83352011-03-28 Jeff Law <law@redhat.com>
8336
8337 * var-tracking.c (canonicalize_values_mark): Delete unused
8338 lhs assignment.
8339 (canonicalize_values_star, set_variable_part): Likewise.
8340 (clobber_variable_part, delete_variable_part): Likewise.
8341
98076867 83422011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8343
8344 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8345
222bc9b9 83462011-03-28 Martin Jambor <mjambor@suse.cz>
8347
8348 * tree-inline.c (expand_call_inline): Do not check that destination
8349 node is analyzed.
8350 (optimize_inline_calls): Assert that destination node is analyzed.
8351 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8352 not call tree_lowering_passes.
8353 * cgraph.h (cgraph_analyze_function): Declare.
8354 * cgraphunit.c (cgraph_analyze_function): Make public.
8355
a2eed601 83562011-03-28 Joseph Myers <joseph@codesourcery.com>
8357
8358 * config/sparc/sparc-opts.h: New.
8359 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8360 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8361 (sparc_option_override): Store processor_type enumeration rather
8362 than string in cpu_default. Remove name and enumeration from
8363 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8364 without using sparc_select. Use target_flags_explicit instead of
8365 fpu_option_set.
8366 * config/sparc/sparc.h (enum processor_type): Move to
8367 sparc-opts.h.
8368 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8369 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8370 HeaderInclude entry.
8371 (mcpu=, mtune=): Use Var and Enum.
8372 (sparc_processor_type): New Enum and EnumValue entries.
8373
703c9b8a 83742011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8375 Iain Sandoe <iains@gcc.gnu.org>
8376
8377 PR target/48245
8378 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8379
bee862b6 83802011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8381
8382 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8383 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8384 Insert new statements at it in lieu of STMT.
8385 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8386 * tree-vect-stmts.c (vectorizable_store): Likewise.
8387 (vectorizable_load): Likewise.
8388
935ab977 83892011-03-28 Uros Bizjak <ubizjak@gmail.com>
8390
8391 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8392 (divtf3): Ditto.
8393 (multf3): Ditto.
8394 (subtf3): Ditto.
8395
30d07ab3 83962011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8397
8398 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8399 unaligned 256bit load/store.
8400 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8401 (*avx_movdqu<avxmodesuffix>): Likewise.
8402
5f239f13 84032011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8404
8405 PR target/48288
8406 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8407 * config/pa/pa.md (iordi3): Use new predicate in expander.
8408 (iorsi3): Likewise.
8409
5521a590 84102011-03-27 Anatoly Sokolov <aesok@post.ru>
8411
935ab977 8412 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5521a590 8413 FUNCTION_VALUE_REGNO_P): Remove macros.
935ab977 8414 * config/mips/mips-protos.h (mips_function_value): Remove.
8415 * config/mips/mips.c (mips_function_value): Rename to...
5521a590 8416 (mips_function_value_1): ... this. Make static. Handle receiving
8417 the function type in 'fn_decl_or_type' argument.
8418 (mips_function_value, mips_libcall_value,
8419 mips_function_value_regno_p): New function.
8420 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8421 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8422
b8cb8d52 84232011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8424
8425 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8426 and -mavx256-split-unaligned-store.
8427 (ix86_option_override_internal): Split 32-byte AVX unaligned
8428 load/store by default.
8429 (ix86_avx256_split_vector_move_misalign): New.
8430 (ix86_expand_vector_move_misalign): Use it.
8431
8432 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8433 -mavx256-split-unaligned-store.
8434
8435 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8436 256bit load/store. Generate unaligned store on misaligned memory
8437 operand.
8438 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8439 256bit load/store.
8440 (*avx_movdqu<avxmodesuffix>): Likewise.
8441
8442 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8443 -mavx256-split-unaligned-store.
8444
72aac168 84452011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8446
8447 PR target/38598
8448 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8449 Update commentary.
8450
86f1bed2 84512011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8452
8453 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8454 opno arguments with an expand_operand. Use create_input_operand.
8455 (mips_prepare_builtin_target): Delete.
8456 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8457 functions.
8458 (mips_expand_builtin_direct): Use create_output_operand and
8459 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8460 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8461 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8462
7edb1e83 84632011-03-27 Ira Rosen <ira.rosen@linaro.org>
8464
8465 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8466 function.
8467 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8468
54f21e20 84692011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8470
8471 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8472 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8473 basic blocks and call commit_edge_insertions directly.
8474 (fixup_abnormal_edges): Move from here to...
8475 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8476 on the edges and return whether some have actually been inserted.
8477 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8478 compensation code.
8479
c53624fb 84802011-03-26 Andrey Belevantsev <abel@ispras.ru>
8481
8482 PR rtl-optimization/48144
8483 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8484 (merge_expr_data): ... here.
8485 (av_set_intersect): Rename to av_set_code_motion_filter.
8486 Update all callers. Call merge_history_vect when an expression
8487 is found in both sets.
8488 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8489
02426144 84902011-03-26 Alan Modra <amodra@gmail.com>
8491
8492 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8493 cmodel medium addresses.
8494 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8495 64-bit gpr loads and stores.
8496 (rs6000_secondary_reload_ppc64): New function.
8497 * config/rs6000/rs6000-protos.h: Declare it.
8498 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8499
31fdbcb6 85002011-03-26 Alan Modra <amodra@gmail.com>
8501
8502 PR target/47487
8503 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8504 GNU Go in traceback table.
8505
b52cb719 85062011-03-25 Richard Henderson <rth@redhat.com>
8507
8508 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8509 if there are exactly 6 operands.
8510 (set_storage_via_setmem): Similarly.
8511
82715bcd 85122011-03-25 Kai Tietz <ktietz@redhat.com>
8513
8514 * collect2.c (write_c_file_stat): Handle backslash
8515 as right-hand directory separator.
8516 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8517 checking just for slash.
8518 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8519 instead of checking for trailing slash.
8520 * gcc.c (record_temp_file): Use filename_cmp instead
8521 of strcmp.
8522 (do_spec_1): Likewise.
8523 (replace_outfile_spec_function): Likewise.
8524 (is_directory): Use filename_ncmp instead of strncmp.
8525 (print_multilib_info): Likewise.
8526 * gcov.c (find_source): Use filename_cmp instead
8527 instead of strcmp.
8528 (make_gcov_file_name): Fix order of slash/backslash
8529 checks.
8530 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8531 (add_standard_paths): Likewise.
8532 * mips-tfile.c (saber_stop): Handle backslash.
8533 * prefix.c (update_path): Use filename_ncmp instead of
8534 strncmp.
8535 * profile.c (output_location): Use filename_cmp instead
8536 of strcmp.
8537 * read-md.c (handle_toplevel_file): Handle backslash.
8538 * tlink.c (frob_extension): Likewise.
8539 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8540 strcmp.
8541 * tree-dump.c (dequeue_and_dump): Handle backslash.
8542 * tree.c (get_file_function_name): Likewise.
8543 * gengtype.c (read_input_list): Likewise.
8544 (get_file_realbasename): Likewise.
8545 (get_output_file_with_visibility): Use filename_cmp
8546 instead of strcmp.
8547
92861a27 85482011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8549
8550 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8551 case to VFPv1.
8552
6535fbf5 85532011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8554
8555 * fold-const.c (expr_location_or): New function.
8556 (fold_truth_not_expr): Call it.
8557
451c8e2f 85582011-03-25 Jeff Law <law@redhat.com>
8559
8560 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8561 va_end.
8562 * c-family/c-common.c (def_fn_type): Likewise.
8563 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8564 * emit-rtl.c (gen_rtvec): Likewise.
8565 * lto/lto-lang.c (def_fn_type): Likewise.
8566
f82efd77 85672011-03-25 Richard Guenther <rguenther@suse.de>
8568
8569 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8570 also generate copies.
8571 (fini_copy_prop): Handle constant values properly.
8572
ed0d805a 85732011-03-25 Jakub Jelinek <jakub@redhat.com>
8574
8575 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8576 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8577 (hash_loc_operands, compare_loc_operands): Handle
8578 DW_OP_GNU_entry_value.
8579
59839b36 85802011-03-25 Kai Tietz <ktietz@redhat.com>
8581
8582 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8583 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8584 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8585 comment and use macro TARGET_64BIT_MS_ABI instead.
8586 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8587 and change default behavior for 32-bit MS_ABI.
8588 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8589 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8590 32-bit, too.
8591 (ix86_cfun_abi): Likewise.
8592 (ix86_maybe_switch_abi): Adjust comment.
8593 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8594 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8595 instead of checking for SYSV_ABI.
8596 (ix86_nsaved_sseregs): Likewise.
8597 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8598 to 16 bytes.
8599 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8600 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8601 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8602 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8603 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8604
fd7ad53b 86052011-03-25 Richard Guenther <rguenther@suse.de>
8606
8607 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8608 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8609 (verify_gimple): Remove.
8610 * tree-cfg.c (verify_gimple_call): Merge verification
8611 from verify_stmts.
8612 (verify_gimple_phi): Merge verification from verify_stmts.
8613 (verify_gimple_label): New function.
8614 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8615 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8616 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8617 (verify_stmts): Rename to verify_gimple_in_cfg.
8618 (verify_gimple_in_cfg): New function.
8619 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8620 * tree-ssa.c (verify_ssa): Likewise.
8621 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8622
526b36a8 86232011-03-25 Richard Guenther <rguenther@suse.de>
8624
8625 * passes.c (init_optimization_passes): Add FRE pass after
8626 early SRA.
8627
a651f34d 86282011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8629 Andrew Stubbs <ams@codesourcery.com>
8630
8631 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8632 for Cortex-A8.
8633 (arm_movdi_vfp_cortexa8): New pattern.
8634 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8635 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8636 instructions when tuning for Cortex-A8. Set attribute "arch".
8637 * config/arm/arm.md: Move include arm-tune.md up a bit.
8638 (define_attr "arch"): Add "onlya8" and "nota8" values.
8639 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8640
ca8a2945 86412011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8642
e0450140 8643 PR bootstrap/48282
ca8a2945 8644 Revert:
8645 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8646
8647 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8648 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8649 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8650 * passes.c (init_optimization_passes): Move
8651 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8652
309303cf 86532011-03-25 Kai Tietz <ktietz@redhat.com>
8654
8655 * c-typeck.c (comptypes_internal): Replace target
8656 hook call of comp_type_attributes by version in tree.c file.
8657 * gimple.c (gimple_types_compatible_p_1): Likewise.
8658 * tree-ssa.c (useless_type_conversion_p): Likewise.
8659 * tree.c (build_type_attribute_qual_variant): Likewise.
8660 (attribute_value_equal): New static helper function.
8661 (comp_type_attributes): New function.
8662 (merge_attributes): Use attribute_value_equal for comparison.
8663 (attribute_list_contained): Likewise.
8664 * tree.h (comp_type_attributes): New prototype.
8665
5717187b 86662011-03-25 Richard Guenther <rguenther@suse.de>
8667
8668 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8669 of complex types at -O0.
8670 (verify_gimple_assign_binary): Likewise.
8671 (verify_gimple_assign_ternary): Likewise.
8672
5c550782 86732011-03-24 Mark Wielaard <mjw@redhat.com>
8674
8675 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8676 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8677
b3ba5e8d 86782011-03-24 Mark Wielaard <mjw@redhat.com>
8679
8680 PR debug/48041
8681 * dwarf2out.c (output_abbrev_section): Only write table when
8682 abbrev_die_table_in_use > 1.
8683
7a20d8cd 86842011-02-24 Richard Henderson <rth@redhat.com>
8685
8686 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8687 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8688 (alpha_expand_unaligned_load_words): Use extql.
8689 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8690 (emit_insxl): Handle all modes for consistency.
8691
9bab4302 86922011-02-24 Richard Henderson <rth@redhat.com>
8693
8694 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8695 (alpha_expand_unaligned_load): Likewise.
8696 (alpha_expand_unaligned_store): Likewise.
8697 (alpha_expand_unaligned_load_words): Likewise.
8698 (alpha_expand_unaligned_store_words): Likewise.
8699 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8700 (alpha_split_lock_test_and_set_12): Likewise.
8701 (print_operand, alpha_fold_builtin_extxx): Likewise.
8702 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8703 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8704 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8705 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8706 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8707 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8708 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8709 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8710 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8711 (extwl, extll, extql): Similarly.
8712 (inswh, inslh, insqh): Similarly.
8713 (mskbl, mskwl, mskll, mskql): Similarly.
8714 (mskwh, msklh, mskqh): Similarly.
8715
6bcf8cab 87162011-02-24 Richard Henderson <rth@redhat.com>
8717
8718 * config/alpha/alpha.md (attribute isa): Add er, ner.
8719 (attribute enabled): Handle them.
8720 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8721
baa0ecef 87222011-02-24 Richard Henderson <rth@redhat.com>
8723
8724 * config/alpha/alpha.md (attribute isa): Add vms.
8725 (attribute enabled): Handle it.
8726 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8727 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8728 (*movtf): Rename from *movtf_internal for consistency.
8729 (*movsi): Merge with *movsi_nt_vms.
8730 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8731 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8732 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8733 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8734
8b2983a3 87352011-02-24 Richard Henderson <rth@redhat.com>
8736
8737 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8738 (extendqisi2, extendhisi2): Likewise.
8739 (extendqidi2): Simplify BWX/non-BWX expansions.
8740 (extendhidi2): Similarly.
8741
e31a3157 87422011-02-24 Richard Henderson <rth@redhat.com>
8743
8744 * config/alpha/alpha.md (attribute isa): New.
8745 (attribute enabled): New.
8746 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8747 (zero_extendqisi2, zero_extendqidi2): Similarly.
8748 (zero_extendhisi2, zero_extendhidi2): Similarly.
8749 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8750
3351cef0 87512011-02-24 Richard Henderson <rth@redhat.com>
8752
8753 * config/alpha/predicates.md (input_operand): Revert last change;
8754 update comment to mention 32-bit VMS rather than Windows.
8755
d304b9e1 87562011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8757
8758 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8759 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8760 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8761 * passes.c (init_optimization_passes): Move
8762 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8763
3064d0d2 87642011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8765
8766 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8767
92676954 87682011-03-24 Uros Bizjak <ubizjak@gmail.com>
8769
8770 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8771 correctly.
8772
21be4257 87732011-03-24 Jakub Jelinek <jakub@redhat.com>
8774
8775 PR debug/48204
8776 * simplify-rtx.c (simplify_const_unary_operation): Call
8777 real_convert when changing mode class with FLOAT_EXTEND.
8778
9f9a3b39 87792011-03-24 Nick Clifton <nickc@redhat.com>
8780
8781 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8782 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8783 * config/rx/rx.c (rx_option_override): Set align_jumps,
8784 align_loops and align_labels if not set by the user.
8785 (rx_align_for_label): New function.
8786 (rx_max_skip_for_label): New function.
8787 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8788 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8789 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8790 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8791 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8792
46fc03c6 87932011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8794
8795 PR rtl-optimization/48263
8796 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8797 and original commutative_p handling. Use maybe_gen_insn.
8798
b5fe590a 87992011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8800
8801 * reload.c (find_reloads_subreg_address): Add address_reloaded
8802 parameter and return true there if the full address has been
8803 reloaded.
8804 (find_reloads_toplev): Pass address_reloaded flag.
8805 (find_reloads_address_1): Don't use address_reloaded parameter.
8806
4392e906 88072011-03-24 Jeff Law <law@redhat.com>
8808
8809 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8810 unused variable "ann".
8811 (remove_unused_locals): Likewise.
8812
8813 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8814 statement.
8815
8816 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8817 after it is freed.
8818
08d88e72 88192011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8820
8821 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8822 for invalid symbolic addresses.
8823 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8824 larl operands.
8825
30d202de 88262011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8827
8828 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8829 the argument in calls to fold_truth_not_expr.
8830
1cbe3047 88312011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8832
8833 * tree.c (record_node_allocation_statistics): New function.
8834 (make_node_stat, copy_node_stat, build_string): Call it.
8835 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8836 (build1_stat, build_omp_clause): Likewise.
8837
45c0b118 88382011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8839
8840 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8841 last commit.
8842
07eeb468 88432011-03-24 Richard Guenther <rguenther@suse.de>
8844
8845 PR tree-optimization/48271
8846 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8847 blocks that still exist.
8848
2473bfb7 88492011-03-24 Richard Guenther <rguenther@suse.de>
8850
8851 PR tree-optimization/48270
8852 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8853 not free datarefs before ddrs.
8854
453d5246 88552011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8856
8857 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8858 from the address built for a reference with variable offset.
8859
a23f3c3c 88602011-03-24 Uros Bizjak <ubizjak@gmail.com>
8861
8862 PR target/48237
8863 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8864 alternatives that can be handled with movq or movabsq insn.
8865 (*movdf_internal): Disable for !TARGET_64BIT.
8866 (*movdf_internal_nointeger): Ditto.
8867 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8868
81bcd36c 88692011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8870
8871 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8872 (FUNCTION_ARG_ADVANCE): Likewise.
8873 * tm.texi.in: Change references to them to hook references.
8874 * tm.texi: Regenerate.
a23f3c3c 8875 * targhooks.c (default_function_arg): Eliminate check for target macro.
81bcd36c 8876 (default_function_incoming_arg): Likewise.
8877 (default_function_arg_advance): Likewise.
a23f3c3c 8878 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
81bcd36c 8879 (function_arg_advance): Likewise.
8880 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8881
1688dd20 88822011-03-24 Richard Guenther <rguenther@suse.de>
8883
8884 PR middle-end/48269
8885 * tree-object-size.c (addr_object_size): Do not double-account
8886 for MEM_REF offsets.
8887
284cc480 88882011-03-24 Diego Novillo <dnovillo@google.com>
8889
8890 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
a23f3c3c 8891 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
284cc480 8892 (lto_input_data_block): Move from lto-opts.c. Make extern.
8893 Update all users.
8894 (lto_input_string): Rename from input_string. Make extern.
8895 Update all users.
8896 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8897 output_string_with_length.
8898 Output 0 to indicate a non-NULL string. Update all callers to
8899 not emit 0.
8900 (lto_output_string): Rename from output_string. Make extern.
8901 Update all users.
8902 (lto_output_decl_state_streams): Make extern.
8903 (lto_output_decl_state_refs): Make extern.
8904 * lto-streamer.h (lto_input_string): Declare.
8905 (lto_input_data_block): Declare.
8906 (lto_output_string): Declare.
8907 (lto_output_string_with_length): Declare.
8908 (lto_output_decl_state_streams): Declare.
8909 (lto_output_decl_state_refs): Declare.
8910
1d0b727d 89112011-03-24 Richard Guenther <rguenther@suse.de>
8912
8913 PR tree-optimization/46562
8914 * tree.c (build_invariant_address): New function.
8915 * tree.h (build_invariant_address): Declare.
8916 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8917 a renamed function moved ...
8918 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8919 Take valueization callback parameter.
8920 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8921 * gimple-fold.h: New file.
8922 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8923 (ccp_fold, fold_const_aggregate_ref,
8924 fold_ctor_reference, fold_nonarray_ctor_reference,
8925 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8926 get_base_constructor): Move ...
8927 * gimple-fold.c: ... here.
8928 (gimple_fold_stmt_to_constant_1): New function
8929 split out from ccp_fold. Take a valueization callback parameter.
8930 Valueize all operands.
8931 (gimple_fold_stmt_to_constant): New wrapper function.
8932 (fold_const_aggregate_ref_1): New function split out from
8933 fold_const_aggregate_ref. Take a valueization callback parameter.
8934 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8935 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8936 invariant POINTER_PLUS_EXPRs to invariant form.
8937 (vn_valueize): New function.
8938 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8939 * tree-vrp.c (vrp_valueize): New function.
8940 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8941 to fold statements to constants.
8942 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8943 function declarations.
8944 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8945 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8946
92070737 89472011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8948
8949 * config/h8300/predicates.md (jump_address_operand): Fix register
8950 mode check.
8951
ec611e12 89522011-03-24 Ira Rosen <ira.rosen@linaro.org>
8953
8954 * doc/invoke.texi (max-stores-to-sink): Document.
8955 * params.h (MAX_STORES_TO_SINK): Define.
8956 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8957 if either vectorization or if-conversion is disabled.
8958 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8959 tree-vect-data-refs.c vect_equal_offsets.
8960 (dr_equal_offsets_p): New function.
8961 (find_data_references_in_bb): Remove static.
8962 * tree-data-ref.h (find_data_references_in_bb): Declare.
8963 (dr_equal_offsets_p): Likewise.
8964 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8965 (vect_drs_dependent_in_basic_block): Update calls to
8966 vect_equal_offsets.
8967 (vect_check_interleaving): Likewise.
8968 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8969 (cond_if_else_store_replacement): Rename to...
8970 (cond_if_else_store_replacement_1): ... this. Change arguments and
8971 documentation.
8972 (cond_if_else_store_replacement): New function.
8973 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8974 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8975
d022fa24 89762011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8977
8978 PR target/46934
8979 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8980 to subtract lower bound instead of GEN_INT().
8981
145f7c33 89822011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8983
8984 PR other/48179
8985 PR other/48221
8986 PR other/48234
8987 * doc/extend.texi (Alignment): Move section to match order in TOC.
8988 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8989 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8990
d5321455 89912011-03-23 Jeff Law <law@redhat.com>
8992
8993 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8994 before removing the edge.
8995
8996 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8997 it may have been freed by redirect_branch_edge or
8998 redirect_edge_succ_nodup.
8999
de508de3 90002011-03-23 Richard Guenther <rguenther@suse.de>
9001
a23f3c3c 9002 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
de508de3 9003 (check_va_list_escapes): Likewise.
9004 (check_all_va_list_escapes): Likewise.
9005
210a8eb6 90062011-03-23 Richard Guenther <rguenther@suse.de>
9007
9008 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9009 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9010 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9011 (alias.o): Likewise.
9012 (ipa-type-escape.o): Remove.
9013 (ipa-struct-reorg.o): Likewise.
9014 (GTFILES): Remove ipa-struct-reorg.c.
9015 * alias.c: Do not include ipa-type-escape.h.
9016 * tree-ssa-alias.c: Likewise.
9017 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9018 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9019 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9020 and ipa-type-escape passes.
9021 * tree-pass.h (pass_ipa_type_escape): Remove.
9022 (pass_ipa_struct_reorg): Likewise.
9023 * ipa-struct-reorg.h: Remove.
9024 * ipa-struct-reorg.c: Likewise.
9025 * ipa-type-escape.h: Likewise.
9026 * ipa-type-escape.c: Likewise.
9027 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9028 (--param struct-reorg-cold-struct-ratio): Likewise.
9029 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9030 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9031 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9032
7fe62d25 90332011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9034
9035 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9036 cpu attribute value.
9037 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9038 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9039 * config/s390/s390.c (processor_flags_table): New constant array.
9040 (s390_handle_arch_option): Remove.
9041 (s390_handle_option): Remove s390_handle_arch_option invocations
9042 and OPT_mwarn_framesize_ handling.
9043 (s390_option_override): Remove s390_handle_arch_option invocation.
9044 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9045 warnings.
9046 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9047 * config/s390/s390.opt (s390_tune, s390_arch)
9048 (march=): Replace s390_arch_option enum and values with
9049 processor_type. Set variable name to s390_arch. Set
9050 initialization value.
9051 (mtune=): Replace s390_arch_option with processor_type. Set
9052 variable name to s390_tune. Set initialization value.
9053
4087dccd 90542011-03-23 Julian Brown <julian@codesourcery.com>
9055
9056 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9057 accesses which are not naturally aligned.
9058
d7b3fc5b 90592011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9060
9061 PR target/47553
9062 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9063
8786db1e 90642011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9065
9066 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9067 parameter from "int" to "enum insn_code".
9068 (expand_operand_type): New enum.
9069 (expand_operand): New structure.
9070 (create_expand_operand): New function.
9071 (create_fixed_operand, create_output_operand): Likewise
9072 (create_input_operand, create_convert_operand_to): Likewise.
9073 (create_convert_operand_from, create_address_operand): Likewise.
9074 (create_integer_operand): Likewise.
9075 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9076 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9077 (expand_insn, expand_jump_insn): Likewise.
9078 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9079 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9080 (expand_movstr, expand_builtin___clear_cache): Likewise.
9081 (expand_builtin_lock_release): Likewise.
9082 * explow.c (allocate_dynamic_stack_space): Likewise.
9083 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9084 and use the default handling in that case.
9085 * expmed.c (check_predicate_volatile_ok): Delete.
9086 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9087 (emit_cstore): Likewise.
9088 * expr.c (emit_block_move_via_movmem): Likewise.
9089 (set_storage_via_setmem, expand_assignment): Likewise.
9090 (emit_storent_insn, try_casesi): Likewise.
9091 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9092 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9093 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9094 (expand_twoval_unop, expand_twoval_binop): Likewise.
9095 (expand_unop_direct, emit_indirect_jump): Likewise.
9096 (emit_conditional_move, vector_compare_rtx): Likewise.
9097 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9098 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9099 (expand_sync_lock_test_and_set): Likewise.
9100 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9101 (emit_unop_insn): Likewise.
9102 (expand_copysign_absneg): Change icode to an insn_code.
9103 (create_convert_operand_from_type): New function.
9104 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9105 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9106 (expand_insn, expand_jump_insn): Likewise.
9107 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9108 than const_int_operand for operand 2.
9109
10d06e9c 91102011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9111
9112 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9113 if possible.
9114
5f7c5ddd 91152011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9116
9117 * emit-rtl.c (emit_pattern_before_noloc): New function.
9118 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9119 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9120 (emit_pattern_after_noloc): New function.
9121 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9122 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9123
8761b9a1 91242011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9125
9126 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9127 (__ffsDI2): Likewise.
9128
4505d022 91292011-03-22 Richard Henderson <rth@redhat.com>
9130
9131 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9132 of !TARGET_ABI_OPEN_VMS.
9133 (alpha_trampoline_init, alpha_start_function): Likewise.
9134 (alpha_expand_epilogue, alpha_file_start): Likewise.
9135 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9136 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9137 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9138 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9139 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9140
8ad6fff9 91412011-03-22 Joseph Myers <joseph@codesourcery.com>
9142
9143 * config/s390/s390-opts.h: New.
9144 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9145 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9146 s390_stack_guard): Remove.
9147 (s390_handle_arch_option): Return void. Take enum
9148 s390_arch_option value instead of string and searching array.
9149 (s390_handle_option): Don't assert that global structures are in
9150 use. Access variables via opts pointer. Use error_at. Don't use
9151 sscanf for -mstack-guard= or -mstack-size=. Update call to
9152 s390_handle_arch_option.
9153 (s390_option_override): Update call to s390_handle_arch_option.
9154 (s390_emit_prologue): Use %d format for s390_stack_size in
9155 diagnostic. Use %wd for HOST_WIDE_INT.
9156 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9157 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9158 * config/s390/s390.opt (config/s390/s390-opts.h): New
9159 HeaderInclude entry.
9160 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9161 s390_arch_flags, s390_warn_framesize): New Variable entries.
9162 (s390_arch_option): New Enum and EnumValue entries.
9163 (march=): Use Enum instead of Var.
9164 (mstack-guard=, mstack-size=): Use UInteger and Var.
9165 (mtune=): Use Enum.
9166
3f002263 91672011-03-22 Joseph Myers <joseph@codesourcery.com>
9168
9169 * config/score/score.c (score_handle_option): Don't assert that
9170 global structures are in use. Access target_flags via opts
9171 pointer. Use value of -march= option to determine target_flags
9172 settings.
9173 * config/score/score.opt (march=): Use Enum.
9174 (score_arch): New Enum and EnumValue entries.
9175
e9e3a45a 91762011-03-22 Joseph Myers <joseph@codesourcery.com>
9177
9178 * config/mep/mep.c (option_mtiny_specified): Remove.
9179 (mep_option_override): Move register handling for -mivc2 from
9180 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9181 instead of option_mtiny_specified.
9182 (mep_handle_option): Access target_flags via opts pointer. Don't
9183 assert that global structures are in use. Defer part of -mivc2
9184 handling and move it to mep_option_override.
9185 * config/mep/mep.opt (IVC2): New Mask entry.
9186 (mivc2): Use Var and Defer instead of Mask.
9187
34491a51 91882011-03-22 Joseph Myers <joseph@codesourcery.com>
9189
9190 * config/v850/v850-opts.h: New.
9191 * config/v850/v850.c (small_memory): Replace with
9192 small_memory_physical_max array. Make that array static const.
9193 (v850_handle_memory_option): Take integer value of argument. Take
9194 gcc_options pointer, option text and location. Return void.
9195 Update for changes to small memory structures.
9196 (v850_handle_option): Access target_flags via opts pointer. Don't
9197 assert that global structures are in use. Update calls to
9198 v850_handle_memory_option.
a23f3c3c 9199 (v850_encode_data_area): Update references to small memory settings.
9200 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
34491a51 9201 (enum small_memory_type): Move to v850-opts.h.
9202 * config/v850/v850.opt (config/v850/v850-opts.h): New
9203 HeaderInclude entry.
9204 (small_memory_max): New Variable entry.
9205 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9206 (mtda, mzda): Likewise.
9207
a7f36b8e 92082011-03-22 Joseph Myers <joseph@codesourcery.com>
9209
9210 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9211 pointer. Don't assert that global structures are in use.
9212
952466b5 92132011-03-22 Joseph Myers <joseph@codesourcery.com>
9214
9215 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9216 via opts pointer. Don't assert that global structures are in use.
9217
d09dbe0a 92182011-03-22 Joseph Myers <joseph@codesourcery.com>
9219
9220 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9221 (munix=93): Use Var.
9222 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9223 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9224 * config/pa/pa-opts.h: New.
9225 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9226 (pa_handle_option): Don't assert that global structures are in
9227 use. Access target_flags via opts pointer. Don't handle
9228 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9229 OPT_munix_98 here.
9230 (pa_option_override): Handle deferred OPT_mfixed_range_.
9231
177dbc5b 92322011-03-22 Joseph Myers <joseph@codesourcery.com>
9233
9234 * config/mn10300/mn10300-opts.h: New.
9235 * config/mn10300/mn10300.c (mn10300_processor,
9236 mn10300_tune_string): Remove.
9237 (mn10300_handle_option): Don't assert that global structures are
9238 in use. Access mn10300_processor via opts pointer. Don't handle
9239 OPT_mtune_ here.
9240 * config/mn10300/mn10300.h (enum processor_type): Move to
9241 mn10300-opts.h.
9242 (mn10300_processor): Remove.
9243 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9244 HeaderInclude entry.
9245 (mn10300_processor): New Variable entry.
9246 (mtune=): Use Var.
9247
5d28209b 92482011-03-22 Joseph Myers <joseph@codesourcery.com>
9249
9250 * config/microblaze/microblaze.c: Don't include opts.h.
9251 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9252 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9253 (mno-clearbss): Use Var and Warn.
9254
e3d1b41b 92552011-03-22 Joseph Myers <joseph@codesourcery.com>
9256
9257 * config/m32r/m32r-opts.h: New.
9258 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9259 (m32r_handle_option): Don't assert that global structures are in
9260 use. Access target_flags and m32r_cache_flush_func via opts
9261 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9262 OPT_mno_flush_trap here.
9263 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9264 include of m32r-opts.h.
9265 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9266 HeaderInclude entry.
9267 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9268 (mmodel=): Use Enum and Var.
9269 (m32r_model): New Enum and EnumValue entries.
9270 (mno-flush-trap): Use Var.
9271 (msdata=): Use Enum and Var.
9272 (m32r_sdata): New Enum and EnumValue entries.
9273
eea6e787 92742011-03-22 Joseph Myers <joseph@codesourcery.com>
9275
9276 * config/m32c/m32c.c: Don't include opts.h.
9277 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9278 m32c_handle_option): Remove.
9279 (m32c_option_override): Check global_options_set.x_target_memregs
9280 instead of target_memregs_set.
9281 * config/m32c/m32c.h (target_memregs): Remove.
9282 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9283 variable.
9284
3263bbb3 92852011-03-22 Joseph Myers <joseph@codesourcery.com>
9286
9287 * config/iq2000/iq2000-opts.h: New.
9288 * config/iq2000/iq2000.c: Don't include opts.h.
9289 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
a23f3c3c 9290 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
3263bbb3 9291 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9292 HeaderInclude entry.
9293 (iq2000_tune): New Variable entry.
9294 (march=): Add comment. Use Enum.
9295 (iq2000_arch): New Enum and EnumValue entries.
9296 (mcpu=): Use Enum and Var.
9297 (iq2000_tune): New Enum and EnumValue entries.
9298
c0bfee3d 92992011-03-22 Joseph Myers <joseph@codesourcery.com>
9300
9301 * config/ia64/ia64-opts.h: New.
9302 * config/ia64/ia64.c (ia64_tune): Remove.
9303 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9304 here. Use error_at.
9305 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9306 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9307 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9308 HeaderInclude entry.
9309 (ia64_tune): New Variable entry.
9310 (mfixed-range=): Use Defer and Var.
9311 (mtune=): Use Enum and Var.
9312 (ia64_tune): New Enum and EnumValue entries.
9313
09f31110 93142011-03-22 Joseph Myers <joseph@codesourcery.com>
9315
9316 * config/frv/frv-opts.h: New.
9317 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9318 frv-opts.h.
9319 (frv_cpu_type): Remove.
9320 * config/frv/frv.c: Don't include opts.h.
9321 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
a23f3c3c 9322 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
09f31110 9323 (frv_cpu_type): New Variable entry.
9324 (frv_cpu): New Enum and EnumValue entries.
9325
98a12a50 93262011-03-22 Joseph Myers <joseph@codesourcery.com>
9327
9328 * config/cris/cris.c (cris_handle_option): Access target_flags via
9329 opts pointer. Don't assert that global structures are in use.
9330 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9331 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9332
33c9a3e7 93332011-03-22 Joseph Myers <joseph@codesourcery.com>
9334
9335 * config/bfin/bfin-opts.h: New.
9336 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9337 bfin_si_revision, bfin_workarounds): Remove.
9338 (bfin_cpus): Make static const.
9339 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9340 not bfin_lib_id_given.
9341 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9342 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
a23f3c3c 9343 pointer. Use error_at. Don't assert that global structures are in use.
33c9a3e7 9344 * config/bfin/bfin.h: Include bfin-opts.h.
9345 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9346 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9347 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9348 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9349 entries.
9350
7e21f84a 93512011-03-22 Joseph Myers <joseph@codesourcery.com>
9352
9353 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9354 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9355 or -msoft-float here.
9356 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9357 -msoft-float and -mhard-float.
a23f3c3c 9358 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7e21f84a 9359 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9360 msoft-float.
9361 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9362 -msoft-float.
9363 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9364 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9365 not mhard-float.
9366 (LIBGCC_SPEC): Don't handle -msoft-float.
9367 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9368 -mhard-float.
9369 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9370 msoft-float.
9371 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9372 -mfloat-abi=*, not -msoft-float and -mhard-float.
9373 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9374 -msoft-float.
9375 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9376 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9377 mhard-float and msoft-float.
9378 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9379 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9380 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9381 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9382 mhard-float.
9383 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9384 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9385 msoft-float.
9386 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9387 not mhard-float.
9388 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9389 not msoft-float.
9390
1b803a4f 93912011-03-22 Richard Henderson <rth@redhat.com>
9392
9393 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9394 TARGET_ABI_WINDOWS_NT.
9395 (alpha_output_function_end_prologue): Likewise.
9396 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9397 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9398 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9399 (trap, *movsi_nt_vms): Likewise.
9400 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9401 (*tablejump_osf_nt_internal): Remove.
9402 * config/alpha/predicates.md (input_operand): Only test Pmode.
9403
b7ae8115 94042011-03-22 Joseph Myers <joseph@codesourcery.com>
9405
9406 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9407 via opts pointer. Use error_at. Don't assert that global
9408 structures are in use.
9409
b54fbaf9 94102011-03-22 Joseph Myers <joseph@codesourcery.com>
9411
9412 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9413 (ix86_handle_option): Access ix86_isa_flags and
9414 ix86_isa_flags_explicit via opts pointer. Don't assert that
9415 global structures are in use.
9416 (ix86_function_specific_save, ix86_function_specific_restore):
9417 Update ix86_isa_flags_explicit field name.
a23f3c3c 9418 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
b54fbaf9 9419 (ix86_isa_flags_explicit): Rename TargetSave entry to
9420 x_ix86_isa_flags_explicit.
9421
04d75965 94222011-03-22 Richard Henderson <rth@redhat.com>
9423
9424 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9425 (alpha_option_override, direct_return): Likewise.
9426 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9427 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9428 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9429 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9430 (alpha_expand_epilogue, alpha_end_function): Likewise.
9431 (alpha_init_libfuncs): Likewise.
9432 (struct machine_function): Remove unicosmk members.
9433 (print_operand) ['t']: Remove.
9434 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9435 unicosmk_output_module_name, unicosmk_output_common,
9436 current_section_align, unicosmk_output_text_section_asm_op,
9437 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9438 unicosmk_section_type_flags, unicosmk_unique_section,
9439 unicosmk_asm_named_section, unicosmk_insert_attributes,
9440 unicosmk_output_align, unicosmk_defer_case_vector,
9441 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9442 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9443 unicosmk_output_ssib, unicosmk_add_call_info_word,
9444 unicosmk_extern_head, unicosmk_output_default_externs,
9445 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9446 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9447 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9448 * config/alpha/alpha-protos.h: Update.
9449 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9450 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9451 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9452 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9453 (*mulsi_se, mulvsi3): Likewise.
9454 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9455 (*divmodsi_internal, call, call_value, realign): Likewise.
9456 (moddi3, umoddi3): Likewise; remove duplicate expander.
9457 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9458 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9459 (*movdi_nofix): Remove r/U alternative.
9460 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9461 * config/alpha/constraints.md ("U"): Remove.
9462 * config/alpha/predicates.md (call_operand"): Don't test
9463 TARGET_ABI_UNICOSMK.
9464
fba5dd52 94652011-03-22 Joseph Myers <joseph@codesourcery.com>
9466
9467 * target.def (handle_option): Take gcc_options and
9468 cl_decoded_option pointers and location_t.
9469 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9470 * doc/tm.texi: Regenerate.
9471 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9472 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9473 * lto-opts.c (lto_reissue_options): Generate option structure for
9474 targetm.handle_option call.
9475 * opts.c (target_handle_option): Update call to
9476 targetm.handle_option. Remove assertions about values now passed
9477 down to hook.
9478 * targhooks.c (default_target_handle_option): New.
9479 * targhooks.h (default_target_handle_option): Declare.
9480 * config/alpha/alpha.c: Include opts.h.
9481 (alpha_handle_option): Update to new hook interface.
9482 * config/arm/arm.c: Include opts.h.
9483 (arm_handle_option): Update to new hook interface.
9484 * config/arm/t-arm (arm.o): Update dependencies.
9485 * config/bfin/bfin.c: Include opts.h.
9486 (bfin_handle_option): Update to new hook interface.
9487 * config/cris/cris.c: Include opts.h.
9488 (cris_handle_option): Update to new hook interface.
9489 * config/frv/frv.c: Include opts.h.
9490 (frv_handle_option): Update to new hook interface.
9491 * config/i386/i386.c: Include opts.h.
9492 (ix86_handle_option): Update to new hook interface.
9493 (ix86_valid_target_attribute_inner_p): Generate option structure
9494 for call to ix86_handle_option.
9495 * config/i386/t-i386 (i386.o): Update dependencies.
9496 * config/ia64/ia64.c: Include opts.h.
9497 (ia64_handle_option): Update to new hook interface.
9498 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9499 * config/iq2000/iq2000.c: Include opts.h.
9500 (iq2000_handle_option): Update to new hook interface.
9501 * config/m32c/m32c.c: Include opts.h.
9502 (m32c_handle_option): Update to new hook interface.
9503 * config/m32r/m32r.c: Include opts.h.
9504 (m32r_handle_option): Update to new hook interface.
9505 * config/m68k/m68k.c: Include opts.h.
9506 (m68k_handle_option): Update to new hook interface.
9507 * config/mep/mep.c: Include opts.h.
9508 (mep_handle_option): Update to new hook interface.
9509 * config/microblaze/microblaze.c: Include opts.h.
9510 (microblaze_handle_option): Update to new hook interface.
9511 * config/mips/mips.c: Include opts.h.
9512 (mips_handle_option): Update to new hook interface.
9513 * config/mn10300/mn10300.c: Include opts.h.
9514 (mn10300_handle_option): Update to new hook interface.
9515 * config/pa/pa.c: Include opts.h.
9516 (pa_handle_option): Update to new hook interface.
9517 * config/pdp11/pdp11.c: Include opts.h.
9518 (pdp11_handle_option): Update to new hook interface.
9519 * config/rs6000/rs6000.c: Include opts.h.
9520 (rs6000_handle_option): Update to new hook interface.
9521 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9522 * config/rx/rx.c: Include opts.h.
9523 (rx_handle_option): Update to new hook interface.
9524 * config/s390/s390.c: Include opts.h.
9525 (s390_handle_option): Update to new hook interface.
9526 * config/score/score.c: Include opts.h.
9527 (score_handle_option): Update to new hook interface.
9528 * config/sh/sh.c: Include opts.h.
9529 (sh_handle_option): Update to new hook interface.
9530 * config/sparc/sparc.c: Include opts.h.
9531 (sparc_handle_option): Update to new hook interface.
9532 * config/v850/v850.c: Include opts.h.
9533 (v850_handle_option): Update to new hook interface.
9534
a4e747a2 95352011-03-22 Joseph Myers <joseph@codesourcery.com>
9536
9537 * gcc.c (driver_unknown_option_callback): Only permit and save
9538 unknown -Wno- options.
9539 (driver_wrong_lang_callback): Save options directly instead of via
9540 driver_unknown_option_callback.
9541
e4ffbd30 95422011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9543
9544 * combine.c (simplify_set): Try harder to find the best CC mode when
9545 simplifying a nested COMPARE on the RHS.
9546
17b3d2a8 95472011-03-22 Joseph Myers <joseph@codesourcery.com>
9548
9549 * config/alpha/gnu.h: Remove.
9550 * config/arc: Remove directory.
9551 * config/arm/netbsd.h: Remove.
9552 * config/arm/t-pe: Remove.
9553 * config/crx: Remove directory.
9554 * config/i386/netbsd.h: Remove.
9555 * config/m68hc11: Remove directory.
9556 * config/m68k/uclinux-oldabi.h: Remove.
9557 * config/mcore/mcore-pe.h: Remove.
9558 * config/mcore/t-mcore-pe: Remove.
9559 * config/netbsd-aout.h: Remove.
9560 * config/rs6000/gnu.h: Remove.
9561 * config/sh/sh-symbian.h: Remove.
9562 * config/sh/symbian-base.c: Remove.
9563 * config/sh/symbian-c.c: Remove.
9564 * config/sh/symbian-cxx.c: Remove.
9565 * config/sh/symbian-post.h: Remove.
9566 * config/sh/symbian-pre.h: Remove.
9567 * config/sh/t-symbian: Remove.
9568 * config/svr3.h: Remove.
9569 * config/vax/netbsd.h: Remove.
9570 * config.build: Don't handle i[34567]86-*-pe.
9571 * config.gcc: Remove handling of deprecations for most deprecated
9572 targets.
9573 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9574 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9575 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9576 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9577 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9578 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9579 Remove cases.
9580 * config.host: Don't handle i[34567]86-*-pe.
9581 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9582 (ASM_SPEC32): Don't handle -mcall-gnu.
9583 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9584 -mcall-gnu.
9585 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9586 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9587 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9588 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9589 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9590 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9591 conditional on SYMBIAN.
9592 * configure.ac: Don't handle powerpc*-*-gnu*.
9593 * configure: Regenerate.
9594 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9595 * doc/install-old.texi (m6811, m6812): Don't mention.
9596 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9597 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9598 (m68k-uclinuxoldabi): Don't mention.
9599 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9600 Remove.
9601 (-mcall-gnu): Remove.
9602 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9603 families): Remove constraint documentation.
9604
bae8bb65 96052011-03-22 Marius Strobl <marius@FreeBSD.org>
9606
9607 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9608 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9609 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9610
6da85e21 96112011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9612
9613 PR target/48226
9614 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9615 vector when peeking at the next token for vector, don't expand the
9616 keywords.
9617
32969c63 96182011-03-21 Georg-Johann Lay <avr@gjlay.de>
9619
9620 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9621 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9622 * config/avr/avr.c (init_cumulative_args)
9623 (avr_function_arg_advance): Use it.
9624 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9625 sibcall epilogues.
9626 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9627 (avr_function_ok_for_sibcall): ...this new function.
9628 (avr_lookup_function_attribute1): New static Function.
9629 (avr_naked_function_p, interrupt_function_p)
9630 (signal_function_p, avr_OS_task_function_p)
9631 (avr_OS_main_function_p): Use it.
9632 * config/avr/avr.md ("sibcall", "sibcall_value")
9633 ("sibcall_epilogue"): New expander.
9634 ("*call_insn", "*call_value_insn"): New insn.
9635 ("call_insn", "call_value_insn"): Remove
9636 ("call", "call_value", "epilogue"): Change expander to handle
9637 sibling calls.
9638
2bd4d851 96392011-03-21 Nick Clifton <nickc@redhat.com>
9640
9641 * doc/invoke.texi (Overall Options): Move closing brace to end of
9642 options list.
9643 (Optimization Options): Add missing @gol.
9644 (Directory Options): Likewise.
9645 (i386 and x86-64 Options): Likewise.
9646 (RS6000 and PowerPC Options): Likewise.
9647 (i386 and x86-64 Windows Options): Likewise.
9648 (V850 Options): Add text missing from descriptions.
9649
e484266f 96502011-03-22 Richard Henderson <rth@redhat.com>
9651
9652 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9653 (avr_incoming_return_addr_rtx): New.
9654 (emit_push_byte): New.
9655 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9656 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9657 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9658 (emit_pop_byte): New.
9659 (expand_epilogue): Use it. Pop frame pointer by bytes.
9660 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9661 (INCOMING_RETURN_ADDR_RTX): New.
9662 (INCOMING_FRAME_SP_OFFSET): New.
9663 (ARG_POINTER_CFA_OFFSET): New.
9664 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9665 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9666 (pophi): Remove.
9667
cf840280 9668 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9669
8761b9a1 96702011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9671
9672 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9673 (FUNCTION_ARG_ADVANCE): Likewise.
9674 * tm.texi.in: Change references to them to hook references.
9675 * tm.texi: Regenerate.
9676 * targhooks.c (default_function_arg): Eliminate check for target
9677 macro.
9678 (default_function_incoming_arg): Likewise.
9679 (default_function_arg_advance): Likewise.
a23f3c3c 9680 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8761b9a1 9681 (function_arg_advance): Likewise.
9682 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9683
0b81155f 96842011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9685
9686 * tree.c (build_call_1): New function.
9687 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9688
1e400367 96892011-03-22 Richard Guenther <rguenther@suse.de>
9690
9691 PR tree-optimization/48228
9692 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9693 for single-arg PHIs.
9694
68ff067d 96952011-03-22 Andrey Belevantsev <abel@ispras.ru>
9696
9697 PR rtl-optimization/48143
9698 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9699 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9700 sse2_cvtps2pd): Likewise.
9701
0a01a6f5 97022011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9703
9704 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9705
c86930b0 97062011-03-22 Richard Guenther <rguenther@suse.de>
9707
9708 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9709 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9710 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9711 and REALIGN_LOAD_EXPR.
9712 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9713 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9714 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9715 DOT_PROD_EXPR case ...
9716 (expand_expr_real_2): ... here.
9717 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9718 and REALIGN_LOAD_EXPR.
9719 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9720 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9721 (vect_create_epilog_for_reduction): Likewise.
9722 (vectorizable_reduction): Likewise.
9723 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9724 * tree-vect-stmts.c (vectorizable_load): Likewise.
9725
00044e94 97262011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9727
9728 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9729
b6382e93 97302011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9731
9732 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9733 handling for PLTOFF/GOTOFF.
9734
baa89d5a 97352011-03-22 Nick Clifton <nickc@redhat.com>
9736
9737 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9738 trailing backslash from the end of the macro definition.
9739
2b2b857a 97402011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9741
9742 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9743 and PLT unspecs.
9744
39c56a89 97452011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9746
9747 * expr.h (prepare_operand): Move to...
9748 * optabs.h (prepare_operand): ...here and change the insn code
9749 parameter from "int" to "enum insn_code".
9750 (insn_operand_matches): Declare.
9751 * expr.c (init_expr_target): Use insn_operand_matches.
9752 (compress_float_constant): Likewise.
9753 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9754 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9755 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
a23f3c3c 9756 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9757 Likewise.
39c56a89 9758 (gen_cond_trap): Likewise.
9759 (prepare_operand): Likewise. Change icode to an insn_code.
9760 (insn_operand_matches): New function.
9761 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9762 * reload1.c (gen_reload): Likewise.
9763 * targhooks.c (default_secondary_reload): Likewise.
9764
38557452 97652011-03-21 Uros Bizjak <ubizjak@gmail.com>
9766
af9af376 9767 * config/alpha/alpha.md (unspec): New define_c_enum.
9768 (unspecv): Ditto.
9769
97702011-03-21 Uros Bizjak <ubizjak@gmail.com>
9771
9772 PR debug/48214
38557452 9773 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9774 between a call and its CALL_ARG_LOCATION note.
9775
8d683dc1 97762011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9777
9778 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9779
97802011-03-21 Jakub Jelinek <jakub@redhat.com>
119d06b2 9781
9782 PR c/42544
9783 PR c/48197
9784 * c-common.c (shorten_compare): If primopN is first sign-extended
9785 to opN and then zero-extended to result type, set primopN to opN.
9786
cac9dbbd 97872011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9788
9789 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9790 for barrier handlers.
9791
00e59df9 97922011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9793
9794 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9795 UNSPEC constants to be in the unspec enumeration, and redefine
9796 all UNSPECV constants to be in the unspecv enumeration, so that
9797 dumps print which unspec/unspec_volatile this is.
9798 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9799 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9800 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9801 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9802 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9803
9804 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9805 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9806 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9807 * config/rs6000/sync.md (isync, lwsync): Ditto.
9808
3f1507c5 98092011-03-21 Richard Guenther <rguenther@suse.de>
9810
9811 * params.def (lto-min-partition): Fix typo.
9812
4c59b58b 98132011-03-21 Richard Guenther <rguenther@suse.de>
9814
9815 PR c/47939
9816 * c-decl.c (grokdeclarator): Drop to the main variant only
9817 for array types. Drop flag_gen_aux_info check.
9818
faddffca 98192011-03-21 Richard Guenther <rguenther@suse.de>
9820
9821 PR translation/47911
9822 * params.def (lto-partitions): Fix typo.
9823 (lto-min-partition): Fix wording.
9824
af1c85c3 98252011-03-21 Andreas Tobler <andreast@fgznet.ch>
9826
9827 * config/rs6000/t-freebsd: Remove duplication from file.
9828
4c76cf91 98292011-03-21 Richard Guenther <rguenther@suse.de>
9830
9831 PR middle-end/47661
9832 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9833
f94df44d 98342011-03-21 Richard Guenther <rguenther@suse.de>
9835
9836 PR lto/48210
9837 * params.def (lto-partitions): Require at least 1 partition.
9838
05caec57 98392011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9840
9841 * gthr-solaris.h: Remove.
9842 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9843 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9844 (LIB_SPEC): Likewise.
9845 * config/sol2.opt (threads): Remove.
38557452 9846 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
05caec57 9847 (sparc*-*-solaris2*): Likewise.
9848 * configure.ac (enable_threads): Enable solaris support.
9849 * configure: Regenerate.
38557452 9850 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
05caec57 9851 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9852 solaris.
9853
67a9e807 98542011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9855
9856 * config.gcc: Obsolete *-*-solaris2.8*.
9857 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9858
4180f00a 98592011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9860
9861 PR bootstrap/48135
9862 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9863 reference. Solaris 8 perl works.
9864
72e55818 98652011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9866
9867 PR bootstrap/48135
9868 * doc/install.texi (Prerequisites): Move jar etc. up.
9869 Explain support library version requirements.
9870
bb6ca4d0 98712011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9872
9873 PR bootstrap/48135
9874 * doc/install.texi (Prerequisites): Move Perl to build
9875 requirements. Always necessary on Solaris 2 with Sun ld.
9876
0165b97c 98772011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9878
9879 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9880 binutils 2.21.
9881 (Specific, i?86-*-solaris2.[89]): Likewise.
9882 (Specific, i?86-*-solaris2.10): Likewise.
9883 (Specific, mips-sgi-irix6): Likewise.
9884 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9885 Update for binutils 2.21.
9886
f95617d7 98872011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9888
9889 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9890 Allow -fuse-linker-plugin for non-default plugin linker.
9891 * configure: Regenerate.
9892
b8f73c52 98932011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9894
9895 PR bootstrap/48167
9896 * gengtype.c (files_rules): Added rule for cp/parser.h.
9897
2b03de53 98982011-03-21 Jakub Jelinek <jakub@redhat.com>
9899
9900 PR target/48213
9901 * config/s390/s390.c (s390_delegitimize_address): Don't call
9902 lowpart_subreg if orig_x has BLKmode.
9903
ac86af5d 99042011-03-21 Kai Tietz <ktietz@redhat.com>
9905
9906 PR target/12171
38557452 9907 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9908 * tree.h (attribute_spec): Add new member affects_type_identity.
9909 * attribs.c (empty_attribute_table): Adjust attribute_spec
9910 initializers.
ac86af5d 9911 * config/alpha/alpha.c: Likewise.
9912 * config/arc/arc.c: Likewise.
9913 * config/arm/arm.c: Likewise.
9914 * config/avr/avr.c: Likewise.
9915 * config/bfin/bfin.c: Likewise.
9916 * config/crx/crx.c: Likewise.
9917 * config/darwin.h: Likewise.
9918 * config/h8300/h8300.c: Likewise.
9919 * config/i386/cygming.h: Likewise.
9920 * config/i386/i386.c: Likewise.
9921 * config/ia64/ia64.c: Likewise.
9922 * config/m32c/m32c.c: Likewise.
9923 * config/m32r/m32r.c: Likewise.
9924 * config/m68hc11/m68hc11.c: Likewise.
9925 * config/m68k/m68k.c: Likewise.
9926 * config/mcore/mcore.c: Likewise.
9927 * config/mep/mep.c: Likewise.
9928 * config/microblaze/microblaze.c: Likewise.
9929 * config/mips/mips.c: Likewise.
9930 * config/rs6000/rs6000.c: Likewise.
9931 * config/rx/rx.c: Likewise.
9932 * config/sh/sh.c: Likewise.
9933 * config/sol2.h: Likewise.
9934 * config/sparc/sparc.c: Likewise.
9935 * config/spu/spu.c: Likewise.
9936 * config/stormy16/stormy16.c: Likewise.
9937 * config/v850/v850.c: Likewise.
9938
37b591fd 99392011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9940
9941 * simplify-rtx.c (simplify_binary_operation_1): Handle
9942 (xor (and A B) C) case when B and C are both constants.
9943
84769dee 99442011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9945
9946 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9947
5ac11cfb 99482011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9949
9950 PR bootstrap/48168
9951 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9952
3693f86f 99532011-03-20 Jakub Jelinek <jakub@redhat.com>
9954
9955 PR rtl-optimization/48156
9956 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9957 assume df and df_lr are not NULL.
9958
393edd62 99592011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9960
9961 PR debug/48023
9962 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9963 between a call and its CALL_ARG_LOCATION note.
9964
06dfeb27 99652011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9966
9967 PR debug/48178
9968 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9969 between a call and its corresponding CALL_ARG_LOCATION note.
9970
771d4616 99712011-03-19 Anatoly Sokolov <aesok@post.ru>
9972
9973 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9974 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9975 * haifa-sched.c (setup_ref_regs): Ditto.
9976 * caller-save.c (add_used_regs_1): Ditto.
9977 * dse.c (look_for_hardregs): Ditto.
9978 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9979 * sched-rgn.c (check_live_1): Ditto.
9980
ff889d78 99812011-03-18 Joseph Myers <joseph@codesourcery.com>
9982
9983 * c-decl.c (diagnose_mismatched_decls): Give an error for
9984 redefining a typedef with variably modified type.
9985
9b280b35 99862011-03-18 Joseph Myers <joseph@codesourcery.com>
9987
9988 * c-decl.c (grokfield): Don't allow typedefs for structures or
9989 unions with no tag by default.
9990 * doc/extend.texi (Unnamed Fields): Update.
9991
c3fa352f 99922011-03-18 Uros Bizjak <ubizjak@gmail.com>
9993
9994 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9995 Rewrite using indirect functions.
9996 (lwp_slwpcb): Ditto.
9997 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9998 (avx_vinsertf128<mode>): Ditto.
9999
4796d433 100002011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10001
10002 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10003 unspecs.
10004
7ba1ff79 100052011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10006
10007 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
38557452 10008 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7ba1ff79 10009
c96e0a0a 100102011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10011
10012 PR rtl-optimization/48170
10013 * gcse.c (hoist_code): Remove bogus asserts.
10014
7da20978 100152011-03-18 Georg-Johann Lay <avr@gjlay.de>
10016
10017 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10018 computation for prologue/epilogue.
10019
34cb2f5e 100202011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10021
10022 * Makefile.in (check-consistency): Remove.
10023
8db230f7 100242011-03-18 Jakub Jelinek <jakub@redhat.com>
10025
10026 PR debug/48176
10027 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10028 arange_table_in_use is 0, but either text_section_used or
10029 cold_text_section_used is true. Don't call it if
10030 !info_section_emitted.
10031
73475e84 100322011-03-18 Anatoly Sokolov <aesok@post.ru>
10033
10034 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10035 FUNCTION_VALUE_REGNO_P): Remove.
10036 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10037 Remove.
10038 * config/avr/avr.c (avr_ret_register): Make static inline.
10039 (avr_function_value_regno_p): New function.
10040 (avr_libcall_value): Make static. Add 'func' argument.
10041 (avr_function_value): Make static. Rename 'func' argument to
10042 'fn_decl_or_type', forward it to avr_libcall_value. Call
10043 avr_ret_register function instead of RET_REGISTER macro.
10044 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10045
0a362bb5 100462011-03-18 Jason Merrill <jason@redhat.com>
10047
10048 PR c++/23372
10049 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10050
5b91c59c 100512011-03-18 Richard Guenther <rguenther@suse.de>
10052
10053 * doc/install.texi (--enable-gold): Remove.
10054 (--with-plugin-ld): Document.
10055 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10056
7da20978 100572011-03-18 Andrew Pinski <pinskia@gmail.com>
c4532f22 10058
10059 PR middle-end/47790
10060 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10061 again after expansion changes.
10062
54a61993 100632011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10064
10065 * combine.c (try_combine): Do simplification only call of
10066 subst() on i2 even when i1 is present. Update comments.
10067
ebd1f2ea 100682011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10069
10070 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10071 and UNSPEC_PCREL_SYMOFF.
10072
292ce034 100732011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10074
10075 * config/s390/s390.md: Use define_c_enum for the unspec constant
10076 definitions.
10077
88ff2f0d 100782011-03-18 Richard Henderson <rth@redhat.com>
10079 Jakub Jelinek <jakub@redhat.com>
10080
10081 PR bootstrap/48161
10082 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10083 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10084
b927d92a 100852011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10086
10087 PR middle-end/47725
10088 * combine.c (cant_combine_insn_p): Don't check zero/sign
10089 extended hard registers.
10090
f0636cb9 100912011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10092
10093 PR middle-end/47725
10094 * combine.c (cant_combine_insn_p): Check zero/sign extended
10095 hard registers.
10096
6d0d55a1 100972011-03-17 Anatoly Sokolov <aesok@post.ru>
10098
10099 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10100 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10101 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10102 Change return type to bool.
10103 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10104
56fe7223 101052011-03-17 Jakub Jelinek <jakub@redhat.com>
10106
e3a8f582 10107 PR debug/48163
10108 * var-tracking.c (prepare_call_arguments): If CALL target
10109 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10110 pc instead of looking it up using cselib_lookup and use
10111 Pmode for it if x has VOIDmode.
10112 * dwarf2out.c (gen_subprogram_die): If also both first and
10113 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10114
56fe7223 10115 PR debug/48163
10116 * function.c (assign_parms): For data.passed_pointer parms
10117 use MEM of data.entry_parm instead of data.entry_parm itself
10118 as DECL_INCOMING_RTL.
10119 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10120 also when passed and declared mode is the same, DECL_RTL
10121 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10122 a MEM too.
10123
be03890a 101242011-03-16 Jeff Law <law@redhat.com>
10125
10126 PR rtl-optimization/37273
10127 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10128 handle them like argument loads from stack slots. Do not double
10129 count memory for memory constants and argument loads from stack slots.
10130
4a55735d 101312011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10132
10133 PR debug/48160
10134 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10135
102a8e0c 101362011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10137
10138 PR target/48171
10139 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10140
2f5e9511 101412011-03-17 Jakub Jelinek <jakub@redhat.com>
10142
3651a95c 10143 PR bootstrap/48153
10144 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10145 if dwarf_strict.
10146 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10147 Clear call_arg_locations and call_arg_loc_last always.
10148
2f5e9511 10149 PR middle-end/48152
10150 * var-tracking.c (prepare_call_arguments): If argument needs to be
10151 passed by reference, adjust argtype and mode.
10152
02a562db 101532011-03-17 Richard Guenther <rguenther@suse.de>
10154
10155 PR middle-end/48134
10156 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10157 a value make sure to fold the statement.
10158
b4344328 101592011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10160
10161 PR target/43872
10162 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10163 return condition with !cfun->calls_alloca.
10164
5e9e6543 101652011-03-17 Richard Guenther <rguenther@suse.de>
10166
10167 PR bootstrap/48148
10168 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10169 origin for decls in other ltrans units.
10170 (input_varpool_node): Likewise.
10171
c5c23f27 101722011-03-17 Richard Guenther <rguenther@suse.de>
10173
10174 PR middle-end/48165
10175 * tree-object-size.c (compute_object_offset): Properly return
10176 the offset operand of MEM_REFs as sizetype.
10177
c75be2fe 101782011-03-17 Jakub Jelinek <jakub@redhat.com>
10179
1242bee6 10180 PR rtl-optimization/48141
10181 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10182 * dse.c: Include params.h.
10183 (active_local_stores_len): New variable.
10184 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10185 to NULL.
10186 (record_store, check_mem_read_rtx): Decrease it when removing
10187 from the chain.
10188 (scan_insn): Likewise. Increase it when adding to chain, if it
10189 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10190 set active_local_stores to NULL before the addition.
10191 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10192
c75be2fe 10193 PR rtl-optimization/48141
10194 * dse.c (record_store): If no positions are needed in an insn
10195 that cannot be deleted, at least unchain it from active_local_stores.
10196
37b41f90 101972011-03-16 Dodji Seketeli <dodji@redhat.com>
10198
10199 PR debug/47510
10200 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10201 (lookup_type_die_strip_naming_typedef): ... here.
10202 (get_context_die): Use it.
10203 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10204 the anonymous struct named by the naming typedef.
10205
4a9c429f 102062011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10207
10208 PR target/48154
10209 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10210 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10211
69978c67 102122011-03-16 Jeff Law <law@redhat.com>
10213
10214 * tree-vrp.c (identify_jump_threads): Slightly simplify type
c3fa352f 10215 check for operands of conditional. Allow type to be a pointer.
69978c67 10216
12bf1231 102172011-03-16 Richard Guenther <rguenther@suse.de>
10218
10219 PR tree-optimization/48149
10220 * fold-const.c (fold_binary_loc): Fold
10221 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10222
8ba0d70d 102232011-03-16 Richard Guenther <rguenther@suse.de>
10224
10225 PR tree-optimization/26134
10226 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10227 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10228 (non_rewritable_mem_ref_base): Handle complex type component
10229 accesses, constrain offsets for vector and complex extracts
10230 more properly.
10231
63eb2430 102322011-03-16 Richard Guenther <rguenther@suse.de>
10233
10234 PR tree-optimization/48146
10235 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10236 operands avoiding the need for renaming.
10237
c701e5d5 102382011-03-16 Richard Guenther <rguenther@suse.de>
10239
10240 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10241 constant folding. Move MEM_REF canonicalization first.
10242 Rely on fold_const_aggregate_ref for initializer folding.
10243 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10244
c5af5828 102452011-03-16 Jakub Jelinek <jakub@redhat.com>
10246
e55c8585 10247 PR middle-end/48136
10248 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10249 arg0/arg1 or their arguments are always fold converted to matching
10250 types.
10251
c5af5828 10252 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10253 to nargs.
10254
c5f741b3 102552011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10256
10257 PR lto/46944
10258 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10259 Handle in-tree gold.
10260 (ld_vers): Extract binutils version for gold.
10261 (gcc_cv_ld_hidden): Handle gold here.
10262 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10263 * configure: Regenerate.
10264 * config.in: Regenerate.
10265 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10266 -fuse-linker-plugin otherwise.
10267 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10268 (LINK_COMMAND_SPEC): Use it.
10269 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10270
4143d08b 102712011-03-16 Jakub Jelinek <jakub@redhat.com>
10272
18b7c118 10273 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10274 * calls.c: Remove debug.h include.
10275 (emit_call_1): Don't call virtual_call_token debug hook.
10276 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10277 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10278 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10279 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10280 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10281 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10282 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10283 dwarf2out_virtual_call): Remove.
10284 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10285 copy_call_info and virtual_call hooks.
10286 (dwarf2out_init): Don't initialize vcall_insn_table,
10287 debug_dcall_section and debug_vcall_section.
10288 (prune_unused_types): Don't mark nodes from dcall_table.
10289 (dwarf2out_finish): Don't output dcall or vcall tables.
10290 * final.c (final_scan_insn): Don't call direct_call or
10291 virtual_call debug hooks.
10292 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10293 virtual_call_token, copy_call_info and virtual_call hooks.
10294 (debug_nothing_uid): Remove prototype.
10295 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10296 copy_call_info and virtual_call hooks.
10297 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10298 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10299 * debug.c (do_nothing_debug_hooks): Likewise.
10300 (debug_nothing_uid): Remove.
10301 * doc/invoke.texi (-fenable-icf-debug): Remove.
10302 * common.opt (-fenable-icf-debug): Likewise.
10303
57999964 10304 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10305 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10306 call's MEM. Handle functions returning aggregate through a hidden
10307 first pointer. For virtual calls add clobbered pc to call arguments
10308 chain.
10309 * dwarf2out.c (gen_subprogram_die): Emit
10310 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10311 can't be emitted.
10312
a5701bde 10313 PR debug/45882
10314 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10315 * rtl.h (ENTRY_VALUE_EXP): Define.
10316 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10317 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10318 * print-rtl.c (print_rtx): Likewise.
10319 * gengtype.c (adjust_field_rtx_def): Likewise.
10320 * var-tracking.c (vt_add_function_parameter): Adjust
10321 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10322 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10323 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10324 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10325 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10326
4143d08b 10327 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10328 Call var_location debug hook even on CALL_INSNs.
10329 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10330 * rtl.def (ENTRY_VALUE): New.
10331 * dwarf2out.c: Include cfglayout.h.
10332 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10333 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10334 (struct call_arg_loc_node): New type.
10335 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10336 tail_call_site_count): New variables.
10337 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10338 DW_TAG_GNU_call_site_parameter.
10339 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10340 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10341 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10342 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10343 and DW_AT_GNU_all_source_call_sites.
10344 (mem_loc_descriptor): Handle ENTRY_VALUE.
10345 (add_src_coords_attributes): Don't add enything if
10346 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10347 (dwarf2out_abstract_function): Save and clear call_arg_location,
10348 call_site_count and tail_call_site_count around dwarf2out_decl call.
10349 (gen_call_site_die): New function.
10350 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10351 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10352 (dwarf2out_function_decl): Clear call_arg_locations,
10353 call_arg_loc_last, set call_site_count and tail_call_site_count
10354 to -1 and free block_map.
10355 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10356 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10357 followed by any real instructions.
10358 (dwarf2out_begin_function): Set call_site_count and
10359 tail_call_site_count to 0.
10360 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10361 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10362 attempt to force a DIE for it and worst case remove the attribute.
10363 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10364 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10365 the decl itself.
10366 * var-tracking.c: Include tm_p.h.
10367 (vt_stack_adjustments): For calls call note_register_arguments.
10368 (argument_reg_set): New variable.
10369 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10370 ensure the VALUE is resolved.
10371 (call_arguments): New variable.
10372 (prepare_call_arguments): New function.
10373 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10374 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10375 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10376 always use the best expression.
10377 (vt_expand_loc): Add ignore_cur_loc argument.
10378 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10379 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10380 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10381 note for all calls.
10382 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10383 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10384 argument. Don't call cselib_preserve_only_values and
10385 cselib_reset_table.
10386 (note_register_arguments): New function.
10387 (vt_initialize): Compute argument_reg_set. Call
10388 vt_add_function_parameters before processing basic blocks instead of
10389 afterwards. For calls call prepare_call_arguments before calling
10390 cselib_process_insn.
10391 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10392 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10393 (var-tracking.o): Depend on $(TM_P_H).
10394 * cfglayout.h (insn_scope): New prototype.
10395 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10396 * cfglayout.c (insn_scope): No longer static.
10397 * insn-notes.def (CALL_ARG_LOCATION): New.
10398 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10399 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10400 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10401 nothing for DECL_EXTERNAL BLOCK_VARS.
10402
381d8e21 104032011-03-16 Alan Modra <amodra@gmail.com>
10404
10405 PR target/45844
10406 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10407 create invalid offset address for vsx splat insn.
10408 * config/rs6000/predicates.md (splat_input_operand): New.
10409 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10410
3751887c 104112011-03-15 Xinliang David Li <davidxl@google.com>
10412
10413 PR c/47837
10414 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10415 (normalize_preds): New function.
10416 (is_use_properly_guarded): Normalize def predicates.
10417
aabe09ac 104182011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10419
e6af1b8d 10420 PR target/46788
aabe09ac 10421 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10422 in the output template.
10423
8eb81823 104242011-03-15 Richard Guenther <rguenther@suse.de>
10425
10426 PR middle-end/47650
10427 * tree-pretty-print.c (dump_function_declaration): Properly
10428 dump unprototyped and varargs function types.
10429
77c7051b 104302011-03-15 Richard Guenther <rguenther@suse.de>
10431
10432 PR tree-optimization/13954
10433 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10434 and friends.
10435
8a62fbb0 104362011-03-15 Richard Guenther <rguenther@suse.de>
10437
10438 PR tree-optimization/48037
10439 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10440 selects into BIT_FIELD_REFs.
10441 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10442 vector select.
10443
1914d98e 104442011-03-15 Jakub Jelinek <jakub@redhat.com>
10445
10446 PR tree-optimization/48129
10447 * builtins.c (fold_builtin_snprintf): Convert to type of
10448 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10449 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10450
2109076a 104512011-03-15 Richard Guenther <rguenther@suse.de>
10452
10453 PR tree-optimization/41490
10454 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10455 value but with VUSE.
10456 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10457 return statements.
10458 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10459 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10460 * tree-tailcall.c (find_tail_calls): Ignore returns.
10461
ac5ffdb4 104622011-03-15 Richard Guenther <rguenther@suse.de>
10463
10464 PR middle-end/48031
10465 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10466 or variable-indexed array accesses when in gimple form.
10467
8d86260d 104682011-03-15 Richard Guenther <rguenther@suse.de>
10469
c3fa352f 10470 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8d86260d 10471
a93b6189 104722011-03-15 Alan Modra <amodra@gmail.com>
10473
10474 PR target/48032
10475 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10476 presume symbol_refs without a symbol_ref_decl are suitably
10477 aligned, nor other trees we may see here. Handle anchor symbols.
10478 (legitimate_constant_pool_address_p): Comment. Add mode param.
10479 Check cmodel=medium addresses. Adjust all calls.
10480 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10481 creating cmodel=medium optimized access to locals.
10482 * config/rs6000/constraints.md (R): Pass QImode to
10483 legitimate_constant_pool_address_p.
10484 * config/rs6000/predicates.md (input_operand): Pass mode to
10485 legitimate_constant_pool_address_p.
10486 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10487 Update prototype.
10488
86b9699b 104892011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10490
10491 PR target/48053
10492 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10493 64-bit constants being loaded into registers other than GPRs such
10494 as loading 0 into a VSX register.
10495
a6d6d956 104962011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10497
c3fa352f 10498 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
a6d6d956 10499
89ec8421 105002011-03-14 Jakub Jelinek <jakub@redhat.com>
10501
750d7b16 10502 PR middle-end/47917
10503 * builtins.c (fold_builtin_snprintf): New function.
10504 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10505 (fold_builtin_4): Likewise.
10506
36370f11 10507 PR middle-end/38878
10508 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10509 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10510 and C - X == X also strip nops from +/-/p+ operand.
10511 When optimizing -X == C, fold C to arg0's type.
10512
89ec8421 10513 PR debug/47946
10514 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10515 emit it as add_AT_int instead of add_AT_unsigned.
10516
105172011-03-14 Tom Tromey <tromey@redhat.com>
f77bcf96 10518
10519 * unwind-dw2.c: Include sys/sdt.h if it exists.
10520 (_Unwind_DebugHook): Use STAP_PROBE2.
10521 * config.in, configure: Rebuild.
10522 * configure.ac: Check for sys/sdt.h.
10523
475f05b7 105242011-03-14 Uros Bizjak <ubizjak@gmail.com>
10525
10526 * config/i386/i386.md (ROUND_FLOOR): New constant.
10527 (ROUND_CEIL): Ditto.
10528 (ROUND_TRUNC): Ditto.
10529 (ROUND_MXCSR): Ditto.
10530 (ROUND_NO_EXC): Ditto.
10531 (rint<mode>2): Use new defines instead of numerical constants.
10532 (floor<mode>2): Ditto.
10533 (ceil<mode>2): Ditto.
10534 (btrunc<mode>2): Ditto.
10535 * config/i386/i386-builtin-types.def: Define ROUND function type
10536 aliases.
10537 * config/i386/i386.c (enum ix86_builtins): Add
10538 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10539 (struct builtin_description): Add
10540 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10541 (ix86_expand_sse_round): New static function.
10542 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10543 function types.
10544 (ix86_builtin_vectorized_function): Handle
10545 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10546
88c86c27 105472011-03-14 Tom Tromey <tromey@redhat.com>
10548
10549 * c-parser.c (c_parser_asm_string_literal): Clear
10550 warn_overlength_strings.
10551
4e9eacab 105522011-03-14 Tom Tromey <tromey@redhat.com>
10553
10554 * c-parser.c (disable_extension_diagnostics): Save
10555 warn_overlength_strings.
10556 (restore_extension_diagnostics): Restore warn_overlength_strings.
10557
caec3e67 105582011-03-14 Jakub Jelinek <jakub@redhat.com>
10559
10560 * BASE-VER: Change to 4.7.0.
10561
29928c8f 105622011-03-14 Richard Guenther <rguenther@suse.de>
10563
10564 PR middle-end/48098
10565 * tree.c (build_vector_from_val): Adjust assert to requirements
10566 and reality.
10567
fa4116b9 105682011-03-14 Jakub Jelinek <jakub@redhat.com>
10569
10570 PR bootstrap/48102
475f05b7 10571 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
fa4116b9 10572
48914aa5 105732011-03-14 Andreas Tobler <andreast@fgznet.ch>
10574
dcab66ec 10575 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
48914aa5 10576 terms of target_flags_explicit. Adjust copyright year.
10577
10578 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10579 * config/rs6000/t-freebsd: New file. Add override for
10580 LIB2FUNCS_EXTRA.
10581
b6b39e83 105822011-03-13 Chris Demetriou <cgd@google.com>
10583
10584 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10585 (-fno-diagnostics-show-option): this, to reflect current default.
10586 (-Werror=): Update text about -fno-diagnostics-show-option.
10587
54ade85b 105882011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10589
10590 PR target/48053
10591 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10592 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10593 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10594 mode is not V2DImode or V2DFmode.
10595 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10596 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10597 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10598 registers to 0.
10599 (movdi_internal64): Likewise.
10600
98b9957e 106012011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10602
10603 PR tree-optimization/47127
10604 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10605 parameter.
10606 (set_cloog_options): Same.
10607 (scop_to_clast): Same.
10608 (print_clast_stmt): Do not call cloog_state_malloc and
10609 cloog_state_free.
10610 (print_generated_program): Same.
10611 (gloog): Same.
10612 * graphite-clast-to-gimple.h (cloog_state): Declared.
10613 (scop_to_clast): Adjust declaration.
10614 * graphite.c (cloog_state): Defined here.
10615 (graphite_initialize): Call cloog_state_malloc.
10616 (graphite_finalize): Call cloog_state_free.
10617
9bf1c74e 106182011-03-11 Jason Merrill <jason@redhat.com>
10619
10620 * attribs.c (lookup_attribute_spec): Take const_tree.
10621 * tree.h: Adjust.
10622
28c3349d 106232011-03-11 Joseph Myers <joseph@codesourcery.com>
10624
10625 * config/sparc/sparc.c (sparc_option_override): Use
10626 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10627
805ad414 106282011-03-11 Richard Guenther <rguenther@suse.de>
10629
10630 PR tree-optimization/48067
10631 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10632 multiplication result will be only used once on the target
10633 stmt.
10634
dac8c013 106352011-03-11 Richard Guenther <rguenther@suse.de>
10636
10637 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10638
9abb7e57 106392011-03-11 Richard Guenther <rguenther@suse.de>
10640
10641 PR lto/48073
10642 * tree.c (find_decls_types_r): Do not walk types only reachable
10643 from IDENTIFIER_NODEs.
10644
5db2ca47 106452011-03-11 Jakub Jelinek <jakub@redhat.com>
10646
10647 PR middle-end/48044
10648 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10649 all vnode->force_output nodes as needed.
10650
bc7331b6 106512011-03-11 Jason Merrill <jason@redhat.com>
10652
10653 PR c++/48069
10654 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10655 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10656
7019fd3f 106572011-03-11 Martin Jambor <mjambor@suse.cz>
10658
10659 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10660 cgraph_node.
10661
071bc3bd 106622011-03-11 Jakub Jelinek <jakub@redhat.com>
10663
10664 PR tree-optimization/48063
10665 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10666 inline functions called once if !tree_can_inline_p (node->callers).
10667
613a2120 106682011-03-11 Chen Liqin <liqin.gcc@gmail.com>
b8e22756 10669
613a2120 10670 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10671 extra_objs.
b8e22756 10672 * config/score/score3.c: Delete.
10673 * config/score/score3.h: Delete.
10674 * config/score/mul-div.S: Delete.
10675 * config/score/sfp-machine.h: Add new file.
10676 * config/score/constraints.md: Add new file.
10677 * config/score/t-score-softfp: Add new file.
613a2120 10678 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
b8e22756 10679 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10680 (score7_extra_constraint): Delete.
613a2120 10681 (score7_option_override): Remove unused code.
b8e22756 10682 * config/score/score.c: Remove score3 and score5 define and code.
10683 * config/score/score.h: Remove score3 and score5 define and code.
613a2120 10684 * config/score/score.md: Remove score3 template and unusual insn.
b8e22756 10685 * config/score/score.opt: Remove score3 and score5 options.
10686
383e9a69 106872011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10688
10689 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10690 when _HPUX_SOURCE is defined.
10691 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10692
47c2386f 106932011-03-10 Jason Merrill <jason@redhat.com>
10694
10695 PR c++/48029
10696 * stor-layout.c (layout_type): Don't set structural equality
10697 on arrays of incomplete type.
10698 * tree.c (type_hash_eq): Handle comparing them properly.
10699
54cb44a3 107002011-03-10 Jakub Jelinek <jakub@redhat.com>
10701
10702 PR debug/48043
47c2386f 10703 * config/s390/s390.c (s390_delegitimize_address): Make sure the
54cb44a3 10704 result mode matches original rtl mode.
10705
e3fa4645 107062011-03-10 Nick Clifton <nickc@redhat.com>
10707
10708 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
cf7823c3 10709 (andsi3, andsi3_flags): Fix timings for three operand alternative.
e3fa4645 10710
a7101bd3 107112011-03-09 Jakub Jelinek <jakub@redhat.com>
10712
10713 PR rtl-optimization/47866
10714 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10715 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10716 if target wasn't scalar.
10717 * function.c (assign_stack_temp_for_type): Assert that neither
10718 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10719 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10720 macro.
10721 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10722
6d0afa28 107232011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10724
10725 * config/s390/s390-protos.h (s390_label_align): New prototype.
10726 * config/s390/s390.c (s390_label_align): New function.
10727 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10728
f8c7556f 107292011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10730
10731 PR target/47755
10732 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10733 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10734 (output_vec_const_move): Ditto.
10735
53bb95d9 107362011-03-08 Anatoly Sokolov <aesok@post.ru>
10737
10738 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10739 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10740 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10741 Change 'rclass' argument and result type to reg_class_t.
10742 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10743
dfc1e3e4 107442011-03-08 Georg-Johann Lay <avr@gjlay.de>
10745
38557452 10746 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10747 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10748 (TARGET_MEMORY_MOVE_COST): Define.
10749 (avr_register_move_cost, avr_memory_move_cost): New Functions.
dfc1e3e4 10750
29b369d0 107512011-03-08 Jakub Jelinek <jakub@redhat.com>
10752
7a76e05f 10753 PR debug/47881
10754 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10755 removed anything.
10756
29b369d0 10757 PR tree-optimization/48022
10758 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10759 for EQ/NE_EXPR.
10760
88948300 107612011-03-07 Jakub Jelinek <jakub@redhat.com>
10762
10763 PR debug/47991
10764 * var-tracking.c (find_use_val): Return NULL for
10765 cui->sets && cui->store_p BLKmode MEMs.
10766
3d451f7c 107672011-03-07 Anatoly Sokolov <aesok@post.ru>
10768
10769 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10770 Remove.
10771 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10772 xstormy16_print_operand_address): Remove.
10773 * config/stormy16/stormy16.c (xstormy16_print_operand,
10774 xstormy16_print_operand_address): Make static.
10775 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10776
613a2120 107772011-03-07 Pat Haugen <pthaugen@us.ibm.com>
d9350d7a 10778
10779 PR target/47862
10780 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10781 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10782 before definition.
10783
68fb4bc0 107842011-03-07 Zdenek Dvorak <ook@ucw.cz>
10785
10786 PR bootstrap/48000
10787 * cfgloopmanip.c (fix_bb_placements): Return immediately
10788 if FROM is BASE_LOOP's header.
10789
6b37ba94 107902011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10791
10792 * gimplify.c (gimplify_function_tree): Fix building calls
10793 to __builtin_return_address.
10794
7a2d6ba2 107952011-03-07 Alan Modra <amodra@gmail.com>
10796
10797 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10798 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10799 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10800 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10801 return_mode args.
10802 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10803 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10804 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10805 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10806 * config/rs6000/rs6000.c
10807 (rs6000_elf_end_indicate_exec_stack): Rename to..
10808 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10809 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10810 (rs6000_file_start): ..here.
10811 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10812 file scope variables.
10813 (call_ABI_of_interest): New function.
10814 (init_cumulative_args): Set above vars when function return value
10815 is a float, vector, or small struct.
10816 (rs6000_function_arg_advance_1): Likewise for function args.
10817 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10818 references float args.
10819
83a53524 108202011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10821
10822 * doc/cfg.texi: Remove "See" before @ref.
10823 * doc/invoke.texi: Likewise.
10824
e21b716e 108252011-03-05 Jason Merrill <jason@redhat.com>
10826
10827 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10828
01a092a9 108292011-03-05 Anthony Green <green@moxielogic.com>
10830
10831 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10832
6e05e600 108332011-03-05 Zdenek Dvorak <ook@ucw.cz>
10834
10835 PR rtl-optimization/47899
10836 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10837 to flow_loop_nested_p when moving the loop upward.
10838
85e02ccb 108392011-03-05 Richard Earnshaw <rearnsha@arm.com>
10840
10841 PR target/47719
10842 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10843
f9e9b574 108442011-03-05 Jakub Jelinek <jakub@redhat.com>
10845
10846 PR tree-optimization/47967
10847 * ipa-cp.c (build_const_val): Return NULL instead of creating
10848 VIEW_CONVERT_EXPR for mismatching sizes.
10849 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10850 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10851 give up on versioning.
10852
e06d1367 108532011-03-05 Alan Modra <amodra@gmail.com>
10854
10855 PR target/47986
10856 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10857 full cmodel medium/large lo_sum + high addresses.
10858
cf8ffe7d 108592011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10860
10861 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10862 pool references in UNSPEC_LTREL_OFFSET.
10863
aa29908f 108642011-03-04 Jan Hubicka <jh@suse.cz>
10865
10866 PR lto/47497
10867 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10868 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
475f05b7 10869 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10870 Add node pointers.
aa29908f 10871 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10872 cgraph_add_thunk): Add node pointers.
10873 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10874 associated to right node.
10875 (input_node): Update use of cgraph_same_body_alias
10876 and cgraph_add_thunk.
10877
3852c2b6 108782011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10879
10880 * config/i386/i386.opt (mprefer-avx128): New flag.
475f05b7 10881 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10882 modes when the flag -mprefer-avx128 is on.
3852c2b6 10883
3f311b17 108842011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10885
10886 * dwarf2out.c (compare_loc_operands): Fix address handling.
10887
2c91799f 108882011-03-04 Alan Modra <amodra@gmail.com>
10889
10890 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10891
d5f2f2c4 108922011-03-04 Richard Guenther <rguenther@suse.de>
10893
10894 PR middle-end/47968
10895 * expmed.c (extract_bit_field_1): Prefer vector modes that
10896 vec_extract patterns can handle.
10897
4ea35dcb 108982011-03-04 Richard Guenther <rguenther@suse.de>
10899
10900 PR middle-end/47975
10901 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10902
e9c97615 109032011-03-04 Richard Henderson <rth@redhat.com>
10904
10905 * explow.c (emit_stack_save): Remove 'after' parameter.
10906 (emit_stack_restore): Likewise.
10907 * expr.h: Update to match.
10908 * builtins.c, calls.c, stmt.c: Likewise.
10909 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10910 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10911 * function.c (expand_function_end): Insert the emit_stack_save
10912 sequence before parm_birth_insn instead of after.
10913
1fda60c6 109142011-03-03 Uros Bizjak <ubizjak@gmail.com>
10915
10916 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10917 (ssse3_pmaddubsw128): Ditto.
10918 (ssse3_pmaddubsw): Ditto.
10919
f4210abd 109202011-03-03 Steve Ellcey <sje@cup.hp.com>
10921
10922 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10923
e488c25f 109242011-03-03 Jakub Jelinek <jakub@redhat.com>
10925
9b695a53 10926 PR c/47963
10927 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10928 on TYPE_SIZE_UNIT if it is a DECL.
10929
e488c25f 10930 PR debug/47283
10931 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10932 first operand is not is_gimple_mem_ref_addr, try to fold it.
10933 If the operand still isn't is_gimple_mem_ref_addr, clear
10934 MEM_EXPR on op0.
10935
9c01641d 109362011-03-03 Richard Guenther <rguenther@suse.de>
10937
10938 PR middle-end/47283
10939 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10940 match comment.
10941 (refs_may_alias_p_1): For release branches return true if
10942 we are confused by our input.
10943
dc3b3062 109442011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10945
10946 * config/s390/s390.c (s390_function_value): Rename to ...
10947 (s390_function_and_libcall_value): ... this.
10948 (s390_function_value): New function.
10949 (s390_libcall_value): New function.
1fda60c6 10950 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
dc3b3062 10951 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10952 target macro definitions.
10953 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10954
5c377a13 109552011-03-02 Joseph Myers <joseph@codesourcery.com>
10956
10957 * config/i386/freebsd64.h (CC1_SPEC): Define.
10958 * config/i386/linux64.h (CC1_SPEC): Define.
10959 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10960
f9fd3680 109612011-03-02 Anatoly Sokolov <aesok@post.ru>
10962
10963 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10964 Remove.
10965 * config/stormy16/stormy16.c: Include reload.h.
10966 (xstormy16_memory_move_cost): New function.
10967 (TARGET_MEMORY_MOVE_COST): Define.
10968
46313beb 109692011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10970
10971 PR rtl-optimization/47925
10972 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10973 with side effects. Remove the more-specific check for volatile asms.
10974
f6b38d5f 109752011-03-02 Alan Modra <amodra@gmail.com>
10976
10977 PR target/47935
10978 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10979 toc relative addresses for valid offsets.
10980
ffb35eed 109812011-03-01 Richard Guenther <rguenther@suse.de>
10982
10983 PR tree-optimization/47890
10984 * tree-vect-loop.c (get_initial_def_for_induction): Set
10985 related stmt properly.
10986
4525baee 109872011-03-01 Richard Guenther <rguenther@suse.de>
10988
10989 PR lto/47924
10990 * lto-streamer.c (lto_record_common_node): Also register
10991 the canonical type.
10992
f69f16c8 109932011-03-01 Richard Guenther <rguenther@suse.de>
10994
10995 PR lto/46911
10996 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10997 Do not stream DECL_ABSTRACT_ORIGIN.
10998 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10999 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11000 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11001 Do not stream DECL_ABSTRACT_ORIGIN.
11002 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11003 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11004
65bf7507 110052011-02-28 Anatoly Sokolov <aesok@post.ru>
11006
11007 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11008 FUNCTION_VALUE_REGNO_P): Remove.
50fd5b8b 11009 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
65bf7507 11010 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11011 Add 'outgoing' argument.
11012 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11013 function.
11014 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11015 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11016
875ffd1d 110172011-02-28 Kai Tietz <kai.tietz@onevision.com>
11018
11019 PR debug/28047
11020 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11021 (lookup_filename): Likewise.
50fd5b8b 11022 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
875ffd1d 11023
943d8723 110242011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11025 Jakub Jelinek <jakub@redhat.com>
11026
11027 PR middle-end/47893
11028 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11029 (assign_stack_local_1): Change last argument type to int.
11030 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11031 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
50fd5b8b 11032 don't record padding space into frame_space_list nor use those areas.
943d8723 11033 (assign_stack_local): Adjust caller.
11034 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11035 of assign_stack_local, pass 0 as last argument.
11036 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11037 callers.
11038
34edf61b 110392011-02-28 Jakub Jelinek <jakub@redhat.com>
11040
cd799492 11041 PR debug/47283
11042 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11043 Use target address_mode and pointer_mode hooks instead of hardcoded
11044 Pmode and ptr_mode. Handle some simple cases of extending if
11045 POINTERS_EXTEND_UNSIGNED < 0.
11046 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11047 Call convert_debug_memory_address.
11048 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11049 convert_debug_memory_address.
11050
34edf61b 11051 PR middle-end/46790
11052 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11053 * configure: Regenerated.
11054 * config.in: Regenerated.
11055 * varasm.c (default_function_section): Return NULL
50fd5b8b 11056 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
34edf61b 11057
ef725e2a 110582011-02-28 Martin Jambor <mjambor@suse.cz>
11059
11060 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11061 the description to match the printed values.
11062
a6519462 110632011-02-28 Richard Guenther <rguenther@suse.de>
11064
11065 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11066 of the copied scope tree.
11067
0695a9f1 110682011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11069
11070 * doc/extend.texi (Function Attributes): Avoid deeply (and
11071 wrongly) nested tables.
11072
776f6fe8 110732011-02-27 Jakub Jelinek <jakub@redhat.com>
11074
11075 PR middle-end/47903
11076 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11077 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11078 r isn't op0 nor op1.
11079
dfa3cb1f 110802011-02-23 Georg-Johann Lay <avr@gjlay.de>
11081
11082 * config/avr/avr.md: Remove magic comment for emacs.
11083
db17070c 110842011-02-23 Georg-Johann Lay <avr@gjlay.de>
11085
11086 PR target/45261
11087 * config/avr/avr.c (avr_option_override): Use error on bad options.
11088 (avr_help): New function.
11089 (TARGET_HELP): Define.
11090
1f959902 110912011-02-22 Georg-Johann Lay <avr@gjlay.de>
11092
11093 PR target/42240
11094 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11095 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11096
30f499b1 110972011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11098
11099 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11100 (ARM Options): Ditto.
11101 (i386 and x86-64 Options): Ditto.
11102 (RX Options): Ditto.
11103 (SPARC Options): Ditto.
11104
0be8ff0a 111052011-02-26 Tijl Coosemans <tijl@coosemans.org>
11106
11107 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11108 FreeBSD 6 and later. Generally use cpu generic.
11109
80778a8f 111102011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
50fd5b8b 11111
80778a8f 11112 * doc/cpp.texi: Update copyright years.
11113
ba6ea72b 111142011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
a965af21 11115
ba6ea72b 11116 PR target/46898
a965af21 11117 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11118
ba6ea72b 111192011-02-25 Jon Beniston <jon@beniston.com>
a965af21 11120
ba6ea72b 11121 PR target/46898
a965af21 11122 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11123 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11124 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11125 (lm32_block_move_inline): Add type cast to remove warning.
50fd5b8b 11126 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
a965af21 11127 (gen_int_relational): Move declarations to start of function.
11128
96b07a49 111292011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11130
11131 PR tree-optimization/45470
11132 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11133 can throw internally only.
11134 * tree-vect-stmts.c (vectorizable_call): Likewise.
11135
8fe62af3 111362011-02-24 Anatoly Sokolov <aesok@post.ru>
11137
11138 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11139 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11140 * config/stormy16/stormy16-protos.h
11141 (xstormy16_preferred_reload_class): Remove.
11142 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11143 static. Change 'rclass' argument and return type to reg_class_t.
11144 (TARGET_PREFERRED_RELOAD_CLASS,
11145 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11146
c7f193a9 111472011-02-24 Richard Guenther <rguenther@suse.de>
11148
11149 * lto-streamer-in.c (input_bb): Do not find referenced vars
11150 in debug statements.
11151
4d7aaf8e 111522011-02-23 Jason Merrill <jason@redhat.com>
11153
11154 * common.opt (fabi-version): Document v5 and v6.
11155
1d9199d5 111562011-02-23 Richard Guenther <rguenther@suse.de>
11157
11158 PR tree-optimization/47849
11159 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11160
fde5bd5c 111612011-02-23 Jie Zhang <jie@codesourcery.com>
11162
11163 * opts-common.c (decode_cmdline_option): Print empty string
11164 argument as "" in decoded->orig_option_with_args_text.
11165 * gcc.c (execute): Print empty string argument as ""
11166 in the verbose output.
11167 (do_spec_1): Keep empty string argument.
11168
269a3896 111692011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11170
11171 * config.gcc: Declare score-* and crx-* obsolete.
11172
90db8e34 111732011-02-23 Jie Zhang <jie@codesourcery.com>
11174
11175 PR rtl-optimization/47763
11176 * web.c (web_main): Ignore naked clobber when replacing register.
11177
50ff388b 111782011-02-22 Anatoly Sokolov <aesok@post.ru>
11179
11180 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11181 Remove.
11182
d4bd50d9 111832011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11184
11185 PR doc/47848
11186 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11187
b8a3bb74 111882011-02-22 Mike Stump <mikestump@comcast.net>
11189
11190 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11191 assembler.
11192 * configure: Regenerate.
11193
a79c1c05 111942011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11195
11196 PR rtl-optimization/46002
11197 * ira-color.c (update_copy_costs): Change class intersection
11198 test to reg_class_contents[] test of 'hard_regno'.
11199
93cc2636 112002011-02-21 Joseph Myers <joseph@codesourcery.com>
11201
11202 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11203 than Driver option.
11204 * config/hpux11.opt (mt): Likewise.
11205 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11206 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11207 * config/vax/elf.opt (mno-asm-pic): Likewise.
11208 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11209
820c090b 112102011-02-21 Mike Stump <mikestump@comcast.net>
11211
11212 PR target/47822
11213 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11214 tree so we can get save the type.
11215 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11216 for CFString instead of trying to use past the end of the builtins.
11217 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11218 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11219 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11220 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11221 Rename to darwin_builtin_cfstring.
11222 (darwin_init_cfstring_builtins): Return the built type.
11223
63bd35a7 112242011-02-21 Uros Bizjak <ubizjak@gmail.com>
11225
11226 PR target/47840
11227 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11228 (_mm256_insert_epi64): Use _mm_insert_epi64.
11229
e53c7df3 112302011-02-21 Anatoly Sokolov <aesok@post.ru>
11231
11232 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11233 * config/stormy16/stormy16-protos.h
11234 (xstormy16_mode_dependent_address_p): Remove.
11235 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11236 Make static. Change return type to bool. Change argument type to
11237 const_rtx. Remove dead code.
11238 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11239
03d20231 112402011-02-21 Richard Guenther <rguenther@suse.de>
11241
11242 PR lto/47820
11243 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11244 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11245 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11246 TUs context.
63bd35a7 11247 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
03d20231 11248 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11249
b1e3921b 112502011-02-20 Richard Guenther <rguenther@suse.de>
11251
11252 PR lto/47822
11253 * tree.c (free_lang_data_in_decl): Clean builtins from
11254 the TU decl BLOCK_VARS.
63bd35a7 11255
82467e60 112562011-02-19 Alexandre Oliva <aoliva@redhat.com>
11257
11258 PR debug/47620
11259 PR debug/47630
11260 * haifa-sched.c (fix_tick_ready): Skip tick computation
11261 for debug insns.
11262
d892298f 112632011-02-19 Richard Guenther <rguenther@suse.de>
11264
11265 PR lto/47647
11266 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11267 Remove lazy BLOCK_VARS streaming.
11268 (lto_input_ts_block_tree_pointers): Likewise.
11269 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11270
8c35683d 112712011-02-19 Joseph Myers <joseph@codesourcery.com>
11272
11273 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11274
4295c97b 112752011-02-19 Joseph Myers <joseph@codesourcery.com>
11276
11277 * config/i386/biarch32.h, config/i386/mach.h,
11278 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11279
ff8e131f 112802011-02-19 Jakub Jelinek <jakub@redhat.com>
11281
11282 PR target/47800
11283 * config/i386/i386.md (peephole2 for shift and plus): Use
11284 operands[1] original mode in the first insn.
11285
828a4913 112862011-02-18 Mike Stump <mikestump@comcast.net>
11287
5f41e8fd 11288 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
828a4913 11289
84283c29 112902011-02-18 Jan Hubicka <jh@suse.cz>
11291
11292 PR middle-end/47788
5f41e8fd 11293 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11294 to zero when the function is not inlinable at all.
84283c29 11295
22c4d420 112962011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11297
11298 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11299 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11300 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11301 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11302 * config/pa/t-pa64: Likewise.
11303 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11304
60c10fe6 113052011-02-18 Jakub Jelinek <jakub@redhat.com>
11306
11307 PR driver/47787
11308 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11309
c7f840ef 113102011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11311
11312 PR target/47792
11313 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11314
bb10104e 113152011-02-18 Anatoly Sokolov <aesok@post.ru>
11316
11317 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11318 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11319 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11320 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11321 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11322 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11323 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11324 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11325 m32r_legitimate_address_p): New functions.
11326 * config/m32r/constraints.md (constraint "S"): Don't use
11327 STORE_PREINC_PREDEC_P.
11328 (constraint "U"): Don't use LOAD_POSTINC_P.
11329
6b629457 113302011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11331
11332 PR rtl-optimization/46178
11333 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11334 compute ira_hard_regno_cover_class[].
11335
30865946 113362011-02-18 Richard Guenther <rguenther@suse.de>
11337
11338 PR lto/47798
11339 * lto-streamer.h (lto_global_var_decls): Declare.
11340 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11341 statics for global var processing.
11342
b533d4c1 113432011-02-18 Richard Guenther <rguenther@suse.de>
11344
11345 PR tree-optimization/47737
11346 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11347 edge dominance check.
11348
ce6d059c 113492011-02-18 Jakub Jelinek <jakub@redhat.com>
11350
11351 PR debug/47780
11352 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11353 avoid invalid rtx sharing.
11354
159581d2 113552011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11356
11357 * doc/cpp.texi (Obsolete Features): Add background on the
11358 origin of assertions.
11359
267785bc 113602011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11361
11362 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
63bd35a7 11363 objc_abi == 2.
267785bc 11364 * config/darwin.c (output_objc_section_asm_op): Added support for
11365 ABI v1 and v2.
11366 (is_objc_metadata): New.
11367 (darwin_objc2_section): New.
11368 (darwin_objc1_section): New.
11369 (machopic_select_section): Added support for ABI v1 and v2.
11370 (darwin_emit_objc_zeroed): New.
11371 (darwin_output_aligned_bss): Detect objc metadata and treat it
11372 appropriately.
11373 (darwin_asm_output_aligned_decl_common): Same.
11374 (darwin_asm_output_aligned_decl_local): Same.
11375 * config/darwin-sections.def: Updated for ABI v1 and v2.
11376 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11377 compiling Objective-C code for the NeXT runtime, default to using
11378 ABI version 0 for 32-bit, and version 2 for 64-bit.
11379
d2807aa3 113802011-02-17 Joseph Myers <joseph@codesourcery.com>
11381
11382 * common.opt (optimize_fast): New Variable.
11383 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11384 instead of local variable ofast.
11385
29cf2335 113862011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11387
11388 * doc/invoke.texi (fobjc-abi-version): Documented.
11389 (fobjc-nilcheck): Documented.
11390 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11391 version.
11392
455188e9 113932011-02-17 Joseph Myers <joseph@codesourcery.com>
11394
11395 PR driver/47390
11396 * common.opt (export-dynamic): New Driver option.
11397 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11398
e29d44c5 113992011-02-17 Joseph Myers <joseph@codesourcery.com>
11400
11401 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11402
649597af 114032011-02-17 Alexandre Oliva <aoliva@redhat.com>
11404 Jan Hubicka <jh@suse.cz>
11405
11406 PR debug/47106
11407 PR debug/47402
11408 * cfgexpand.c (account_used_vars_for_block): Remove.
11409 (estimated_stack_frame_size): Use referenced vars.
11410 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11411 that were referenced in the original function. Test src_fn
11412 rather than cfun. Drop redundant get_var_ann.
11413 (setup_one_parameter): Drop redundant get_var_ann.
11414 (declare_return_variable): Likewise.
11415 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11416 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11417 * ipa-inline.c (compute_inline_parameters): Do not compute
11418 disregard_inline_limits here.
649597af 11419 (compute_inlinable_for_current, pass_inlinable): New.
11420 (pass_inline_parameters): Require PROP_referenced_vars.
11421 * cgraphunit.c (cgraph_process_new_functions): Don't run
63bd35a7 11422 compute_inline_parameters explicitly unless function is in SSA form.
649597af 11423 (cgraph_analyze_function): Set .disregard_inline_limits.
11424 * tree-sra.c (convert_callers): Compute inliner parameters
11425 only for functions already in SSA form.
11426
c146feab 114272011-02-17 Joseph Myers <joseph@codesourcery.com>
11428
11429 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11430 -mlittle-endian-data.
11431
b13e238b 114322011-02-17 Joseph Myers <joseph@codesourcery.com>
11433
11434 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11435 -mno-fpu, not -fpu and -no-fpu.
11436 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11437 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11438
9fd3a486 114392011-02-17 Uros Bizjak <ubizjak@gmail.com>
11440
11441 PR target/43653
11442 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11443 input reload with PLUS RTX.
11444
358db628 114452011-02-16 Joseph Myers <joseph@codesourcery.com>
11446
11447 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11448 of InverseVar(MDMX).
11449
3032caa3 114502011-02-16 Joseph Myers <joseph@codesourcery.com>
11451
11452 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11453 --m4-340.
11454
4b23df5b 114552011-02-16 Joseph Myers <joseph@codesourcery.com>
11456
11457 * config/mn10300/mn10300.opt (mno-crt0): New.
11458
10c4d368 114592011-02-16 Joseph Myers <joseph@codesourcery.com>
11460
11461 * config/m68k/uclinux.opt (static-libc): New Driver option.
11462
01440cd1 114632011-02-16 Joseph Myers <joseph@codesourcery.com>
11464
11465 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11466
efe49cb9 114672011-02-16 Joseph Myers <joseph@codesourcery.com>
11468
11469 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11470 %{muser-extend-enabled}.
11471
e5d5c850 114722011-02-16 Richard Guenther <rguenther@suse.de>
11473
11474 PR tree-optimization/47738
11475 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11476 the TODO from tree_predictive_commoning.
11477
18669cea 114782011-02-15 Jeff Law <law@redhat.com>
11479
11480 Revert
11481 2011-01-25 Jeff Law <law@redhat.com>
11482
11483 PR rtl-optimization/37273
11484 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11485 handle them like argument loads from stack slots. Do not double
11486 count memory for memory constants and argument loads from stack slots.
11487
c0108506 114882011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 PR middle-end/47725
11491 * combine.c (cant_combine_insn_p): Revert the last change.
11492
4252f7fe 114932011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11494
11495 PR target/47755
11496 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11497 mode for vector constants. Remove code that checks for TImode.
11498
22bbc9c1 114992011-02-15 Alexandre Oliva <aoliva@redhat.com>
11500
11501 PR debug/47106
11502 PR debug/47402
11503 * cgraph.h (compute_inline_parameters): Return void.
11504 * ipa-inline.c (compute_inline_parameters): Adjust.
11505
970270ba 115062011-02-15 Alexandre Oliva <aoliva@redhat.com>
11507
11508 PR debug/47106
11509 PR debug/47402
11510 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11511 rather than decl.
11512 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11513 * ipa-inline.c (compute_inline_parameters): Adjust.
11514
a23e00ae 115152011-02-15 Alexandre Oliva <aoliva@redhat.com>
11516
11517 PR debug/47106
11518 PR debug/47402
11519 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11520 Adjust all users. Pass FN to...
11521 * tree-flow-inline.h (first_referenced_var): ... this. Add
11522 fn argument.
11523 * ipa-struct-reorg.c: Adjust.
11524 * tree-dfa.c: Adjust.
11525 * tree-into-ssa.c: Adjust.
11526 * tree-sra.c: Adjust.
11527 * tree-ssa-alias.c: Adjust.
11528 * tree-ssa-live.c: Adjust.
11529 * tree-ssa.c: Adjust.
11530 * tree-ssanames.c: Adjust.
11531 * tree-tailcall.c: Adjust.
11532
29e4566c 115332011-02-15 Alexandre Oliva <aoliva@redhat.com>
11534
11535 PR debug/47106
11536 PR debug/47402
11537 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11538 Adjust all callers.
11539 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11540 * tree-flow-inline.h: Adjust.
11541 * gimple-pretty-print.c: Adjust.
11542 * tree-into-ssa.c: Adjust.
11543 * tree-ssa.c: Adjust.
11544 * cfgexpand.c: Adjust.
11545
8ba7ed0c 115462011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11547
9fd3a486 11548 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11549 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11550 (EXTRA_CONSTRAINT): Delete.
11551 * config/iq2000/constraints.md: New file.
11552 * config/iq2000/iq2000.md: Include it.
8ba7ed0c 11553 (define_insn ""): Delete.
11554 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11555 unsupported constraint letters from patterns.
11556 (call_value, call_value_internal1): Likewise.
11557 (call_value_multiple_internal1): Likewise.
11558
e7076c21 115592011-02-15 Nick Clifton <nickc@redhat.com>
11560
11561 * config/mn10300/mn10300.c: Include tm-constrs.h.
11562 (struct liw_data): New data structure describing an LIW candidate
11563 instruction.
11564 (extract_bundle): Use struct liw_data. Allow small integer
11565 operands for some instructions.
11566 (check_liw_constraints): Use struct liw_data. Remove swapped
11567 parameter. Add comments describing the checks. Fix bug when
11568 assigning the source of liw1 to the source of liw2.
11569 (liw_candidate): Delete. Code moved into extract_bundle.
11570 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11571 before swapping.
11572 * config/mn10300/predicates.md (liw_operand): New predicate.
11573 Allows registers and small integer constants.
11574 * config/mn10300/constraints.md (O): New constraint. Accetps
11575 integers in the range -8 to +7 inclusive.
11576 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11577 for moving a small integer into a register. Give this alternative
11578 LIW attributes.
11579 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11580 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11581 using the J,K,L and M constraints,
11582 (liw): Remove SI mode on second operands to allow for HI and QI
11583 mode values.
11584 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11585 instruction.
11586
2e7f8af9 115872011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11588
11589 PR middle-end/47725
11590 * combine.c (cant_combine_insn_p): Check zero/sign extended
11591 hard registers.
11592
80b5fa01 115932011-02-15 Richard Guenther <rguenther@suse.de>
11594
11595 PR tree-optimization/47743
11596 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11597 for a non-type-compatible VN lookup bail out.
11598
a81ae224 115992011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11600
11601 * config/fr30/constraints.md: New file.
11602 * config/fr30/fr30.md: Include it.
11603 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11604 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11605 (EXTRA_CONSTRAINT): Delete.
11606
759348d2 116072011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11608
11609 * config/frv/constraints.md: New file.
11610 * config/frv/predicates.md: Include it.
11611 * config/frv/frv.c (reg_class_from_letter): Delete.
11612 (frv_option_override): Don't initialize it.
11613 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11614 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11615 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11616 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11617 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11618 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11619 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11620 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11621 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11622 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11623 (REG_CLASS_FROM_CONSTRAINT): Delete.
11624
29fe2e47 116252011-02-15 Jakub Jelinek <jakub@redhat.com>
11626
11627 PR middle-end/47581
11628 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11629 if frame size is 0 in a leaf function.
11630
2ffa7c6a 116312011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11632
11633 PR pch/14940
11634 * config/alpha/host-osf.c: New file.
11635 * config/alpha/x-osf: New file.
11636 * config.host (alpha*-dec-osf*): Use it.
11637
5afe50d9 116382011-02-14 Anatoly Sokolov <aesok@post.ru>
11639
11640 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11641 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11642 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11643 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11644 type to const_rtx.
11645 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11646
ee34ed40 116472011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11648
11649 * config/stormy16/constraints.md: New file.
11650 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11651 Use satisfies_constraint_Q and satisfies_constraint_R.
11652 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11653 Delete.
11654 (xstormy16_legitiamte_address_p): Declare.
11655 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11656 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11657 (EXTRA_CONSTRAINT): Delete.
9fd3a486 11658 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
ee34ed40 11659 Un-staticize.
11660 (xstormy16_extra_constraint_p): Delete.
11661
a2676c4f 116622011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11663
11664 PR tree-optimization/46494
11665 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11666 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11667 (pass_rtl_loop_done): Add TODO_verify_flow.
11668 * fwprop.c (pass_rtl_fwprop): Likewise.
11669 * modulo-sched.c (pass_sms): Likewise.
11670 * tree-ssa-dom.c (pass_dominator): Likewise.
11671 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11672 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11673 (pass_tree_loop_done): Likewise.
11674 * tree-ssa-pre.c (execute_pre): Likewise.
11675 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11676 * tree-ssa-sink.c (pass_sink_code): Likewise.
11677 * tree-vrp.c (pass_vrp): Likewise.
11678
48fd9d16 116792011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11680
a2676c4f 11681 * config/v850/constraints.md: New file.
11682 * config/v850/v850.md: Include it.
11683 * config/v850/predicates.md (reg_or_0_operand): Use
11684 satisfies_constraint_G.
11685 (special_symbolref_operand): Use satisfies_constraint_K.
11686 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11687 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11688 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11689 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11690 (EXTRA_CONSTRAINT): Delete.
11691 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11692 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11693 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
48fd9d16 11694
b1db1470 116952011-02-14 Anatoly Sokolov <aesok@post.ru>
11696
11697 PR target/47696
11698 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11699 description.
11700
e11f7186 117012011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11702
11703 * config/mcore/constraints.md: New file.
11704 * config/mcore/mcore.md: Include it.
11705 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11706 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11707 (REG_CLASS_FROM_LETTER): Delete.
11708 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11709 insn_const_int_ok_for_constraint.
11710 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11711 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11712 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11713 (EXTRA_CONSTRAINT): Delete.
11714
96727600 117152011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11716
11717 PR ada/41929
11718 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11719 (IS_SIGHANDLER): Define.
11720 (sparc64_is_sighandler): New function, split off from
11721 sparc64_fallback_frame_state.
11722 (sparc_is_sighandler): New function, split off from
11723 sparc_fallback_frame_state.
11724 (sparc64_fallback_frame_state): Merge with ...
11725 (sparc_fallback_frame_state): ... this into ...
11726 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9fd3a486 11727 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11728 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11729 stack instead of hardcoded offsets.
96727600 11730
9fd3a486 117312011-02-14 Andriy Gapon <avg@freebsd.org>
54a8b32d 11732
11733 PR target/45808
11734 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11735
4b20b68c 117362011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11737
11738 * configure: Regenerate.
11739
a4a58ea8 117402011-02-12 Joseph Myers <joseph@codesourcery.com>
11741
11742 PR driver/45731
11743 * gcc.c (asm_options): Correct spec matching --target-help.
11744
c2b7e854 117452011-02-12 Martin Jambor <mjambor@suse.cz>
11746
11747 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11748 to gimple call error.
11749
ffad481e 117502011-02-12 Mike Stump <mikestump@comcast.net>
11751
11752 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11753 comments in backslash regions.
11754
c854f114 117552011-02-12 Mike Stump <mikestump@comcast.net>
11756 Jakub Jelinek <jakub@redhat.com>
11757 Iain Sandoe <iains@gcc.gnu.org>
11758
11759 PR target/47324
11760 * dwarf2out.c (output_cfa_loc): When required, apply the
11761 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11762 (output_loc_sequence): Likewise.
11763 (output_loc_operands_raw): Likewise.
11764 (output_loc_sequence_raw): Likewise.
11765 (output_cfa_loc): Likewise.
11766 (output_loc_list): Suppress register number adjustment when
11767 calling output_loc_sequence()
11768 (output_die): Likewise.
11769
156d021f 117702011-02-12 Anatoly Sokolov <aesok@post.ru>
11771
11772 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11773 Remove macros.
11774 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11775 xtensa_memory_move_cost): New functions.
11776 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11777
98de5262 117782011-02-12 Alexandre Oliva <aoliva@redhat.com>
11779
11780 PR lto/47225
11781 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11782 in the current directory.
11783 * configure: Rebuilt.
11784
5886e9ab 117852011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11786
11787 * config/darwin.c (darwin_override_options): Add a hunk missed
9fd3a486 11788 from the commit of r168571. Trim comment line lengths and
5886e9ab 11789 correct indents of the preceding block.
11790
accf4556 117912011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11792
11793 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11794 the switch.
11795
286f96fe 117962011-02-11 Joseph Myers <joseph@codesourcery.com>
11797
11798 * common.opt (nostartfiles): New Driver option.
11799
0c2b2fc8 118002011-02-11 Xinliang David Li <davidxl@google.com>
11801
11802 PR tree-optimization/47707
11803 * tree-chrec.c (convert_affine_scev): Keep type precision.
11804
892c141e 118052011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11806
11807 PR tree-optimization/47420
11808 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11809
118102011-02-11 Pat Haugen <pthaugen@us.ibm.com>
017b7047 11811
11812 PR rtl-optimization/47614
11813 * rtl.h (check_for_inc_dec): Declare.
11814 * dse.c (check_for_inc_dec): Externalize...
11815 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11816 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11817
5585cfe8 118182011-02-11 Joseph Myers <joseph@codesourcery.com>
11819
11820 PR driver/47678
11821 * gcc.c (main): Do not compile inputs if there were errors in
11822 option handling.
11823 * opts-common.c (read_cmdline_option): Check for wrong language
11824 after other error checks.
11825
0a10fd82 118262011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11827
11828 * cgraph.c: Fix comment typos.
11829 * cgraph.h: Likewise.
11830 * cgraphunit.c: Likewise.
11831 * ipa-cp.c: Likewise.
11832 * ipa-inline.c: Likewise.
11833 * ipa-prop.c: Likewise.
11834 * ipa-pure-const.c: Likewise.
11835 * ipa-ref.c: Likewise.
11836 * ipa-reference.c: Likewise.
11837
db16e52d 118382011-02-11 Jakub Jelinek <jakub@redhat.com>
11839
58dcd970 11840 PR debug/47684
11841 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
db16e52d 11842
26ece10c 118432011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11844
11845 PR testsuite/47400
11846 * doc/sourcebuild.texi (Require Support): Document
11847 dg-require-ascii-locale.
11848
9d320e9e 118492011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11850
11851 * doc/lto.texi (Write summary): Fix missing parentheses.
11852
45bba533 118532011-02-10 DJ Delorie <dj@redhat.com>
11854
11855 * config/m32c/m32c.c (m32c_option_override): Disable
11856 -fcombine-stack-adjustments until flag value tracking and compare
11857 optimization can be rewritten.
11858
bcc2fca8 118592011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11860
11861 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11862 PROCESSOR_POWER7.
11863 (PROCESSOR_DEFAULT64): Likewise.
11864
24ad6c43 118652011-02-10 Richard Henderson <rth@redhat.com>
11866
11867 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11868 change from 2011-02-03.
11869 * config/rx/rx.c (flags_from_code): Likewise.
11870 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11871 is valid, n/pz otherwise.
11872 (rx_select_cc_mode): Return CCmode if Y is not zero.
11873
02b63808 118742011-02-10 Richard Guenther <rguenther@suse.de>
11875
5b0332ff 11876 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
02b63808 11877
b1296be0 118782011-02-10 Richard Guenther <rguenther@suse.de>
11879
11880 PR tree-optimization/47677
11881 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11882
952f9aab 118832011-02-10 Jakub Jelinek <jakub@redhat.com>
11884
11885 PR target/47665
11886 * combine.c (make_compound_operation): Only change shifts into
11887 multiplication for SCALAR_INT_MODE_P.
11888
de963f40 118892011-02-10 Jie Zhang <jie@codesourcery.com>
11890
11891 PR testsuite/47622
11892 Revert
11893 2011-02-05 Jie Zhang <jie@codesourcery.com>
11894 PR debug/42631
11895 * web.c (entry_register): Don't clobber the number of the
11896 first uninitialized reference in used[].
11897
1292392a 118982011-02-09 Richard Guenther <rguenther@suse.de>
11899
11900 PR tree-optimization/47664
11901 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11902 all edges again.
11903
5231b132 119042011-02-09 David Edelsohn <dje.gcc@gmail.com>
11905
8f9d4e4d 11906 PR target/46481
11907 PR target/47032
5231b132 11908 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11909 PROCESSOR_POWER7.
11910 (PROCESSOR_DEFAULT64): Same.
11911 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11912
1a680d32 119132011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11914
11915 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11916
f21e6d7c 119172011-02-09 Martin Jambor <mjambor@suse.cz>
11918
11919 PR middle-end/45505
11920 * tree-sra.c (struct access): New flags grp_scalar_read and
11921 grp_scalar_write. Changed description of assignment read and write
11922 flags.
11923 (dump_access): Dump new flags, reorder all of them.
11924 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11925 to detect multiple scalar reads.
11926 (analyze_access_subtree): Use the new scalar read write flags instead
11927 of the old flags. Adjusted comments.
11928
ee5533ba 119292011-02-08 DJ Delorie <dj@redhat.com>
11930
11931 PR target/47548
11932 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11933 patterns.
11934
99c2a9e3 119352011-02-08 Joseph Myers <joseph@codesourcery.com>
11936
11937 * config/m68k/uclinux.opt: New.
11938 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11939
400e0edf 119402011-02-08 Joseph Myers <joseph@codesourcery.com>
11941
11942 * config/cris/elf.opt (sim): New Driver option.
11943
b0a67e36 119442011-02-08 Joseph Myers <joseph@codesourcery.com>
11945
11946 * config/xtensa/elf.opt: New.
11947 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11948
6b9d66b3 119492011-02-08 Joseph Myers <joseph@codesourcery.com>
11950
11951 * config/vax/elf.opt: New.
11952 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11953
19e04b72 119542011-02-08 Joseph Myers <joseph@codesourcery.com>
11955
11956 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11957
55d8cecf 119582011-02-08 Joseph Myers <joseph@codesourcery.com>
11959
11960 * config/gnu-user.opt: New.
11961 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11962 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11963 *-*-uclinux*): Use gnu-user.opt.
11964
143c96ad 119652011-02-08 Thomas Schwinge <thomas@schwinge.name>
11966
11967 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11968 * config/i386/gnu.h (CPP_SPEC): Likewise.
11969
ecee1b29 119702011-02-08 Ian Lance Taylor <iant@google.com>
11971
11972 * common.opt (fcx-limited-range): Add SetByCombined flag.
11973 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11974 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11975 (fassociative-math, freciprocal-math): Likewise.
11976 (funsafe-math-optimizations): Likewise.
11977 * opth-gen.awk: Handle SetByCombined.
11978 * optc-gen.awk: Likewise.
5b0332ff 11979 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
ecee1b29 11980 (set_unsafe_math_optimizations_flags): Likewise.
11981 * doc/options.texi (Option properties): Document SetByCombined.
11982
a7359760 119832011-02-08 Joseph Myers <joseph@codesourcery.com>
11984
11985 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11986 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11987 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11988 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11989 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11990
2528d7cf 119912011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11992
11993 PR tree-optimization/46834
11994 PR tree-optimization/46994
11995 PR tree-optimization/46995
11996 * graphite-sese-to-poly.c (used_outside_reduction): New.
11997 (detect_commutative_reduction): Call used_outside_reduction.
11998 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11999 translate_scalar_reduction_to_array only when at least one
12000 loop-phi/close-phi tuple has been detected.
12001
82f9a36f 120022011-02-08 Richard Guenther <rguenther@suse.de>
12003
12004 PR middle-end/47639
12005 * tree-vect-generic.c (expand_vector_operations_1): Update
12006 stmts here ...
12007 (expand_vector_operations): ... not here. Cleanup EH info
12008 and the CFG if required.
12009
ef618bb8 120102011-02-08 Richard Guenther <rguenther@suse.de>
12011
12012 PR tree-optimization/47641
12013 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12014 require type compatibility.
12015
417a43d7 120162011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12017
12018 * gimple-low.c (lower_function_body): Don't remove the location of
12019 the return statement here.
12020 (lower_gimple_return): Do it here instead but only if the return
12021 statement is actually used twice.
12022
5d2361b0 120232011-02-08 Richard Guenther <rguenther@suse.de>
12024
12025 PR tree-optimization/47632
12026 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12027 unused up_to_stmt parameter, return whether cfg-cleanup is
12028 necessary, remove EH info properly.
12029 (forward_propagate_into_gimple_cond): Adjust caller.
12030 (forward_propagate_into_cond): Likewise.
12031 (forward_propagate_comparison): Likewise.
12032 (tree_ssa_forward_propagate_single_use_vars): Make
12033 forward_propagate_comparison case similar to the two others.
12034
f9e46c25 120352011-02-08 Nick Clifton <nickc@redhat.com>
12036
12037 * config/mn10300/mn10300.opt (mliw): New command line option.
12038 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12039 (liw_bundling): New automaton.
12040 (liw): New attribute.
12041 (liw_op): New attribute.
12042 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12043 (movsi_internal): Add LIW attributes.
12044 (andsi3): Likewise.
12045 (iorsi3): Likewise.
12046 (xorsi3): Likewise.
12047 (addsi3): Separate register and immediate alternatives.
12048 Add LIW attributes.
12049 (subsi3): Likewise.
12050 (cmpsi): Likewise.
12051 (aslsi3): Likewise.
12052 (lshrsi3): Likewise.
12053 (ashrsi3): Likewise.
12054 (liw): New pattern.
12055 * config/mn10300/mn10300.c (liw_op_names): New
12056 (mn10300_print_operand): Handle 'W' operand descriptor.
12057 (extract_bundle): New function.
12058 (check_liw_constraints): New function.
12059 (liw_candidate): New function.
12060 (mn10300_bundle_liw): New function.
12061 (mn10300_reorg): New function.
12062 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12063 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12064 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12065 __LIW__ or __NO_LIW__.
12066 * doc/invoke.texi: Describe the -mliw command line option.
12067
dfdc9106 120682011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12069
12070 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12071 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12072 pthread_mutex_unlock): Remove.
12073 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12074 * config/pa/t-pa64: Likewise.
12075 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12076 shared libc if not linking against libpthread.
12077 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12078
f52cfb2b 120792011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12080
12081 PR target/47558
12082 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12083 on 10.6 and later to ensure that we always use the unwinder from
12084 the system. Only add -no_compact_unwind when tarteting darwin
12085 10.6 or later.
12086
ce519b06 120872011-02-07 Steve Ellcey <sje@cup.hp.com>
12088
12089 PR target/46997
12090 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12091 (vec_interleave_lowv2sf): Ditto.
12092 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12093 (vec_extract_oddv2sf): Ditto.
12094
f6829196 120952011-02-07 Mike Stump <mikestump@comcast.net>
12096
dc9a6d82 12097 PR target/42333
f6829196 12098 Add __ieee_divdc3 entry point.
12099 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12100 entry point.
12101 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12102 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12103 * config/darwin.c (darwin_rename_builtins): Add.
12104 * config/darwin-protos.h (darwin_rename_builtins): Add.
12105
029247e8 121062011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12107
12108 PR target/47636
12109 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12110 for the condition.
12111
80fcd515 121122011-02-07 Mike Stump <mikestump@comcast.net>
12113
5b0332ff 12114 * config/darwin.opt (mmacosx-version-min): Update default OS version.
80fcd515 12115
0d6ffd24 121162011-02-07 Denis Chertykov <chertykov@gmail.com>
12117
12118 PR target/47534
12119 * config/avr/libgcc.S (exit): Move .endfunc
12120
8f190c8a 121212011-02-07 Richard Guenther <rguenther@suse.de>
12122
12123 PR tree-optimization/47615
12124 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12125 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12126 (run_scc_vn): Initialize it.
12127 (visit_reference_op_load): Use it.
12128 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12129
5825ec3f 121302011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12131
12132 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12133 DImode trapping arithmetic libfuncs.
12134
b88d109e 121352011-02-07 Richard Guenther <rguenther@suse.de>
12136
12137 PR tree-optimization/47621
12138 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12139 two duplicates ...
12140 (execute_update_addresses_taken): ... here. Make it more
12141 conservative in what we accept.
12142
9c9946f1 121432011-02-06 Joseph Myers <joseph@codesourcery.com>
12144
12145 * config/sparc/freebsd.h (ASM_SPEC): Define.
12146 * config/sparc/vxworks.h (ASM_SPEC): Define.
12147
c2c533dd 121482011-02-06 Joseph Myers <joseph@codesourcery.com>
12149
12150 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12151
3636b47c 121522011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12153
12154 * doc/invoke.texi: Remove reference to compiler internals from
12155 user documentation.
12156
12157 * reg-notes.def: Remove REG_VALUE_PROFILE.
12158 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12159
77e22628 121602011-02-05 Jakub Jelinek <jakub@redhat.com>
12161
12162 PR middle-end/47610
12163 * varasm.c (default_section_type_flags): If decl is NULL,
2e8ba7b3 12164 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
77e22628 12165
51a13f08 121662011-02-05 Jie Zhang <jie@codesourcery.com>
12167
12168 PR debug/42631
12169 * web.c (entry_register): Don't clobber the number of the
12170 first uninitialized reference in used[].
12171
ba3fc4d0 121722011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12173
12174 PR tree-optimization/46194
12175 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12176 (build_classic_dist_vector_1): Do not represent classic distance
12177 vectors when the access functions are variating in different loops.
12178
a1073f2a 121792011-02-04 Joseph Myers <joseph@codesourcery.com>
12180
12181 * config/mips/iris6.opt: New.
12182 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12183
0cbc5fc8 121842011-02-04 Richard Henderson <rth@redhat.com>
12185 Steve Ellcey <sje@cup.hp.com>
12186
12187 PR target/46997
12188 * config/ia64/predicates.md (mux1_brcst_element): New.
12189 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12190 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12191 (ia64_unpack_sign): New.
12192 (ia64_expand_unpack): Rewrite using new routines.
12193 (ia64_expand_widen_sum): Ditto.
12194 (ia64_expand_dot_prod_v8qi): Ditto.
12195 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12196 routines, add endian check.
12197 (pmpy2_even): Rename from pmpy2_r, add endian check.
12198 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12199 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12200 (vec_widen_smult_hi_v4hi): Ditto.
12201 (vec_widen_umult_lo_v4hi): Ditto.
12202 (vec_widen_umult_hi_v4hi): Ditto.
12203 (mulv2si3): Change endian checks.
12204 (sdot_prodv4hi): Rewrite with new calls.
12205 (udot_prodv4hi): New.
12206 (vec_pack_ssat_v4hi): Add endian check.
12207 (vec_pack_usat_v4hi): Ditto.
12208 (vec_pack_ssat_v2si): Ditto.
12209 (max1_even): Rename from max1_r, add endian check.
12210 (max1_odd): Rename from max1_l, add endian check.
12211 (*mux1_rev): Format change.
12212 (*mux1_mix): Ditto.
12213 (*mux1_shuf): Ditto.
12214 (*mux1_alt): Ditto.
12215 (*mux1_brcst_v8qi): Use new predicate.
12216 (vec_extract_evenv8qi): Remove endian check.
12217 (vec_extract_oddv8qi): Ditto.
12218 (vec_interleave_lowv4hi): Format change.
12219 (vec_interleave_highv4hi): Ditto.
12220 (mix2_even): Rename from mix2_r, add endian check.
12221 (mix2_odd): Rename from mux2_l, add endian check.
12222 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12223 (vec_extract_evenodd_helper): Format change.
12224 (vec_extract_evenv4hi): Remove endian check.
12225 (vec_extract_oddv4hi): Remove endian check.
12226 (vec_interleave_lowv2si): Format change.
12227 (vec_interleave_highv2si): Format change.
12228 (vec_initv2si): Remove endian check.
12229 (vecinit_v2si): Add endian check.
12230 (reduc_splus_v2sf): Add endian check.
12231 (reduc_smax_v2sf): Ditto.
12232 (reduc_smin_v2sf): Ditto.
12233 (vec_initv2sf): Remove endian check.
12234 (fpack): Add endian check.
12235 (fswap): Add endian check.
12236 (vec_interleave_highv2sf): Add endian check.
12237 (vec_interleave_lowv2sf): Add endian check.
12238 (fmix_lr): Add endian check.
12239 (vec_setv2sf): Format change.
12240 (*vec_extractv2sf_0_be): Use shift to extract operand.
12241 (*vec_extractv2sf_1_be): New.
12242 (vec_pack_trunc_v4hi): Add endian check.
12243 (vec_pack_trunc_v2si): Format change.
12244
351b6ccf 122452011-02-04 Jakub Jelinek <jakub@redhat.com>
12246
12247 PR inline-asm/23200
12248 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
2e8ba7b3 12249 do bb, locus and block comparison and disallow loads if it is not set.
351b6ccf 12250 (stmt_is_replaceable_p): New function.
12251 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12252 callers.
12253 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12254 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12255 SSA_NAME_DEF_STMT.
12256 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12257
8119d935 122582011-02-04 Joseph Myers <joseph@codesourcery.com>
12259
12260 * config/rs6000/xilinx.opt: New.
12261 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12262
5791dadc 122632011-02-04 Joseph Myers <joseph@codesourcery.com>
12264
12265 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12266
d7198e1f 122672011-02-03 Anatoly Sokolov <aesok@post.ru>
12268
12269 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12270 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12271 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12272 secondary_reload_info, xtensa_secondary_reload): Remove.
12273 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12274 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12275 (xtensa_preferred_reload_class): Make static. Change return and
12276 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12277 Use CONST_DOUBLE_P predicate.
12278 (xtensa_preferred_output_reload_class): New function.
12279 (xtensa_secondary_reload): Make static.
12280
ef83cafb 122812011-02-03 Joseph Myers <joseph@codesourcery.com>
12282
12283 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12284 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12285 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12286
91da0f1c 122872011-02-03 Jakub Jelinek <jakub@redhat.com>
12288
12289 PR middle-end/31490
12290 * output.h (SECTION_RELRO): Define.
12291 (SECTION_MACH_DEP): Adjust.
12292 (get_variable_section): New prototype.
12293 * varpool.c (varpool_finalize_named_section_flags): New function.
12294 (varpool_assemble_pending_decls): Call it.
12295 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12296 * cgraphunit.c (cgraph_output_in_order): Call
12297 varpool_finalize_named_section_flags.
12298 * varasm.c (get_section): Allow section flags conflicts between
12299 relro and read-only sections if the section hasn't been declared yet.
12300 Set SECTION_OVERRIDE after diagnosing section type conflict.
12301 (get_variable_section): No longer static.
12302 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12303 readonly sections that need relocations.
12304 (decl_readonly_section_1): New function.
12305 (decl_readonly_section): Use it.
12306
12307 Revert:
ba6ea72b 12308 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
91da0f1c 12309 Steve Ellcey <sje@cup.hp.com>
12310
12311 PR middle-end/31490
12312 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12313 if section attribute used.
12314
61aeb501 123152011-02-03 Jakub Jelinek <jakub@redhat.com>
12316
12317 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12318 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12319 (darwin_init_sections): Remove assertion.
12320
dd0e87b5 123212011-02-03 Nick Clifton <nickc@redhat.com>
12322
12323 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12324 lt and ge.
2e8ba7b3 12325 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
dd0e87b5 12326 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12327 instead of "n" and "pz".
12328 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12329 CC_FLAG_S.
12330
7b29dd2f 123312011-02-03 Jakub Jelinek <jakub@redhat.com>
12332
d325c8f4 12333 PR target/47312
12334 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12335 fma, expand FMA_EXPR as fma{,f,l} call.
12336
806416f6 12337 PR lto/47274
12338 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12339 copy them into a unsigned char variable and pass address of it to
12340 lto_output_data_stream.
12341
7b29dd2f 12342 PR target/47564
12343 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12344 around backend_init_target and lang_dependent_init_target calls.
12345 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12346 (verify_cgraph_node): Don't call set_cfun here. Use
12347 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12348 Set error_found for incorrectly represented calls to thunks.
12349
1f864115 123502011-02-03 Alexandre Oliva <aoliva@redhat.com>
12351
12352 PR debug/43092
12353 PR rtl-optimization/43494
12354 * rtl.h (for_each_inc_dec_fn): New type.
12355 (for_each_inc_dec): Declare.
12356 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12357 (for_each_inc_dec_find_inc_dec): New fn.
12358 (for_each_inc_dec_find_mem): New fn.
12359 (for_each_inc_dec): New fn.
12360 * dse.c (struct insn_size): Remove.
12361 (replace_inc_dec, replace_inc_dec_mem): Remove.
12362 (emit_inc_dec_insn_before): New fn.
12363 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12364 (canon_address): Pass mem modes to cselib_lookup.
12365 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12366 (cselib_lookup_from_insn): Likewise.
12367 (cselib_subst_to_values): Likewise.
12368 * cselib.c (find_slot_memmode): New var.
12369 (cselib_find_slot): New fn. Use it instead of
12370 htab_find_slot_with_hash everywhere.
12371 (entry_and_rtx_equal_p): Use find_slot_memmode.
12372 (autoinc_split): New fn.
12373 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12374 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12375 Deal with autoinc. Special-case recursion into MEMs.
12376 (cselib_hash_rtx): Likewise.
12377 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12378 address and MEM modes.
12379 (cselib_subst_to_values): Add memmode, pass it on.
12380 Deal with autoinc.
12381 (cselib_lookup): Add memmode argument, pass it on.
12382 (cselib_lookup_from_insn): Add memmode.
12383 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12384 (struct cselib_record_autoinc_data): New.
12385 (cselib_record_autoinc_cb): New fn.
12386 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12387 mode to cselib_lookup. Reset autoinced REGs here instead of...
12388 (cselib_process_insn): ... here.
12389 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12390 to cselib_lookup.
12391 (add_uses): Likewise, also to cselib_subst_to_values.
12392 (add_stores): Likewise.
12393 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12394 cselib_subst_to_values.
12395 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12396 * gcse.c (do_local_cprop): Adjusted.
12397 * postreload.c (reload_cse_simplify_set): Adjusted.
12398 (reload_cse_simplify_operands): Adjusted.
12399 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12400
4f2bfa26 124012011-02-03 Alexandre Oliva <aoliva@redhat.com>
12402
12403 PR tree-optimization/45122
12404 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12405 unsafe assumptions when there's more than one loop exit.
12406
a501acda 124072011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12408
12409 PR target/47272
12410 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12411 Document using vector double with the load/store builtins, and
12412 that the load/store builtins always use Altivec instructions.
12413
12414 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12415 to use altivec memory instructions, even on VSX.
12416 (vector_altivec_store_<mode>): Ditto.
12417
12418 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12419 function.
12420
12421 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12422 V2DF, V2DI support to load/store overloaded builtins.
12423
12424 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12425 altivec load/store builtins for V2DF/V2DI types.
12426
12427 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12428 set avoid indexed addresses on power6 if -maltivec.
12429 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12430 vector_altivec_load/vector_altivec_store builtins.
12431 (altivec_expand_st_builtin): Ditto.
12432 (altivec_expand_builtin): Add VSX memory builtins.
12433 (rs6000_init_builtins): Add V2DI types to internal types.
12434 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12435 load/store builtins.
12436 (rs6000_address_for_altivec): Insure memory address is appropriate
12437 for Altivec.
12438
12439 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12440 vec_vsx_ld and vec_vsx_st.
12441 (vsx_store_<mode>): Ditto.
12442
12443 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12444 variables to hold long long types for VSX vector memory builtins.
12445 (RS6000_BTI_unsigned_long_long): Ditto.
12446 (long_long_integer_type_internal_node): Ditti.
12447 (long_long_unsigned_type_internal_node): Ditti.
12448
12449 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12450 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12451 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12452
12453 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12454 short cuts.
12455 (vec_vsx_st): Ditto.
12456
4d15365c 124572011-02-02 Joseph Myers <joseph@codesourcery.com>
12458
12459 * config/pa/pa-hpux10.opt: New.
12460 * config/hpux11.opt (pthread): New Driver option.
12461 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12462 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12463
2ade2b93 124642011-02-02 Joseph Myers <joseph@codesourcery.com>
12465
12466 * config/ia64/vms.opt: New.
12467 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12468
71314d3d 124692011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12470
12471 PR target/47580
12472 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12473 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12474 generator functions.
12475 (vsx_floatuns<VSi><mode>2): Ditto.
12476 (vsx_fix_trunc<mode><VSi>2): Ditto.
12477 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12478
bdcbb638 124792011-02-02 Joseph Myers <joseph@codesourcery.com>
12480
12481 * config/i386/djgpp.opt (posix): New Driver option.
12482
ea722d26 124832011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12484
12485 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12486 Move to the unsupported targets list.
12487
486f84fd 124882011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12489
12490 PR rtl-optimization/47525
12491 * df-scan.c: Update copyright years.
12492 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12493 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12494
521e3dc9 124952011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12496
12497 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12498 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12499 (ASM_OUTPUT_ASCII): Remove.
12500 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12501
8e4f36fa 125022011-02-02 Jeff Law <law@redhat.com>
12503
12504 PR middle-end/47543
12505 * reload.c (find_reloads_address): Handle reg+d address where both
12506 components are invalid by reloading the entire address.
12507
46c50a88 125082011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12509 Richard Guenther <rguenther@suse.de>
12510
12511 PR tree-optimization/40979
12512 PR bootstrap/47044
12513 * passes.c (init_optimization_passes): After LIM call copy_prop
12514 and DCE to clean up.
12515 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12516
99df7432 125172011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12518
12519 PR tree-optimization/47576
12520 PR tree-optimization/47555
12521 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12522 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12523 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12524 * tree-scalar-evolution.c (follow_ssa_edge): Use
12525 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12526
f6c35aa4 125272011-02-02 Richard Guenther <rguenther@suse.de>
12528
12529 PR tree-optimization/47566
12530 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12531
f665f7bb 125322011-02-02 Alexandre Oliva <aoliva@redhat.com>
12533
619349e6 12534 PR debug/47106
12535 PR debug/47402
12536 * tree-inline.c (declare_return_variable): Remove unused caller
12537 variable.
12538
f665f7bb 12539 PR debug/47106
12540 PR debug/47402
12541 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12542 * cfgexpand.c (account_used_vars_for_block): Use them.
12543 * tree-nrv.c (tree_nrv): Likewise.
12544 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12545 (dump_scope_block): Likewise.
12546 (remove_unused_locals): Likewise.
12547
e81986ab 12548 PR debug/47106
12549 PR debug/47402
12550 * tree-inline.c (declare_return_variable): Add result decl to
12551 local decls only once.
12552 * gimple-low.c (record_vars_into): Mark newly-created variables
12553 as referenced.
12554
9221ec44 125552011-02-02 Alexandre Oliva <aoliva@redhat.com>
12556
12557 PR debug/47498
12558 PR debug/47501
12559 PR debug/45136
12560 PR debug/45130
12561 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12562 debug insns.
12563 (no_real_insns_p, schedule_block, set_priorities): Drop special
12564 treatment of boundary debug insns.
2e8ba7b3 12565 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9221ec44 12566 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12567 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12568 (BOUNDARY_DEBUG_INSN_P): Likewise.
12569 (SCHEDULE_DEBUG_INSN_P): Likewise.
12570 * sched-rgn.c (init_ready_list): Drop special treatment of
12571 boundary debug insns.
12572 * final.c (rest_of_clean_state): Clear notes' BB.
12573
31eea452 125742011-02-01 Joseph Myers <joseph@codesourcery.com>
12575
12576 * config/openbsd.opt (assert=): New Driver option.
12577
9453823e 125782011-02-01 Joseph Myers <joseph@codesourcery.com>
12579
12580 * config/i386/nto.opt: New.
12581 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12582
bc63be20 125832011-02-01 Joseph Myers <joseph@codesourcery.com>
12584
12585 * config/i386/netware.opt: New.
12586 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12587
7af14b9b 125882011-02-01 Joseph Myers <joseph@codesourcery.com>
12589
12590 * config/interix.opt (posix): New Driver option.
12591
1facaf0d 125922011-02-01 DJ Delorie <dj@redhat.com>
12593
d00812be 12594 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12595
1facaf0d 12596 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12597 class for A0/A1.
12598
63c5b29f 125992011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12600
12601 PR tree-optimization/47561
12602 * toplev.c (process_options): Print the Graphite flags. Add
12603 flag_loop_flatten to the list of options requiring Graphite.
12604
c80fcc70 126052011-02-01 Joseph Myers <joseph@codesourcery.com>
12606
12607 * config/i386/cygming.opt (posix): New Driver option.
12608
8afdaa80 126092011-02-01 Joseph Myers <joseph@codesourcery.com>
12610
12611 * config/arm/vxworks.opt: New.
12612 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12613
0b803a91 126142011-02-01 Joseph Myers <joseph@codesourcery.com>
12615
12616 * config/alpha/elf.opt: New.
12617 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12618 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12619
16d9b5d8 126202011-02-01 Richard Guenther <rguenther@suse.de>
12621
12622 PR tree-optimization/47559
12623 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12624 store-motion on references that can throw.
12625
329b9588 126262011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12627
12628 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12629 * tree-pass.h (TDF_CSELIB): New macro.
12630 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12631 cselib_lookup): Check for it rather than for TDF_DETAILS.
12632
ad905e43 126332011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12634
12635 PR driver/47547
12636 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12637 is HOST_BIT_BUCKET.
12638
12639 * opts.c (finish_options): Don't add x_aux_base_name if it is
12640 HOST_BIT_BUCKET.
12641
58dcbc36 126422011-02-01 Richard Guenther <rguenther@suse.de>
12643
12644 PR tree-optimization/47555
12645 Revert
12646 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12647
12648 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12649
fc887755 126502011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12651
12652 PR gcc/46692
12653 * config/lm32/t-lm32: Add multilib for all CPU options.
12654
f82bdab4 126552011-02-01 Richard Guenther <rguenther@suse.de>
12656
12657 PR tree-optimization/47541
12658 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12659 sure to have a field at offset zero.
12660
afd8d709 126612011-01-31 Joseph Myers <joseph@codesourcery.com>
12662
12663 * config/arc/arc.opt (EB, EL): New Driver options.
12664
4f5bbfa4 126652011-01-31 Joseph Myers <joseph@codesourcery.com>
12666
12667 * config/alpha/osf5.opt: New.
12668 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12669
deeaf98d 126702011-01-31 Joseph Myers <joseph@codesourcery.com>
12671
12672 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12673
464a406e 126742011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12675
12676 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12677 -floop-interchange.
12678 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12679 is an alias of -floop-interchange and that it requires the
12680 Graphite infrastructure.
12681 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12682 flag_loop_interchange based on the value of flag_tree_loop_linear.
12683
90c0f5b7 126842011-01-31 Jakub Jelinek <jakub@redhat.com>
12685 Richard Guenther <rguenther@suse.de>
12686
12687 PR tree-optimization/47538
12688 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12689 type instead of r1type, except for comparisons. For right
12690 shifts and comparisons punt if there are mismatches in
12691 sizetype vs. non-sizetype types.
12692
a2b522e7 126932011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12694
12695 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12696 avx_runtime.
12697
839ff241 126982011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12699
12700 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12701 version number.
12702 * configure: Regenerate.
12703
e6937b3a 127042011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12705
12706 * configure.ac (gcc_cv_ld_static_option): Define.
12707 (gcc_cv_ld_dynamic_option): Define.
12708 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12709 instead.
12710 (HAVE_LD_STATIC_DYNAMIC): Update message.
12711 (LD_STATIC_OPTION): Define.
12712 (LD_DYNAMIC_OPTION): Define.
12713 * configure: Regenerate.
12714 * config.in: Regenerate.
12715 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12716 HAVE_LD_STATIC_DYNAMIC]: Use them.
12717
382ffb70 127182011-01-31 Nick Clifton <nickc@redhat.com>
12719
12720 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12721 registers inside interrupt handlers if the handler is not a leaf
12722 function.
12723
c2fa9c24 127242011-01-31 Nick Clifton <nickc@redhat.com>
12725
12726 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12727 reg_renumber returning an INVALID_REGNUM.
12728
0e4d1862 127292011-01-31 Alexandre Oliva <aoliva@redhat.com>
12730
12731 PR libgcj/44341
12732 * doc/install.texi: Document host options discarded when cross
12733 configuring target libraries.
12734
7fb29e63 127352011-01-31 Alexandre Oliva <aoliva@redhat.com>
12736
12737 Reverted:
12738 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12739 PR debug/45136
12740 PR debug/45130
12741 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12742 debug insns.
12743 (no_real_insns_p, schedule_block, set_priorities): Drop special
12744 treatment of boundary debug insns.
2e8ba7b3 12745 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7fb29e63 12746 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12747 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12748 (BOUNDARY_DEBUG_INSN_P): Likewise.
12749 (SCHEDULE_DEBUG_INSN_P): Likewise.
12750 * sched-rgn.c (init_ready_list): Drop special treatment of
12751 boundary debug insns.
12752 * final.c (rest_of_clean-state): Clear notes' BB.
12753
3968fd16 127542011-01-31 Alan Modra <amodra@gmail.com>
12755
12756 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12757 toc relative expressions as we do in print_operand_address.
12758
7e44812a 127592011-01-30 Kazu Hirata <kazu@codesourcery.com>
12760
12761 * doc/extend.texi: Follow spelling conventions.
12762 * doc/invoke.texi: Fix a typo.
12763
593c1adb 127642011-01-30 Joseph Myers <joseph@codesourcery.com>
12765
12766 * config/hpux11.opt: New.
12767 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12768 ia64*-*-hpux*): Use hpux11.opt.
12769
ba6ea72b 127702011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
20684623 12771
12772 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12773 to tmake_file.
12774
f2a584ac 127752011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12776
12777 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12778 support sites.
12779
f4e302ca 127802011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12781
e75e9a75 12782 * doc/install.texi (Binaries): Remove outdated reference for
12783 Motorola 68HC11/68HC12 downloads.
12784
127852011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
3968fd16 12786
f4e302ca 12787 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12788 Drepper's paper.
12789
7f90e96e 127902011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12791
12792 PR bootstrap/47147
12793 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12794 used by NetBSD.
12795
2e8ba7b3 127962011-01-28 Ahmad Sharif <asharif@google.com>
81c388fd 12797
12798 * value-prof.c (check_counter): Corrected error message.
12799
a4f7f36c 128002011-01-29 Jie Zhang <jie@codesourcery.com>
12801
12802 * config/arm/arm.c (arm_legitimize_reload_address): New.
12803 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12804 arm_legitimize_reload_address.
2e8ba7b3 12805 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
a4f7f36c 12806
826a8d9b 128072011-01-28 Ian Lance Taylor <iant@google.com>
12808
12809 * godump.c (go_define): Ignore macros whose definitions include
12810 two adjacent operands.
12811
722c0f6e 128122011-01-28 Jakub Jelinek <jakub@redhat.com>
12813
12814 PR target/42894
12815 * varasm.c (force_const_mem): Store copy of x in desc->constant
12816 instead of x itself.
12817 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12818 itself into REG_EQUAL note.
12819
5be9590a 128202011-01-28 Joseph Myers <joseph@codesourcery.com>
12821
12822 * config/freebsd.opt (posix, rdynamic): New Driver options.
12823
a54f3ef3 128242011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12825
12826 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12827 -Bstatic/-Bdynamic.
12828 * configure: Regenerate.
12829
5f9dac96 128302011-01-27 Joseph Myers <joseph@codesourcery.com>
12831
12832 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12833 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12834
3359ccfd 128352011-01-27 Anatoly Sokolov <aesok@post.ru>
12836
12837 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12838 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12839 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12840 (s390_preferred_reload_class): Make static. Change return and
12841 'rclass' argument type to reg_class_t.
12842
40b32d93 128432011-01-27 Jan Hubicka <jh@suse.cz>
12844
12845 PR middle-end/46949
12846 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12847 (process_function_and_variable_attributes): Check defined weakrefs.
12848
1fd38f81 128492011-01-27 Martin Jambor <mjambor@suse.cz>
12850
12851 PR tree-optimization/47228
12852 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12853 build_ref_for_offset.
12854
afcc4e86 128552011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12856
12857 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12858
ba6ea72b 128592011-01-26 Mikael Pettersson <mikpe@it.uu.se>
33b7314b 12860
12861 PR rtl-optimization/46856
12862 * postreload.c (reload_combine_recognize_const_pattern): Do not
12863 separate cc0 setter and user on cc0 targets.
12864
a43fc97e 128652011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12866
12867 PR c/43082
12868 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12869 passed a VOID_TYPE expression, immediately emit an error and
12870 return error_mark_node.
12871
9bd1408a 128722011-01-26 Jeff Law <law@redhat.com>
12873
12874 PR rtl-optimization/47464
12875 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12876 rather than may_trap_p as needed.
12877
c0ed6498 128782011-01-26 DJ Delorie <dj@redhat.com>
12879
12880 PR rtl-optimization/46878
12881 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12882 setter/user dependency as well.
12883
2decfaa7 128842011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12885
12886 PR rtl-optimization/44469
12887 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12888 after removing trivially dead basic blocks.
12889
76db74b6 128902011-01-26 Joseph Myers <joseph@codesourcery.com>
12891
12892 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12893 * config/frv/frv.h (LINK_SPEC): Likewise.
12894 * config/i386/netware.h (LINK_SPEC): Likewise.
12895 * config/m68k/linux.h (ASM_SPEC): Likewise.
12896 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12897 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12898 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12899 * config/sparc/linux.h (ASM_SPEC): Likewise.
12900 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12901 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12902
63713d4f 129032011-01-26 Joseph Myers <joseph@codesourcery.com>
12904
12905 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12906 * config/frv/frv.h (ASM_SPEC): Likewise.
12907 * config/m68k/linux.h (ASM_SPEC): Likewise.
12908 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12909 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12910 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12911 * config/sparc/linux.h (ASM_SPEC): Likewise.
12912 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12913 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12914
02b94076 129152011-01-26 Joseph Myers <joseph@codesourcery.com>
12916
12917 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12918 * config/frv/frv.h (LINK_SPEC): Likewise.
12919 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12920
5c8a1984 129212011-01-26 Joseph Myers <joseph@codesourcery.com>
12922
12923 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12924 * config/frv/frv.h (ASM_SPEC): Likewise.
12925 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12926 * config/m68k/linux.h (ASM_SPEC): Likewise.
12927 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12928 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12929 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12930 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12931 * config/sparc/linux.h (ASM_SPEC): Likewise.
12932 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12933 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12934 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12935
6d6a23ae 129362011-01-26 Steve Ellcey <sje@cup.hp.com>
12937
12938 PR target/46997
12939 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12940 (*mux2): Ditto.
12941 (vec_extract_evenodd_help): Ditto.
12942 (vec_extract_evenv4hi): Ditto.
12943 (vec_extract_oddv4hi): Ditto.
12944 (vec_interleave_lowv2si): Ditto.
12945 (vec_interleave_highv2si): Ditto.
12946 (vec_extract_evenv2si): Ditto.
12947 (vec_extract_oddv2si: Ditto.
12948 (vec_pack_trunc_v2si): Ditto.
12949
269b8d98 129502011-01-22 Jan Hubicka <jh@suse.cz>
12951
12952 PR target/47237
12953 * cgraph.h (cgraph_local_info): New field can_change_signature.
12954 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12955 signature can change.
12956 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12957 can change.
12958 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12959 (cgraph_function_versioning): We can not change signature of functions
12960 that don't allow that.
12961 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12962 (lto_input_node): Likewise.
2e8ba7b3 12963 * ipa-inline.c (compute_inline_parameters): Compute
12964 local.can_change_signature.
269b8d98 12965 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
2e8ba7b3 12966 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12967 functions that can not change signature.
269b8d98 12968 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
2e8ba7b3 12969 init_cumulative_args): Do not use local calling conventions
12970 for functions that can not change signature.
269b8d98 12971
781e865e 129722011-01-22 Jan Hubicka <jh@suse.cz>
12973
12974 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12975
d05db70d 129762011-01-26 Richard Guenther <rguenther@suse.de>
12977
12978 PR tree-optimization/47190
3968fd16 12979 * cgraphunit.c (process_common_attributes): New function.
12980 (process_function_and_variable_attributes): Use it.
d05db70d 12981
b13addbf 129822011-01-26 Richard Guenther <rguenther@suse.de>
12983
12984 PR lto/47423
12985 * cgraphbuild.c (record_eh_tables): Record reference to personality
12986 function.
12987
995ca335 129882011-01-26 Alexandre Oliva <aoliva@redhat.com>
12989
12990 PR debug/45454
12991 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12992 non-debug insns from moving up.
12993
abfe0c5b 129942011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12995
12996 PR target/40125
12997 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12998 t-dlldir{,-x} fragment for build and add it to tmake_file.
12999 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13000 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13001 * config/i386/t-dlldir: New file.
13002 (SHLIB_DLLDIR): Define.
13003 * config/i386/t-dlldir-x: New file.
13004 (SHLIB_DLLDIR): Define.
13005 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13006 (SHLIB_INSTALL): Use it.
13007
06a9ac97 130082011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13009
13010 PR target/47246
13011 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13012 lower bound of the allowed Thumb-2 coprocessor load/store
13013 index range to -256. Add explaining comment.
13014
509475fd 130152011-01-25 Ian Lance Taylor <iant@google.com>
13016
13017 * godump.c (go_define): Improve lexing of macro expansion to only
13018 accept expressions which match Go spec.
13019
0675168d 130202011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13021
e8911163 13022 PR c++/43601
0675168d 13023 * tree.c (handle_dll_attribute): Handle it.
13024 * doc/extend.texi (@item dllexport): Mention it.
13025 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13026
f583ffd4 130272011-01-25 Ian Lance Taylor <iant@google.com>
13028
13029 PR tree-optimization/26854
13030 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13031 (decl_jump_unsafe): Move higher in file, with no other change.
13032 (bind): Set has_jump_unsafe_decl if appropriate.
13033 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13034 (check_earlier_gotos): Likewise.
13035 (c_check_switch_jump_warnings): Likewise.
13036
f6c6eba4 130372011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13038
13039 * doc/invoke.texi (Warning Options): Add missing hyphen.
13040 (-fprofile-dir): Minor grammatical fixes.
13041 (-fbranch-probabilities): Likewise.
13042
ce784932 130432011-01-25 Alexandre Oliva <aoliva@redhat.com>
13044
13045 PR debug/45136
13046 PR debug/45130
13047 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13048 debug insns.
13049 (no_real_insns_p, schedule_block, set_priorities): Drop special
13050 treatment of boundary debug insns.
2e8ba7b3 13051 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ce784932 13052 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13053 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13054 (BOUNDARY_DEBUG_INSN_P): Likewise.
13055 (SCHEDULE_DEBUG_INSN_P): Likewise.
13056 * sched-rgn.c (init_ready_list): Drop special treatment of
13057 boundary debug insns.
13058 * final.c (rest_of_clean-state): Clear notes' BB.
13059
e01f9f1f 130602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13061
13062 * Makefile.in (LAMBDA_H): Removed.
13063 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13064 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13065 lambda-trans.o, and tree-loop-linear.o.
13066 (lto-symtab.o): Remove dependence on LAMBDA_H.
13067 (tree-loop-linear.o): Remove rule.
13068 (lambda-mat.o): Same.
13069 (lambda-trans.o): Same.
13070 (lambda-code.o): Same.
13071 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13072 (tree-vect-slp.o): Same.
13073 * hwint.h (gcd): Moved here.
13074 (least_common_multiple): Same.
13075 * lambda-code.c: Removed.
13076 * lambda-mat.c: Removed.
13077 * lambda-trans.c: Removed.
13078 * lambda.h: Removed.
13079 * tree-loop-linear.c: Removed.
13080 * lto-symtab.c: Do not include lambda.h.
13081 * omega.c (gcd): Removed.
13082 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13083 * tree-data-ref.c (print_lambda_vector): Moved here.
13084 (lambda_vector_copy): Same.
13085 (lambda_matrix_copy): Same.
13086 (lambda_matrix_id): Same.
13087 (lambda_vector_first_nz): Same.
13088 (lambda_matrix_row_add): Same.
13089 (lambda_matrix_row_exchange): Same.
13090 (lambda_vector_mult_const): Same.
13091 (lambda_vector_negate): Same.
13092 (lambda_matrix_row_negate): Same.
13093 (lambda_vector_equal): Same.
13094 (lambda_matrix_right_hermite): Same.
13095 * tree-data-ref.h: Do not include lambda.h.
13096 (lambda_vector): Moved here.
13097 (lambda_matrix): Same.
13098 (dependence_level): Same.
13099 (lambda_transform_legal_p): Removed declaration.
13100 (lambda_collect_parameters): Same.
13101 (lambda_compute_access_matrices): Same.
13102 (lambda_vector_gcd): Same.
13103 (lambda_vector_new): Same.
13104 (lambda_vector_clear): Same.
13105 (lambda_vector_lexico_pos): Same.
13106 (lambda_vector_zerop): Same.
13107 (lambda_matrix_new): Same.
13108 * tree-flow.h (least_common_multiple): Removed declaration.
13109 * tree-parloops.c (lambda_trans_matrix): Moved here.
13110 (LTM_MATRIX): Same.
13111 (LTM_ROWSIZE): Same.
13112 (LTM_COLSIZE): Same.
13113 (LTM_DENOMINATOR): Same.
13114 (lambda_trans_matrix_new): Same.
13115 (lambda_matrix_vector_mult): Same.
13116 (lambda_transform_legal_p): Same.
13117 * tree-pass.h (pass_linear_transform): Removed declaration.
13118 * tree-ssa-loop.c (tree_linear_transform): Removed.
13119 (gate_tree_linear_transform): Removed.
13120 (pass_linear_transform): Removed.
13121 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13122 flag_loop_interchange.
13123
628ce22b 131242011-01-25 Jakub Jelinek <jakub@redhat.com>
13125
13126 PR tree-optimization/47265
13127 PR tree-optimization/47443
13128 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13129 if name still has some uses.
13130
114227c3 131312011-01-25 Martin Jambor <mjambor@suse.cz>
13132
13133 PR tree-optimization/47382
13134 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13135 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13136
ba6ea72b 131372011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16a1c7a3 13138
13139 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13140 sjlj_except_unwind_info.
13141
12d9baf9 131422011-01-25 Richard Guenther <rguenther@suse.de>
13143
13144 PR tree-optimization/47426
13145 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13146 visible functions results escape.
13147
37f09426 131482011-01-25 Jakub Jelinek <jakub@redhat.com>
13149
13150 PR target/45701
13151 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13152 (arm_get_frame_offsets): Use it.
13153
5790abbc 131542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13155 Jakub Jelinek <jakub@redhat.com>
13156
13157 PR tree-optimization/47271
13158 * tree-if-conv.c (bb_postdominates_preds): New.
13159 (if_convertible_bb_p): Call bb_postdominates_preds.
13160 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13161 (predicate_scalar_phi): Call bb_postdominates_preds.
13162
02f06d23 131632011-01-25 Nick Clifton <nickc@redhat.com>
13164
13165 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13166 * config/rx/rx.c (rx_function_value): Likewise.
13167 (rx_promote_function_mode): Likewise.
13168 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13169 in order to make it legitimate.
2e8ba7b3 13170 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13171 make sure that the first operand is the same as the result register.
02f06d23 13172 (addsi3_unspec): Delete.
13173 (subdi3): Do not accept immediate operands.
13174 (subdi3_internal): Likewise.
13175
fad2bf3e 131762011-01-25 Jeff Law <law@redhat.com>
13177
13178 PR rtl-optimization/37273
13179 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13180 handle them like argument loads from stack slots. Do not double
13181 count memory for memory constants and argument loads from stack slots.
13182
3e101e60 131832011-01-25 Jakub Jelinek <jakub@redhat.com>
13184
13185 PR tree-optimization/47427
13186 PR tree-optimization/47428
13187 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13188 coalesce if the new root var would be TREE_READONLY.
13189
c2af9e57 131902011-01-25 Richard Guenther <rguenther@suse.de>
13191
13192 PR middle-end/47414
13193 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13194 correct type for TBAA.
13195
fa6ed0e9 131962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13197
13198 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13199 (close_phi_written_to_memory): Call for_each_index with
13200 dr_indices_valid_in_loop.
13201
93f9c161 132022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13203
13204 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13205 when it is initialized.
13206
221a697e 132072011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13208
13209 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13210 call to graphite_find_data_references_in_stmt.
13211 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13212 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13213 call to graphite_find_data_references_in_stmt.
13214 (analyze_drs_in_stmts): Same.
13215 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13216 in which the scalar analysis of indices is performed.
13217 (create_data_ref): Same. Update call to dr_analyze_indices.
13218 (find_data_references_in_stmt): Update call to create_data_ref.
13219 (graphite_find_data_references_in_stmt): Same.
13220 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13221 declaration.
13222 (create_data_ref): Same.
13223 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13224 call to create_data_ref.
13225
c5409e1f 132262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13227
13228 * graphite-sese-to-poly.c (build_poly_scop): Move
2e8ba7b3 13229 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
c5409e1f 13230
041f1b34 132312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13232
13233 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13234 VAR_DECL, PARM_DECL, and RESULT_DECL.
13235
fc2372d9 132362011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13237
13238 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13239 in a reduction PBB.
13240 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13241 that have already been marked as PBB_IS_REDUCTION.
13242
3225ff53 132432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13244
13245 * graphite-scop-detection.c (same_close_phi_node): New.
13246 (remove_duplicate_close_phi): New.
13247 (make_close_phi_nodes_unique): New.
13248 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13249
a0630a8d 132502011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13251
13252 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13253 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13254 of both data references to be the same.
13255
07141610 132562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13257
2e8ba7b3 13258 * graphite-dependences.c (build_lexicographical_constraint): Remove
13259 the gdim parameter.
13260 (build_lexicographical_constraint): Adjust call to
13261 ppl_powerset_is_empty.
07141610 13262 (dependence_polyhedron): Same.
13263 (graphite_legal_transform_dr): Same.
13264 (graphite_carried_dependence_level_k): Same.
2e8ba7b3 13265 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13266 parameter.
07141610 13267 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13268
53b5bc41 132692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13270
13271 * graphite-sese-to-poly.c
13272 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13273 (close_phi_written_to_memory): New.
13274 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13275 and unshare_expr.
13276
11ce391e 132772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13278
13279 * doc/install.texi: Update the expected version number of PPL to 0.11.
13280 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13281 #if PPL_VERSION_MINOR < 11.
13282
1877ea6b 132832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13284
13285 * graphite-dependences.c: Include graphite-cloog-util.h.
13286 (new_poly_ddr): Inlined into dependence_polyhedron.
13287 (free_poly_ddr): Moved close by new_poly_ddr.
13288 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13289 Early return NULL when ppl_powerset_is_empty returns true.
13290 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13291 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13292 (graphite_legal_transform_dr): Call new_poly_ddr.
13293 (graphite_carried_dependence_level_k): Same.
13294 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13295 (dot_transformed_deps_stmt_1): Removed.
13296 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13297 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13298 (dot_deps_1): Call dot_deps_2.
13299 * Makefile.in (graphite-dependences.o): Add missing dependence on
13300 graphite-cloog-util.h.
13301
b40e3432 133022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13303
13304 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13305 (build_lexicographical_constraint): Same.
13306 (dependence_polyhedron_1): Same.
13307 (graphite_legal_transform_dr): Same.
13308 (graphite_carried_dependence_level_k): Same.
13309 * graphite-ppl.c (ppl_powerset_is_empty): New.
13310 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13311 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13312
37578f49 133132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13314
13315 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13316 the "a followed by b" relation and document it.
13317
c4b17226 133182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13319
13320 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13321 iteration when the bag of constraints is empty.
13322
eb165288 133232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13324
13325 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13326
8f1020f8 133272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13328
13329 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13330 nest and two loop depths as parameters.
13331 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13332 lst_perfect_nestify.
13333
a3936cf6 133342011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13335
13336 * graphite-dependences.c (print_pddr): Call
13337 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13338
f093228e 133392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13340
13341 * graphite-ppl.c (debug_gmp_value): New.
13342 * graphite-ppl.h (debug_gmp_value): Declared.
13343
20ec32e2 133442011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13345
13346 * doc/install.texi: Document availability of cloog-0.16.
13347
2acf5550 133482011-01-25 Vladimir Kargov <kargov@gmail.com>
13349
13350 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13351 invalid postdominance info.
13352
fbdda6a7 133532011-01-24 Jan Hubicka <jh@suse.cz>
13354
13355 PR c/21659
13356 * doc/extend.texi (weak pragma): Drop claim that it must
13357 appear before definition.
13358 * varasm.c (merge_weak, declare_weak): Only sanity check
13359 that DECL is not output at a time it is declared weak.
13360
7f24e187 133612011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13362
13363 * machmode.def: Fixed comments.
2acf5550 13364
e19e0a33 133652011-01-24 Kai Tietz <kai.tietz@onevision.com>
13366
13367 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13368
133692011-01-24 Paul Koning <ni1d@arrl.net>
ad8f8e52 13370
13371 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
2acf5550 13372 WORDS_BIG_ENDIAN.
ad8f8e52 13373
bc189236 133742011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13375
13376 PR target/46519
13377 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13378 (block_info): Add scanned and prev.
13379 (move_or_delete_vzeroupper_2): Return if the basic block
13380 has been scanned and the upper 128bit state is unchanged
13381 from the last scan.
13382 (move_or_delete_vzeroupper_1): Return true if the exit
13383 state is changed.
13384 (move_or_delete_vzeroupper): Visit basic blocks using the
13385 work-list based algorithm based on vt_find_locations in
13386 var-tracking.c.
13387
13388 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13389
fabc2065 133902011-01-24 Nick Clifton <nickc@redhat.com>
13391
13392 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13393 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13394 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13395 then define __v850e1__.
13396 * doc/invoke.texi: Document -mv850es.
13397
d9b5adbb 133982011-01-24 Richard Henderson <rth@redhat.com>
13399
13400 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13401 compound unordered comparisons.
13402 * config/rx/rx.c (rx_split_fp_compare): Remove.
13403 * config/rx/rx-protos.h: Update.
13404 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13405 (cbranchsf4): Don't call rx_split_fp_compare.
13406 (*cbranchsf4): Use rx_split_cbranch.
13407 (*cmpsf): Don't accept "i" constraint.
13408 (*conditional_branch): Only valid after reload.
13409 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13410
18aeab2a 134112011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13412
13413 PR target/47385
13414 * config/rs6000/altivec.md (vector constant splitters): Add
13415 support for creating vector single precision constants if -mvsx is
13416 used and we would create the constant using Altivec primitives.
13417
a10441ee 134182011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13419 Richard Sandiford <rdsandiford@googlemail.com>
13420
13421 PR rtl-optimization/47166
13422 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13423 mechanism for PRE_MODIFY and POST_MODIFY.
13424 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13425 reloadreg.
13426
97c6ec6a 134272011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13428
ab78ddd4 13429 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
97c6ec6a 13430
efa5dc14 134312011-01-22 Jan Hubicka <jh@suse.cz>
13432
13433 PR lto/47333
13434 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13435
dcfc8dc0 134362011-01-22 Jan Hubicka <jh@suse.cz>
13437
13438 PR tree-optimization/43884
13439 PR lto/44334
ab78ddd4 13440 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
dcfc8dc0 13441 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13442
fa7a995b 134432011-01-22 Anatoly Sokolov <aesok@post.ru>
13444
13445 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13446 * config/s390/s390.c (s390_register_move_cost,
13447 s390_memory_move_cost): New.
13448 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13449
e5aa6e8b 134502011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13451
13452 PR middle-end/47401
13453 * except.c (sjlj_assign_call_site_values): Move setting the
13454 crtl->uses_eh_lsda flag to ...
13455 (sjlj_mark_call_sites): ... here.
13456 (sjlj_emit_function_enter): Support NULL dispatch label.
13457 (sjlj_build_landing_pads): In a function with no landing pads
13458 that still has must-not-throw regions, generate code to register
13459 a personality function with empty LSDA.
13460
a50372fe 134612011-01-21 Richard Henderson <rth@redhat.com>
13462
77de4b78 13463 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13464
08207c2f 13465 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13466
a50372fe 13467 * compare-elim.c: New file.
13468 * Makefile.in (OBJS-common): Add it.
13469 (compare-elim.o): New.
13470 * common.opt (fcompare-elim): New.
13471 * opts.c (default_options_table): Add OPT_fcompare_elim.
13472 * tree-pass.h (pass_compare_elim_after_reload): New.
13473 * passes.c (init_optimization_passes): Add it.
13474 * recog.h: Protect against re-inclusion.
13475 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13476 * doc/invoke.texi (-fcompare-elim): Document it.
13477 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13478 * doc/tm.texi: Rebuild.
13479
13f89fe5 134802011-01-22 Nick Clifton <nickc@redhat.com>
13481
13482 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13483 rx_split_fp_compare.
13484
95272799 134852011-01-22 Nick Clifton <nickc@redhat.com>
13486
13487 * config/rx/rx.md (UNSPEC_CONST): New.
13488 (deallocate_and_return): Wrap the amount popped off the stack in
13489 an UNSPEC_CONST in order to stop it being rejected by
13490 -mmax-constant-size.
13491 (pop_and_return): Add a "(return)" rtx.
13492 (call): Drop the immediate operand.
13493 (call_internal): Likewise.
13494 (call_value): Likewise.
13495 (call_value_internal): Likewise.
13496 (sibcall_internal): Likewise.
13497 (sibcall_value_internal): Likewise.
13498 (sibcall): Likewise. Generate an explicit call using
13499 sibcall_internal.
13500 (sibcall_value): Likewise.
13501 (mov<>): FAIL if a constant operand is not legitimate.
13502 (addsi3_unpsec): New pattern.
13f89fe5 13503
2e8ba7b3 13504 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
95272799 13505 (ok_for_max_constant): New function.
13506 (gen_safe_add): New function.
13507 (rx_expand_prologue): Use gen_safe_add.
13508 (rx_expand_epilogue): Likewise.
13509 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13510 UNSPEC CONSTs.
13511
d02c8339 135122011-01-21 Jeff Law <law@redhat.com>
13513
13514 PR tree-optimization/47053
13515 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13516 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13517 statements are deleted.
13518 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13519 is nonempty, then purge dead edges and cleanup the CFG.
13520
81598b62 135212011-01-21 Alexandre Oliva <aoliva@redhat.com>
13522
13523 PR debug/47402
13524 Temporarily revert:
13525 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13526 PR debug/47106
13527 * tree-dfa.c (create_var_ann): Mark variable as used.
13528
f9460785 135292011-01-21 Jakub Jelinek <jakub@redhat.com>
13530
e30ff7b1 13531 PR middle-end/45566
13532 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13533 notes from other section in hot/cold partitioning even if
13534 last_action is -3. Increment call_site_base.
13535
f9460785 13536 PR rtl-optimization/47366
13537 * fwprop.c (forward_propagate_into): Return bool. If
13538 any changes are made, -fnon-call-exceptions is used and
13539 REG_EH_REGION note is present, call purge_dead_edges
13540 and return true if it purged anything.
13541 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13542 any EH edges were purged.
13543
0268f1d4 135442011-01-21 Jeff Law <law@redhat.com>
13545
13546 PR rtl-optimization/41619
13547 * caller-save.c (setup_save_areas): Break out code to determine
13548 which hard regs are live across calls by examining the reload chains
13549 so that it is always used.
13550 Eliminate code which checked REG_N_CALLS_CROSSED.
13551
6e21b2e0 135522011-01-21 Jakub Jelinek <jakub@redhat.com>
13553
13554 PR tree-optimization/47355
13555 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13556 NOP has non-debug uses beyond PHIs in new_bb.
13557
1bc4cf65 135582011-01-21 Alexandre Oliva <aoliva@redhat.com>
13559
13560 PR debug/47106
13561 * cfgexpand.c (account_used_vars_for_block): Only account vars
13562 that are annotated as used.
13563 (estimated_stack_frame_size): Don't set TREE_USED.
13564 * tree-dfa.c (create_var_ann): Mark variable as used.
13565
da82f093 135662011-01-21 Richard Guenther <rguenther@suse.de>
13567
13568 PR middle-end/47395
13569 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13570
8ecc6b38 135712011-01-21 Richard Guenther <rguenther@suse.de>
13572
13573 PR tree-optimization/47365
13574 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13575 (vn_reference_lookup_pieces): Adjust.
13576 (vn_reference_lookup): Likewise.
13577 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13578 (vn_reference_lookup_3): Only look through kills if in
13579 VN_WALKREWRITE mode.
13580 (vn_reference_lookup_pieces): Adjust.
13581 (vn_reference_lookup): Likewise.
13582 (visit_reference_op_load): Likewise.
13583 (visit_reference_op_store): Likewise.
13584 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13585 (compute_avail): Likewise.
13586 (eliminate): Likewise.
13587
2d8c1786 135882011-01-21 Jakub Jelinek <jakub@redhat.com>
13589
13590 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13591 DECL_IGNORED_P non-reg vars if they are used.
13592
2fbbab30 13593 PR tree-optimization/47391
13594 * varpool.c (const_value_known_p): Return false if
13595 decl is volatile.
13596
6a457a13 135972011-01-21 Kai Tietz <kai.tietz@onevision.com>
13598
13599 PR bootstrap/47215
13600 * config/i386/i386.c (ix86_local_alignment): Handle
13601 case for va_list_type_node is nil.
13602 (ix86_canonical_va_list_type): Likewise.
13603
17681ddd 136042011-01-21 Alan Modra <amodra@gmail.com>
13605
13606 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13607 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13608
013b9671 136092011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13610
13611 * config/arm/arm.md (define_attr type): Rename f_load
13612 and f_store to f_fpa_load and f_fpa_store. Update.
13613 (write_conflict): Deal with rename fallout.
13614 (*push_fp_multi): Likewise.
13615 * config/arm/fpa.md (f_load): Use f_fpa_load.
13616 (f_store): Use f_fpa_store.
13617 (*movsf_fpa): Likewise.
13618 (*movdf_fpa): Likewise.
13619 (*movxf_fpa): Likewise.
13620 (*thumb2_movsf_fpa): Likewise.
13621 (*thumb2_movdf_fpa): Likewise.
13622 (*thumb2_movxf_fpa): Likewise.
13623 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13624 f_loadd and f_stored.
13625 (*thumb2_movdi_vfp): Likewise.
13626 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13627 (*thumb2_movsi_vfp): Likewise.
13628 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13629 Use f_loads instead of f_load.
13630 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13631
5cae3439 136322011-01-20 Anatoly Sokolov <aesok@post.ru>
13633
13634 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13635 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13636 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13637 (xtensa_mode_dependent_address_p): New function.
13638 (constantpool_address_p): Make static. Change return type to bool.
13639 Change argument type to const_rtx. Use CONST_INT_P predicate.
13640
29bcbc13 136412011-01-20 Alexandre Oliva <aoliva@redhat.com>
13642
13643 PR debug/46583
13644 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13645
f87ea39e 136462011-01-20 Jakub Jelinek <jakub@redhat.com>
13647
13648 PR debug/47283
13649 * cfgexpand.c (expand_debug_expr): Instead of generating
13650 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13651 etc. handling.
13652
7003a7e5 136532011-01-20 Richard Guenther <rguenther@suse.de>
13654
13655 PR middle-end/47370
13656 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13657 the pointer operand of MEM_REFs.
13658
9aa9c1e6 136592011-01-20 Jakub Jelinek <jakub@redhat.com>
13660
13661 PR tree-optimization/46130
13662 * ipa-split.c (consider_split): If return_bb contains non-virtual
13663 PHIs other than for retval or if split_function would not adjust it,
13664 refuse to split.
13665
34d5f36d 136662011-01-20 Richard Guenther <rguenther@suse.de>
13667
13668 PR tree-optimization/47167
13669 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13670 Revert previous change, only avoid enumeral type changes.
13671
18695bc1 136722011-01-19 Mike Stump <mikestump@comcast.net>
13673
13674 * doc/tm.texi.in (BRANCH_COST): Englishify.
13675 * doc/tm.texi (BRANCH_COST): Likewise.
13676
02db81fa 136772011-01-19 Dodji Seketeli <dodji@redhat.com>
13678
13679 PR c++/47291
13680 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
3968fd16 13681 (gen_scheduled_generic_parms_dies): New functions.
13682 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13683 generation for the end of CU compilation.
13684 (dwarf2out_finish): Generate template parameters DIEs here.
02db81fa 13685
36a2709b 136862011-01-19 Alexandre Oliva <aoliva@redhat.com>
13687
13688 PR debug/46240
13689 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13690 debug bind stmt on merge edges.
13691
95b985e5 136922011-01-19 Alexandre Oliva <aoliva@redhat.com>
13693
13694 PR debug/47079
13695 PR debug/46724
13696 * function.c (instantiate_expr): Instantiate incoming rtl of
13697 implicit arguments, and recurse on VALUE_EXPRs.
13698 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13699 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13700
65d95190 137012011-01-19 Alexandre Oliva <aoliva@redhat.com>
13702
13703 * c-parser.c (c_parser_for_statement): Initialize
13704 collection_expression.
13705
82a4f0ea 137062011-01-19 Joseph Myers <joseph@codesourcery.com>
13707
13708 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13709
111de144 137102011-01-19 Joseph Myers <joseph@codesourcery.com>
13711
13712 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13713 (LINK_SHLIB_SPEC): Don't use %(link_path).
13714 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13715
4e62d313 137162011-01-19 Joseph Myers <joseph@codesourcery.com>
13717
13718 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13719 (NO_SHARED_LIB_SUPPORT): Remove.
13720 (LINK_SHLIB_SPEC): Remove one conditional definition.
13721
1572b5b7 137222011-01-19 Joseph Myers <joseph@codesourcery.com>
13723
13724 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13725 %{call_shared}.
13726 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13727 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13728 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13729 %{call_shared} and conditionals on these options not being passed.
13730 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13731 %{call_shared}.
13732
574c4ab5 137332011-01-19 Jakub Jelinek <jakub@redhat.com>
13734
b234c94d 13735 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13736 simplify.
13737
574c4ab5 13738 * ipa-split.c: Spelling fixes.
13739
e1a5ebc0 137402011-01-19 Richard Henderson <rth@redhat.com>
13741
13742 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13743 (*mulsi3): Likewise.
13744
8d596102 13745 * longlong.h [__mn10300__] (count_leading_zeros): New.
13746 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13747 [__mn10300__] (add_ssaaaa, subddmmss): New.
13748 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13749 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13750
fd1ec18e 137512011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13752
13753 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13754
edad0637 137552011-01-19 Richard Henderson <rth@redhat.com>
13756
cff84f05 13757 * config/mn10300/mn10300.md (addsi3_flags): New.
13758 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13759 (subsi3_flags, subc_internal, subdi3): New.
13760 (subdi3_internal, *subdi3_degenerate): New.
13761 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13762
ad3e6900 13763 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13764 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13765 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13766 * config/mn10300/mn10300-protos.h: Update.
13767 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13768 (return_ret): Likewise. Rename from return_internal_regs.
13769 (return_internal): Remove.
13770
6f22c3b4 13771 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13772 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13773 (mn10300_legitimate_constant_p): Likewise.
13774 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13775 (mn10300_frame_size): New.
13776 (mn10300_expand_prologue): Use it.
13777 (mn10300_expand_epilogue): Likewise.
13778 (mn10300_initial_offset): Likewise.
13779 * config/mn10300/mn10300-protos.h: Update.
13780 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13781 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13782 (prologue, epilogue, return_internal): Tidy output code.
13783 (mn10300_store_multiple_operation, return): Likewise.
13784 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13785 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13786 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13787 (load_pic, am33_load_pic): New.
13788 (mn10300_load_pic0, mn10300_load_pic1): New.
13789
990679af 13790 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13791 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13792 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13793 (cc_flags_for_mode, cc_flags_for_code): New.
13794 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13795 overflow flag is not valid. Validate that the flags we need
13796 for the comparison are valid.
13797 (mn10300_output_cmp): Remove.
13798 (mn10300_output_add): New.
13799 (mn10300_select_cc_mode): Use cc_flags_for_code.
13800 (mn10300_split_cbranch): New.
13801 (mn10300_match_ccmode): New.
13802 (mn10300_split_and_operand_count): New.
13803 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13804 to the function.
13805 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13806 (addsi3): ... here. Use mn10300_output_add.
13807 (*addsi3_flags): New.
13808 (*am33_subsi3, *mn10300_subsi3): Merge...
13809 (subsi3): ... here. Use attribute isa.
13810 (*subsi3_flags): New.
13811 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13812 when possible.
13813 (*am33_andsi3, *mn10300_andsi3): Merge...
13814 (andsi3): ... here.
13815 (*andsi3_flags): New.
13816 (andsi3 splitters): New.
13817 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13818 (iorsi3): ... here.
13819 (*iorsi3_flags): New.
13820 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13821 (xorsi3): ... here.
13822 (*xorsi3_flags): New.
13823 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13824 (one_cmplsi2): ... here.
13825 (*one_cmplsi2_flags): New.
13826 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13827 instead of "dax" in constraints. Use mn10300_split_cbranch.
13828 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13829 use matching constraints to eliminate a self-comparison.
13830 (*integer_conditional_branch): Rename from integer_conditional_branch.
13831 Use int_mode_flags to match CC_REG.
13832 (*cbranchsi4_btst, *btstsi): New.
13833 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13834 mn10300_split_cbranch.
13835 (*am33_cmpsf): Rename from am33_cmpsf.
13836 (*float_conditional_branch): Rename from float_conditional_branch.
13837 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13838 (zero_extendqisi2): ... here.
13839 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13840 (zero_extendhisi2): ... here.
13841 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13842 (extendqisi2): ... here.
13843 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13844 (extendhisi2): ... here.
13845 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13846 (ashlsi3): ... here.
13847 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13848 (lshrsi3): ... here.
13849 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13850 (ashrsi3): ... here.
13851 (consecutive add peephole): Remove.
13852 * config/mn10300/predicates.md (label_ref_operand): New.
13853 (int_mode_flags): New.
13854 (CCZN_comparison_operator): New.
13855
5babaf81 13856 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13857 (throughput_42_latency_43): New reservation.
13858 (mulsidi3, umulsidi3): New expanders.
13859 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13860 the MDR register to allocation; separately allocate the low and
13861 high parts of the DImode result.
13862 (umulsidi3_internal): Similarly.
13863 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13864 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13865 (udivsi3, umodsi3): Remove.
13866 (udivmodsi4, divmodsi4): New expanders.
13867 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13868 (*divmodsi4): Simiarly.
13869 (ext_internal): New.
13870
85a6eed4 13871 * config/mn10300/constraints.md ("z"): New constraint.
13872 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13873 (FIXED_REGISTERS): Don't fix MDR.
13874 (CALL_USED_REGSITERS): Reformat nicely.
13875 (REG_ALLOC_ORDER): Add MDR.
13876 (enum regclass): Add MDR_REGS.
13877 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13878 (IRA_COVER_CLASSES): Add MDR_REGS.
13879 (REGNO_REG_CLASS): Handle MDR_REG.
13880 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13881 (mn10300_register_move_cost): Likewise.
13882 * config/mn10300/mn10300.md (MDR_REG): New.
13883 (*movsi_internal): Handle moves to/from MDR_REGS.
13884
c8a596d6 13885 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13886 POST_MODIFY.
13887 (mn10300_secondary_reload): Tidy combination reload classes.
13888 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13889 addresses for AM33. Allow symbolic offsets for reg+imm.
13890 (mn10300_regno_in_class_p): New.
13891 (mn10300_legitimize_reload_address): New.
13892 * config/mn10300/mn10300.h (enum reg_class): Remove
13893 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13894 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13895 SP_OR_GENERAL_REGS.
13896 (REG_CLASS_NAMES): Update to match.
13897 (REG_CLASS_CONTENTS): Likewise.
13898 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13899 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13900 (REGNO_IN_RANGE_P): Remove.
13901 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13902 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13903 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13904 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13905 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13906 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13907 (REGNO_GENERAL_P): New.
13908 (HAVE_POST_MODIFY_DISP): New.
13909 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13910 (LEGITIMIZE_RELOAD_ADDRESS): New.
13911 * config/mn10300/mn10300-protos.h: Update.
13912
c78ac668 13913 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13914 DATA_REGS for AM33 stack-pointer destination.
13915 (mn10300_preferred_output_reload_class): Likewise.
13916 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13917 into a form appropriate for ...
13918 (TARGET_SECONDARY_RELOAD): New.
13919 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13920 * config/mn10300/mn10300-protos.h: Update.
13921 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13922 reload_insi; use the "A" constraint for the scratch; handle AM33
13923 moves of sp to non-address registers.
13924
edad0637 13925 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13926 (*movqi_internal): ... here.
13927 (*am33_movhi, *mn10300_movhi): Merge into...
13928 (*movhi_internal): ... here.
13929 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13930 as the source/destination of moves from/to SP.
13931 (movsf): Only allow for AM33-2.
2acf5550 13932 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
edad0637 13933 any integer constant constraint. Only allow for AM33-2. Tidy
13934 all of the alternative outputs.
13935 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13936 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13937 for MN103.
13938 (udivsi3, umodsi3): New patterns for MN103 only.
13939
15edf55e 139402011-01-19 Joern Rennecke <amylaar@spamcop.net>
13941
13942 * doc/tm.texi.in: Spell out that a lack of register class unions
13943 can lead to ICEs.
13944 * doc/tm.texi: Regenerate.
13945
a9309f85 139462011-01-19 Jakub Jelinek <jakub@redhat.com>
13947
85e2842b 13948 PR rtl-optimization/47337
13949 * dce.c (check_argument_store): New function.
13950 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13951
a9309f85 13952 PR tree-optimization/47290
13953 * tree-eh.c (infinite_empty_loop_p): New function.
13954 (cleanup_empty_eh): Use it.
13955
b6315407 139562011-01-18 Steve Ellcey <sje@cup.hp.com>
13957
13958 PR target/46997
13959 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13960 (a64_expand_widen_sum): Ditto.
13961 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13962 (vec_extract_evenodd_help): Ditto.
13963 (vec_extract_evenv4hi): Ditto.
13964 (vec_extract_oddv4hi): Ditto.
13965 (vec_extract_evenv2si): Ditto.
13966 (vec_extract_oddv2si): Ditto.
13967 (vec_extract_evenv2sf): Ditto.
13968 (vec_extract_oddv2sf): Ditto.
13969 (vec_pack_trunc_v4hi: Ditto.
13970 (vec_pack_trunc_v2si): Ditto.
13971 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13972 (vec_interleave_highv8qi): Ditto.
13973 (mix1_r): Ditto.
13974 (vec_extract_oddv8qi): Ditto.
13975 (vec_interleave_lowv4hi): Ditto.
13976 (vec_interleave_highv4hi): Ditto.
13977 (vec_interleave_lowv2si): Ditto.
13978 (vec_interleave_highv2si): Ditto.
13979
0f9c87cc 139802011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13981
13982 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13983 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13984 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13985 (pa_c_mode_for_suffix): New.
13986 (TARGET_EXPAND_BUILTIN): Define.
13987 (TARGET_C_MODE_FOR_SUFFIX): Define.
13988 (pa_builtins): Define.
13989 (pa_init_builtins): Register __float128 type and init new support
13990 builtins.
13991 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13992 * config/pa/quadlib.c (_U_Qfcopysign): New.
13993
156512c1 139942011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13995
13996 PR middle-end/46894
13997 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13998 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13999 are defined.
14000
329c1e4e 140012011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14002
14003 PR tree-optimization/47179
14004 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14005 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14006
73eb0a09 140072011-01-18 Richard Guenther <rguenther@suse.de>
14008
14009 PR rtl-optimization/47216
14010 * emit-rtl.c: Include tree-flow.h.
14011 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14012 of replicating it with different semantics.
14013 * Makefile.in (emit-rtl.o): Adjust.
14014
c54f1e1f 140152011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14016
2e8ba7b3 14017 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
3968fd16 14018 (cortex_a9_dp): Handle neon types correctly.
c54f1e1f 14019
38ba30bf 140202011-01-18 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR rtl-optimization/47299
14023 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
2e8ba7b3 14024 subtarget. Use normal multiplication if both operands are constants.
38ba30bf 14025 * expmed.c (expand_widening_mult): Don't try to optimize constant
14026 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14027 before using it.
14028
304fe4ff 140292011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14030
14031 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14032 spacing after 'e.g.', typos, comma, hyphenation.
14033
8b8777b9 140342011-01-17 Richard Henderson <rth@redhat.com>
14035
9b192813 14036 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14037 (rx_restricted_mem_operand): New.
14038 (rx_shift_operand): Use register_operand.
14039 (rx_source_operand, rx_compare_operand): Likewise.
14040 * config/rx/rx.md (addsi3_flags): New expander.
14041 (adddi3): Rewrite as expander.
14042 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14043 (subsi3_flags): New expander.
14044 (subdi3): Rewrite as expander.
14045 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14046
cefd18fa 14047 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14048 (rx_init_builtins): Remove sat builtin.
14049 (rx_expand_builtin): Likewise.
14050 * config/rx/rx.md (ssaddsi3): New.
14051 (*sat): Rename from sat. Represent the CC_REG input.
14052
f0fcb36d 14053 * config/rx/predicates.md (rshift_operator): New.
14054 * config/rx/rx.c (rx_expand_insv): Remove.
14055 * config/rx/rx-protos.h: Update.
14056 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14057 operand to the canonical position.
14058 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14059 (*bitclr, *bitclr_in_memory): Similarly.
14060 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14061 (insv): Retain the zero_extract in the expansion.
14062
2eccffc4 14063 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14064 (bswaphi2, bitinvert, revw): Likewise.
14065
51e241f8 14066 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14067 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14068 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14069 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14070 (bitset, bitset_in_memory): Likewise.
14071 (bitinvert, bitinvert_in_memory): Likewise.
14072 (bitclr, bitclr_in_memory): Likewise.
14073 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14074 (rx_strend, rx_cmpstrn): Likewise.
14075 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14076 (bitop peep2 patterns): Remove.
14077
fc3b02a9 14078 * config/rx/rx.c (rx_match_ccmode): New.
14079 * config/rx/rx-protos.h: Update.
14080 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14081 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14082 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14083 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14084 (fix_truncsfsi2, floatsisf2): Likewise.
14085 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14086 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14087 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14088 (*subsi3_flags, *xorsi3_flags): New.
14089
2e978fdc 14090 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14091
6f04f6f0 14092 * config/rx/rx.c (rx_print_operand): Remove workaround for
14093 unsplit comparison operations.
14094
71a06535 14095 * config/rx/rx.md (movsicc): Split after reload.
14096 (*movsicc): Merge *movsieq and *movsine via match_operator.
14097 (*stcc): New pattern.
14098
39a76221 14099 * config/rx/rx.c (rx_float_compare_mode): Remove.
14100 * config/rx/rx.h (rx_float_compare_mode): Remove.
14101 * config/rx/rx.md (cstoresi4): Split after reload.
14102 (*sccc): New pattern.
14103
ccfccd66 14104 * config/rx/predicates.md (label_ref_operand): New.
14105 (rx_z_comparison_operator): New.
14106 (rx_zs_comparison_operator): New.
14107 (rx_fp_comparison_operator): New.
14108 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14109 Validate that the flags are set properly for the comparison.
14110 (rx_gen_cond_branch_template): Remove.
14111 (rx_cc_modes_compatible): Remove.
14112 (mode_from_flags): New.
14113 (flags_from_code): Rename from flags_needed_for_conditional.
14114 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14115 (rx_select_cc_mode): Likewise.
14116 (rx_split_fp_compare): New.
14117 (rx_split_cbranch): New.
14118 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14119 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14120 (*cbranchsf4): Similarly.
14121 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14122 match_operator and rx_split_cbranch.
14123 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14124 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14125 (*cmpsi): Rename from cmpsi.
14126 (*tstsi): Rename from tstsi.
14127 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14128 (*conditional_branch): Rename from conditional_branch.
14129 (*reveresed_conditional_branch): Remove.
14130 (b<code>): Remove expander.
14131 * config/rx/rx-protos.h: Update.
14132
f1ccf245 14133 * config/rx/rx.c (rx_compare_redundant): Remove.
14134 * config/rx/rx.md (cmpsi): Don't use it.
14135 * config/rx/rx-protos.h: Update.
14136
8b8777b9 14137 * config/rx/rx-modes.def (CC_F): New mode.
14138 * config/rx/rx.c (rx_select_cc_mode): New.
14139 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14140 * config/rx/rx-protos.h: Update.
14141
6b8f34b9 141422011-01-17 Richard Henderson <rth@redhat.com>
14143
14144 * except.c (dump_eh_tree): Fix stray ; after for statement.
14145
c6ba6fb8 141462011-01-17 Richard Guenther <rguenther@suse.de>
14147
14148 PR tree-optimization/47313
14149 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14150 handling before copying the body. Properly deal with
14151 by-reference result in SSA form.
14152
07133e98 141532011-01-17 Ian Lance Taylor <iant@google.com>
14154
6b2039df 14155 PR target/47219
07133e98 14156 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14157 (struct_value_alias_set): Don't define.
14158 (sparc_option_override): Don't set sparc_sr_alias_set and
14159 struct_value_alias_set.
14160 (save_or_restore_regs): Use gen_frame_mem rather than calling
14161 set_mem_alias_set.
14162 (sparc_struct_value_rtx): Likewise.
14163
8196f263 141642011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14165
14166 PR target/47318
656e2b9d 14167 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
8196f263 14168 (_mm_maskstore_pd): Likewise.
14169 (_mm_maskload_ps): Likewise.
14170 (_mm_maskstore_ps): Likewise.
14171 (_mm256_maskload_pd): Change mask to __m256i.
14172 (_mm256_maskstore_pd): Likewise.
14173 (_mm256_maskload_ps): Likewise.
14174 (_mm256_maskstore_ps): Likewise.
14175
14176 * config/i386/i386-builtin-types.def: Updated.
14177 (ix86_expand_special_args_builtin): Likewise.
14178
14179 * config/i386/i386.c (bdesc_special_args): Update
14180 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14181 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14182 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14183 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14184
14185 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14186 Use <avxpermvecmode> on mask register.
14187 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14188
37e66d5b 141892011-01-17 Olivier Hainque <hainque@adacore.com>
3968fd16 14190 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14191 Eric Botcazou <ebotcazou@adacore.com>
37e66d5b 14192
14193 PR target/46655
14194 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14195 if <= USHRT_MAX in 32-bit mode.
14196
a9efefe1 141972011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14198
14199 * doc/install.texi (Configuration, Specific): Wrap long
14200 lines in examples. Allow line wrapping in long options
14201 and URLs where beneficial for PDF output.
14202
e84c8ab1 142032011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14204
14205 * config/mips/mips.c (mips_classify_symbol): Don't return
14206 SYMBOL_PC_RELATIVE for nonlocal labels.
14207
e9d410bb 142082011-01-15 Eric Botcazou <ebotcazou@adacore.com>
6e6aba5d 14209
e9d410bb 14210 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14211
142122011-01-15 Jan Hubicka <jh@suse.cz>
14213
14214 PR tree-optimization/47276
6e6aba5d 14215 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14216 declarations as needed.
14217
16358a63 142182011-01-15 Martin Jambor <mjambor@suse.cz>
14219
14220 * common.opt (fdevirtualize): New flag.
14221 * doc/invoke.texi (Option Summary): Document it.
14222 * opts.c (default_options_table): Add devirtualize flag.
14223 * ipa-prop.c (detect_type_change): Return immediately if
14224 devirtualize flag is not set.
14225 (detect_type_change_ssa): Likewise.
14226 (compute_known_type_jump_func): Likewise.
14227 (ipa_analyze_virtual_call_uses): Likewise.
14228
7af23aa4 142292011-01-14 Martin Jambor <mjambor@suse.cz>
14230
14231 PR tree-optimization/45934
14232 PR tree-optimization/46302
14233 * ipa-prop.c (type_change_info): New type.
14234 (stmt_may_be_vtbl_ptr_store): New function.
14235 (check_stmt_for_type_change): Likewise.
14236 (detect_type_change): Likewise.
14237 (detect_type_change_ssa): Likewise.
14238 (compute_complex_assign_jump_func): Check for dynamic type change.
14239 (compute_complex_ancestor_jump_func): Likewise.
14240 (compute_known_type_jump_func): Likewise.
14241 (compute_scalar_jump_functions): Likewise.
14242 (ipa_analyze_virtual_call_uses): Likewise.
14243 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14244
89222b99 142452011-01-14 Joseph Myers <joseph@codesourcery.com>
14246
14247 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14248 * config/i386/i386.opt (msse5): New Alias.
14249
40ccd6e8 142502011-01-14 Joseph Myers <joseph@codesourcery.com>
14251
14252 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14253 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14254 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14255 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14256
a03467a2 142572011-01-14 Joseph Myers <joseph@codesourcery.com>
14258
14259 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14260 -mcpu options.
14261 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14262 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14263 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14264 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14265 Likewise.
14266 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14267
229e169b 142682011-01-14 Joseph Myers <joseph@codesourcery.com>
14269
2e8ba7b3 14270 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
229e169b 14271
102f9f10 142722011-01-14 Mike Stump <mikestump@comcast.net>
14273
14274 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14275 * config/fr30/fr30.md: Likweise
14276 (movsi_push): Likewise.
14277 (movsi_pop): Likewise.
14278 (enter_func): Likewise.
14279 * config/moxie/moxie.md (movsi_push): Likewise.
14280 (movsi_pop): Likewise.
14281
4792d6fe 142822011-01-14 Joseph Myers <joseph@codesourcery.com>
14283
14284 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14285 %{no_archive} %{exact_version}.
14286 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14287 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14288 %{no_archive} %{exact_version}.
14289 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14290 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14291 * config/mips/vxworks.h: Likewise.
14292
3ca0b262 142932011-01-14 Joseph Myers <joseph@codesourcery.com>
14294
2e8ba7b3 14295 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
3ca0b262 14296
c7e8df0a 142972011-01-14 Joseph Myers <joseph@codesourcery.com>
14298
14299 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14300 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14301
ced834db 143022011-01-14 Joseph Myers <joseph@codesourcery.com>
14303
14304 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14305 -nodefaultlib.
14306
8fe30b37 143072011-01-14 Joseph Myers <joseph@codesourcery.com>
14308
14309 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14310 for mcpu not cpu.
14311 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14312 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14313 not cpu.
14314 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14315 Don't handle -shlib.
14316
d89fb5e4 143172011-01-14 Joseph Myers <joseph@codesourcery.com>
14318
14319 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14320 (CC1_SPEC): Don't handle -profile.
14321
68952919 143222011-01-14 Joseph Myers <joseph@codesourcery.com>
14323
14324 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14325 * config/mips/mips.h (CC1_SPEC): Likewise.
14326
ebd5c429 143272011-01-14 Joseph Myers <joseph@codesourcery.com>
14328
14329 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14330 * config/mips/mips.h (CC1_SPEC): Likewise.
14331
137caf9f 143322011-01-14 Joseph Myers <joseph@codesourcery.com>
14333
14334 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14335 * config/m32r/linux.h (LINK_SPEC): Likewise.
14336 * config/mips/linux.h (LINK_SPEC): Likewise.
14337 * config/mips/linux64.h (LINK_SPEC): Likewise.
14338 * config/sparc/linux.h (LINK_SPEC): Likewise.
14339 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14340 LINK_SPEC): Likewise.
14341 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14342
0dfe0898 143432011-01-14 Joseph Myers <joseph@codesourcery.com>
14344
14345 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14346 %{version:-v}.
14347 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14348
5fd4e2f4 143492011-01-14 Joseph Myers <joseph@codesourcery.com>
14350
14351 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14352 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14353
8495a137 143542011-01-14 Joseph Myers <joseph@codesourcery.com>
14355
14356 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14357
92ff09c4 143582011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14359
14360 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14361 supports -Bstatic/-Bdynamic.
14362 * configure: Regenerate.
14363
f067760b 143642011-01-14 Jan Hubicka <jh@suse.cz>
ba6ea72b 14365 Jack Howarth <howarth@bromo.med.uc.edu>
f067760b 14366
14367 PR target/46037
14368 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14369 when checking debug_info_level. Test write_symbols instead of
14370 debug_hooks->var_location when setting flag_var_tracking_uninit.
14371
be97d4b6 143722011-01-14 Richard Guenther <rguenther@suse.de>
14373
14374 PR tree-optimization/47179
14375 * target.def (ref_may_alias_errno): New target hook.
14376 * targhooks.h (default_ref_may_alias_errno): Declare.
14377 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14378 (default_ref_may_alias_errno): New function.
14379 * target.h (struct ao_ref_s): Declare.
14380 * tree-ssa-alias.c: Include target.h.
14381 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14382 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14383 (targhooks.o): Likewise.
14384 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14385 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14386
8de57388 143872011-01-14 Richard Guenther <rguenther@suse.de>
14388
14389 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14390
b69d1cb6 143912011-01-14 Richard Guenther <rguenther@suse.de>
14392
14393 PR tree-optimization/47280
14394 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14395 return CFG changes.
14396 (tree_ssa_forward_propagate_single_use_vars): Deal with
14397 CFG changes from associate_plusminus.
14398
0e020218 143992011-01-14 Richard Guenther <rguenther@suse.de>
14400
14401 PR middle-end/47281
14402 Revert
14403 2011-01-11 Richard Guenther <rguenther@suse.de>
14404
43f05945 14405 PR tree-optimization/46076
14406 * tree-ssa.c (useless_type_conversion_p): Conversions from
14407 unprototyped to empty argument list function types are useless.
0e020218 14408
72210aa1 144092011-01-14 Richard Guenther <rguenther@suse.de>
14410
14411 PR tree-optimization/47286
43f05945 14412 * tree-ssa-structalias.c (new_var_info): Register variables are global.
72210aa1 14413
b819947c 144142011-01-14 Martin Jambor <mjambor@suse.cz>
14415
14416 PR middle-end/46823
14417 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14418
7af7466c 144192011-01-13 Anatoly Sokolov <aesok@post.ru>
14420
14421 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14422 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14423 * config/xtensa/xtensa.c (xtensa_libcall_value,
14424 xtensa_function_value_regno_p): New functions.
14425 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14426
de0e5a52 144272011-01-13 Kai Tietz <kai.tietz@onevision.com>
14428
14429 PR c++/47213
14430 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14431 PE specific hook.
14432 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14433 New function prototype.
14434 * config/i386/winnt.c (i386_pe_assemble_visibility):
14435 Warn only if attribute was specified by user.
14436
6a0b65d3 144372011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14438
14439 PR target/47251
14440 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14441 floating point.
14442 (floatunsdidf2_fcfidu): Ditto.
14443
902602ef 144442011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14445
14446 * config/s390/s390.c (print_operand_address): Replace 'error' with
14447 'output_operand_lossage'.
14448 (print_operand): Likewise.
14449
b89c219c 144502011-01-13 Jeff Law <law@redhat.com>
14451
43f05945 14452 PR rtl-optimization/39077
b89c219c 14453 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14454 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14455 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14456 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14457 * gcse.c (prune_insertions_deletions): New function.
14458 (compute_pre_data): Use it.
14459
49a8ca48 144602011-01-13 Dodji Seketeli <dodji@redhat.com>
14461
14462 PR debug/PR46973
14463 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14464 static function.
3968fd16 14465 (prune_unused_types_mark): Use it.
49a8ca48 14466
946d6c2b 144672011-01-13 Andrey Belevantsev <abel@ispras.ru>
14468
14469 PR rtl-optimization/45352
2acf5550 14470 * sel-sched.c: Update copyright years.
946d6c2b 14471 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
2acf5550 14472 in the advancing loop when we have issued issue_rate insns.
946d6c2b 14473
3562cea7 144742011-01-12 Richard Henderson <rth@redhat.com>
14475
7de3ada8 14476 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14477 (TARGET_MD_ASM_CLOBBERS): New.
14478
4c6c308e 14479 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14480 (TARGET_DELEGITIMIZE_ADDRESS): New.
14481
ae011785 14482 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14483 (clzsi2, *bsch): New patterns.
14484
1a5a7888 14485 * config/mn10300/mn10300.md (INT): New mode iterator.
14486 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14487
731049b6 14488 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14489 flag_split_wide_types.
14490
3562cea7 14491 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14492 (mn10300_trampoline_init): Rewrite without a template, an immediate
14493 load and a direct branch.
14494 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14495
1a561788 144962011-01-12 Anatoly Sokolov <aesok@post.ru>
14497
14498 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14499 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14500 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14501 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14502
f2278eba 145032011-01-12 Kai Tietz <kai.tietz@onevision.com>
14504
14505 PR debug/47209
14506 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14507 of type.
14508
0f8cfb36 145092011-01-12 Jan Hubicka <jh@suse.cz>
14510
14511 PR driver/47244
14512 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14513 (PLUGIN_COND_CLOSE): New macro.
14514 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14515
30eff873 145162011-01-12 Richard Guenther <rguenther@suse.de>
14517
14518 PR lto/47259
14519 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14520 register variables in a MEM_REF.
14521
deb14f24 145222011-01-12 Joseph Myers <joseph@codesourcery.com>
14523
14524 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14525 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14526 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14527 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14528 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14529 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14530 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14531 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14532 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14533 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14534 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14535 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14536 * config/gnu-user.h: New. Copied from linux.h.
14537 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14538 GNU_USER_TARGET_STARTFILE_SPEC.
14539 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14540 GNU_USER_TARGET_ENDFILE_SPEC.
14541 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14542 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14543 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14544 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14545 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14546 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14547 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14548 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14549 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14550 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14551 * config/arm/linux-eabi.h (CC1_SPEC): Use
14552 GNU_USER_TARGET_CC1_SPEC.
14553 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14554 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14555 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14556 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14557 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14558 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14559 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14560 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14561
5c70c066 145622011-01-12 Richard Guenther <rguenther@suse.de>
14563
14564 PR other/46946
14565 * doc/invoke.texi (ffast-math): Document it is turned on
14566 with -Ofast.
14567
02a5f2b9 145682011-01-12 Jan Hubicka <jh@suse.cz>
14569
14570 PR tree-optimization/47233
17da0372 14571 * opts.c (common_handle_option): Disable ipa-reference with profile
14572 feedback.
02a5f2b9 14573
2acf5550 145742011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
ffbb3d61 14575
14576 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17da0372 14577 error message.
14578
ffbb3d61 145792011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14580
14581 * c-parser.c (c_lex_one_token): Updated and reindented some
14582 comments. No changes in code.
14583
3c6b311d 145842011-01-11 Ian Lance Taylor <iant@google.com>
14585
14586 * godump.c (go_output_var): Don't output the variable if there is
14587 already a type with the same name.
14588
5070eb47 145892011-01-11 Ian Lance Taylor <iant@google.com>
14590
14591 * godump.c (go_format_type): Don't generate float80.
14592
5d4ffb1c 145932011-01-11 Richard Henderson <rth@redhat.com>
14594
28f32607 14595 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14596 declaration. Rewrite for both speed and size.
14597 (mn10300_address_cost_1): Remove.
14598 (mn10300_register_move_cost): New.
14599 (mn10300_memory_move_cost): New.
14600 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14601 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14602 extensions, shifts, BSWAP, CLZ.
14603 (mn10300_wide_const_load_uses_clr): Remove.
14604 (TARGET_REGISTER_MOVE_COST): New.
14605 (TARGET_MEMORY_MOVE_COST): New.
14606 * config/mn10300/mn10300-protos.h: Update.
14607 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14608
59328a09 14609 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14610 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14611 * config/mn10300/mn10300-protos.h: Update.
14612 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14613 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14614 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14615 (*test_int_bitfield, *test_byte_bitfield): Remove.
14616 (*bit_test, *subreg_bit_test): Remove.
c8196a0c 14617 * config/mn10300/predicates.md (const_8bit_operand): Remove.
59328a09 14618
2225047a 14619 * config/mn10300/constraints.md ("c"): Rename from "A".
14620 ("A", "D"): New constraint letters.
14621 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14622 (fmssf4, fnmasf4, fnmssf4): Likewise.
14623
8af291b5 14624 * config/mn10300/mn10300.md (isa): New attribute.
14625 (enabled): New attribute.
14626
361bb6ad 14627 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14628 (abssf2, negsf2): Define only for hardware fp.
14629 (sqrtsf2): Reformat.
14630 (addsf3, subsf3, mulsf3): Merge expander and insn.
14631
224cda8f 14632 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14633 (DEBUGGER_AUTO_OFFSET): Remove.
14634 (DEBUGGER_ARG_OFFSET): Remove.
14635
32f9c04a 14636 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14637 Emit register stores with the same offsets as the hardware.
14638 (mn10300_store_multiple_operation): Don't check that the register
14639 save offsets are monotonic.
14640 * config/mn10300/mn10300-protos.h: Update.
14641
059593e3 14642 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14643
5d4ffb1c 14644 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14645 in terms of the value on the stack, not the MDR register.
14646
232c9ac7 146472011-01-11 Jan Hubicka <jh@suse.cz>
14648
14649 PR lto/45721
14650 PR lto/45375
14651 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14652 (symbol_alias_set_destroy, symbol_alias_set_contains,
14653 propagate_aliases_backward): Declare.
14654 * lto-streamer-out.c (struct sets): New sturcture.
14655 (trivally_defined_alias): New function.
14656 (output_alias_pair_p): Rewrite.
14657 (output_unreferenced_globals): Fix output of alias pairs.
14658 (produce_symtab): Likewise.
14659 * ipa.c (function_and_variable_visibility): Set weak alias destination
14660 as needed in lto.
14661 * varasm.c (symbol_alias_set_t): Remove.
14662 (symbol_alias_set_destroy): Export.
14663 (propagate_aliases_forward, propagate_aliases_backward): New functions
14664 based on ...
14665 (compute_visible_aliases): ... this one; remove.
14666 (trivially_visible_alias): New
14667 (trivially_defined_alias): New.
14668 (remove_unreachable_alias_pairs): Rewrite.
14669 (finish_aliases_1): Reorganize code checking if alias is defined.
14670 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14671 in LTO mode.
14672
25fe7e3d 146732011-01-11 Richard Guenther <rguenther@suse.de>
14674
14675 PR tree-optimization/46076
14676 * tree-ssa.c (useless_type_conversion_p): Conversions from
14677 unprototyped to empty argument list function types are useless.
14678
a33a5782 146792011-01-11 Richard Guenther <rguenther@suse.de>
14680
14681 PR middle-end/45235
14682 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14683 volatile MEMs as MEM_READONLY_P.
14684
57862ab5 146852011-01-11 Richard Guenther <rguenther@suse.de>
14686
14687 PR tree-optimization/47239
14688 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14689
6623b33f 146902011-01-11 Jeff Law <law@redhat.com>
14691
c6d146ce 14692 PR tree-optimization/47086
6623b33f 14693 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14694 IVs from statements that might throw.
14695
a3efa241 146962011-01-10 Jan Hubicka <jh@suse.cz>
14697
14698 PR lto/45375
14699 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14700
566d3fc7 147012011-01-10 Jan Hubicka <jh@suse.cz>
14702
14703 PR lto/45375
14704 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14705 when correcting profile.
14706
3ef2cbcf 147072011-01-10 Jan Hubicka <jh@suse.cz>
14708
14709 PR lto/46083
14710 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14711 DECL_FINI_PRIORITY.
14712 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14713 Restore DECL_FINI_PRIORITY.
14714
3580a9f3 147152011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14716
14717 * doc/gimple.texi: Fix quoting of multi-word return values in
14718 @deftypefn statements. Ensure presence of return value. Wrap
14719 overlong @deftypefn lines.
14720 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14721 descriptions of removed functions.
14722 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14723 of multi-word return value in @deftypefn statement.
14724
cd8dcc05 147252011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14726
14727 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14728 (Conditional Expressions, Logical Operators)
14729 (Statement and operand traversals): Do not indent smallexample
14730 code. Fix duplicate function argument in example.
14731
c13d6d8f 147322011-01-10 Jeff Law <law@redhat.com>
14733
c6d146ce 14734 PR tree-optimization/47141
c13d6d8f 14735 * ipa-split.c (split_function): Handle case where we are
14736 returning a value and the return block has a virtual operand phi.
14737
a15d5ede 147382011-01-10 Jan Hubicka <jh@suse.cz>
14739
2acf5550 14740 PR tree-optimization/47234
a15d5ede 14741 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14742 (pass_feedback_split_functions): Declare.
14743 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14744 tree-profile.
14745 * ipa-split.c (gate_split_functions): Update comments; disable
14746 split-functions for profile_arc_flag and branch_probabilities.
14747 (gate_feedback_split_functions): New function.
14748 (execute_feedback_split_functions): New function.
14749 (pass_feedback_split_functions): New global var.
14750
759a30b2 147512011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14752
14753 PR lto/46760
14754 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14755 calling gimple_call_set_cannot_inline.
14756
1f65a68a 147572011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14758
14759 * config/darwin-sections.def: Remove unused section.
14760
aed6e608 147612011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14762
14763 PR c++/47218
14764 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14765
3b77900e 147662011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14767
14768 PR objc/47232
14769 * c-parser.c (c_parser_declaration_or_fndef): Improved
14770 error message.
14771
c32bb9a3 147722011-01-09 Kai Tietz <kai.tietz@onevision.com>
14773
14774 * config/i386/winnt.c (i386_pe_start_function): Make sure
14775 to switch back to function's section.
14776
bbcdd327 147772011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14778
14779 PR gcc/46902
14780 PR testsuite/46912
14781 * plugin.c: Move include of dlfcn.h from here...
14782 * system.h: ... to here.
14783
147842011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7ac54e71 14785
14786 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14787 file name.
14788 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14789 two extra empty pages in PDF output.
14790
14a3bc63 147912011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14792
14793 PR objc/47078
14794 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14795 for error recovery purposes behave as if it was not specified so
14796 that the default type is usd.
14797
87ac7f21 147982011-01-07 Jan Hubicka <jh@suse.cz>
14799
14800 PR tree-optmization/46469
14801 * ipa.c (function_and_variable_visibility): Clear needed flags on
14802 nodes with external decls; handle weakrefs merging correctly.
14803
ae6f03e2 148042011-01-07 Joseph Myers <joseph@codesourcery.com>
14805
14806 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14807 not false.
14808
de4d280b 148092011-01-07 Jan Hubicka <jh@suse.cz>
14810
dcab66ec 14811 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
de4d280b 14812 and no longer claim that gold is required for linker plugin.
14813 * configure: Regenerate.
14814 * gcc.c (PLUGIN_COND): New macro.
14815 (LINK_COMMAND_SPEC): Use it.
14816 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14817 * config.in (HAVE_LTO_PLUGIN): New.
14818 * configure.ac (--with-lto-plugin): New parameter; autodetect
14819 HAVE_LTO_PLUGIN.
14820
01765fa2 148212011-01-07 Jan Hubicka <jh@suse.cz>
14822
14823 PR tree-optimization/46367
14824 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14825 when we can update original.
14826 (cgraph_mark_inline_edge): Sanity check.
14827 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14828
49397308 148292011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14830
14831 * config/spu/spu.h (ASM_COMMENT_START): Define.
14832
5c1421d7 148332011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14834
14835 PR driver/42445
14836 * gcc.c (%>S): New.
14837 (SWITCH_KEEP_FOR_GCC): Likewise.
14838 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14839 (do_spec_1): Handle "%>".
14840
14841 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14842
bb217be2 148432011-01-07 Jakub Jelinek <jakub@redhat.com>
14844
a0b41ee2 14845 PR target/47201
14846 * config/i386/i386.c (ix86_delegitimize_address): If
14847 simplify_gen_subreg fails, return orig_x.
14848
bb217be2 14849 PR bootstrap/47187
14850 * value-prof.c (gimple_stringop_fixed_value): Handle
14851 lhs of the call properly.
14852
cee60343 148532011-01-07 Jan Hubicka <jh@suse.cz>
14854
14855 PR lto/45375
14856 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14857
3b3edcd4 148582011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14859
63e7c5f4 14860 * target.def (function_switched_text_sections): New hook.
14861 * doc/tm.texi: Regenerated.
14862 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3b3edcd4 14863 * final.c (default_function_switched_text_sections): New.
63e7c5f4 14864 (final_scan_insn): Call function_switched_text_sections when a
14865 mid-function section change occurs.
3b3edcd4 14866 * output.h (default_function_switched_text_sections): Declare.
63e7c5f4 14867 * config/darwin-protos.h (darwin_function_switched_text_sections):
14868 Likewise.
3b3edcd4 14869 * config/darwin.c (darwin_function_switched_text_sections): New.
63e7c5f4 14870 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3b3edcd4 14871
1fce10e8 148722011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14873
14874 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14875 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14876 the secondary code fragment when outputting for DWARF == 2.
14877
77a69f9f 148782011-01-07 Anatoly Sokolov <aesok@post.ru>
14879
14880 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14881 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14882 Remove.
14883 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14884 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14885
0dcc88b6 148862011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14887
14888 PR debug/46704
43f05945 14889 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14890 when it is not empty.
0dcc88b6 14891
148922011-01-06 Changpeng Fang <changpeng.fang@amd.com>
a97faf6b 14893
5d1e0109 14894 Bobcat Enablement
a97faf6b 14895 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
5d1e0109 14896 (case ${target}): Add btver1.
a97faf6b 14897 * config/i386/driver-i386.c (host_detect_local_cpu): Let
5d1e0109 14898 -march=native recognize btver1 processors.
a97faf6b 14899 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5d1e0109 14900 btver1 def_and_undef
a97faf6b 14901 * config/i386/i386.c (struct processor_costs btver1_cost): New
5d1e0109 14902 btver1 cost table.
14903 (m_BTVER1): New definition.
14904 (m_AMD_MULTIPLE): Includes m_BTVER1.
14905 (initial_ix86_tune_features): Add btver1 tune.
14906 (processor_target_table): Add btver1 entry.
14907 (static const char *const cpu_names): Add btver1 entry.
14908 (software_prefetching_beneficial_p): Add btver1.
14909 (ix86_option_override_internal): Add btver1 instruction sets.
14910 (ix86_issue_rate): Add btver1.
14911 (ix86_adjust_cost): Add btver1.
a97faf6b 14912 * config/i386/i386.h (TARGET_BTVER1): New definition.
5d1e0109 14913 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14914 (enum processor_type): Add PROCESSOR_BTVER1.
a97faf6b 14915 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14916
361905db 149172011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14918
14919 PR target/43309
14920 * config/i386/i386.c (legitimize_tls_address)
14921 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14922 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14923 (tls_initial_exec_64_sun): New pattern.
14924
056df0a5 149252011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14926
14927 * doc/invoke.texi (Overall Options): Improve wording and markup
14928 of the description of -wrapper.
14929
fef758e3 149302011-01-06 Joseph Myers <joseph@codesourcery.com>
14931
14932 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14933 rdynamic, threads): New Driver options.
14934
256aa638 149352011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14936
14937 PR target/38118
14938 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14939 if coming from .tdata.
14940 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14941
bcac4551 149422011-01-06 Jan Hubicka <jh@suse.cz>
14943
14944 PR lto/47188
14945 * collect2.c (main): Do not enable LTOmode when plugin is active.
14946
ecaf5e86 149472011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14948
14949 PR other/45915
14950 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14951 --version output if supported.
14952 * configure: Regenerate.
14953
a2d308f3 149542011-01-06 Joseph Myers <joseph@codesourcery.com>
14955
14956 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14957 Driver options.
14958
a7d4dc67 149592011-01-06 Jakub Jelinek <jakub@redhat.com>
14960
14961 PR c/47150
14962 * c-convert.c (convert): When converting a complex expression
14963 other than COMPLEX_EXPR to a different complex type, ensure
14964 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14965 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14966 when converting COMPLEX_TYPE.
14967
caf6df13 149682011-01-06 Ira Rosen <irar@il.ibm.com>
14969
14970 PR tree-optimization/47139
14971 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14972 only the last reduction value is used outside the loop. Update
14973 documentation.
14974
d6959f51 149752011-01-05 Joseph Myers <joseph@codesourcery.com>
14976
14977 * config/rtems.opt: New.
14978 * config.gcc (*-*-rtems*): Use rtems.opt.
14979
b978e3c6 149802011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14981
14982 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14983 processors do not support 3DNow instructions.
14984
e0b840fc 149852011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14986
14987 * config/spu/spu.c (spu_option_override): Set parameter
14988 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14989
c7d28f13 149902011-01-05 Jan Hubicka <jh@suse.cz>
14991
14992 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14993 at the command line.
14994
2b36ac0b 149952011-01-05 Martin Jambor <mjambor@suse.cz>
14996
14997 PR lto/47162
14998 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14999 deltas on streamed outgoing edges.
15000 (output_node_opt_summary): Output info for outgoing edges only when
15001 the node is in new parameter set.
15002 (output_cgraph_opt_summary): New parameter set, passed to the two
15003 aforementioned functions. Update its forward declaration and its
15004 callee too.
15005
fdd84b77 150062011-01-05 Tom Tromey <tromey@redhat.com>
15007
15008 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15009 operator to c_finish_omp_atomic.
15010 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15011 (build_unary_op): Update.
15012 (build_modify_expr): Update.
15013 (build_asm_expr): Update.
15014
2fbdf9ef 150152011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15016
15017 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15018 newly inserted insns.
15019 (pad_bb): Likewise.
15020 (spu_emit_branch_hint): Likewise.
15021 (insert_hbrp_for_ilb_runout): Likewise.
15022 (spu_machine_dependent_reorg): Call df_finish_pass after
15023 schedule_insns returns.
15024
a512540d 150252011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15026
15027 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15028
da1084b7 150292011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15030
15031 PR tree-optimization/47005
15032 * tree-sra.c (struct access): Add 'non_addressable' bit.
15033 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15034 (decide_one_param_reduction): Return 0 if the parameter is passed by
15035 reference and one of the accesses in the group is non_addressable.
15036
4c06d6f7 150372011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15038
15039 PR tree-optimization/47056
15040 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15041 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15042 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15043
8ce094c3 150442011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15045
15046 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15047 initializer. Skip view conversions from aggregate types.
15048
ee2c1561 150492011-01-04 Kai Tietz <kai.tietz@onevision.com>
15050
15051 PR bootstrap/47055
15052 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15053
ba6ea72b 150542011-01-04 Philipp Thomas <pth@suse.de>
7cecf4c1 15055
15056 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15057 obvious typo.
15058
11efe736 150592011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15060
15061 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15062 on empty epilogue sequences.
15063
5db972bd 150642011-01-04 Joseph Myers <joseph@codesourcery.com>
15065
15066 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15067 non-static): New Driver options.
15068
871aed8a 150692011-01-04 Jie Zhang <jie@codesourcery.com>
15070
15071 PR driver/47137
15072 * gcc.c (default_compilers[]): Set combinable field to 0
15073 for all assembly languages.
15074
a9790f8f 150752011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15076
15077 * config/mips/loongson3a.md: New file.
15078 * config/mips/mips.md: Include loongson3a.md.
15079 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15080 TUNE_LOONGSON_3A.
15081
86347018 150822011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15083
15084 PR middle-end/47017
15085 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15086 instead of convert_memory_address_addr_space on the base expression.
15087
8e181c9d 150882011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15089
15090 * config/spu/spu.c (spu_option_override): Update error text
15091 for bad -march= / -mtune= values.
15092
0ef14db8 150932011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15094
15095 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15096 if branch-hint optimization will be performed.
15097
af9b9305 150982011-01-03 Jakub Jelinek <jakub@redhat.com>
15099
e65564ab 15100 PR tree-optimization/47148
15101 * ipa-split.c (split_function): Convert arguments to
15102 DECL_ARG_TYPE if possible.
15103
c9831663 15104 PR tree-optimization/47155
15105 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15106 when computing uns.
15107
af9b9305 15108 PR rtl-optimization/47157
15109 * combine.c (try_combine): If undobuf.other_insn becomes
15110 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15111 and set *new_direct_jump_p too.
15112
a1b6cd6a 151132011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15114
15115 PR tree-optimization/47021
15116 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15117
e487a6af 151182011-01-03 Jakub Jelinek <jakub@redhat.com>
15119
15120 * gcc.c (process_command): Update copyright notice dates.
15121 * gcov.c (print_version): Likewise.
15122 * gcov-dump.c (print_version): Likewise.
15123 * mips-tfile.c (main): Likewise.
15124 * mips-tdump.c (main): Likewise.
15125
dac98159 151262011-01-03 Martin Jambor <mjambor@suse.cz>
15127
15128 PR tree-optimization/46801
15129 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15130 aggregate fields start at byte boundary instead of the bit-field flag.
15131
9dbb005d 151322011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15133
15134 PR driver/47137
15135 * gcc.c (main): Revert revision 168407.
15136
783bc09c 151372011-01-03 Martin Jambor <mjambor@suse.cz>
15138
15139 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15140
948d7007 151412011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4d5b2207 15142
15143 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15144 vector optab to expand vector/scalar shift, update gimple to vector.
15145
76f3f3ab 151462011-01-03 Martin Jambor <mjambor@suse.cz>
15147
15148 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15149 a thunk.
15150
9bab6a70 151512011-01-03 Martin Jambor <mjambor@suse.cz>
15152
15153 PR tree-optimization/46984
15154 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15155 HOST_WIDE_INT.
15156 (cgraph_create_indirect_edge): Fixed line length.
15157 (cgraph_indirect_call_info): Declare.
15158 (cgraph_make_edge_direct) Update declaration.
15159 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15160 (cgraph_create_indirect_edge): Use it.
15161 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15162 callees.
15163 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15164 the new thunk_delta representation.
15165 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15166 HOST_WIDE_INT.
15167 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15168 (ipa_read_indirect_edge_info): Likewise.
15169 * lto-cgraph.c (output_edge_opt_summary): New function.
15170 (output_node_opt_summary): Call it on all outgoing edges.
15171 (input_edge_opt_summary): New function.
15172 (input_node_opt_summary): Call it on all outgoing edges.
15173
4d81f9fa 151742011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15175
15176 PR driver/47137
15177 * gcc.c (main): Don't check have_o when settting combine_inputs.
15178
9f3e3774 151792011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15180
15181 * regrename.c: Add general comment describing the pass.
15182 (struct du_head): Remove 'length' field.
15183 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15184 (regrename_optimize): Do not sort chains. Rework comments, add others.
15185 Force renaming to the preferred class (if any) in the first pass and do
15186 not consider registers that belong to it in the second pass.
15187 (create_new_chain): Do not set 'length' field.
15188 (scan_rtx_reg): Likewise.
15189
4547eca6 151902011-01-02 Jakub Jelinek <jakub@redhat.com>
15191
e47d81e0 15192 PR tree-optimization/47140
15193 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15194 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15195 to bit_value_binop.
15196
4547eca6 15197 PR rtl-optimization/47028
9f3e3774 15198 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15199 parm_birth_insn instead of at the beginning of first bb.
4547eca6 15200
c22368c0 152012011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
1f071633 15202
15203 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15204 Remove the word "see" before "@pxref".
15205 * doc/rtl.texi: Remove the word "see" before "@pxref".
15206
95f41c04 152072011-01-01 Jan Hubicka <jh@suse.cz>
15208
9f3e3774 15209 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15210 memory.
95f41c04 15211
99a71bbc 152122011-01-01 Kai Tietz <kai.tietz@onevision.com>
15213
15214 PR target/38662
9f3e3774 15215 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
99a71bbc 15216
7dfbd804 15217\f
cd8b0daa 15218Copyright (C) 2011 Free Software Foundation, Inc.
7dfbd804 15219
15220Copying and distribution of this file, with or without modification,
15221are permitted in any medium without royalty provided the copyright
15222notice and this notice are preserved.