OSDN Git Service

2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2
3         PR rtl-optimization/48633
4         * ira-build.c (loop_with_eh_edge_p): New function.
5         (mark_loops_for_removal): Use it.
6
7 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8
9         PR rtl-optimization/48971
10         * ira.c (setup_pressure_classes): Don't check register move cost
11         for classes with one registers.  Don't add pressure class if there
12         is a pressure class with the same available hard registers.
13         Check contains_reg_of_mode.  Fix a typo in collecting
14         temp_hard_regset.  Ignore hard registers not belonging to a class.
15
16 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
17
18         PR target/49133
19         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
20
21 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
22             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23
24         PR gcov-profile/48845
25         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
26
27 2011-05-24  Richard Guenther  <rguenther@suse.de>
28
29         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
30         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
31         (gimple_types_compatible_p_1): Adjust.
32         (iterative_hash_canonical_type): Do not bother about complete vs.
33         incomplete types.
34         (gimple_canonical_types_compatible_p): Likewise.
35
36 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37
38         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
39
40 2011-05-24  Richard Guenther  <rguenther@suse.de>
41
42         PR bootstrap/49078
43         * gimple.c (gimple_register_canonical_type): Revert
44         previous change.
45         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
46         does not for a tree for the case where it matters.  Cache
47         pointer-type alias-sets.
48
49 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
50
51         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
52         (OBJS): Remove options.o, opts-common.o and prefix.o.
53         (OBJS-libcommon-target): New.
54         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
55         (BACKEND): Include libcommon-target.a.
56         (MOSTLYCLEANFILES): Include libcommon-target.a.
57         (libcommon-target.a): New.
58         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
59         prefix.o.
60
61 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
62
63         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
64         parts of output shared with the driver.
65         * optc-gen.awk: Don't generate parts of output not shared with the
66         driver.
67         * opth-gen.awk: Remove GCC_DRIVER conditionals.
68         * doc/options.texi (SourcerInclude): Mention options-save.c.
69         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
70         (OBJS): Add options-save.o.
71         (options-save.c, options-save.o): New.
72         (options.o): Update dependencies.
73         (gcc-options.o): Remove.
74         (mostlyclean): Remove options-save.c.
75
76 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
77
78         PR debug/49032
79         * dbxout.c: Include cgraph.h.
80         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
81         and without value expr, return NULL if no varpool node exists for
82         it or if it is not needed.
83         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
84
85         PR c/49120
86         * c-decl.c (start_decl): Convert expr to void_type_node.
87
88 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
89
90         PR rtl-optimization/48826
91         * emit-rtl.c (try_split): When splitting a call that is followed
92         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
93
94 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
95
96         * cfgexpand.c (expand_debug_expr): For unused non-addressable
97         parameters passed in memory prefer using DECL_INCOMING_RTL over
98         the pseudos it will be copied into.
99
100 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
101
102         PR target/47315
103         * config/i386/i386.c (ix86_option_override_internal): Save the
104         initial options after checking vzeroupper.
105
106 2011-05-23  David Li  <davidxl@google.com>
107
108         PR tree-optimization/48988
109         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
110         Initialize has_valid_pred for each pred chain.
111
112 2011-05-23  Richard Guenther  <rguenther@suse.de>
113
114         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
115         (iterative_hash_gimple_type): Always hash type names.
116
117 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
118
119         * c-typeck.c (build_function_call_vec): Tweak call to
120         check_function_arguments.
121
122 2011-05-23  Richard Guenther  <rguenther@suse.de>
123
124         PR tree-optimization/49115
125         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
126         is not necessarily carried out, do not claim it kills the ref.
127         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
128
129 2011-05-23  Richard Guenther  <rguenther@suse.de>
130
131         PR middle-end/15419
132         * builtins.c (fold_builtin_memory_op): Be less restrictive about
133         what pointer types we accept for folding.
134
135 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
136
137         * gthr-gnat.c: Remove.
138         * gthr-gnat.h: Remove.
139         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
140         * config/t-freebsd (LIB2ADDEH): Likewise.
141         * config/t-linux (LIB2ADDEH): Likewise.
142         * config/t-sol2 (LIB2ADDEH): Likewise.
143         * config/ia64/t-vms (LIB2ADDEH): Likewise.
144         * configure.ac (target_thread_file): Remove gnat handling.
145         * configure: Regenerate.
146         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
147
148 2011-05-23  Tristan Gingold  <gingold@adacore.com>
149             Eric Botcazou  <ebotcazou@adacore.com>
150
151         * gcov.c (create_file_names): If no object directory is specified,
152         keep the directory of the file.
153
154 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
155
156         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
157         * configure: Regenerate.
158
159 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
160
161         PR middle-end/48973
162         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
163         failed and the comparison has a single bit signed type, use
164         constm1_rtx instead of const1_rtx for true value.
165         (do_store_flag): If ops->type is single bit signed type, disable
166         signel bit test optimization and pass -1 instead of 1 as last
167         parameter to emit_store_flag_force.
168
169 2011-05-23  Tom de Vries  <tom@codesourcery.com>
170
171         PR target/45098
172         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
173         function.
174         (infer_loop_bounds_from_undefined): Use new function.
175
176 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
177
178         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
179         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
180         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
181         and -O0 otherwise.
182         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
183
184 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
185
186         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
187         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
188         returns true.
189
190 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
191
192         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
193
194 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
195
196         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
197         UNSPEC_MOVE_PIC pattern.
198
199 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
200
201         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
202         (sparc-*-rtems*): Likewise.
203         (sparc64-*-elf*): Likewise.
204         (sparc64-*-rtems*): Likewise.
205         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
206         * config/sparc/t-crtin: New file.
207         * config/sparc/t-sol2 (crti.o): Delete rule.
208         (crtn.o): Likewise.
209         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
210         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
211         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
212         (ENDFILE_SPEC): Add crtn.o.
213
214 2011-05-22  Tom de Vries  <tom@codesourcery.com>
215
216         PR middle-end/48689
217         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
218         CODE_CONTAINS_STRUCT (TS_COMMON).
219
220 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
221
222         PR middle-end/49029
223         * expmed.c (extract_fixed_bit_field): Test whether target can be used
224         only after deciding which mode to use.
225
226 2011-05-22  Tom de Vries  <tom@codesourcery.com>
227
228         PR target/45098
229         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
230         for call to get_shiftadd_cost.
231
232 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
233
234         PR target/49104
235         * config/i386/cpuid.h (bit_MMXEXT): New define.
236
237 2011-05-22  Nick Clifton  <nickc@redhat.com>
238
239         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
240         initialisation of non-existant args[2] element.  Use args[] array
241         not arg[] array to pass arguments to build_function_type_list.
242
243 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
244
245         PR tree-optimization/49087
246         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
247
248 2011-05-21  Jason Merrill  <jason@redhat.com>
249
250         PR c++/49092
251         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
252         static storage duration.
253
254 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
255
256         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
257         frame pointer.
258
259 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
260
261         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
262         false if there are call-saved registers here...
263         (sparc_can_use_return_insn_p): ...but here instead.
264         (save_or_restore_regs): Fix thinko.
265         (sparc_expand_prologue): Use current_function_is_leaf.
266         (sparc_frame_pointer_required): Likewise.
267
268 2011-05-21  Nick Clifton  <nickc@redhat.com>
269
270         PR target/49098
271         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
272
273 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
274
275         * gengtype.c (walk_type): Implemented "atomic" GTY option.
276         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
277
278 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
279
280         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
281         * optc-gen.awk: Move common code to opt-read.awk.
282         * opth-gen.awk: Likewise.
283         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
284
285 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
286
287         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
288
289 2011-05-20  Tom de Vries  <tom@codesourcery.com>
290
291         PR target/45098
292         * tree-ssa-loop-ivopts.c: Include expmed.h.
293         (get_shiftadd_cost): New function.
294         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
295
296 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
297
298         PR bootstrap/49086
299         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
300         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
301
302 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
303
304         * Makefile.in: Update comment referring to $(OBJS-common).
305
306 2011-05-20  Ian Lance Taylor  <iant@google.com>
307
308         * godump.c (go_output_typedef): Put enum constants in the macro
309         hash table to avoid duplicate Go const definitions.
310
311 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
312
313         * Makefile.in (LIBDEPS): Add libcommon.a.
314         (LIBS): Likewise.
315         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
316         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
317         pretty-print.o and version.o.
318         (OBJS-libcommon): New.
319         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
320         (BACKEND): Add libcommon.a.
321         (MOSTLYCLEANFILES): Likewise.
322         (libcommon.a): New.
323         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
324         (cpp$(exeext)): Likewise.
325         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
326         pretty-print.o and input.o.
327         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
328         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
329         (errors.o): Remove.
330         (mips-tfile): Don't explicitly use version.o.
331         (mips-tdump): Likewise.
332         (gcov.o): Depend on $(DIAGNOSTIC_H).
333         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
334         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
335         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
336         * gcov-dump.c: Include intl.h and diagnostic.h.
337         (main): Initialize diagnostics.
338         * gcov.c: Include diagnostic.h.
339         (fnotice): Remove.
340         (main): Initialize diagnostics.
341         * lto-wrapper.c: Include diagnostic.h.
342         (main): Initialize diagnostics.
343
344 2011-05-20  Michael Matz  <matz@suse.de>
345
346         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
347
348 2011-05-20  Michael Matz  <matz@suse.de>
349             Richard Guenther  <rguenther@suse.de>
350
351         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
352         use lto_streamer_cache_append directly instead of returning a VEC.
353         (preload_common_node): Remove.
354         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
355         track seen nodes.
356         (lto_streamer_cache_create): Call lto_preload_common_nodes.
357
358 2011-05-20  Richard Guenther  <rguenther@suse.de>
359
360         PR tree-optimization/49079
361         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
362         MEM_REFs correctly for the trailing array access detection.
363         Special case constants the same way as decls for overall size
364         constraining.
365
366 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
367
368         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
369         argument expansion.
370
371 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
372
373         PR tree-optimization/49073
374         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
375         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
376         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
377
378 2011-05-20  Richard Guenther  <rguenther@suse.de>
379
380         PR middle-end/48849
381         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
382         of pointer types the same way the middle-end does.
383
384 2011-05-20  Richard Guenther  <rguenther@suse.de>
385
386         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
387         or pointer-to chains.  Delay all fixup to uniquify_nodes.
388
389 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
390
391         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
392         (fma4_fmaddsub): Likewise
393
394 2011-05-19  Jan Hubicka  <jh@suse.cz>
395
396         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
397         (GIMPLE_TYPE_PAIR_SIZE): New macro.
398         (type_pair_cache): New static var.
399         (lookup_type_pair): Use fixed sized custom hash; make inline.
400         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
401         calls of lookup_type_pair.
402         (print_gimple_types_stats): Remove cache stats.
403         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
404         and gtc_ob.
405
406 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
407
408         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
409         when TARGET_RDRND is active.
410         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
411         Generate dummy SImode target register when target is NULL.
412
413 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
414
415         * config/arm/arm-fpus.def: New.
416         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
417         arm-fpus.def.
418         * config/arm/arm-tables.opt: Regenerate.
419         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
420         (arm_option_override): Don't decode FPU name to string here.
421         * config/arm/arm.opt (mfpu=): Use Enum.
422         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
423         Update dependencies.
424
425 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
426
427         * collect2.c: Include diagnostic.h.
428         (fatal_perror, fatal, error, fancy_abort): Remove.
429         (main): Set progname.  Call xmalloc_set_program_name and
430         diagnostic_initialize.
431         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
432         scan_libraries, resolve_lib_name): Call fatal_error instead of
433         fatal and fatal_perror.
434         * collect2.h (error, fatal, fatal_perror): Don't declare.
435         * tlink.c: Include diagnostic-core.h.
436         (recompile_files): Call fatal_error instead of fatal_perror.
437         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
438         pretty-print.o and input.o.
439         (collect2.o, tlink.o): Update dependencies.
440
441 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
442
443         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
444
445 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
446
447         PR target/40483
448         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
449         COMDAT group syntax, both SPARC and x86 variants.
450         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
451         * configure: Regenerate.
452         * config/sol2.h (TARGET_SOLARIS): Define.
453         (PUSHSECTION_FORMAT): Remove.
454         (SECTION_NAME_FORMAT): Define.
455         * config/sol2.c: Include hashtab.h.
456         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
457         expansion, using SECTION_NAME_FORMAT.
458         (solaris_comdat_htab): New variable.
459         (struct comdat_entry): Define.
460         (comdat_hash): New function.
461         (comdat_eq): New function.
462         (solaris_elf_asm_comdat_section): New function.
463         (solaris_define_comdat_signature): New function.
464         (solaris_code_end): New function.
465         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
466         (solaris_code_end): Declare.
467         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
468         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
469         solaris_code_end.
470         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
471         Remove ATTRIBUTE_UNUSED.
472         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
473         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
474         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
475         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
476         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
477         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
478         (PUSHSECTION_FORMAT): Remove.
479         (SECTION_NAME_FORMAT): Redefine.
480
481 2011-05-19  Kai Tietz  <ktietz@redhat.com>
482
483         * tree-cfg.c (verify_gimple_assign_binary): Barf on
484         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
485         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
486
487 2011-05-19  Anatoly Sokolov <aesok@post.ru>
488             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
489
490         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
491
492 2011-05-19  Richard Guenther  <rguenther@suse.de>
493
494         PR middle-end/48985
495         * tree-object-size.c (addr_object_size): If the pointed-to
496         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
497
498 2011-05-19  Richard Guenther  <rguenther@suse.de>
499
500         * gimple.c (gimple_types_compatible_p_1): Compare names of
501         the types themselves.
502         (iterative_hash_gimple_type): And hash them that way.
503         (gimple_register_type_1): If we register a main variant properly
504         initialize the leader to ourselves.
505
506 2011-05-19  Tom de Vries  <tom@codesourcery.com>
507
508         PR target/45098
509         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
510         get_loop_invariant_expr_id.
511         (get_loop_invariant_expr_id): Use get_expr_id.
512         (parm_decl_cost): New function.
513         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
514         Improve bound cost estimation.  Use different inv_expr_id for elim and
515         express cases.
516
517 2011-05-19  Tom de Vries  <tom@codesourcery.com>
518
519         PR target/45098
520         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
521         cost_base.cost == 0.
522
523 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
524
525         PR target/49002
526         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
527         Properly handle load cast.
528
529 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
530
531         PR tree-optimization/49039
532         * tree-vrp.c (extract_range_from_binary_expr): For
533         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
534         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
535
536 2011-05-18  Tom de Vries  <tom@codesourcery.com>
537
538         PR target/45098
539         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
540
541 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
542
543         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
544         (*tls_global_dynamic_64): Ditto.
545         (*tls_local_dynamic_base_32_gnu): Ditto.
546         (*tls_local_dynamic_base_64): Ditto.
547         (tls_initial_exec_64_sun): Ditto.
548
549 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
550
551         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
552         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
553         bf592-none.
554         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
555         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
556         * config/bfin/bfin.c (bfin_cpus): Add bf592.
557         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
558         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
559         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
560         * config/bfin/elf.h (LIB_SPEC): Add bf592.
561
562 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
563
564         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
565         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
566         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
567         target_thread_pointer, arm_structure_size_boundary, struct
568         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
569         struct abi_name, arm_all_abis): Remove.
570         (arm_option_override) Don't process most enumerated option values here.
571         Don't process target_fpe_name here.  Work with integer not string for
572         structure size boundary; use separate diagnostics for each case.
573         * config/arm/arm.h (enum float_abi_type, enum
574         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
575         to arm-opts.h.
576         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
577         arm_structure_size_boundary): Remove.
578         * config/arm/arm.opt (mabi=): Use Enum and Init.
579         (arm_abi_type): New Enum and EnumValue entries.
580         (mfloat-abi=): Use Enum and Init.
581         (float_abi_type): New Enum and EnumValue entries.
582         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
583         (mfp16-format=): Use Enum and Init.
584         (arm_fp16_format_type): New Enum and EnumValue entries.
585         (mstructure-size-boundary=): Use UInteger and Init.
586         (mtp=): Use Enum and Init.
587         (arm_tp_type): New Enum and EnumValue entries.
588
589 2011-05-18  Richard Guenther  <rguenther@suse.de>
590
591         PR tree-optimization/49018
592         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
593         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
594         gimple_has_side_effects.
595
596 2011-05-18  Richard Guenther  <rguenther@suse.de>
597
598         * gimple.c (gimple_register_type_1): New function, split out from ...
599         (gimple_register_type): ... here.  Avoid infinite recursion.
600
601 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
602
603         PR tree-optimization/41881
604         * tree-vectorizer.h (struct _loop_vec_info): Add new field
605         reduction_chains along with a macro for its access.
606         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
607         (destroy_loop_vec_info): Free reduction chains.
608         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
609         (vect_is_slp_reduction): New function.
610         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
611         (vect_create_epilog_for_reduction): Support SLP reduction chains.
612         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
613         definition types for reduction chains.
614         (vect_supported_load_permutation_p): Don't allow permutations for
615         reduction chains.
616         (vect_analyze_slp_instance): Support reduction chains.
617         (vect_analyze_slp): Try to build SLP instance from reduction chains.
618         (vect_get_constant_vectors):  Handle reduction chains.
619         (vect_schedule_slp_instance): Mark the first statement of the
620         reduction chain as reduction.
621
622 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
623
624         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
625         names for group elements access.
626         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
627         reduction chains as well.  Remove data reference and interleaving
628         related words from the fields names.
629         * tree-vect-loop.c (vect_transform_loop): Use new names for group
630         elements access.
631         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
632         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
633         vect_update_interleaving_chain, vect_same_range_drs,
634         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
635         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
636         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
637         vect_analyze_group_access, vect_analyze_data_ref_access,
638         vect_create_data_ref_ptr, vect_transform_strided_load,
639         vect_record_strided_load_vectors): Likewise.
640         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
641         vect_model_load_cost, vectorizable_store, vectorizable_load,
642         vect_remove_stores, new_stmt_vec_info): Likewise.
643         * tree-vect-slp.c (vect_build_slp_tree,
644         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
645
646 2011-05-18  Richard Guenther  <rguenther@suse.de>
647
648         PR middle-end/48989
649         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
650         operand verification.
651         (verify_gimple_assign_binary): Likewise.
652         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
653         to non-1-precision BOOLEAN_TYPEs.
654
655 2011-05-18  Tom de Vries  <tom@codesourcery.com>
656
657         PR target/45098
658         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
659
660 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
661
662         PR tree-optimization/49000
663         * tree-ssa.c (execute_update_addresses_taken): Call
664         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
665         be rewritten and decl has been marked for renaming, reset
666         the debug stmt.
667
668 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
669
670         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
671         enum_opts_set when testing if attributes have set -mfpmath=.
672
673 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
674
675         * config/mips/mips.c (mips_handle_option): Remove unused variable.
676
677 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
678
679         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
680         info->entry with 0
681         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
682         id.transform_lang_insert_block with NULL.
683
684 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
685
686         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
687         (output_fp_compare): Change args 3 and 4 to bool.
688         (ix86_expand_call): Change arg 6 to bool.
689         (ix86_attr_length_immediate_default): Change arg 2 to bool.
690         (ix86_attr_length_vex_default): Change arg 3 to bool.
691         * config/i386/i386.md: Update all uses.
692         * config/i386/i386.c: Ditto.
693         (ix86_flags_dependent): Change return type to bool.
694
695 2011-05-17  Richard Guenther  <rguenther@suse.de>
696
697         * gimple.c (type_hash_pair_compare): Fix comparison.
698
699 2011-05-17  Richard Guenther  <rguenther@suse.de>
700
701         * gimple.c (iterative_hash_gimple_type): Simplify singleton
702         case some more, fix final hash value of the non-singleton case.
703
704 2011-05-17  Richard Guenther  <rguenther@suse.de>
705
706         PR bootstrap/49013
707         Revert
708         2011-05-16  Richard Guenther  <rguenther@suse.de>
709
710         * gimple.c (gimple_types_compatible_p_1): Use names of the
711         type itself, not its main variant.
712         (iterative_hash_gimple_type): Likewise.
713
714 2011-05-17  Richard Guenther  <rguenther@suse.de>
715
716         * gimple.c (gimple_register_canonical_type): Use the main-variant
717         leader for computing the canonical type.
718
719 2011-05-17  Nick Clifton  <nickc@redhat.com>
720
721         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
722         moves.
723
724         * config/rx/rx.md: Add peephole to remove redundant extensions
725         after loads.
726         (bitset_in_memory): Use rx_restricted_mem_operand.
727         (bitinvert_in_memory): Likewise.
728         (bitclr_in_memory): Likewise.
729
730 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
731             Nick Clifton  <nickc@redhat.com>
732
733         * config/rx/rx.md: Add peepholes to match a register move followed
734         by a comparison of the moved register.  Replace these with an
735         addition of zero that does both actions in one instruction.
736
737 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
738
739         PR target/48986
740         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
741         predicate to allow CONST_INT.
742         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
743
744 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
745
746         * opts-common.c (opt_enum_arg_to_value): New.
747         * opts.h (opt_enum_arg_to_value): Declare.
748         * config/i386/i386.opt (fpmath): Remove.
749         (mfpmath=): Use Enum, Init and Save.
750         (fpmath_unit): New Enum and EnumValue entries.
751         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
752         name for function fpmath state.
753         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
754         * config/i386/i386.c: Include diagnostic.h.
755         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
756         (ix86_target_string): Take enum fpmath_unit value instead of string.
757         (ix86_debug_options): Update call to ix86_target_string.
758         (ix86_option_override_internal): Don't process fpmath strings here.
759         (x86_function_specific_save, ix86_function_specific_restore):
760         Don't handle fpmath state specially.
761         (ix86_function_specific_print): Pass fpmath state to
762         ix86_target_string instead of printing in this function.
763         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
764         Handle enum attributes.
765         (IX86_ATTR_ENUM, ix86_opt_enum): New.
766         (ix86_valid_target_attribute_tree): Update option_strings
767         handling.  Handle fpmath as enum option.
768         (ix86_can_inline_p): Update field names for function fpmath state.
769         (ix86_expand_builtin): Update call to ix86_target_string.
770         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
771         (ix86_fpmath): Remove.
772         * config/i386/t-i386 (i386.o): Update dependencies.
773
774 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
775
776         PR preprocessor/48677
777         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
778         from decoded_options[0], not from itself.
779
780 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
781
782         * config/i386/constraints.md (z): New constraint.
783         * config/i386/i386.c (c): New mode attribute.
784         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
785         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
786         constraint for operand 0.
787         (*call_vzeroupper): Ditto.
788         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
789         (*call_rex64_ms_sysv_vzeroupper): Ditto.
790         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
791         Use "lzm" constraint for operand 0.
792         (*call_pop_vzeroupper): Ditto.
793         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
794         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
795         constraint for operand 0.
796         (*sibcall_vzeroupper): Ditto.
797         (*sibcall_rex64_ms_sysv): Ditto.
798         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
799         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
800         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
801         (*sibcall_pop_vzeroupper): Ditto.
802         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
803         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
804         mode iterator.  Use "<c>zm" constraint for operand 1.
805         (*call_value_vzeroupper): Ditto.
806         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
807         for operand 1.
808         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
809         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
810         *call_value_pop_1.  Use "lzm" constraint for operand 1.
811         (*call_value_pop_vzeroupper): Ditto.
812         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
813         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
814         mode iterator.  Use "Uz" constraint for operand 1.
815         (*sibcall_value_vzeroupper): Ditto.
816         (*sibcall_value_rex64_ms_sysv): Ditto.
817         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
818         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
819         constraint for operand 1.
820         (*sibcall_value_pop_vzeroupper): Ditto.
821         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
822         and "z" constraint for operand 2.
823         (*tls_global_dynamic_32_gnu): Ditto.
824         (*tls_local_dynamic_base_32_gnu): Ditto.
825         (*tls_local_dynamic_base_64): Ditto.
826         (*tls_local_dynamic_32_once): Ditto.
827         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
828         Update all callers.
829         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
830
831 2011-05-16  Richard Guenther  <rguenther@suse.de>
832
833         * gimple.c (gimple_types_compatible_p_1): Use names of the
834         type itself, not its main variant.
835         (iterative_hash_gimple_type): Likewise.
836
837 2011-05-16  Richard Guenther  <rguenther@suse.de>
838
839         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
840         always visit pointer target and function result and argument types.
841
842 2011-05-16  Jason Merrill  <jason@redhat.com>
843
844         PR c++/48999
845         * tree-inline.c (copy_statement_list): Put back recursion.
846
847 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
848
849         PR target/27663
850         PR target/41076
851         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
852         * config/avr/avr.md ("*ior<mode>qi.byte0",
853         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
854
855 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
856
857         PR target/45099
858         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
859         register is needed for a function argument.
860
861 2011-05-16  Richard Guenther  <rguenther@suse.de>
862
863         * gimple.c (struct type_hash_pair): New type.
864         (type_hash_pair_compare): New function.
865         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
866
867 2011-05-16  Revital Eres  <revital.eres@linaro.org>
868
869         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
870
871 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
872
873         * config/i386/i386.md (floating point move splitters): Fix
874         usage of standard_80387_constant_p.
875         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
876
877 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
878
879         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
880
881 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
882
883         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
884         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
885         (tree_ssa_lim_finalize): Likewise.
886
887 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
888
889         * config/i386/constraint.md (Yd, Yx): New register constraints.
890         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
891         Yd conditional register constraint.
892         (*movtf_internal): Use standard_sse_constant_opcode.
893         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
894         Yx conditional register constraint.
895         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
896         Yd conditional register constraint.  Use standard_sse_constant_p to
897         check for valid SSE constants and call standard_sse_constant_opcode to
898         output SSE insn.
899         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
900         constants and call standard_sse_constant_opcode to output SSE insn.
901         * config/i386/i386.c (ix86_option_ovverride_internal): Set
902         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
903         optimize_size is set.
904         (standard_sse_constant_opcode): Output conditional AVX insn templates.
905
906 2011-05-14  Tobias Burnus  <burnus@net-b.de>
907
908         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
909
910 2011-05-13  Martin Jambor  <mjambor@suse.cz>
911
912         * ipa-prop.c (ipa_cst_from_jfunc): New function.
913         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
914         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
915         (evaluate_conditions_for_ipcp_clone): Removed.
916         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
917         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
918         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
919
920 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
921
922         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
923         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
924         lieu of MAY_HAVE_DEBUG_STMTS.
925         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
926         debug statements if !MAY_HAVE_DEBUG_STMTS.
927
928 2011-05-13  Martin Thuresson  <martint@google.com>
929
930         PR gcov-profile/47793
931         * libgcov.c (gcov_exit): Support relative profile paths.
932         * doc/invoke.texi (-fprofile-dir): Update for above change.
933
934 2011-05-13  Richard Guenther  <rguenther@suse.de>
935
936         * gimple.c (gimple_canonical_types_compatible_p): Do not use
937         type-pair caching, do not compare hashes.
938
939 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
940
941         PR middle-end/48965
942         * tree-cfg.c (edge_to_cases_cleanup): Return true.
943         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
944
945 2011-05-13  Kai Tietz  <ktietz@redhat.com>
946
947         * gimplify.c (gimplify_expr): Make sure operand is boolified.
948         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
949         compatible type for TRUTH_NOT_EXPR.
950
951 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
954         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
955         can_create_pseudo_p ().
956
957 2011-05-13  Richard Guenther  <rguenther@suse.de>
958
959         PR lto/48978
960         * gimple.c (iterative_hash_gimple_type): Revert change in
961         pointer target and function result and argument hashing.
962
963 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
964
965         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
966         (*movxf_internal_nointeger): Ditto.
967         (*movdf_internal_rex64): Ditto.
968         (*movdf_internal): Ditto.
969         (*movdf_internal_nointeger): Ditto.
970         (*movsf_internal): Ditto.
971         (sincos splitters): Use can_create_pseudo ().
972
973 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
974
975         * config/i386/i386-opts.h: New.
976         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
977         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
978         ix86_section_threshold): Remove.
979         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
980         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
981         OPT_mbranch_cost_.
982         (ix86_option_override_internal): Don't decode strings for options
983         other than -march=, -mtune= and -mfpmath=.  Don't allow for
984         __attribute__ uses in remaining diagnostics for options with
985         string arguments.  Don't check for integer arguments being negative.
986         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
987         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
988         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
989         ix86_branch_cost, ix86_section_threshold): Remove.
990         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
991         HeaderInclude.
992         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
993         but not Var.
994         (masm=): Use Enum and Init.
995         (asm_dialect): New Enum and EnumValue entries.
996         (mbranch-cost=): Use UInteger.
997         (mlarge-data-threshold=): Use UInteger and Init.
998         (mcmodel=): Use Enum and Init.
999         (cmodel): New Enum and EnumValue entries.
1000         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1001         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1002         mregparm=): Use UInteger.
1003         (mstringop-strategy=): Use Enum and Init.
1004         (stringop_alg): New Enum and EnumValue entries.
1005         (mtls-dialect=): Use Enum and Init.
1006         (tls_dialect): New Enum and EnumValue entries.
1007         (mabi=): Use Enum and Init.
1008         (calling_abi): New Enum and EnumValue entries.
1009         (mveclibabi=): Use Enum and Init.
1010         (ix86_veclibabi): New Enum and EnumValue entries.
1011
1012 2011-05-13  Nick Clifton  <nickc@redhat.com>
1013
1014         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1015         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1016
1017 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1018
1019         PR middle-end/48984
1020         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1021         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1022         (gimple_boolify): Check for cast for boolean_type_node instead for
1023         BOOLEAN_TYPE.
1024
1025 2011-05-13  Richard Guenther  <rguenther@suse.de>
1026
1027         PR tree-optimization/48172
1028         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1029         multiplying by number of iterations for equal step.
1030         (vect_create_cond_for_alias_checks): Likewise.
1031
1032 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1033
1034         * configure.ac: Use AS_HELP_STRING throughout.
1035         * configure: Regenerate.
1036
1037 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1038
1039         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1040         (ix86_emit_restore_regs_using_mov): Likewise.
1041         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1042
1043 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1044
1045         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1046         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1047         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1048         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1049         RTX_OK_FOR_OLO10_P): ...here.
1050         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1051         SYMBOLIC_CONST.
1052
1053 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1054
1055         * gimplify.c (gimple_boolify): Re-boolify expression
1056         arguments even if expression type is of kind BOOLEAN_TYPE.
1057         (gimplify_boolean_expr): Removed.
1058         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1059         and XOR. Additional take care that we keep expression's type.
1060         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1061         of TRUTH_AND|OR|XOR_EXPR.
1062
1063 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1064
1065         PR tree-optimization/48975
1066         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1067         on all bbs here and free and clear ifc_bbs at the end.
1068
1069 2011-05-12  Richard Guenther  <rguenther@suse.de>
1070
1071         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1072         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1073         until after simple checks.
1074         (gimple_types_compatible_p): Likewise.
1075         (iterative_hash_gimple_type): Always hash pointer targets
1076         and function return and argument types.
1077         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1078         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1079         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1080         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1081         completely in the simple compare section.
1082         (gimple_register_canonical_type): Query the cache again after
1083         registering.
1084
1085 2011-05-12  Richard Guenther  <rguenther@suse.de>
1086
1087         PR tree-optimization/48172
1088         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1089         the number of iterations from the segment size calculation.
1090         (vect_create_cond_for_alias_checks): Adjust.
1091
1092 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1093
1094         PR debug/48967
1095         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1096         if validate_subreg fails.
1097
1098 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1099
1100         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1101         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1102         early.
1103
1104 2011-05-12  DJ Delorie  <dj@redhat.com>
1105
1106         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1107         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1108         created builtin into rx_builtins array.
1109         (rx_builtin_decl): New function.
1110         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1111
1112 2011-05-12  DJ Delorie  <dj@redhat.com>
1113             Nick Clifton  <nickc@redhat.com>
1114
1115         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1116         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1117         (rx_is_legitimate_address): Add pre-decrement and post-increment
1118         addressing in HImode and QImode.  Fix test for out of range
1119         REG+INT addressing.
1120         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1121         (rx_align_for_label): Test label before extracting its usage count.
1122         (rx_adjust_insn_lengths): Fix selection of insn codes.
1123         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1124
1125 2011-05-11  Jason Merrill  <jason@redhat.com>
1126
1127         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1128
1129 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1130
1131         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1132         reindent the subsequent block.
1133
1134 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1135             Paul Pluzhnikov  <ppluzhnikov@google.com>
1136
1137         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1138         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1139         * config.in: Add LINKER_HASH_STYLE.
1140         * configure.ac: Add --with-linker-hash-style.
1141         * configure: Regenerate.
1142
1143 2011-05-11  Richard Guenther  <rguenther@suse.de>
1144
1145         PR middle-end/48964
1146         * gimple.c (iterative_hash_canonical_type): Fix typo.
1147
1148 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1149
1150         * config/i386/i386.c (legitimize_tls_address)
1151         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1152         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1153         __tls_get_addr symbol reference here.  Update call to
1154         gen_tls_global_dynamic_{32,64} for added arguments.
1155         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1156         expanders directly for TARGET_GNU2_TLS.  Determine
1157         __tls_get_addr symbol reference here.  Update call to
1158         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1159         unique UNSPEC REG_EQUIV to libcall block.
1160         (ix86_tls_get_addr): Declare static.
1161         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1162         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1163         Do not determine pic and __tls_get_addr symbol reference here. Do not
1164         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1165         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1166         (tls_global_dynamic_64): Add operand 2.  Do not determine
1167         __tls_get_addr symbol reference here.  Do not call
1168         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1169         (tls_local_dynamic_base64): Ditto for operand 1.
1170
1171 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1172
1173         * function.c (expand_function_start): Initialize stack_check_probe_note
1174         only if the generic stack checking mechanism is used.
1175
1176 2011-05-11  Richard Guenther  <rguenther@suse.de>
1177
1178         PR tree-optimization/15256
1179         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1180         (A & B) | C, combine (A op CST1) op CST2.
1181         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1182         visit assigns that have uses.
1183
1184 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1185
1186         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1187         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1188         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1189         (unpack_value_fields): Adjust for renaming.
1190         (lto_input_ts_type_tree_pointers): Split into...
1191         (lto_input_ts_type_common_tree_pointer): ...this and...
1192         (lto_input_ts_type_non_common_tree_pointers): ...this.
1193         (lto_input_tree_pointers): Adjust for above split.
1194         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1195         (pack_ts_type_common_value_fields): ...this.  Update comment.
1196         (lto_output_ts_type_tree_pointers): Split into...
1197         (lto_output_ts_type_common_tree_pointers): ...this and...
1198         (lto_output_ts_type_non_common_tree_pointers): ...this.
1199         (lto_output_tree_pointers): Adjust for above split.
1200         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1201         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1202         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1203         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1204         Define.
1205         (struct tree_type): Split into...
1206         (struct tree_type_common: ...this and...
1207         (struct tree_type_with_lang_specific): ...this and...
1208         (struct tree_type_non_common): ...this.  Adjust accessor macros
1209         accordingly.
1210         (TYPE_VALUES_RAW): Define.
1211         (union tree_node): Update for above changes.
1212         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1213         TS_TYPE_NON_COMMON.
1214         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1215         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1216         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1217         * treestructu.def (TS_TYPE): Remove.
1218         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1219         Define.
1220
1221 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1222
1223         PR debug/48159
1224         * tree-ssa.c (reset_debug_uses): New function.
1225         * tree-flow.h (reset_debug_uses): New prototype.
1226         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1227         * tree-loop-distribution.c (generate_loops_for_partition): Call
1228         reset_debug_uses on the stmts that will be removed.  Keep around
1229         all debug stmts, don't count them as bits in partition bitmap.
1230         (generate_builtin): Don't count debug stmts or labels as bits in
1231         partition bitmap.
1232
1233 2011-05-11  Richard Guenther  <rguenther@suse.de>
1234
1235         * gimple.c (gimple_type_hash_1): Merge with ...
1236         (gimple_type_hash): ... this.
1237         (gtc_visit): Remove mode parameter and simplify accordingly.
1238         (gimple_types_compatible_p_1): Likewise.
1239         (gimple_types_compatible_p): Likewise.
1240         (iterative_hash_gimple_type): Likewise.
1241         (visit): Likewise.
1242         (gimple_type_eq): Adjust.
1243
1244 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1245
1246         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1247         enters the branch create an anti edge in the opposite direction
1248         to prevent the creation of reg-moves.
1249         * modulo-sched.c: Adjust comment to reflect the fact we are
1250         scheduling closing branch.
1251         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1252         (stage_count): New field in struct partial_schedule.
1253         (calculate_stage_count): New function.
1254         (normalize_sched_times): Rename to reset_sched_times and handle
1255         incrementing the sched time of the nodes by a constant value
1256         passed as parameter.
1257         (duplicate_insns_of_cycles): Skip closing branch.
1258         (sms_schedule_by_order): Schedule closing branch.
1259         (ps_insn_find_column): Handle closing branch.
1260         (sms_schedule): Call reset_sched_times and adjust the code to
1261         support scheduling of the closing branch.
1262         (ps_insert_empty_row): Update calls to normalize_sched_times
1263         and rotate_partial_schedule functions.
1264
1265 2011-05-11  Richard Guenther  <rguenther@suse.de>
1266
1267         PR middle-end/48953
1268         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1269
1270 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1271
1272         * opts.c (finish_options): Move warning settings from process_options.
1273         * toplev.c (process_options): Move warning settings to finish_options.
1274
1275 2011-05-11  Richard Guenther  <rguenther@suse.de>
1276
1277         PR tree-optimization/18041
1278         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1279         (simplify_bitwise_binary): ... this.  Handle operand conversions
1280         by applying them to the result instead.
1281         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1282
1283 2011-05-11  Richard Guenther  <rguenther@suse.de>
1284
1285         * gimple.c (gimple_canonical_types_compatible_p): Split out
1286         from gimple_types_compatible_p and friends.  Do not recurse
1287         to pointed-to types.
1288         (gimple_canonical_type_eq): Use it.
1289         (iterative_hash_canonical_type): Split out from
1290         iterative_hash_gimple_type and friends.  Do not recurse
1291         to pointed-to types.
1292         (gimple_canonical_type_hash): Use it, allocate the hash here.
1293
1294 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1295
1296         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1297         recognizing doloop.
1298
1299 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1300
1301         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1302         instead of PREV_INSN.
1303
1304 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1305
1306         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1307         * loop-doloop.c (doloop_condition_get): Likewise.
1308         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1309         (doloop_end): New.
1310         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1311
1312 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1313
1314         * tree.def (CASE_LABEL_EXPR): Add an operand.
1315         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1316
1317 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1318
1319         * c-decl.c (c_override_global_bindings_to_false): Remove.
1320         (global_bindings_p): Don't check
1321         c_override_global_bindings_to_false.
1322         * c-tree.h (c_override_global_bindings_to_false): Remove.
1323         * c-typeck.c (composite_type): Don't set
1324         c_override_global_bindings_to_false.
1325
1326 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1327
1328         PR target/48857, 48495
1329         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1330         (VSX_MODE): Ditto.
1331         (VSX_MOVE_MODE): Ditto.
1332         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1333         VSX vector types.  Add V2DImode.
1334         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1335         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1336         (MODES_TIEABLE_P): Ditto.
1337
1338         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1339         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1340         VSX_VECTOR_MODE.
1341         (init_cumulative_args): Ditto.
1342         (rs6000_function_arg_boundary): Ditto.
1343         (rs6000_function_arg_advance_1): Ditto.
1344         (rs6000_function_arg): Ditto.
1345         (rs6000_function_ok_for_sibcall): Ditto.
1346         (emit_frame_save): Ditto.
1347         (rs6000_function_value): Ditto.
1348         (rs6000_libcall_value): Ditto.
1349
1350 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1351
1352         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1353         i386/darwin-lib.h to $libgcc_tm_file.
1354         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1355
1356 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1357
1358         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1359
1360 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1361
1362         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1363         * config/rs6000/rs6000-tables.opt: New file (generated).
1364         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1365         rs6000/rs6000-tables.opt to extra_options.
1366         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1367         * config/rs6000/rs6000.c (rs6000_select): Remove.
1368         (processor_target_table): Move contents to rs6000-cpus.def.
1369         (darwin_rs6000_override_options): Check
1370         global_options_set.x_rs6000_cpu_index instead of
1371         rs6000_select[1].string.
1372         (rs6000_option_override_internal): Likewise.
1373         (rs6000_handle_option): Don't assert that global structures are in
1374         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1375         (rs6000_default_cpu): New variable.
1376         (rs6000_file_start): Set it instead of local default_cpu.  Check
1377         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1378         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1379         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1380         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1381         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1382         rs6000_select): Remove.
1383         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1384         Remove.
1385         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1386         * config/rs6000/t-rs6000
1387         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1388         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1389         global_options_set.x_rs6000_cpu_index instead of
1390         rs6000_select[1].string.
1391         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1392         global_options_set.x_rs6000_cpu_index instead of
1393         rs6000_select[1].string.
1394
1395 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1396
1397         * config.gcc (libgcc_tm_file): Define instead of including files
1398         from ../../libgcc/config/ in tm_file.
1399         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1400         * configure: Regenerate.
1401         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1402         libgcc_tm.h, cs-libgcc_tm.h): New.
1403         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1404         (clean): Remove libgcc_tm.h.
1405         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1406         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1407         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1408
1409 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1410
1411         PR target/48896
1412         * config/avr/avr.c (avr_ret_register): Return unsigned int
1413         instead of int.
1414         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1415         it to avr_libcall_value.
1416         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1417         expand_expr.
1418         (avr_expand_binop_builtin): Ditto.
1419         (avr_expand_unop_builtin): Ditto.
1420
1421 2011-05-10  DJ Delorie  <dj@redhat.com>
1422
1423         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1424         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1425         * config/rx/rx.c (rx_align_for_label): Add label and
1426         uses_threshold parameters.  Do not align when the label is not
1427         used enough.
1428         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1429
1430 2011-05-10  Richard Guenther  <rguenther@suse.de>
1431
1432         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1433         a series of conversions and apply foldings similar to what
1434         fold-const does.
1435         (tree_ssa_forward_propagate_single_use_vars): Call it.
1436
1437 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1438
1439         PR tree-optimization/48611
1440         PR tree-optimization/48794
1441         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1442         referenced from RESX or EH_DISPATCH arguments.
1443
1444         PR debug/48928
1445         * dfp.c (decimal_to_decnumber): Handle conversion from
1446         dconst{1,2,m1,half}.
1447
1448 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1449
1450         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1451         for !flag_prefer_avx128.
1452         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1453
1454 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1455
1456         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1457         (fold_ternary_loc): Use expr_location_or.
1458
1459 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1460
1461         PR debug/48853
1462         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1463         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1464         Pmode and mem_mode is not VOIDmode.
1465
1466 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1467
1468         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1469         TYPE_QUAL_RESTRICT): Convert to enum.
1470
1471 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1472
1473         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1474         (const_pow2_1_to_8_operand): Ditto.
1475         (const_pow2_1_to_128_operand): Ditto.
1476         (const_pow2_1_to_32768_operand): Ditto.
1477         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1478         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1479         in insn constraint to check integer value of operand 3.
1480         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1481
1482         (PINSR_MODE): New mode iterator.
1483         (sse2p4_1): New mode attribute.
1484         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1485         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1486         iterator.  Use const_int_operand instead of
1487         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1488         exact_log2 in insn constraint to check integer value of operand 3.
1489
1490 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1491
1492         * config/i386/sse.md (blendbits): Remove mode attribute.
1493         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1494         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1495         Check integer value of operand 3 in insn constraint.
1496
1497 2011-05-09  Richard Guenther  <rguenther@suse.de>
1498
1499         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1500         for diagnostics.
1501         (lto_symtab_merge): Likewise.  Do not register types here.
1502         (lto_symtab_merge_decls_2): Likewise.
1503         (lto_symtab_merge_decls_1): Likewise.
1504         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1505         * gimple.c (enum gtc_mode): Declare.
1506         (gimple_types_compatible_p): Make static.
1507
1508 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1509
1510         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1511         temporary register to match Pmode.
1512
1513 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1514
1515         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1516         and *vec_concatv4si_1_avx.
1517
1518 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1519
1520         PR rtl-optimization/48927
1521         * ira-conflicts.c (commutative_constraint_p): Use
1522         recog_data.alternative_enabled_p to disable alternatives where
1523         "enabled" attribute is false.
1524         (get_dup_num): Ditto.
1525         * ira-lives.c (single_reg_class): Ditto.
1526         (ira_implicitly_set_insn_hard_regs): Ditto.
1527
1528 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1529
1530         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1531         (dataflow_set_preserve_mem_locs): Likewise.
1532
1533 2011-05-09  Philipp Thomas  <pth@suse.de>
1534
1535         * config/mep/mep.c (mep_validate_vliw): Syntax description
1536         should not be translated.
1537
1538 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1539
1540         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1541         * config/mips/mips-tables.opt: New file (generated).
1542         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1543         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1544         MIPS_ARCH_OPTION_NATIVE): Define.
1545         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1546         mips-cpus.def.
1547         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1548         mips_parse_cpu): Remove.
1549         (mips_cpu_info_from_opt, mips_default_arch): New.
1550         (mips_handle_option): Don't assert that global structures are in
1551         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1552         (mips_option_override): Use new variables and functions to set
1553         state of these options.  Use strcmp to check for individual CPU names.
1554         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1555         definition.
1556         * config/mips/mips.opt (march=): Use ToLower and Enum.
1557         (mips): Use ToLower, Enum and Var.
1558         (mtune=): Use ToLower and Enum.
1559         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1560
1561 2011-05-08  Jan Hubicka  <jh@suse.cz>
1562
1563         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1564         Arrange type pairs to be UID ordered.
1565         (gimple_lookup_type_leader): Make inline.
1566
1567 2011-05-09  Nick Clifton  <nickc@redhat.com>
1568
1569         PR target/48899
1570         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1571         PROCESSOR_DEFAULT.
1572
1573         PR target/48897
1574         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1575         variable 's'.
1576
1577 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1578
1579         * combine.c (simplify_comparison): Abstract out parts into...
1580         (simplify_compare_const): ... new function.
1581         (try_combine): Generalize parallel arithmetic/compare combining
1582         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1583
1584 2011-05-08  Jan Hubicka  <jh@suse.cz>
1585
1586         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1587         (cgraph_create_virtual_clone): Call hooks once virtual clone
1588         is finished.
1589         * cgraph.h (cgraph_clone_node): Update prototype.
1590         * ipa-cp.c (ipcp_estimate_growth): Use
1591         estimate_ipcp_clone_size_and_time.
1592         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1593         * lto-cgraph.c (input_node): Update.
1594         * ipa-inline.c (recursive_inlining): Update.
1595         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1596         (evaluate_conditions_for_known_args): Break out from ...
1597         (evaluate_conditions_for_edge): ... here.
1598         (evaluate_conditions_for_ipcp_clone): New function.
1599         (inline_node_duplication_hook): Update clone summary based
1600         on parameter map.
1601         (estimate_callee_size_and_time): Rename to ...
1602         (estimate_node_size_and_time): take NODE instead of EDGE;
1603         take POSSIBLE_TRUTHS as argument.
1604         (estimate_callee_size_and_time): Update.
1605         (estimate_ipcp_clone_size_and_time): New function.
1606         (do_estimate_edge_time): Update.
1607
1608 2011-05-08  Richard Guenther  <rguenther@suse.de>
1609
1610         PR middle-end/48908
1611         PR middle-end/48905
1612         * expmed.c (expand_shift_1): Compute adjusted constant shift
1613         amount manually.
1614
1615 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1616
1617         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1618
1619 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1620
1621         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1622
1623 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1624
1625         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1626
1627 2011-05-07  Jan Hubicka  <jh@suse.cz>
1628
1629         * ipa-inline-transform.c (inline_call): Account when program size
1630         decreases.
1631         * ipa-inline.c (relative_time_benefit): New function.
1632         (edge_badness): Reorganize to be power 2 based; fix thinko when
1633         computing badness for negative growth; update comments to match
1634         reality; better dumps.
1635
1636 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1637
1638         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1639         type to bool and adjust comment.
1640         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1641         (fold_mathfn_compare): Remove calls to global_bindings_p.
1642         (fold_inf_compare): Likewise.
1643         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1644         * c-tree.h (global_bindings_p): Adjust prototype.
1645         * c-decl.c (global_bindings_p): Return bool and simplify.
1646
1647 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1648
1649         PR tree-optimization/48837
1650         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1651         when accumulator transformation is performed.
1652
1653 2011-05-06  Jan Hubicka  <jh@suse.cz>
1654
1655         * i386.h (ix86_tune_indices): Add
1656         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1657         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1658         * i386.c (initial_ix86_tune_features): Add
1659         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1660         (software_prefetching_beneficial_p): Remove predicate.
1661         (ix86_option_override_internal): Use new macro.
1662
1663 2011-05-06  Jan Hubicka  <jh@suse.cz>
1664
1665         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1666
1667 2011-05-06  Jan Hubicka  <jh@suse.cz>
1668
1669         * cgraph.c (cgraph_add_thunk): Create real function node instead
1670         of alias node; finalize it and mark needed/reachale; arrange visibility
1671         to be right and add it into the corresponding same comdat group list.
1672         (dump_cgraph_node): Dump thunks.
1673         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1674         cgraph_function_with_gimple_body_p,
1675         cgraph_first_function_with_gimple_body,
1676         cgraph_next_function_with_gimple_body): New functions.
1677         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1678         New macros.
1679         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1680         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1681         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1682         devirtualization when optimizing.
1683         (verify_cgraph_node): Verify thunks.
1684         (cgraph_analyze_function): Analyze thunks.
1685         (cgraph_mark_functions_to_output): Output thunks only in combination
1686         with function they are assigned to.
1687         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1688         alias into normal node.
1689         (assemble_thunks): New functoin.
1690         (cgraph_expand_function): Use it.
1691         * lto-cgraph.c (lto_output_node): Stream thunks.
1692         (input_overwrite_node): Stream in thunks.
1693         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1694         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1695         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1696         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1697         (inline_analyze_function): Do not care about thunk jump functions.
1698         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1699         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1700         cgraph_function_with_gimple_body_p.
1701         * passes.c (do_per_function_toporder): Use
1702         cgraph_function_with_gimple_body_p.
1703         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1704         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1705         (function_called_by_processed_nodes_p): Likewise.
1706
1707 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1708
1709         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1710         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1711         entries.
1712         (mabi=): Replace with separate entries for mabi=altivec,
1713         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1714         mabi=ieeelongdouble and mabi=ibmlongdouble.
1715         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1716         check for -mabi=spe without SPE ABI support here.
1717         (rs6000_handle_option): Replace OPT_mabi_ handling with
1718         OPT_mabi_altivec and OPT_mabi_spe handling.
1719
1720 2011-05-06  Cary Coutant  <ccoutant@google.com>
1721
1722         * dwarf2out.c (contains_subprogram_definition): New function.
1723         (should_move_die_to_comdat): Call it.
1724
1725 2011-05-06  Jeff Law  <law@redhat.com>
1726
1727         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1728         remove_ctrl_stmt_and_useless_edges.
1729         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1730         (fixup_template_block, thread_single_edge): Likewise.
1731         (mark_threaded_blocks): Use THREAD_TARGET.
1732
1733 2011-05-06  Alan Modra  <amodra@gmail.com>
1734
1735         PR target/48900
1736         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1737         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1738
1739 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1740
1741         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1742         constraint modifier to "r".
1743
1744 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1745
1746         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1747         fall through for OPT_mcmodel_.
1748
1749 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1750
1751         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1752         instruction sizes.
1753         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1754
1755 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1756
1757         PR target/47930
1758         * config/arm/arm.opt (marm): Document it.
1759         (mthumb): Reject negative variant.
1760
1761 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1762
1763         PR target/48898
1764         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1765         Fix typo in "ccvt" variable name.
1766
1767 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1768
1769         PR target/48895
1770         * config/vms/vms-ar.c (main): Remove cwd variable.
1771
1772 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1773
1774         PR debug/48902
1775         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1776
1777 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1778
1779         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1780         * gimplify.c (gimplify_switch_expr): Likewise.
1781         * omp-low.c (expand_omp_sections): Likewise.
1782         * tree-eh.c (lower_try_finally_switch): Likewise.
1783         (lower_eh_dispatch): Likewise.
1784         * tree.h (build_case_label): Declare.
1785         * tree.c (build_case_label): Define.
1786
1787 2011-05-05  Jason Merrill  <jason@redhat.com>
1788
1789         PR c++/40975
1790         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1791         (copy_statement_list): Don't recurse.
1792         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1793         STATEMENT_LIST.
1794
1795 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1796
1797         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1798         through from -mfpu= handling.
1799         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1800
1801 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1802
1803         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1804         POST_MODIFY.
1805
1806 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1807
1808         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1809         for 11.31.
1810         (hppa[12]*-*-hpux11*): Ditto.
1811         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1812         * config/ia64/hpux-unix2003.h: New.
1813         * config/pa/pa-hpux1131.opt: New.
1814         * config/pa/pa-hpux1131.h: New.
1815         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1816         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1817         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1818
1819 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1820
1821         PR debug/48853
1822         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1823         instead of mode as 3rd argument to recursive call.
1824         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1825         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1826         VOIDmode.
1827         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1828         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1829         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1830         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1831
1832 2011-05-05  Julian Brown  <julian@codesourcery.com>
1833
1834         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1835         parenthesis in D-register case.
1836
1837 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1838
1839         * opt-functions.awk (var_type_struct): Handle Enum options.
1840         * optc-gen.awk: Don't check range of variables of character type.
1841         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1842         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1843         rs6000_sdata_name, rs6000_explicit_options): Remove.
1844         (rs6000_option_override_internal): Check for -malign-power here.
1845         Use global_options_set instead of rs6000_explicit_options.
1846         (rs6000_parse_fpu_option): Remove.
1847         (rs6000_handle_option): Access variables via opts and opts_set
1848         pointers.  Use error_at and warning_at.  Add fall-through
1849         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1850         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1851         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1852         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1853         here.  Don't use rs6000_parse_fpu_option.
1854         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1855         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1856         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1857         (mrecip=): Use Var.
1858         (mspe): Use Var and Save.
1859         (mtraceback=): Use Enum and Var.
1860         (rs6000_traceback_type): New Enum and EnumValue entries.
1861         (mfloat-gprs=): Use Enum, Var and Save.
1862         (rs6000_float_gprs): New Enum and EnumValue entries.
1863         (mlong-double-): use Var and Save.
1864         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1865         (malign-): Use Enum and Var.
1866         (rs6000_alignment_flags): New Enum and EnumValue entries.
1867         (mfpu=): Use Enum.
1868         (fpu_type_t): New Enum and EnumValue entries.
1869         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1870         global_options_set instead of rs6000_explicit_options.
1871         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1872         global_options_set instead of rs6000_explicit_options.
1873         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1874         global_options_set instead of rs6000_explicit_options.
1875         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1876         global_options_set instead of rs6000_explicit_options.
1877         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1878         global_options_set instead of rs6000_explicit_options.
1879         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1880         global_options_set instead of rs6000_explicit_options.
1881         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1882         definition.
1883         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1884         global_options_set instead of rs6000_explicit_options.
1885         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1886         (rs6000_cmodel): New Enum and EnumValue entries.
1887         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1888         global_options_set instead of rs6000_explicit_options.
1889         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1890         (mtls-size=): Use Enum and Var.
1891         (rs6000_tls_size): New Enum and EnumValue entries.
1892
1893 2011-05-05  Michael Matz  <matz@suse.de>
1894
1895         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1896         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1897         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1898         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1899         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1900         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1901         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1902         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1903         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1904         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1905         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1906         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1907         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1908         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1909         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1910         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1911
1912 2011-05-05  Richard Guenther  <rguenther@suse.de>
1913
1914         * expmed.c (expand_variable_shift): Rename to ...
1915         (expand_shift_1): ... this.  Take an expanded shift amount.
1916         For rotates recurse directly not building trees for the shift amount.
1917         (expand_variable_shift): Wrap around expand_shift_1.
1918         (expand_shift): Adjust.
1919
1920 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1921
1922         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1923
1924 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1925
1926         * tree.h (get_pending_sizes): Remove prototype.
1927         (put_pending_size): Likewise.
1928         (put_pending_sizes): Likewise.
1929         * stor-layout.c (pending_sizes): Delete.
1930         (get_pending_sizes): Likewise.
1931         (put_pending_size): Likewise.
1932         (put_pending_sizes): Likewise.
1933         (variable_size): Do not call put_pending_size and tidy up.
1934         * function.h (struct function): Remove dont_save_pending_sizes_p.
1935         * lto-streamer-in.c (input_function): Do not stream it.
1936         * lto-streamer-out.c (output_function): Likewise.
1937         * tree-inline.c (initialize_cfun): Do not copy it.
1938         * c-decl.c (store_parm_decls): Do not set it.
1939         * omp-low.c (create_task_copyfn): Likewise.
1940         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1941
1942 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1943
1944         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1945         conditions.
1946         (*movdf_internal): Ditto.
1947         (*movdf_internal_nointeger): Ditto.
1948         (*movsf_internal): Ditto.
1949
1950 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1951
1952         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1953         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1954         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1955         (c_variable_size): Remove.
1956         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1957         call put_pending_sizes.
1958         (get_parm_info): Add parameter expr.  Use it to set
1959         arg_info->pending_sizes.
1960         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1961         get_pending_sizes.
1962         * c-parser.c (c_parser_parms_declarator): Update call to
1963         c_parser_parms_list_declarator.
1964         (c_parser_parms_list_declarator): Take parameter expr.  Update
1965         call to push_parm_decl.  Update recursive call.  Don't call
1966         get_pending_sizes.  Update calls to get_parm_info.
1967         (c_parser_objc_method_definition): Update calls to
1968         c_parser_objc_method_decl and objc_start_method_definition.
1969         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1970         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1971         grokparm.
1972         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1973         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1974         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1975
1976 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1977
1978         PR pch/45979
1979         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1980         __ARM_EABI__ hosts.
1981
1982 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1983
1984         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1985         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1986         (spu_output_mi_thunk): New function.
1987
1988 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1989
1990         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1991         targetm.asm_out.print_operand.
1992         * config/sol2.c: Include target.h.
1993
1994 2011-05-04  Jan Hubicka  <jh@suse.cz>
1995
1996         * ipa-inline.c (reset_edge_caches): New function.
1997         (update_caller_keys): Add check_inlinablity_for; do not
1998         reset edge caches; remove now unnecesary loop.
1999         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2000         (update_all_callee_keys): Likewise.
2001         (inline_small_functions): Sanity check cache; update code
2002         recomputing it.
2003
2004 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2005
2006         PR rtl-optimization/47612
2007         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2008         as the last insn of the sequence to be moved.
2009
2010 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2011
2012         PR fortran/48864
2013         * doc/invoke.texi (Ofast): Document that it
2014         enables Fortran's -fno-protect-parens.
2015
2016 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2017
2018         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2019
2020 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2021
2022         * stor-layout.c (variable_size): Do not issue errors.
2023
2024 2011-05-04  Richard Guenther  <rguenther@suse.de>
2025
2026         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2027         for array-ref indices.
2028         (tree_coverage_counter_addr): Likewise.
2029         (build_fn_info_type): Use size_int for index types.
2030         (build_gcov_info): Likewise.
2031
2032 2011-05-04  Richard Guenther  <rguenther@suse.de>
2033
2034         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2035         to build_int_cst.
2036         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2037         for constructor indices.
2038         (push_init_level): Likewise.
2039
2040 2011-05-04  Richard Guenther  <rguenther@suse.de>
2041
2042         * explow.c (promote_mode): Move variable declarations before code.
2043
2044 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2045
2046         * tree.h (build_function_type_array): Declare.
2047         (build_varargs_function_type_array): Declare.
2048         (build_function_type_vec, build_varargs_function_type_vec): Define.
2049         * tree.c (build_function_type_array_1): New function.
2050         (build_function_type_array): New function.
2051         (build_varargs_function_type_array): New function.
2052
2053 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2054
2055         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2056         before setting STMT_VINFO_TYPE.
2057
2058 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2059
2060         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2061         instead of spu_pass_by_reference.
2062
2063 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2064
2065         * calls.c (emit_library_call_value_1): Invoke
2066         promote_function_mode hook on libcall arguments.
2067         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2068         argument being NULL.
2069         * targhooks.c (default_promote_function_mode): Lisewise.
2070         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2071         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2072
2073         * doc/tm.texi: Document that TYPE argument might be NULL.
2074
2075 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2076
2077         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2078
2079 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2080
2081         From Bernd Schmidt
2082         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2083
2084 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2085
2086         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2087         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2088         Move ...
2089         * mips-tfile.c: ... here.
2090         Don't include coretypes.h, tm.h, filenames.h.
2091         (saber_stop): Remove definition and all calls.
2092         [__SABER__]: Remove.
2093         (__LINE__): Remove default.
2094         (Size_t, Ptrdiff_t): Remove definitions.
2095         Replace by size_t, ptrdiff_t.
2096         [!MIPS_DEBUGGING_INFO]: Remove.
2097         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2098         (progname): Add const.
2099         (STATIC): Remove.
2100         Replace all uses by static.
2101         (ALIGN_SYMTABLE_OFFSET): Remove default.
2102         * mips-tdump.c: Don't include coretypes.h, tm.h.
2103         Remove !MIPS_IS_STAB guard.
2104         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2105         $(TM_H), filenames.h dependencies.
2106         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2107
2108 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2109
2110         From Jie Zhang
2111         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2112         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2113
2114 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2115
2116         From Bernd Schmidt
2117         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2118         account and save/restore RETS.
2119         (PROFILE_BEFORE_PROLOGUE): Define.
2120         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2121         the push insn to use predecrement.
2122
2123 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2124
2125         From Jie Zhang
2126         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2127
2128 2011-05-04  Nick Clifton  <nickc@redhat.com>
2129
2130         * config/mn10300/mn10300.c: Include cfgloop.h.
2131         (DUMP): New macro.
2132         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2133         Lcc or a FLcc insn into the instruction stream.
2134         (mn10300_block_contains_call): New function.  Returns true if the
2135         given basic block contains a CALL insn.
2136         (mn10300_loop_contains_call_insn): New function.  Returns true if
2137         the given loop contains a CALL insn.
2138         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2139         to use the SETLB and Lcc or FLcc insns.
2140         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2141         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2142         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2143         disable the SETLB optimization.
2144         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2145         __SETLB__ or __NO_SETLB__.
2146         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2147         (movsf_internal): Handle MDR register.
2148         (cmpsi): Make visible.
2149         (setlb): New pattern.
2150         (Lcc): New pattern.
2151         (FLcc): New pattern.
2152
2153 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2154
2155         PR target/48860
2156         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2157         for reg<->xmm moves.
2158         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2159         (vec_concatv2di_rex64_sse): Ditto.
2160         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2161         (*vec_extractv2di_1_rex64): Ditto.
2162
2163         Revert:
2164         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2165
2166         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2167         reg<->xmm moves.
2168         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2169
2170 2011-05-04  Richard Guenther  <rguenther@suse.de>
2171
2172         * tree.h (int_const_binop): Remove notrunc argument.
2173         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2174         create integer constants that are properly truncated.
2175         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2176         (const_binop): Remove zero notrunc argument to int_const_binop.
2177         (size_binop_loc): Likewise.
2178         (fold_div_compare): Likewise.
2179         (maybe_canonicalize_comparison_1): Likewise.
2180         (fold_comparison): Likewise.
2181         (fold_binary_loc): Likewise.
2182         (multiple_of_p): Likewise.
2183         * expr.c (store_constructor): Likewise.
2184         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2185         (maybe_fold_stmt_addition): Likewise.
2186         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2187         * stor-layout.c (layout_type): Likewise.
2188         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2189         * tree-sra.c (build_ref_for_offset): Likewise.
2190         (build_user_friendly_ref_for_offset): Likewise.
2191         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2193         * tree-ssa-loop-niter.c (inverse): Likewise.
2194         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2195         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2196         * tree-switch-conversion.c (check_range): Likewise.
2197         (build_constructors): Likewise.
2198         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2199         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2200         (extract_range_from_assert): Likewise.
2201         (vrp_int_const_binop): Likewise.
2202         (extract_range_from_binary_expr): Likewise.
2203         (extract_range_from_unary_expr): Likewise.
2204         (check_array_ref): Likewise.
2205         (find_case_label_range): Likewise.
2206         (simplify_div_or_mod_using_ranges): Likewise.
2207         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2208         comparing case labels for merging.
2209
2210 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2211
2212         * dwarf2out.c (debug_str_hash_forced): Removed.
2213         (gen_label_for_indirect_string): Removed.
2214         (get_debug_string_label): Removed.
2215         (AT_string_form): Generate label directly.
2216         (output_indirect_string): Test indirect_string_node for
2217         DW_FORM_strp instead of checking label and refcount.
2218         (prune_indirect_string): Removed.
2219         (prune_unused_types): Don't check debug_str_hash_forced or
2220         call prune_indirect_string.
2221
2222 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2223
2224         PR other/48093
2225         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2226
2227 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2228
2229         PR debug/47994
2230         PR debug/47919
2231         * combine.c (try_combine): Skip debug insns at m_split tests.
2232
2233 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2234
2235         PR42288
2236         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2237         when info_section_emitted.
2238
2239 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2240
2241         * config/mips/mips-opts.h: New.
2242         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2243         to mips-opts.h.
2244         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2245         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2246         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2247         via opts pointer.
2248         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2249         mips-opts.h.
2250         (mips_abi, mips_code_readable): Don't declare.
2251         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2252         (mabi=): Use Enum and Var.
2253         (mips_abi): New Enum and EnumValue entries.
2254         (mcode-readable=): Use Enum and Var.
2255         (mips_code_readable_setting): New Enum and EnumValue entries.
2256         (mr10k-cache-barrier=): Use Enum and Var.
2257         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2258
2259 2011-05-03  Jan Hubicka  <jh@suse.cz>
2260
2261         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2262         replace hash by pointer map.
2263         (cgraph_node_set_element_def, cgraph_node_set_element,
2264         const_cgraph_node_set_element, varpool_node_set_element_def,
2265         varpool_node_set_element, const_varpool_node_set_element): Remove.
2266         (free_cgraph_node_set, free_varpool_node_set): New function.
2267         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2268         * tree-emutls.c: Free varpool node set.
2269         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2270         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2271         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2272         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2273         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2274         Move here from ipa.c; implement using pointer_map
2275         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2276         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2277         debug_cgraph_node_set, varpool_node_set_new,
2278         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2279         dump_varpool_node_set, debug_varpool_node_set):
2280         Move to ipa-uitls.c.
2281         * passes.c (ipa_write_summaries): Update.
2282
2283 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2284
2285         From Mike Frysinger:
2286         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2287         bf542/bf544/bf547/bf548/bf549.
2288
2289 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2290
2291         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2292
2293 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2294
2295         From Bernd Schmidt:
2296         * config/bfin/bfin.md (MOVCC): New mode_macro.
2297         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2298         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2299         comments from generated assembly.
2300
2301 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2302
2303         From Bernd Schmidt
2304         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2305         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2306         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2307         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2308         * config/bfin/lib1funcs.asm (___muldi3): New function.
2309
2310 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2311
2312         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2313         build_function_type_list instead of build_function_type.
2314         Rearrange initialization of `args' to do so.
2315
2316 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2317
2318         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2319         instead of build_function_type.
2320
2321 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2322
2323         * config/rs6000/rs6000.c (spe_init_builtins): Call
2324         build_function_type_list instead of build_function_type.
2325         (paired_init_builtins, altivec_init_builtins): Likewise.
2326         (builtin_function_type): Likewise.
2327
2328 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2329
2330         * config/sh/sh.c (sh_media_init_builtins): Call
2331         build_function_type_list instead of build_function_type.
2332
2333 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2334
2335         * config/sparc/sparc.c (sparc_file_end): Call
2336         build_function_type_list instead of build_function_type.
2337
2338 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2339
2340         * config/alpha/alpha.c (alpha_init_builtins): Call
2341         build_function_type_list instead of build_function_type.
2342
2343 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2344
2345         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2346         build_function_type_list instead of build_function_type.
2347
2348 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2349
2350         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2351         build_function_type_list instead of build_function_type.
2352         Delete `endlink' variable.
2353
2354 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2355
2356         * config/avr/avr.c (avr_init_builtins): Call
2357         build_function_type_list instead of build_function_type.
2358
2359 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2360
2361         * config/picochip/picochip.c (picochip_init_builtins): Call
2362         build_function_type_list instead of build_function_type.
2363         Delete `endlink' variable.
2364
2365 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2366
2367         * config/bfin/bfin.c (bfin_init_builtins): Call
2368         build_function_type_list instead of build_function_type.
2369
2370 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2371
2372         From Bernd Schmidt
2373         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2374         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2375
2376 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2377
2378         From Jie Zhang:
2379         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2380         libbffastfp overrides libgcc when -mfast-fp.
2381
2382 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2383
2384         Originally from Bernd Schmidt
2385         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2386         * config/bfin/bfin.c (override_options): Test it and error if
2387         TARGET_FDPIC.
2388
2389 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2390
2391         Originally From Bernd Schmidt
2392         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2393         FD-PIC.
2394
2395 2011-05-03  Jeff Law  <law@redhat.com>
2396
2397         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2398         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2399         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2400         than accessing AUX field directly.  Free the AUX field before
2401         clearing it.
2402         (thread_block, thread_through_loop_header): Likewise.
2403         (thread_single_edge, mark_threaded_blocks): Likewise.
2404         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2405         (register_jump_thread): Do not attempt to thread to a NULL edge.
2406
2407 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2408
2409         * function.c (init_function_start): Call decide_function_section.
2410         * varasm.c (decide_function_section): New function.
2411         (assemble_start_function): When not using
2412         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2413         or first_function_block_is_cold.
2414         * rtl.h (decide_function_section): Declare.
2415
2416 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2417             Jakub Jelinek  <jakub@redhat.com>
2418
2419         PR target/48774
2420         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2421         only succeed if req_mode is the same as set_mode.
2422
2423 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2424
2425         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2426         * genemit.c (gen_exp): Handle RETURN.
2427         * emit-rtl.c (verify_rtx_sharing): Likewise.
2428         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2429         * rtl.c (copy_rtx): RETURN is shared.
2430         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2431         (ret_rtx): New.
2432         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2433         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2434         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2435         * config/cris/cris.c (cris_expand_return): Likewise.
2436         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2437         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2438         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2439         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2440         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2441         Likewise.
2442         * config/v850/v850.c (expand_epilogue): Likewise.
2443         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2444         * config/arm/arm.md (epilogue): Likewise.
2445         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2446         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2447         variable to ret_reg.
2448
2449 2011-05-03  Richard Guenther  <rguenther@suse.de>
2450
2451         PR lto/48846
2452         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2453         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2454         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2455
2456 2011-05-03  Richard Guenther  <rguenther@suse.de>
2457
2458         * c-decl.c (grokdeclarator): Instead of looking at
2459         TREE_OVERFLOW check if the constant fits in the index type.
2460
2461 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2462
2463         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2464         (vec_store_lanes<mode><mode>): Likewise.
2465
2466 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2467
2468         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2469         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2470         convert_optab_index values.
2471         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2472         * genopinit.c (optabs): Initialize the new optabs.
2473         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2474         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2475         (expand_STORE_LANES): New functions.
2476         * tree.h (build_array_type_nelts): Declare.
2477         * tree.c (build_array_type_nelts): New function.
2478         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2479         (vect_model_load_cost): Likewise.
2480         (vect_store_lanes_supported, vect_load_lanes_supported)
2481         (vect_record_strided_load_vectors): Declare.
2482         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2483         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2484         (vect_transform_strided_load): Split out statement recording into...
2485         (vect_record_strided_load_vectors): ...this new function.
2486         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2487         (write_vector_array, create_array_ref): New functions.
2488         (vect_model_store_cost): Add store_lanes_p argument.
2489         (vect_model_load_cost): Add load_lanes_p argument.
2490         (vectorizable_store): Try to use store-lanes functions for
2491         interleaved stores.
2492         (vectorizable_load): Likewise load-lanes and loads.
2493         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2494         to vect_model_store_cost.
2495         (vect_build_slp_tree): Likewise vect_model_load_cost.
2496
2497 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2498
2499         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2500         * hooks.c (hook_bool_mode_uhwi_false): New function.
2501         * target.def (array_mode_supported_p): New hook.
2502         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2503         * doc/tm.texi: Regenerate.
2504         * stor-layout.c (mode_for_array): New function.
2505         (layout_type): Use it.
2506         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2507         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2508
2509 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2510
2511         PR target/48723
2512         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2513         for -fstack-check if the size to allocate is negative.
2514
2515 2011-05-02  Lawrence Crowl  <crowl@google.com>
2516
2517         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2518         (timevar_cond_start): New for starting a timer only when it is not
2519         already running.
2520         (timevar_cond_stop): New for stopping a timer when it was not already
2521         running.
2522
2523         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2524         (timevar_cond_start): New as above.
2525         (timevar_cond_stop): New as above.
2526
2527         * timevar.def: Add start/stop timers for compiler phases,
2528         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2529         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2530         and TV_PHASE_FINALIZE.
2531         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2532         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2533         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2534         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2535         Make unused TV_OVERLOAD into a start/stop timer.
2536
2537         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2538         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2539         to indicate that they are start/stop timers.
2540
2541         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2542         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2543         Move initialization to do_compile.
2544         (do_compile): Add initialization from above.
2545         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2546
2547         * c-decl.c (c_write_global_declarations): Add start/stop of
2548         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2549
2550         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2551         or TV_PARSE_INLINE, as appropriate.
2552         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2553         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2554
2555 2011-05-02  Jason Merrill  <jason@redhat.com>
2556
2557         PR c++/40975
2558         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2559
2560 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2561
2562         PR c/35445
2563         * c-decl.c (finish_decl): Only create a composite if the types are
2564         compatible.
2565
2566 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2567
2568         * config/fr30/fr30-protos.h (Mmode): Don't define.
2569         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2570         definition where used.
2571         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2572         define.  Expand definitions where used.
2573         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2574         Expand definitions where used.
2575         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2576         rx_function_arg, rx_function_arg_advance,
2577         rx_function_arg_boundary): Expand definitions of those macros.
2578         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2579         definition where used.
2580
2581 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2582
2583         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2584         reg<->xmm moves.
2585         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2586         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2587         with *movv2sf_internal_rex64_avx.
2588         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2589         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2590         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2591         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2592         "vex" in "prefix" attribute calculation.
2593         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2594
2595 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2596
2597         PR target/47951
2598         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2599         inputs match the output.
2600
2601 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2602
2603         PR target/47955
2604         * config/m68k/m68k.c (m68k_expand_prologue): Set
2605         current_function_static_stack_size.
2606
2607 2011-05-02   Jan Hubicka  <jh@suse.cz>
2608
2609         * lto-streamer.c (lto_streamer_cache_insert_1,
2610         lto_streamer_cache_lookup, lto_streamer_cache_create,
2611         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2612         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2613
2614 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2615
2616         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2617         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2618         config/m68k/t-opts: New files.
2619         * config/m68k/m68k-tables.opt: New file (generated).
2620         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2621         extra_options and m68k/t-opts to tmake_file.
2622         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2623         (all_isas): Initialize using m68k-isas.def.
2624         (all_microarchs): Initialize using m68k-microarchs.def.
2625         (m68k_find_selection): Remove.
2626         (m68k_handle_option): Don't assert that global structures are in
2627         use.  Use error_at.  Access variables via opts pointer.  Don't
2628         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2629         directly for -m68020-40 and -m68020-60.
2630         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2631         m68k_tune_entry here.
2632         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2633         to m68k-opts.h.
2634         (m68k_library_id_string): Remove declaration.
2635         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2636         (m68k_library_id_string): New Variable.
2637         (march=, mcpu=, mtune=): Use Enum and Var.
2638
2639 2011-05-02  Richard Guenther  <rguenther@suse.de>
2640
2641         * varasm.c (output_constructor_regular_field): Compute zero-based
2642         index with double-ints.  Make sure to ICE instead of producing
2643         wrong code.
2644         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2645         in asserts.  Properly use a signed type.
2646
2647 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2648
2649         * config/i386/sse.md (V): New mode iterator.
2650         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2651         TARGET_SSE2.
2652         (V_256): Rename from AVX256MODE.
2653         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2654         condition to all users.
2655         (VF1): Ditto.
2656         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2657         condition to all users.
2658         (VF_128): Make V4SF mode unconditional.
2659         (VF_256): Rename from AVX256MODEF2P.
2660         (VI4F_128): Rename from SSEMODE4S.
2661         (VI8F_128): Rename from SSEMODE2D.
2662         (VI4F_256): Rename from AVX256MODE8P.
2663         (VI8F_256): Rename from AVX256MODE4P.
2664         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2665         (ssescalarmodesuffix): Remove SF and DF modes.
2666         (SSEMODE124): Remove.
2667         (SSEMODE1248): Ditto.
2668         (SSEMODEF2P): Ditto.
2669         (AVXMODEF2P): Ditto.
2670         (AVXMODEFDP): Ditto.
2671         (AVXMODEFSP): Ditto.
2672         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2673         unconditional.
2674         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2675         unconditional.
2676         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2677         xop_pcmov_<mode>256.  Use V mode iterator.
2678
2679         Adjust RTX patterns globally for renamed mode attributes.
2680
2681 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2682
2683         * haifa-sched.c (sched_emit_insn): Emit insn before first
2684         non-scheduled insn.  Inform back-end about new insn.  Add
2685         new insn to scheduled_insns list.
2686
2687 2011-05-02  Richard Guenther  <rguenther@suse.de>
2688
2689         PR tree-optimization/48822
2690         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2691         (process_scc): Indicate which iteration we start.
2692
2693 2011-05-02  Jan Hubicka  <jh@suse.cz>
2694
2695         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2696         (lto_section_overrun): New.
2697         * lto-section-out.c (append_block): Rename to ...
2698         (lto_append_block): ... this one; export.
2699         (lto_output_1_stream): Move lto lto-streamer.h
2700         (lto_output_data_stream): Update.
2701         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2702         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2703         functions.
2704
2705 2011-05-02  Richard Guenther  <rguenther@suse.de>
2706
2707         * tree.c (tree_code_counts): New global array.
2708         (record_node_allocation_statistics): Count individual tree codes.
2709         (dump_tree_statistics): Dump individual code stats.
2710
2711 2011-05-01  Jan Hubicka  <jh@suse.cz>
2712
2713         * ipa-inline.c (caller_growth_limits): Fix thinko when
2714         looking for largest stack frame.
2715         * ipa-inline.h (dump_inline_summary): Declare.
2716         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2717         on stack usage.
2718         (dump_inline_summary): Export.
2719         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2720
2721 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2722
2723         * reginfo.c (memory_move_cost): Change rclass argument type form
2724         'enum reg_class' to reg_class_t.
2725         * reload.h (memory_move_cost): Update prototype.
2726         * postreload.c reload_cse_simplify_set): Change type dclass var to
2727         reg_class_t.
2728         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2729         Update prototype.
2730         (ira_allocate_and_set_costs): Change aclass argument type form
2731         'enum reg_class' to reg_class_t.
2732         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2733         Change aclass argument type to reg_class_t.
2734         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2735         to reg_class_t.
2736         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2737         memory_move_cost call.
2738
2739         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2740         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2741         Change type tmp var to reg_class_t.
2742
2743 2011-04-30  Jan Hubicka  <jh@suse.cz>
2744
2745         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2746         inlining into function with flatten attribute.
2747         (want_inline_small_function_p): Be more realistic about inlining
2748         cold calls where callee size grows.
2749
2750 2011-04-30  Jan Hubicka  <jh@suse.cz>
2751
2752         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2753         flags.
2754
2755 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2756
2757         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2758         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2759         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2760         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2761         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2762         (print_operand): Rename to...
2763         (sparc_print_operand): ...this. Make static. Adjust
2764         sparc_print_operand function call.
2765         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2766         functions.
2767
2768 2011-04-30  Jan Hubicka  <jh@suse.cz>
2769
2770         PR middle-end/48752
2771         * ipa-inline.c (early_inliner): Disable when doing late
2772         addition of function.
2773
2774 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2775
2776         * dwarf2out.c (get_address_mode): New inline.
2777         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2778         if not dwarf_strict emit
2779         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2780         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2781         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2782         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2783         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2784         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2785         mem_loc_descriptor callers.
2786         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2787         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2788         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2789         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2790         (base_types): New variable.
2791         (get_base_type_offset, calc_base_type_die_sizes,
2792         base_type_for_mode, mark_base_types, base_type_cmp,
2793         move_marked_base_types): New functions.
2794         (calc_die_sizes): Assert that die_offset is 0 or equal to
2795         next_die_offset.
2796         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2797         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2798         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2799         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2800         (gen_subprogram_die): Don't give up on call site parameters
2801         with non-integral or large integral modes.  Adjust
2802         mem_loc_descriptor callers.
2803         (prune_unused_types): Call prune_unused_types_mark on base_types
2804         vector entries.
2805         (resolve_addr): Call mark_base_types.
2806         (dwarf2out_finish): Call move_marked_base_types.
2807
2808         PR tree-optimization/48809
2809         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2810         type.
2811         (gen_inbound_check): Don't compute index_expr - range_min in utype
2812         again, instead reuse SSA_NAME initialized in build_arrays.
2813         Remove two useless gsi_for_stmt calls.
2814
2815 2011-04-29  Jeff Law  <law@redhat.com>
2816
2817         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2818
2819 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2820
2821         * cgraph.h (cgraph_postorder): Remove declaration.
2822         * ipa-utils.h (ipa_free_postorder_info): Declare.
2823         (ipa_reverse_postorder): Likewise.
2824         * cgraphunit.c: Include ipa-utils.h.
2825         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2826         * ipa-inline.c: Include ipa-utils.h.
2827         (ipa_inline): Update call to ipa_reverse_postorder.
2828         * ipa-pure-const.c (propagate_pure_const): Update call to
2829         ipa_reduced_postorder and ipa_print_order.  Call
2830         ipa_free_postorder_info to clean up.
2831         (propagate_nothrow): Likewise.
2832         * ipa-reference.c (propagate): Removed a useless call to
2833         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2834         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2835         * ipa.c: Include ipa-utils.h.
2836         (ipa_profile): Update call to ipa_reverse_postorder.
2837         (cgraph_postorder): Moved to...
2838         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2839         (ipa_utils_print_order): Renamed to ipa_print_order.
2840         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2841         comments.
2842         (ipa_free_postorder_info): New function.
2843         * passes.c: Include ipa-utils.h.
2844         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2845         (ipa_write_summaries): Likewise.
2846         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2847         (cgraphunit.o): Likewise.
2848         (ipa.o): Likewise.
2849         (ipa-inline.o): Likewise.
2850
2851 2011-04-29  Jan Hubicka  <jh@suse.cz>
2852
2853         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2854         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2855         * ipa-inline.h (clause_t): Turn into unsigned int.
2856         * ipa-inline-analysis.c (add_clause): Do more simplification.
2857         (and_predicates): Shortcut more cases.
2858         (predicates_equal_p): Move forward; check that clauses are properly
2859         ordered.
2860         (or_predicates): Shortcut more cases.
2861         (edge_execution_predicate): Rewrite as...
2862         (set_cond_stmt_execution_predicate): ... this function; handle
2863         __builtin_constant_p.
2864         (set_switch_stmt_execution_predicate): New .
2865         (compute_bb_predicates): New.
2866         (will_be_nonconstant_predicate): Update TODO.
2867         (estimate_function_body_sizes): Use compute_bb_predicates
2868         and free them later, always try to estimate if stmt is constant.
2869         (estimate_time_after_inlining, estimate_size_after_inlining):
2870         Gracefully handle optimized out edges.
2871         (read_predicate): Fix off by one error.
2872
2873 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2874
2875         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2876
2877 2011-04-27  Xinliang David Li  <davidxl@google.com>
2878
2879         * tree-profile.c (init_ic_make_global_vars): Set
2880         tls attribute on ic vars.
2881         * coverage.c (coverage_end_function): Initialize
2882         function_list with zero.
2883
2884 2011-04-29  Richard Guenther  <rguenther@suse.de>
2885
2886         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2887         for the type of the result.
2888         (fold_builtin_isascii): Likewise.
2889         (fold_builtin_toascii): Use integer_type_node where appropriate.
2890         (fold_builtin_logb): Likewise.
2891         (fold_builtin_frexp): Likewise.
2892         (fold_builtin_strstr): Likewise.
2893         (fold_builtin_strpbrk): Likewise.
2894         (fold_builtin_fputs): Likewise.
2895         (fold_builtin_sprintf): Likewise.
2896         (fold_builtin_snprintf): Likewise.
2897         (fold_builtin_printf): Likewise.
2898         (do_mpfr_remquo): Use a proper type for the assigned constant.
2899         (do_mpfr_lgamma_r): Likewise.
2900         * dwarf2out.c (resolve_one_addr): Use size_int.
2901         * except.c (init_eh): Likewise.
2902         (assign_filter_values): Use integer_type_node for filter values.
2903         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2904         indices.
2905         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2906         for EH region numbers.
2907         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2908         for the shift amount.
2909
2910 2011-04-29  Richard Guenther  <rguenther@suse.de>
2911
2912         * expr.h (expand_shift): Rename to ...
2913         (expand_variable_shift): ... this.
2914         (expand_shift): Take a constant shift amount.
2915         * expmed.c (expand_shift): Rename to ...
2916         (expand_variable_shift): ... this.
2917         (expand_shift): New wrapper around expand_variable_shift.
2918         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2919         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2920         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2921         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2922         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2923         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2924         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2925         emit_store_flag_1, emit_store_flag): Likewise.
2926         * builtins.c (expand_builtin_signbit): Likewise.
2927         * calls.c (load_register_parameters): Likewise.
2928         * function.c (assign_parm_setup_block): Likewise.
2929         * lower-subreg.c (resolve_shift_zext): Likewise.
2930         * optabs.c (widen_bswap, expand_abs_nojump,
2931         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2932         * spu/spu.c (spu_expand_extv): Likewise.
2933         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2934
2935 2011-04-29  Richard Guenther  <rguenther@suse.de>
2936
2937         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2938         for the remapped region number.
2939         * predict.c (build_predict_expr): Use integer_type_node for the
2940         predict kind.
2941         * fold-const.c (fold_binary_loc): Use integer_type_node for
2942         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2943
2944 2011-04-29  Michael Matz  <matz@suse.de>
2945
2946         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2947         other trees that just builtins.
2948         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2949
2950 2011-04-29  Richard Guenther  <rguenther@suse.de>
2951
2952         * tree-nested.c (get_trampoline_type): Use size_int.
2953         (get_nl_goto_field): Likewise.
2954         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2955         for all indexes.
2956         (lower_eh_constructs_2): Likewise.
2957         (lower_resx): Likewise.
2958         (lower_eh_dispatch): Likewise.
2959         * tree-mudflap.c (mf_build_string): Use size_int.
2960         (mudflap_register_call): Use integer_type_node for the flag.
2961         (mudflap_enqueue_constant): Use size_int.
2962         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2963         instead of rebuilding it.
2964
2965 2011-04-29  Richard Guenther  <rguenther@suse.de>
2966
2967         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2968         Handle OBJ_TYPE_REF.
2969         (find_func_aliases_for_call): Use it more consistently.
2970
2971 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2972
2973         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2974         (rank_for_schedule): Use it.
2975         (schedule_block): Set it.
2976
2977 2011-04-28  David Li  <davidxl@google.com>
2978
2979         * tree.c (crc32_string): Use crc32_byte.
2980         (crc32_byte): New function.
2981         * tree.h (crc32_byte): New function.
2982         * gcov.c (read_graph_file): Handle new cfg_cksum.
2983         (read_count_file): Ditto.
2984         * profile.c (instrument_values): Ditto.
2985         (get_exec_counts): Ditto.
2986         (read_profile_edge_counts): Ditto.
2987         (compute_branch_probabilities): Ditto.
2988         (compute_value_histograms): Ditto.
2989         (branch_prob): Ditto.
2990         (end_branch_prob): Ditto.
2991         * coverage.c (read_counts_file): Ditto.
2992         (get_coverage_counts): Ditto.
2993         (tree_coverage_counter_addr): Ditto.
2994         (coverage_checksum_string): Ditto.
2995         (coverage_begin_output): Ditto.
2996         (coverage_end_function): Ditto.
2997         (build_fn_info_type): Ditto.
2998         (build_fn_info_value): Ditto.
2999         * libgcov.c (gcov_exit): Ditto.
3000         * gcov-dump.c (tag_function): Ditto.
3001         (compute_checksum): Remove.
3002
3003 2011-04-29  Alan Modra  <amodra@gmail.com>
3004
3005         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3006         unspec plus offset.  Tidy macho code.
3007
3008 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3009
3010         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3011         node instead of a decl.  Update all callers.
3012         * cgraph.h: Update declaration.
3013
3014 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3015
3016         PR tree-optimization/48765
3017         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3018         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3019         to indicate if loop aware SLP is being used.  Scan the statements
3020         and update the vectorization factor according to the type of
3021         vectorization before statement analysis.
3022         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3023         pass it to vect_analyze_loop_operations.
3024         (vectorizable_reduction): Set number of copies to 1 in case of pure
3025         SLP statement.
3026         * tree-vect-stmts.c (vectorizable_conversion,
3027         vectorizable_assignment, vectorizable_shift,
3028         vectorizable_operation, vectorizable_type_demotion,
3029         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3030         Likewise.
3031         (vectorizable_condition): Move the check that it is not SLP
3032         vectorization before the number of copies check.
3033         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3034         to vectorize the loop using SLP.
3035
3036 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3037
3038         PR middle-end/48597
3039         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3040         inline asm.
3041
3042 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3043
3044         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3045         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3046         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3047         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3048         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3049         linux*.h headers.
3050         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3051         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3052         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3053         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3054         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3055         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3056         REG_NAME.
3057         * config/i386/linux.h (REG_NAME): Don't define.
3058         * config/i386/linux64.h (REG_NAME): Don't define.
3059         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3060         Undefine before defining.
3061
3062 2011-04-28  Jan Hubicka  <jh@suse.cz>
3063
3064         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3065         nonconstant_names array.
3066         (estimate_function_body_sizes): Build nonconstant_names array; handle
3067         BUILT_IN_CONSTANT_P.
3068
3069 2011-04-28  Richard Guenther  <rguenther@suse.de>
3070
3071         PR bootstrap/48804
3072         Revert
3073         2011-04-28  Richard Guenther  <rguenther@suse.de>
3074
3075         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3076         as late as possible.
3077
3078 2011-04-28  Richard Guenther  <rguenther@suse.de>
3079
3080         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3081         (debug_constraint): Do it here.
3082         (dump_constraints): And here.
3083         (rewrite_constraints): And here.
3084         (dump_constraint_edge): Remove.
3085         (dump_constraint_graph): Rewrite to produce DOT output.
3086         (solve_constraints): Build succ graph as late as possible.
3087         Dump constraint graphs before and after solving.
3088
3089 2011-04-28  Richard Guenther  <rguenther@suse.de>
3090
3091         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3092         New function split out from ...
3093         (find_func_aliases): ... here.  Call it.
3094         (find_func_aliases_for_call): Likewise.
3095
3096 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3097
3098         * internal-fn.h (internal_fn_name_array): Declare.
3099         (internal_fn_flags_array): Likewise.
3100
3101 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3102
3103         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3104         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3105         Move from sse.md.
3106         (ssemodefsuffix): Remove.
3107         (ssevecmodesuffix): New mode attribute.
3108         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3109         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3110         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3111         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3112         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3113         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3114         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3115         ssemodesuffix mode attribute.
3116         (float splitters): Use ssevecmodesuffix mode attribute.
3117         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3118         (sseinsmode): Rename from avxvecmode.
3119         (avxsizesuffix): Rename from avxmodesuffix.
3120         (sseintvecmode): Rename from avxpermvecmode.
3121         (ssedoublevecmode): Rename from ssedoublesizemode.
3122         (ssehalfvecmode): Rename from avxhalfvecmode.
3123         (ssescalarmode): Rename from avxscalarmode.
3124         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3125         templates for ssemodesuffix mode attribute.
3126         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3127         mode attribute.
3128
3129         Adjust RTX patterns globally for renamed mode attributes.
3130
3131 2011-04-27  Jan Hubcika  <jh@suse.cz>
3132
3133         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3134         * ipa-inline-analysis.c: Include alloc-pool.h.
3135         (edge_predicate_pool): New.
3136         (trye_predicate_p): New function
3137         (false_predicate_p): New function.
3138         (add_clause): Sanity check that false clauses are "optimized";
3139         never add clauses to predicate that is already known to be false.
3140         (and_predicate): Use flase_predicate_p.
3141         (evaulate_predicate): Rename to ...
3142         (evaluate_predicate): ... this one; update all callers; assert
3143         that false is not listed among possible truths.
3144         (dump_predicate): Use true_predicate_p.
3145         (account_size_time): Use false_predicate_p.
3146         (evaulate_conditions_for_edge): Rename to ...
3147         (evaluate_conditions_for_edge) ... this one.
3148         (edge_set_predicate): New function.
3149         (inline_edge_duplication_hook): Duplicate edge predicates.
3150         (inline_edge_removal_hook): Free edge predicates.
3151         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3152         (dump_inline_summary): Update.
3153         (estimate_function_body_sizes): Set edge predicates.
3154         (estimate_calls_size_and_time): Handle predicates.
3155         (estimate_callee_size_and_time): Update.
3156         (remap_predicate): Add toplev_predicate; update comment.
3157         (remap_edge_predicates): New function.
3158         (inline_merge_summary): Compute toplev predicate; update.
3159         (read_predicate): New function.
3160         (read_inline_edge_summary): Use it.
3161         (inline_read_section): Likewise.
3162         (write_predicate): New function.
3163         (write_inline_edge_summary): Use it.
3164         (inline_write_summary): Likewise.
3165         (inline_free_summary): Free alloc pool and edge summary vec.
3166
3167 2011-04-27  Richard Guenther  <rguenther@suse.de>
3168
3169         * tree-ssa-structalias.c (changed_count): Remove.
3170         (changed): Use a bitmap.
3171         (unify_nodes): Adjust.
3172         (do_sd_constraint): Likewise.
3173         (do_ds_constraint): Likewise.
3174         (do_complex_constraint): Likewise.
3175         (solve_graph): Likewise.
3176
3177 2011-04-27  Jan Hubicka  <jh@suse.cz>
3178
3179         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3180
3181 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3182
3183         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3184         (avx_vperm2f128_*_operand): Ditto.
3185         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3186         Use avx_vpermilp_parallel in insn condition.
3187         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3188         Use avx_vperm2f128_parallel in insn condition.
3189
3190 2011-04-27  Richard Guenther  <rguenther@suse.de>
3191
3192         * Makefile.in (tree-ssa-structalias.o): Remove
3193         gt-tree-ssa-structalias.h dependency.
3194         (GTFILES): Remove tree-ssa-structalias.c.
3195         * tree.c (allocate_decl_uid): New function.
3196         (make_node_stat): Use it.
3197         (copy_node_stat): Likewise.
3198         * tree.h (allocate_decl_uid): Declare.
3199         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3200         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3201         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3202         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3203         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3204         (struct heapvar_map): Likewise.
3205         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3206         heapvar_insert): Likewise.
3207         (make_heapvar_for): Rename to ...
3208         (make_heapvar): ... this.  Simplify.
3209         (fake_var_decl_obstack): New global var.
3210         (build_fake_var_decl): New function.
3211         (make_constraint_from_heapvar): Adjust.
3212         (handle_lhs_call): Likewise.
3213         (create_function_info_for): Likewise.
3214         (intra_create_variable_infos): Likewise.
3215         (init_alias_vars): Allocate fake_var_decl_obstack.
3216         (init_alias_heapvars, delete_alias_heapvars): Remove.
3217         (compute_points_to_sets): Do not call init_alias_heapvars.
3218         (ipa_pta_execute): Likewise.
3219         (delete_points_to_sets): Free fake_var_decl_obstack.
3220
3221 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3222
3223         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3224         (si_from_UTItype, si_to_UTItype): New functions.
3225         (__udivmodti4): Use them to implement type-punning.
3226         * config/spu/multi3.c (union qword_TItype): New data type.
3227         (si_from_TItype, si_to_TItype): New functions.
3228         (__multi3): Use them to implement type-punning.
3229
3230 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3231
3232         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3233
3234 2011-04-27  Jan Hubicka  <jh@suse.cz>
3235
3236         * ipa-prop.c (function_insertion_hook_holder): New holder.
3237         (ipa_add_new_function): New function.
3238         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3239         Register/deregister holder.
3240
3241 2011-04-27  Richard Guenther  <rguenther@suse.de>
3242
3243         PR tree-optimization/48772
3244         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3245
3246 2011-04-27  Richard Guenther  <rguenther@suse.de>
3247
3248         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3249         TARGET_MEM_REF handling.
3250
3251 2011-04-27  Nick Clifton  <nickc@redhat.com>
3252
3253         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3254         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3255         (REG_CLASS_NAMES): Likewise.
3256         (REG_CLASS_CONTENTS): Likewise.
3257         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3258         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3259         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3260         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3261         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3262         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3263         duplicate register classes.
3264         (frv_class_likely_spilled_p): Likewise.
3265         (frv_register_move_cost): Likewise.
3266
3267         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3268         end of the regno_reg_class array.
3269
3270 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3271
3272         PR c/48742
3273         * c-typeck.c (build_binary_op): Don't wrap arguments if
3274         int_operands is true.
3275
3276 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3277
3278         PR target/48767
3279         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3280         targetm.calls.must_pass_in_stack for void type.
3281
3282 2011-04-26  Jan Hubicka  <jh@suse.cz>
3283
3284         * cgraphbuild.c (build_cgraph_edges): Update call
3285         of cgraph_create_edge and cgraph_create_indirect_edge.
3286         * cgraph.c (cgraph_create_edge_including_clones,
3287         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3288         cgraph_update_edges_for_call_stmt_node): Do not take nest
3289         argument; do not initialize call_stmt_size/time.
3290         (dump_cgraph_node): Do not dump nest.
3291         (cgraph_clone_edge): Do not take loop_nest argument;
3292         do not propagate it; do not clone call_stmt_size/time.
3293         (cgraph_clone_node): Likewise.
3294         (cgraph_create_virtual_clone): Update.
3295         * cgraph.h (struct cgraph_edge): Remove
3296         call_stmt_size/call_stmt_time/loop_nest.
3297         (cgraph_create_edge, cgraph_create_indirect_edge,
3298         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3299         prototype.
3300         * tree-emutls.c (gen_emutls_addr): Update.
3301         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3302         loop_nest; handle indirect calls, too.
3303         (clone_inlined_nodes): Do not care about updating inline summaries.
3304         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3305         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3306         stream call_stmt_size/call_stmt_time/loop_nest.
3307         * ipa-inline.c (edge_badness): Update.
3308         (ipa_inline): dump summaries after inlining.
3309         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3310         New.
3311         (inline_edge_summary): New function.
3312         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3313         (inline_edge_removal_hook): Handle edge summaries.
3314         (inline_edge_duplication_hook): New hook.
3315         (inline_summary_alloc): Alloc hooks.
3316         (initialize_growth_caches): Do not register removal hooks.
3317         (free_growth_caches); Do not free removal hook.
3318         (dump_inline_edge_summary): New function.
3319         (dump_inline_summary): Use it.
3320         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3321         (inline_update_callee_summaries): New function.
3322         (inline_merge_summary): Use it.
3323         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3324         (read_inline_edge_summary): New function.
3325         (inline_read_section): Use it.
3326         (write_inline_edge_summary): New function.
3327         (inline_write_summary): Use it.
3328         (inline_free_summary): Free edge new holders.
3329         * tree-inline.c (copy_bb): Update.
3330
3331 2011-04-26  Jason Merrill  <jason@redhat.com>
3332
3333         * tree-eh.c (lower_try_finally_switch): Create the label along with
3334         the CASE_LABEL_EXPR.
3335
3336 2011-04-26  David S. Miller  <davem@davemloft.net>
3337             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3338
3339         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3340         * configure: Regenerate.
3341
3342 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3343
3344         PR target/48258
3345         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3346         reduction.
3347         (VEC_reduc): New code iterator and splitters for vector reduction.
3348         (VEC_reduc_name): Ditto.
3349         (VEC_reduc_rtx): Ditto.
3350         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3351         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3352
3353         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3354         support for extracting SF on VSX.
3355
3356         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3357         generating xscvspdp.
3358         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3359         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3360         double add, minimum, maximum vector reduction.
3361         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3362         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3363         optimize double vector reduction.
3364         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3365
3366 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3367
3368         * config/fr30/fr30.h (inhibit_libc): Don't define.
3369         * config/m32r/m32r-protos.h: Correct comment.
3370         * config/v850/v850.h (GHS_default_section_names,
3371         GHS_current_section_names): Use tree, not union tree_node *.
3372
3373 2011-04-26  Xinliang David Li  <davidxl@google.com>
3374
3375         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3376         * c-family/c-opts.c (c_common_handle_option): Set
3377         warn_maybe_uninitialized.
3378         * opts.c (common_handle_option): Ditto.
3379         * common.opt:  New option.
3380         * tree-ssa.c (warn_uninit): Add one more parameter.
3381         (warn_uninitialized_var): Pass warning code.
3382         * tree-flow.h: Interface change.
3383
3384
3385 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3386
3387         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3388         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3389         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3390
3391 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3392
3393         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3394         * config/mips/mips.opt (mmips-tfile): Remove.
3395
3396         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3397         mips-tdump reference to ...
3398         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3399         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3400         reference by Tru64 UNIX.
3401
3402 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3403
3404         PR debug/48768
3405         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3406         is error_mark_node, set value to NULL.
3407
3408         PR tree-optimization/48734
3409         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3410         if return value from maybe_fold_*_comparsions isn't something
3411         the code is prepared to handle.
3412
3413 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3414
3415         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3416         mode check.
3417         (ext_QIreg_nomode_operands): Remove.
3418         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3419         (*andsi_1): Ditto.
3420         (*andhi_1): Ditto.
3421
3422 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3423
3424         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3425
3426 2011-04-26  Richard Guenther  <rguenther@suse.de>
3427
3428         * c-typeck.c (build_unary_op): Do not expand array-refs via
3429         pointer arithmetic.  Only adjust qualifiers for function types.
3430
3431 2011-04-26  Richard Guenther  <rguenther@suse.de>
3432
3433         PR middle-end/48694
3434         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3435         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3436         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3437         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3438
3439 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3440
3441         * doc/extend.texi: Document __underlying_type.
3442
3443 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3444
3445         * config/rs6000/titan.md (automata_option "progress"): Remove.
3446
3447 2011-04-25  Jeff Law  <law@redhat.com>
3448
3449         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3450
3451 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3452
3453         * system.h (ENUM_BITFIELD): Remove.
3454
3455 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3456             Eric Botcazou  <ebotcazou@adacore.com>
3457
3458         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3459         for STORE_FLAG_VALUE==-1 case.
3460
3461 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3462
3463         PR target/43804
3464         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3465         LEGITIMATE_PIC_OPERAND_P.
3466
3467 2011-04-24  Jan Hubicka  <jh@suse.cz>
3468
3469         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3470         WPA hack.
3471         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3472         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3473         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3474         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3475         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3476         Sanity check predicate length.
3477         (remap_predicate): Likewise; sanity check jump functions.
3478         (inline_read_section, inline_write_summary): Sanity check
3479         predicate length.
3480
3481 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3482
3483         PR other/48748
3484         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3485         __is_literal_type, and __is_trivial; update throughout about
3486         possibly cv-qualified void types.
3487
3488 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3489
3490         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3491         testsuite and make it version agnostic.
3492
3493 2011-04-22  Jan Hubicka  <jh@suse.cz>
3494
3495         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3496
3497 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3498
3499         PR c/48685
3500         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3501         to VOID_TYPE even around MODIFY_EXPR.
3502
3503 2011-04-22  Mike Stump  <mikestump@comcast.net>
3504
3505         * gensupport.c (read_md_rtx): Fix typo in comment.
3506         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3507         comment.
3508
3509 2011-04-22  Jan Hubicka  <jh@suse.cz>
3510
3511         * gengtype.c (open_base_files): Add ipa-inline.h include.
3512         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3513         ipa-prop.c; update all uses.
3514         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3515         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3516         merge summary of inlined function into former caller.
3517         * ipa-inline.c (max_benefit): Remove.
3518         (edge_badness): Compensate for removal of benefits.
3519         (update_caller_keys): Use
3520         reset_node_growth_cache/reset_edge_growth_cache.
3521         (update_callee_keys): Likewise.
3522         (update_all_callee_keys): Likewise.
3523         (inline_small_functions): Do not collect max_benefit; do not reset
3524         estimated_growth; call free_growth_caches and initialize_growth_caches.
3525         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3526         struct size_time_entry): New structures.
3527         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3528         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3529         and estimated_growth.
3530         (edge_growth_cache_entry): New structure.
3531         (node_growth_cache, edge_growth_cache): New global vars.
3532         (estimate_growth): Turn into inline.
3533         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3534         initialize_growth_caches, free_growth_caches): Declare.
3535         (estimate_edge_growth): Rewrite.
3536         (estimate_edge_time): Implement as inline cache lookup.
3537         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3538         functions.
3539         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3540         (NUM_CONDITIONS): New constant.
3541         (predicate_conditions): New enum.
3542         (IS_NOT_CONSTANT): New constant.
3543         (edge_removal_hook_holder): New var.
3544         (node_growth_cache, edge_growth_cache): New global vars.
3545         (true_predicate, single_cond_predicate, false_predicate,
3546         not_inlined_predicate, add_condition, add_clause, and_predicates,
3547         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3548         dump_clause, dump_predicate, account_size_time,
3549         evaulate_conditions_for_edge): New functions.
3550         (inline_summary_alloc): Move to heap.
3551         (inline_node_removal_hook): Clear condition and entry vectors.
3552         (inline_edge_removal_hook): New function.
3553         (initialize_growth_caches, free_growth_caches): New function.
3554         (dump_inline_summary): Update.
3555         (edge_execution_predicate): New function.
3556         (will_be_nonconstant_predicate): New function.
3557         (estimate_function_body_sizes): Compute BB and constantness predicates.
3558         (compute_inline_parameters): Do not clear estimated_growth.
3559         (estimate_edge_size_and_time): New function.
3560         (estimate_calls_size_and_time): New function.
3561         (estimate_callee_size_and_time): New function.
3562         (remap_predicate): New function.
3563         (inline_merge_summary): New function.
3564         (do_estimate_edge_time): New function based on...
3565         (estimate_edge_time): ... this one.
3566         (do_estimate_edge_growth): New function.
3567         (do_estimate_growth): New function based on....
3568         (estimate_growth): ... this one.
3569         (inline_analyze_function): Analyze after deciding on jump functions.
3570         (inline_read_section): New function.
3571         (inline_read_summary): Use it.
3572         (inline_write_summary): Write all the new data.
3573         * ipa-prop.c (ipa_get_param_decl_index): Export.
3574         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3575         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3576         Declare.
3577         (ipa_get_lattice): Move here from ipa-cp.c
3578         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3579         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3580         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3581         cgraph_edge_inlinable_p): Remove.
3582         * cgraphunit.c: Include ipainline.h
3583         (cgraph_process_new_functions): Update call of
3584         compute_inline_parameters.
3585
3586 2011-04-22  Richard Guenther  <rguenther@suse.de>
3587
3588         * tree.c (build_int_cst): Properly create canonicalized integer
3589         constants.
3590         (build_int_cst_type): Remove scary comments.
3591
3592 2011-04-22  Xinliang David Li  <davidxl@google.com>
3593
3594         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3595         by default when -Wno-error is not specified.
3596         * opts-global.c (decode_options): Remove call to
3597         control_warning_options.
3598
3599 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3600
3601         PR tree-optimization/48717
3602         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3603         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3604
3605 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3606
3607         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3608         definition where used.
3609
3610 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3611
3612         PR c/48716
3613         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3614         TREE_STATIC variables declared inside of some OpenMP construct.
3615
3616 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3617
3618         PR middle-end/48585
3619         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3620
3621 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3622
3623         PR c/36750
3624         * c-typeck.c (pop_init_level): Do not warn about initializing
3625         with ` = {0}'.
3626
3627 2011-04-22  Alan Modra  <amodra@gmail.com>
3628
3629         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3630         when returning call_cookie.
3631         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3632         pointers, to functions with no more vector args than the current
3633         function, and some non-local calls for ABI_V4.
3634         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3635         sibcall_nonlocal_aix64): Combine to ..
3636         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3637         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3638         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3639         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3640         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3641         operand.
3642         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3643         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3644         sibcall_value_symbolic_64): Delete.
3645
3646 2011-04-21  Xinliang David Li  <davidxl@google.com>
3647
3648         * cgraph.h: Remove pid.
3649         * cgraph.c: Remove pid.
3650         * value-prof.c (init_node_map): New function.
3651         (del_node_map): New function.
3652         (find_func_by_funcdef_no): New function.
3653         (gimple_ic_transform): Call new function.
3654         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3655         * function.c (get_last_funcdef_no): New function.
3656         * function.h (get_last_funcdef_no): New function.
3657         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3658         to libgcov function.
3659         (tree-profiling): Call node map init and delete function.
3660
3661 2011-04-21  Ian Lance Taylor  <iant@google.com>
3662
3663         * godump.c (go_format_type): Use exported Go name for anonymous
3664         field name.
3665
3666 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3667
3668         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3669         Call builtin_function_type_list instead of builtin_function_type.
3670         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3671
3672 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3673
3674         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3675         build_function_type_list instead of build_function_type.
3676         Delete variable `endlink'.
3677
3678 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3679
3680         * config/s390/s390.c (s390_init_builtins): Call
3681         build_function_type_list instead of build_function_type.
3682
3683 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3684
3685         * config/ia64/ia64.c (ia64_init_builtins): Call
3686         build_function_type_list instead of builtin_function_type.
3687
3688 2011-04-21  Easwaran Raman  <eraman@google.com>
3689
3690         * cfgexpand.c (stack_var): Remove OFFSET...
3691         (add_stack_var): ...and its reference here...
3692         (expand_stack_vars): ...and here.
3693         (stack_var_cmp): Sort by descending order of size.
3694         (partition_stack_vars): Change heuristic.
3695         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3696         (dump_stack_var_partition): Add newline after each partition.
3697
3698 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3699             Jeff Law  <law@redhat.com>
3700
3701         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3702         * gengtype.c (matching_file_name_substitute): Likewise.
3703
3704 2011-04-21  Richard Guenther  <rguenther@suse.de>
3705
3706         PR lto/48703
3707         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3708
3709 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3710
3711         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3712
3713 2011-04-21  Richard Guenther  <rguenther@suse.de>
3714
3715         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3716         file name.
3717
3718 2011-04-21  Richard Guenther  <rguenther@suse.de>
3719
3720         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3721         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3722         Use DECL_P, not SSA_VAR_P.
3723         (ptr_derefs_may_alias_p): Likewise.
3724         (ptr_deref_may_alias_ref_p_1): Likewise.
3725         (decl_refs_may_alias_p): Likewise.
3726         (refs_may_alias_p_1): Likewise.
3727         (ref_maybe_used_by_call_p_1): Likewise.
3728         (call_may_clobber_ref_p_1): Likewise.
3729         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3730         are either MEM_REF or TARGET_MEM_REF.
3731         (indirect_refs_may_alias_p): Likewise.
3732         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3733         for MEM_EXPR of indirect calls.
3734
3735 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3736
3737         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3738         (dst_file_info_struct): Remove flen field.
3739         (lookup_filename): Remove code that set flen field.
3740
3741 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3742
3743         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3744
3745 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3746
3747         PR target/48708
3748         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3749         vec_extract and vec_concat for non-SSE4_1 targets.
3750
3751 2011-04-21  Richard Guenther  <rguenther@suse.de>
3752
3753         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3754         return statements.
3755
3756 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3757
3758         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3759         undefine.
3760         (FILE): Don't undefine.
3761
3762 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3763
3764         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3765         struct rtx_def *.
3766         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3767         struct rtx_def *.
3768         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3769         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3770         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3771         rtx_def *.
3772         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3773         definitions where used.
3774         * config/microblaze/microblaze.h (struct microblaze_args): Use
3775         rtx, not struct rtx_def *.
3776         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3777         rtx_def *.
3778         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3779         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3780         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3781         not struct rtx_def *.
3782         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3783         struct rtx_def *.
3784         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3785         rtx_def *.
3786         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3787
3788 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3789
3790         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3791         operand_equal_p to compare DR_BASE_ADDRESSes.
3792         (vect_check_interleaving): Likewise.
3793
3794 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3795
3796         PR target/46329
3797         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3798         for all Neon struct constants.
3799
3800 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3801
3802         * target.def (legitimate_constant_p): New hook.
3803         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3804         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3805         * doc/tm.texi: Regenerate.
3806         * hooks.h (hook_bool_mode_rtx_true): Declare.
3807         * hooks.c (hook_bool_mode_rtx_true): Define.
3808         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3809         * calls.c (precompute_register_parameters): Replace uses of
3810         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3811         (emit_library_call_value_1): Likewise.
3812         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3813         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3814         * ira-costs.c (scan_one_insn): Likewise.
3815         * recog.c (general_operand, immediate_operand): Likewise.
3816         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3817         * reload1.c (init_eliminable_invariants): Likewise.
3818
3819         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3820         mode argument.
3821         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3822         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3823         argument.
3824         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3825         * config/alpha/predicates.md (input_operand): Update call to
3826         alpha_legitimate_constant_p.
3827
3828         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3829         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3830         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3831         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3832         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3833         (arm_legitimate_constant_p): New functions.
3834         (arm_cannot_force_const_mem): Make static.
3835
3836         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3837
3838         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3839         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3840         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3841         instead of bfin_legitimate_constant_p.
3842         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3843         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3844
3845         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3846
3847         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3848
3849         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3850         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3851         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3852         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3853
3854         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3855         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3856         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3857
3858         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3859         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3860         * config/i386/i386.c (legitimate_constant_p): Rename to...
3861         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3862         argument.
3863         (ix86_cannot_force_const_mem): Update accordingly.
3864         (ix86_legitimate_address_p): Likewise.
3865         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3866         * config/i386/i386.md: Update commentary.
3867
3868         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3869         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3870         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3871         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3872
3873         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3874
3875         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3876         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3877         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3878         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3879
3880         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3881         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3882         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3883
3884         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3885         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3886         (m32r_legitimate_constant_p): New function.
3887
3888         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3889         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3890         LEGITIMATE_CONSTANT_P.
3891         (LEGITIMATE_CONSTANT_P): Delete.
3892         * config/m68k/m68k.c (m68k_expand_prologue): Call
3893         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3894         (m68k_legitimate_constant_p): New function.
3895         * config/m68k/m68k.md: Update comments.
3896
3897         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3898         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3899         (mcore_legitimate_constant_p): New function.
3900
3901         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3902         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3903         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3904         Add a mode argument.
3905         (mep_legitimate_address): Update accordingly.
3906         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3907
3908         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3909         Delete.
3910         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3911         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3912         static.  Check OP's mode for VOIDmode.
3913         (microblaze_legitimate_constant_p): New function.
3914         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3915
3916         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3917         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3918         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3919         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3920         * config/mips/predicates.md: Update comments.
3921
3922         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3923         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3924         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3925         (mmix_legitimate_constant_p): Make static, return a bool, and take
3926         a mode argument.
3927         (mmix_print_operand_address): Update accordingly.
3928
3929         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3930         Delete.
3931         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3932         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3933         static.  Add a mode argument.
3934         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3935
3936         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3937
3938         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3939         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3940         (pa_legitimate_constant_p): New function.
3941
3942         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3943
3944         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3945         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3946         (pdp11_legitimate_constant_p): New function.
3947
3948         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3949         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3950         (rs6000_legitimate_constant_p): New function.
3951
3952         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3953         (rx_legitimate_constant_p): ...this.
3954         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3955         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3956         (rx_legitimate_constant_p): ...this.
3957         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3958         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3959
3960         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3961         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3962         * config/s390/s390.c (legitimate_constant_p): Rename to...
3963         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3964         and add a mode argument.
3965         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3966
3967         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3968
3969         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3970         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3971         (sh_legitimate_constant_p): New function.
3972
3973         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3974         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3975         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3976         (legitimate_constant_p): Rename to...
3977         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3978         argument.
3979         (constant_address_p): Update accordingly.
3980
3981         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3982         argument and return a bool.
3983         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3984         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3985         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3986         (spu_rtx_costs): Update accordingly.
3987         * config/spu/predicates.md (vec_imm_operand): Likewise.
3988
3989         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3990
3991         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3992         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3993         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3994
3995         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3996         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3997         * config/vax/vax.c (legitimate_constant_p): Likewise.
3998
3999         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4000         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4001         (xtensa_legitimate_constant_p): New function.
4002
4003 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4004
4005         * target.def (cannot_force_const_mem): Add a mode argument.
4006         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4007         * doc/tm.texi: Regenerate.
4008         * hooks.h (hook_bool_mode_rtx_false): Declare.
4009         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4010         (hook_bool_mode_const_rtx_true): Likewise.
4011         (hook_bool_mode_rtx_false): New function.
4012         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4013         to be non-VOID.  Update call to cannot_force_const_mem.
4014         (find_reloads): Update accordingly.
4015         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4016         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4017         argument.
4018         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4019         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4020         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4021         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4022         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4023         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4024         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4025         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4026         (m68k_cannot_force_const_mem): ...this new function.
4027         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4028         argument.
4029         (mips_const_insns, mips_legitimize_const_move): Update calls.
4030         (mips_secondary_reload_class): Likewise.
4031         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4032         (pa_cannot_force_const_mem): ...this new function.
4033         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4034         (rs6000_cannot_force_const_mem): ...this new function.
4035         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4036         argument.
4037         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4038         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4039         to...
4040         (xtensa_cannot_force_const_mem): ...this new function.
4041
4042 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4043
4044         * config/mips/mips.c (mips16_build_function_stub): Call
4045         build_function_type_list instead of build_function_type.
4046         (mips16_build_call_stub): Likewise.
4047
4048 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4049
4050         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4051         instead of build_function_type.
4052
4053 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4054
4055         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4056         instead of build_function_type.
4057
4058 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4059
4060         PR target/48678
4061         * config/i386/i386.md (insv): Change operand 0 constraint to
4062         "register_operand".  Change operand 1 and 2 constraint to
4063         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4064         * config/i386/sse.md (sse4_1_pinsrb): Export.
4065         (sse2_pinsrw): Ditto.
4066         (sse4_1_pinsrd): Ditto.
4067         (sse4_1_pinsrq): Ditto.
4068         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4069         * config/i386/i386.c (ix86_expand_pinsr): New.
4070
4071 2011-04-20  Easwaran Raman  <eraman@google.com>
4072
4073         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4074         containing union type only with -fstrict-aliasing.
4075
4076 2011-04-20  Jim Meyering  <meyering@redhat.com>
4077
4078         Remove useless if-before-free tests.
4079         * calls.c (expand_call, save_area): Likewise.
4080         * cfgcleanup.c (try_forward_edges): Likewise.
4081         * collect2.c (collect_execute): Likewise.
4082         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4083         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4084         * coverage.c (coverage_checksum_string): Likewise.
4085         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4086         * cselib.c (cselib_init): Likewise.
4087         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4088         (df_set_clean_cfg): Likewise.
4089         * function.c (free_after_compilation): Likewise.
4090         * gcc.c (do_spec_1, main): Likewise.
4091         * gcov.c (create_file_names): Likewise.
4092         * gensupport.c (identify_predicable_attribute): Likewise.
4093         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4094         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4095         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4096         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4097         * ipa-pure-const.c (local_pure_const): Likewise.
4098         * ipa-reference.c (propagate): Likewise.
4099         * ira-costs.c (free_ira_costs): Likewise.
4100         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4101         * matrix-reorg.c (mat_free): Likewise.
4102         * prefix.c (get_key_value): Likewise.
4103         * profile.c (compute_value_histograms): Likewise.
4104         * reload1.c (free_reg_equiv): Likewise.
4105         * sched-deps.c (free_deps): Likewise.
4106         * sel-sched-ir.c (fence_clear): Likewise.
4107         * sese.c (set_rename, if_region_set_false_region): Likewise.
4108         * tree-data-ref.c (free_rdg): Likewise.
4109         * tree-eh.c (lower_try_finally): Likewise.
4110         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4111         * tree-ssa-live.c (delete_var_map): Likewise.
4112         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4113         * tree-ssa-pre.c (phi_trans_add): Likewise.
4114
4115 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4116
4117         PR tree-optimization/48611
4118         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4119         beyond ERT_MUST_NOT_THROW region.
4120
4121 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4122
4123         * config/mips/mips.opt (mfix-24k): New.
4124         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4125         * config/mips/mips.md (length): Increase by 4 for stores if
4126         fixing 24K errata.
4127         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4128         all noreorder if fixing 24K errata.
4129         * doc/invoke.texi: Document mfix-24k.
4130
4131 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4132
4133         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4134         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4135
4136 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4137
4138         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4139         (const_ok_for_op): ... to here.
4140
4141 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4142
4143         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4144         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4145
4146 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4147
4148         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4149
4150 2011-04-20  Richard Guenther  <rguenther@suse.de>
4151
4152         PR tree-optimization/47892
4153         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4154         are if-convertible.
4155
4156 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4157
4158         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4159
4160 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4161
4162         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4163
4164 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4165
4166         PR target/18145
4167
4168         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4169         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4170         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4171         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4172         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4173
4174         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4175         New prototype.
4176
4177         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4178         (avr_asm_named_section, avr_asm_output_aligned_common,
4179         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4180         New functions to update...
4181         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4182         (avr_asm_init_sections): Overwrite section callbacks for
4183         data_section, bss_section.
4184         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4185         from here to...
4186         (avr_file_end): ...here.
4187
4188 2011-04-20  Richard Guenther  <rguenther@suse.de>
4189
4190         PR middle-end/48695
4191         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4192         objects and types here.  Adjust for their offset before comparing.
4193
4194 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4195
4196         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4197         statement per copy.
4198
4199 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4200
4201         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4202         (GIMPLE_H): Include $(INTERNAL_FN_H).
4203         (OBJS-common): Add internal-fn.o.
4204         (internal-fn.o): New rule.
4205         * internal-fn.def: New file.
4206         * internal-fn.h: Likewise.
4207         * internal-fn.c: Likewise.
4208         * gimple.h: Include internal-fn.h.
4209         (GF_CALL_INTERNAL): New gf_mask.
4210         (gimple_statement_call): Put fntype into a union with a new
4211         internal_fn field.
4212         (gimple_build_call_internal): Declare.
4213         (gimple_build_call_internal_vec): Likewise.
4214         (gimple_call_same_target_p): Likewise.
4215         (gimple_call_internal_p): New function.
4216         (gimple_call_internal_fn): Likewise.
4217         (gimple_call_fntype): Return null for internal calls.
4218         (gimple_call_set_fntype): Assert that the function is not internal.
4219         (gimple_call_set_fn): Likewise.
4220         (gimple_call_set_fndecl): Likewise.
4221         (gimple_call_set_internal_fn): New function.
4222         (gimple_call_addr_fndecl): Handle null functions.
4223         (gimple_call_return_type): Likewise null types.
4224         * gimple.c (gimple_build_call_internal_1): New function.
4225         (gimple_build_call_internal): Likewise.
4226         (gimple_build_call_internal_vec): Likewise.
4227         (gimple_call_same_target_p): Likewise.
4228         (gimple_call_flags): Handle calls to internal functions.
4229         (gimple_call_fnspec): New function.
4230         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4231         (gimple_has_side_effects): Handle null functions.
4232         (gimple_rhs_has_side_effects): Likewise.
4233         (gimple_call_copy_skip_args): Handle calls to internal functions.
4234         * cfgexpand.c (expand_call_stmt): Likewise.
4235         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4236         * gimple-fold.c (gimple_fold_call): Handle null functions.
4237         (gimple_fold_stmt_to_constant_1): Don't fold
4238         calls to internal functions.
4239         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4240         functions.
4241         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4242         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4243         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4244         (do_warn_unused_result): Likewise.
4245         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4246         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4247         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4248         the target of a call.
4249         (initialize_hash_element): Update accordingly.
4250         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4251         (iterative_hash_hashable_expr): Handle calls to internal functions.
4252         (print_expr_hash_elt): Likewise.
4253         * tree-ssa-pre.c (can_value_number_call): Likewise.
4254         (eliminate): Handle null functions.
4255         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4256         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4257         (find_func_aliases): Likewise.
4258         * value-prof.c (gimple_ic_transform): Likewise.
4259         (gimple_indirect_call_to_profile): Likewise.
4260         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4261         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4262
4263 2011-04-19  Jan Hubicka  <jh@suse.cz>
4264
4265         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4266         * ipa-inline.c (inline_small_functions): Compute summaries first,
4267         populate heap later.
4268
4269 2011-04-19  Jan Hubicka  <jh@suse.cz>
4270
4271         * cgraph.h (save_inline_function_body): Remove.
4272         * ipa-inline-transform.c: New file, broke out of...
4273         * ipa-inline.c: ... this one; Update toplevel comment.
4274         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4275         make global.
4276         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4277         (cgraph_mark_inline_edge): Rename to inline_call; move to
4278         ipa-inline-transform.c.
4279         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4280         move to ipa-inline-transform.c
4281         (recursive_inlining, inline_small_functions, flatten_function,
4282         ipa_inline, inline_always_inline_functions,
4283         early_inline_small_functions): Update.
4284         (inline_transform): Move to ipa-inline-transform.c.
4285         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4286         Declare.
4287         * Makefile.in (ipa-inline-transform.o): New file.
4288         * cgraphunit.c (save_inline_function_body): Move to
4289         ipa-inline-transform.c
4290
4291 2011-04-19  DJ Delorie  <dj@redhat.com>
4292
4293         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4294         registers if we already know there aren't any.
4295         (m32c_emit_epilogue): Don't emit a barrier here.
4296         (m32c_emit_eh_epilogue): Likewise.
4297         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4298         operands at expand time.
4299         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4300         int" wchar type.
4301         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4302         duplicates.  Provide aliases instead.
4303         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4304         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4305         the compiler.
4306
4307 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4308
4309         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4310         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4311         (general_or_i64_p, sparc_register_move_cost): New function.
4312
4313 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4314
4315         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4316         Add lynx, mipssde.  Sort table.
4317
4318 2011-04-19  Xinliang David Li  <davidxl@google.com>
4319
4320         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4321         not negative.
4322
4323 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4324
4325         PR target/48678
4326         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4327         is a SUBREG with non-MODE_INT mode inside of it.
4328
4329 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4330
4331         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4332         also according to actual contants.
4333         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4334         (gimple_fold_call): Use it.
4335         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4336
4337 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4338
4339         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4340         non-pointer assignments.
4341
4342 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4343
4344         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4345         account anc_offset and otr_type from the indirect edge info.
4346         * ipa-prop.c (get_ancestor_addr_info): New function.
4347         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4348         get_ancestor_addr_info, call it.
4349         (ipa_note_param_call): Do not initialize information about polymorphic
4350         calls, return the indirect call graph edge.  Remove the last
4351         parameter, adjust all callers.
4352         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4353         parameters.  Initialize polymorphic information in the indirect edge.
4354
4355 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4356
4357         PR lto/48148
4358         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4359         the types if they have different enumeration identifiers.
4360
4361 2011-04-19  Jan Hubicka  <jh@suse.cz>
4362
4363         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4364         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4365         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4366         (optimize_function_for_size_p) ... here.
4367
4368 2011-04-19  Richard Guenther  <rguenther@suse.de>
4369
4370         PR lto/48207
4371         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4372         langhook.
4373
4374 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4375
4376         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4377         if DECL_NO_INLINE_WARNING_P is set on the function.
4378
4379 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4380
4381         PR fortran/47976
4382         * reload1.c (inc_for_reload): Return void. All callers changed.
4383         (emit_input_reload_insns): Don't try to delete previous output
4384         reloads to a register, or record spill_reg_store for autoincs.
4385
4386 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4387
4388         * gengtype.h: Updated copyright year.
4389         (struct input_file_st): Add inpisplugin field.
4390         (type_fileloc): New function.
4391         * gengtype.c
4392         (write_typed_struct_alloc_def): Add gcc_assert.
4393         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4394         (write_typed_alloc_defns): Don't output for plugin files.
4395         (input_file_by_name): Clear inpisplugin field.
4396         (main): Set inpisplugin field for plugin files.
4397
4398 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4399
4400         * gengtype-state.c (string_eq): New.
4401         (read_state): Use string_eq instead of strcmp when creating the
4402         state_ident_tab.
4403
4404 2011-04-19  Wei Guozhi  <carrot@google.com>
4405
4406         PR target/47855
4407         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4408         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4409         linkage.
4410         * config/arm/constraints.md (Uu): New constraint.
4411         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4412
4413 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4414
4415         * config.gcc (-*-*-*vms): Added.
4416         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4417         definitions moved.
4418         * config/vms/vms-ld.c: New file.
4419         * config/vms/vms-ar.c: New file.
4420         * config/vms/t-vmsnative: New file.
4421
4422 2011-04-18  Xinliang David Li  <davidxl@google.com>
4423
4424         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4425
4426 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4427
4428         PR middle-end/48661
4429         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4430         if TREE_TYPE (v) is non-NULL.
4431
4432         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4433         gimple_get_virt_mehtod_for_binfo.
4434         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4435         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4436         callers.
4437         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4438
4439 2011-04-18  Michael Matz  <matz@suse.de>
4440             Steve Ellcey  <sje@cup.hp.com>
4441
4442         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4443         use its mode as source mode if it isn't VOIDmode.
4444
4445 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4446
4447         * doc/passes.texi: Fill crossref nodes.
4448
4449 2011-04-18  Jim Meyering  <meyering@redhat.com>
4450
4451         Fix doubled-word typos in comments and strings
4452         * config/alpha/vms-unwind.h: s/for for/for/
4453         * config/arm/unwind-arm.h: Likewise.
4454         * config/microblaze/microblaze.c: Likewise.
4455         * config/sh/constraints.md: s/in in/in/
4456         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4457
4458 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4459
4460         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4461         (AVX_FLOAT_MODE_P): Ditto.
4462         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4463         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4464         (AVX_VEC_FLOAT_MODE_P): Ditto.
4465         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4466         (UNSPEC_MASKSTORE): Ditto.
4467         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4468         Merge from <sse>_movmsk<ssemodesuffix> and
4469         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4470         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4471         iterator.
4472         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4473         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4474         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4475
4476 2011-04-18  Jan Hubicka  <jh@suse.cz>
4477
4478         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4479
4480         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4481         (want_inline_function_called_once_p): Break out the logic from
4482         ipa_inline.
4483         (edge_badness): Ensure that profile is not misupdated.
4484         (lookup_recursive_calls): Prioritize by call frequencies.
4485         (inline_small_functions): Move program size estimates here;
4486         actually process whole queue even when unit growth has been
4487         met. (to properly compute inline_failed reasons and for the
4488         case unit size decrease.) Revisit comments on recursive inlining.
4489         (ipa_inline): Remove unit summary code; first inline hot calls
4490         of functions called once, cold calls next.
4491         (order, nnodes): Remove unused variables.
4492         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4493         (GTFILES): Remove ipa-inline.c
4494         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4495
4496 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4497
4498         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4499
4500 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4501             Richard Earnshaw  <rearnsha@arm.com>
4502
4503         * arm.c (neon_builtin_type_bits): Remove.
4504         (typedef enum neon_builtin_mode): New.
4505         (T_MAX): Don't define.
4506         (typedef enum neon_builtin_datum): Remove bits, codes[],
4507         num_vars and base_fcode.  Add mode, code and fcode.
4508         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4509         VAR10): Change accordingly.
4510         (neon_builtin_data[]): Change accordingly
4511         (arm_init_neon_builtins): Change accordingly.
4512         (neon_builtin_compare): Remove.
4513         (locate_neon_builtin_icode): Remove.
4514         (arm_expand_neon_builtin): Change accordingly.
4515
4516         * arm.h (enum arm_builtins): Move to ...
4517         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4518
4519         * arm.c (arm_builtin_decl): Declare.
4520         (TARGET_BUILTIN_DECL): Define.
4521         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4522         (arm_builtin_decls[]): New.
4523         (arm_init_neon_builtins): Store builtin declarations in
4524         arm_builtin_decls[].
4525         (arm_init_tls_builtins): Likewise.
4526         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4527         (arm_builtin_decl): New.
4528
4529 2011-04-18  Richard Guenther  <rguenther@suse.de>
4530
4531         * tree.c (upper_bound_in_type): Build properly canonicalized
4532         INTEGER_CSTs.
4533         (lower_bound_in_type): Likewise.
4534
4535 2011-04-18  Richard Guenther  <rguenther@suse.de>
4536
4537         * gimple.h (gimple_call_addr_fndecl): New function.
4538         (gimple_call_fndecl): Use it.
4539         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4540         for direct calls.
4541         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4542         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4543
4544 2011-04-18  Richard Guenther  <rguenther@suse.de>
4545
4546         PR middle-end/48650
4547         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4548
4549 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4550
4551         PR lto/48492
4552         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4553         DECL_IN_CONSTANT_POOL without RTL.
4554
4555 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4556             Ira Rosen  <ira.rosen@linaro.org>
4557
4558         PR target/48252
4559         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4560         to match neon_vzip/vuzp/vtrn_internal.
4561         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4562         outputs explicitly dependent on both inputs.
4563         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4564
4565 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4566
4567         PR tree-optimization/48616
4568         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4569         whether the shift is by scalar or vector based on whether all SLP
4570         scalar stmts have the same rhs.
4571
4572 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4573
4574         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4575         memory operands.
4576
4577 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4578
4579         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4580         registers.
4581
4582 2011-04-17  Jan Hubicka  <jh@suse.cz>
4583
4584         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4585         * cgrpahunit.c (cgraph_finalize_function): Do not set
4586         finalized_by_frontend.
4587         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4588         finalized_by_frontend.
4589
4590 2011-04-17  Jan Hubicka  <jh@suse.cz>
4591
4592         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4593         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4594         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4595         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4596         method.
4597         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4598         gimple-fold.c
4599         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4600
4601 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4602
4603         PR lto/48538
4604         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4605         is non-null before accessing it.
4606         (input_cgraph): Remove trailing spaces.
4607
4608 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4609
4610         * params.def (sms-min-sc): New param flag.
4611         * modulo-sched.c (sms_schedule): Use it.
4612         * doc/invoke.texi (sms-min-sc): Document it.
4613
4614 2011-04-17  Jan Hubicka  <jh@suse.cz>
4615
4616         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4617         present, also set gimple_call_set_cannot_inline.
4618         * ipa-inline.c: Update toplevel comment.
4619         (MAX_TIME): Remove.
4620         (cgraph_clone_inlined_nodes): Fix linebreaks.
4621         (cgraph_check_inline_limits): Restructure to ...
4622         (caller_growth_limits): ... this one; be more tolerant
4623         on growth in nested inline chains; add explanatory comment;
4624         fix stack accounting thinko introduced by previous patch.
4625         (cgraph_default_inline_p): Remove.
4626         (report_inline_failed_reason): New function.
4627         (can_inline_edge_p): New function.
4628         (can_early_inline_edge_p): New function.
4629         (leaf_node_p): Move upwards in file.
4630         (want_early_inline_function_p): New function.
4631         (want_inline_small_function_p): New function.
4632         (want_inline_self_recursive_call_p): New function.
4633         (cgraph_edge_badness): Rename to ...
4634         (edge_badness) ... this one; fix linebreaks.
4635         (update_edge_key): Update call of edge_baddness; add
4636         detailed dump about queue updates.
4637         (update_caller_keys): Use can_inline_edge_p and
4638         want_inline_small_function_p.
4639         (cgraph_decide_recursive_inlining): Rename to...
4640         (recursive_inlining): Use can_inline_edge_p and
4641         want_inline_self_recursive_call_p; simplify and remove no longer
4642         valid FIXME.
4643         (cgraph_set_inline_failed): Remove.
4644         (add_new_edges_to_heap): Use can_inline_edge_p and
4645         want_inline_small_function_p.
4646         (cgraph_decide_inlining_of_small_functions): Rename to ...
4647         (inline_small_functions): ... this one; cleanup; use
4648         can/want predicates; cleanup debug ouput; work edges till fibheap
4649         is exhausted and do not stop once unit growth is reached; remove
4650         later loop processing remaining edges.
4651         (cgraph_flatten): Rename to ...
4652         (flatten_function): ... this one; use can_inline_edge_p
4653         and can_early_inline_edge_p predicates.
4654         (cgraph_decide_inlining): Rename to ...
4655         (ipa_inline): ... this one; remove unreachable nodes before
4656         inlining functions called once; simplify the pass.
4657         (cgraph_perform_always_inlining): Rename to ...
4658         (inline_always_inline_functions): ... this one; use
4659         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4660         (cgraph_decide_inlining_incrementally): Rename to ...
4661         (early_inline_small_functions): ... this one; simplify
4662         using new predicates; cleanup; make dumps prettier.
4663         (cgraph_early_inlining): Rename to ...
4664         (early_inliner): newer inline regular functions into always-inlines;
4665         fix updating of call stmt summaries.
4666         (pass_early_inline): Update for new names.
4667         (inline_transform): Fix formating.
4668         (gate_cgraph_decide_inlining): Rename to ...
4669         (pass_ipa_inline): ... this one.
4670         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4671         * ipa-inline-analysis.c (dump_inline_summary): Update.
4672         (compute_inline_parameters): Do not compute disregard_inline_limits;
4673         look for mismatching arguments.
4674         (estimate_growth): Fix handlig of non-trivial self recursion.
4675         (inline_read_summary): Do not read info->disregard_inline_limits.
4676         (inline_write_summary): Do not write info->disregard_inline_limits.
4677         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4678         and move all checks into can_inline_edge_p predicate; re-enable code
4679         comparing optimization levels.
4680         (expand_call_inline): Do not test inline_forbidden_into_p.
4681         * Makefile.in (ipa-inline.o): Update arguments.
4682
4683 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4684
4685         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4686
4687 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4688
4689         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4690
4691 2011-04-17  Michael Matz  <matz@suse.de>
4692
4693         PR tree-optimization/48622
4694         PR lto/48645
4695         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4696         in same order as they're written.
4697
4698 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4699
4700         * config/pa/predicates.md: Reorganize and simplify predicates.
4701         Eliminate duplicate code checks.
4702         (arith_operand): Rename to arith14_operand
4703         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4704         * config/pa/pa.md: Use renamed operands.
4705         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4706         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4707         arith11_operand, adddi3_operand, indexed_memory_operand,
4708         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4709         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4710         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4711         move_dest_operand, move_src_operand, prefetch_cc_operand,
4712         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4713         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4714         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4715         div_operand, int5_operand, movb_comparison_operator,
4716         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4717         arith_double_operand, ireg_operand, lhs_lshift_operand,
4718         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4719         integer_store_memory_operand): Likewise.
4720         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4721         (integer_store_memory_operand, read_only_operand,
4722         function_label_operand, borx_reg_operand,
4723         non_hard_reg_operand): Likewise.
4724         (eq_neq_comparison_operator): Delete unused operator.
4725         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4726         function_label_operand.
4727         (emit_move_sequence): Likewise.
4728
4729 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4730
4731         * config/i386/sse.md (sseunpackmode): New mode attribute.
4732         (ssepackmode): Ditto.
4733         (vec_pack_trunc_<mode>): Macroize expander from
4734         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4735         (vec_unpacks_lo_<mode>): Macroize expander from
4736         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4737         (vec_unpacks_hi_<mode>): Macroize expander from
4738         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4739         (vec_unpacku_lo_<mode>): Macroize expander from
4740         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4741         (vec_unpacku_hi_<mode>): Macroize expander from
4742         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4743         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4744         ix86_expand_sse4_unpack.
4745         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4746
4747 2011-04-16  Jan Hubicka  <jh@suse.cz>
4748
4749         * cgraphbuild.c: Include ipa-inline.h.
4750         (reset_inline_failed): Use initialize_inline_failed.
4751         * cgraph.c: Include ipa-inline.h.
4752         (cgraph_create_node_1): Do not initialize estimated_growth.
4753         (initialize_inline_failed): More to ipa-inline-analysis.c
4754         (dump_cgraph_node): Do not dump inline flags.
4755         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4756         and disregard_inline_limits flags.
4757         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4758         time, size, estimated_growth.
4759         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4760         Update.
4761         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4762         DECL_DISREGARD_INLINE_LIMITS.
4763         (cgraph_analyze_function): Do not initialize
4764         node->local.disregard_inline_limits.
4765         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4766         inlinable, versionable and disregard_inline_limits.
4767         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4768         cgraph_check_inline_limits, cgraph_default_inline_p,
4769         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4770         add_new_edges_to_heap): Update.
4771         (cgraph_decide_inlining_of_small_function): Update; set
4772         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4773         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4774         cgraph_decide_inlining_incrementally): Update.
4775         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4776         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4777         time, size and estimated_growth parameters.
4778         (estimate_edge_growth): Update.
4779         (initialize_inline_failed): Declare.
4780         * ipa-split.c: Include ipa-inline.h
4781         (execute_split_functions): Update.
4782         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4783         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4784         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4785         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4786         estimated_growth to INT_MIN.
4787         (inline_node_duplication_hook): Likewise.
4788         (dump_inline_summary): Dump new fields.
4789         (compute_inline_parameters): Update.
4790         (estimate_edge_time, estimate_time_after_inlining,
4791         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4792         inline_write_summary):
4793         (initialize_inline_failed): Move here from cgraph.c.
4794         * tree-sra.c: Include ipa-inline.h.
4795         (ipa_sra_preliminary_function_checks): Update.
4796         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4797         ipa-inline.h.
4798
4799 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4800
4801         * config/i386/sse.md (V16): New mode iterator.
4802         (VI1, VI8): Ditto.
4803         (AVXMODEQI, AVXMODEDI): Remove.
4804         (sse2, sse3): New mode attribute.
4805         (mov<mode>): Use V16 mode iterator.
4806         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4807         (push<mode>1): Use V16 mode iterator.
4808         (movmisalign<mode>): Ditto.
4809         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4810         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4811         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4812         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4813         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4814         avx_movdqu<avxmodesuffix>.
4815         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4816         *avx_movdqu<avxmodesuffix>.
4817         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4818         avx_lddqu<avxmodesuffix>.
4819         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4820         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4821         avx_movnt<AVXMODEDI:mode>.
4822         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4823         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4824
4825 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4826
4827         PR target/48629
4828         * haifa-sched.c (prune_ready_list, schedule_block): Use
4829         sched_pressure_p rather than flag_sched_pressure.
4830
4831 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4832
4833         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4834         cgraph_get_node instead of cgraph_get_create_node.
4835
4836 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4837
4838         * cfgexpand.c (expand_debug_expr): Use
4839         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4840
4841 2011-04-15  Michael Matz  <matz@suse.de>
4842
4843         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4844         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4845         * function.c (gimplify_parameters): Ditto.
4846         * gimplify.c (gimplify_vla_decl): Ditto.
4847
4848         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4849         (gimple_call_set_alloca_for_var): New inline function.
4850         (gimple_call_alloca_for_var_p): Ditto.
4851         * gimple.c (gimple_build_call_from_tree): Remember
4852         CALL_ALLOCA_FOR_VAR_P state.
4853         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4854
4855         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4856         calls if they were for VLA objects.
4857
4858 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4859
4860         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4861         of ADR_EXPRs.
4862
4863 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4864
4865         PR middle-end/48601
4866         * tree-emutls.c (lower_emutls_function_body): Call
4867         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4868         result is non-NULL.
4869
4870 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4871
4872         * c-decl.c (detect_field_duplicates): Call
4873         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4874
4875 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4876
4877         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4878         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4879         * ipa-pure-const.c (check_stmt): Call it.
4880         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4881
4882 2011-04-15  Richard Guenther  <rguenther@suse.de>
4883
4884         PR tree-optimization/48290
4885         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4886         Properly decide inhibiting propagation based on the valueized
4887         operand.  Do loop-closed SSA form preserving here ...
4888         (init_copy_prop): ... not here.
4889
4890 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4891
4892         PR target/48612
4893         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4894         (*ieee_smax<mode>3): Likewise.
4895
4896 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4897
4898         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4899         Replace match_operand with match_dup for the third operand in
4900         these expanders.
4901
4902 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4903
4904         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4905         to track processing of conditionals.  Update all callers.
4906         (try_combine, simplify_if_then_else): Update.
4907
4908 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4909
4910         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4911         -fsched-pressure.
4912
4913 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4914
4915         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4916         instead of match_operand for operand 3.
4917
4918 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4919
4920         * recog.h (insn_operand_data): Add an "allows_mem" field.
4921         * genoutput.c (output_operand_data): Initialize it.
4922         * optabs.c (maybe_legitimize_operand_same_code): New function.
4923         (maybe_legitimize_operand): Use it when matching the original
4924         op->value.
4925
4926 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4927
4928         * gimplify.c: Fix issues in comments throughout.
4929         (voidify_wrapper_expr): Fix long line.
4930         (build_stack_save_restore): Likewise.
4931         (gimplify_loop_expr): Likewise.
4932         (gimplify_compound_lval): Likewise.
4933         (gimplify_init_ctor_eval): Likewise.
4934         (gimplify_modify_expr_rhs): Likewise.
4935         (omp_notice_threadprivate_variable): Likewise.
4936
4937 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4938
4939         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4940         original one if this is not a builtin function.
4941
4942 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4943
4944         PR target/48605
4945         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4946         offset it as needed based on top 2 bits in operands[3], change
4947         MEM mode to SFmode and mask those 2 bits away from operands[3].
4948
4949 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4950
4951         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4952         change from objc_declare_protocols() to objc_declare_protocol().
4953
4954 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4955
4956         * config/i386/sse.md (sse4_1): New mode attribute.
4957         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4958         avx_blend<ssemodesuffix><avxmodesuffix> and
4959         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4960         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4961         avx_blendv<ssemodesuffix><avxmodesuffix> and
4962         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4963         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4964         avx_dp<ssemodesuffix><avxmodesuffix> and
4965         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4966         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4967         (sse4_1_packusdw): Merge with *avx_packusdw.
4968         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4969         (sse4_1_pblendw): Merge with *avx_pblendw.
4970         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4971         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4972         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4973         VF mode iterator.
4974         (sse4_1_round<ssescalarmodesuffix>): Merge with
4975         *avx_round<ssescalarmodesuffix>.
4976         (aesenc): Merge with *avx_aesenc.
4977         (aesenclast): Merge with *avx_aesenclast.
4978         (aesdec): Merge with *avx_aesdec.
4979         (aesdeclast): Merge with *avx_aesdeclast.
4980         (pclmulqdq): Merge with *pclmulqdq.
4981         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4982         New predicate.
4983         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4984
4985 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4986
4987         PR middle-end/48608
4988         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4989         (align_local_variable): This.  Update DECL_ALIGN.
4990         (add_stack_var): Updated.
4991         (expand_one_stack_var): Likewise.
4992
4993 2011-04-14  Richard Guenther  <rguenther@suse.de>
4994
4995         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4996         Remove.
4997         (dse_initialize_block_local_data, dse_leave_block,
4998         record_voperand_set, get_stmt_uid): Likewise.
4999         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5000         (dse_optimize_stmt): Remove voperand set handling code.
5001         Simplify and improve to handle any kind of killing stmt.
5002         (dse_record_phi): Remove.
5003         (dse_enter_block): Simplify.
5004         (tree_ssa_dse): Likewise.
5005         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5006
5007 2011-04-14  Jan Hubicka  <jh@suse.cz>
5008
5009         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5010         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5011         (cgraph_local_info): Remove inline_summary.
5012         * ipa-cp.c: Include ipa-inline.h.
5013         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5014         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5015         accesor.
5016         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5017         (input_overwrite_node): Do not set inline summary.
5018         (input_node): Do not stream inline summary.
5019         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5020         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5021         growth; we do not have inline parameters computed for that anyway.
5022         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5023         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5024         (inline_summary_t): New type and VECtor.
5025         (debug_inline_summary, dump_inline_summaries): Declare.
5026         (inline_summary): Use VOCtor.
5027         (estimate_edge_growth): Kill hack computing call stmt size directly.
5028         * lto-section-in.c (lto_section_name): Add inline section.
5029         * ipa-inline-analysis.c: Include lto-streamer.h
5030         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5031         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5032         (inline_summary_vec): Define.
5033         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5034         dump_inline_summaries): New functions.
5035         (estimate_function_body_sizes): Properly compute size/time of outgoing
5036         calls.
5037         (compute_inline_parameters): Alloc inline_summary; do not compute
5038         size/time of incomming calls.
5039         (estimate_edge_time): Avoid missing time summary hack.
5040         (inline_read_summary): Read inline summary info.
5041         (inline_write_summary): Write inline summary info.
5042         (inline_free_summary): Free all hooks and inline summary vector.
5043         * lto-streamer.h: Add LTO_section_inline_summary section.
5044         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5045         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5046
5047 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5048
5049         * tree-vectorizer.h (vect_strided_store_supported): Add a
5050         HOST_WIDE_INT argument.
5051         (vect_strided_load_supported): Likewise.
5052         (vect_permute_store_chain): Return void.
5053         (vect_transform_strided_load): Likewise.
5054         (vect_permute_load_chain): Delete.
5055         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5056         count argument.  Check that the count is a power of two.
5057         (vect_strided_load_supported): Likewise.
5058         (vect_permute_store_chain): Return void.  Update after above changes.
5059         Assert that the access is supported.
5060         (vect_permute_load_chain): Likewise.
5061         (vect_transform_strided_load): Return void.
5062         * tree-vect-stmts.c (vectorizable_store): Update calls after
5063         above interface changes.
5064         (vectorizable_load): Likewise.
5065         (vect_analyze_stmt): Don't check for strided powers of two here.
5066
5067 2011-04-14  Richard Guenther  <rguenther@suse.de>
5068
5069         PR tree-optimization/48590
5070         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5071         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5072         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5073         BUILT_IN_STACK_SAVE.
5074         * tree-ssa-dce.c (propagate_necessity): Handle
5075         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5076
5077 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5078
5079         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5080         objc_declare_class.
5081
5082 2011-04-14  Richard Guenther  <rguenther@suse.de>
5083
5084         * tree.h (get_object_alignment_1): Declare.
5085         * builtins.c (get_object_alignment_1): Split out worker from ...
5086         (get_object_alignment): ... here.
5087         * fold-const.c (get_pointer_modulus_and_residue): Use
5088         get_object_alignment_1.
5089
5090 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5091
5092         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5093         type parameter.
5094         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5095         parameter.  Generalise code to handle arrays as well as vectors.
5096         (vect_setup_realignment): Update accordingly.
5097         * tree-vect-stmts.c (vectorizable_store): Likewise.
5098         (vectorizable_load): Likewise.
5099
5100 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5101
5102         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5103         within the per-copy loop.
5104
5105 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5106
5107         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5108         in the dump file.
5109
5110 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5111
5112         * doc/options.texi (Negative): Explicitly mention that the
5113         Negative chain must be circular.
5114
5115 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5116
5117         * function.h (block_chainon): Declare.
5118         * function.c (block_chainon): Define.
5119
5120 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5121             Eric Weddington  <eric.weddington@atmel.com>
5122             Georg-Johann Lay  <avr@gjlay.de>
5123
5124         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5125         New Includes
5126         (avr_init_builtins, avr_expand_builtin,
5127         avr_expand_delay_cycles, avr_expand_unop_builtin,
5128         avr_expand_binop_builtin ): New functions.
5129         (avr_builtin_id): New enum
5130         (struct avr_builtin_description): New struct
5131         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5132         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5133
5134         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5135         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5136         UNSPECV_DELAY_CYCLES): new enumeration values
5137         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5138         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5139         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5140         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5141         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5142         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5143         "fmulsu"): New insns
5144
5145         * config/avr/avr-c.c: fix line endings
5146         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5147         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5148         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5149         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5150         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5151
5152         * doc/extend.texi (AVR Built-in Functions): New node
5153         (Target Builtins): Add documentation of AVR
5154         built-in functions.
5155
5156 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5157
5158         PR target/44643
5159         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5160         alone. Error if non-const data has attribute progmem.
5161
5162 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5163
5164         * tree.h (struct tree_constructor): Include tree_typed instead of
5165         tree_common.
5166         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5167         TS_TYPED instead of TS_COMMON.
5168
5169 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5170
5171         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5172         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5173         (sse2_psadbw): Merge with *avx_psadbw.
5174         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5175         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5176         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5177         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5178         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5179         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5180         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5181         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5182         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5183         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5184         (ssse3_palignrti): Merge with *avx_palignrti.
5185
5186 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5187
5188         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5189         * tree-ssanames.c (fini_ssanames): VEC_free it.
5190         (make_ssa_name_fn): Update for VECness of free_ssanames.
5191         (release_ssa_name, release_dead_ssa_names): Likewise.
5192         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5193         tree_common.
5194         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5195         TS_TYPED instead of TS_COMMON.
5196
5197 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5198
5199         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5200         statistics_counter_event.
5201         * tree-ssa-copyrename.c (stats): Define.
5202         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5203         statistics_counter_event.
5204         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5205         (bswap_stats, widen_mul_stats): Define.
5206         (insert_reciprocals): Increment rdivs_inserted.
5207         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5208         rfuncs_inserted.  Add calls to statistics_counter_event.
5209         (execute_cse_sincos_1): Increment inserted.
5210         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5211         statistics_counter_event.
5212         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5213         of bswap_stats.  Add calls to statistics_counter_event.
5214         (convert_mult_to_widen): Increment widen_mults_inserted.
5215         (convert_plusminus_to_widen): Increment maccs_inserted.
5216         (convert_mult_to_fma): Increment fmas_inserted.
5217         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5218         calls to statistics_counter_event.
5219
5220 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5221
5222         PR rtl-optimization/48455
5223         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5224         `temp_costs->mem_cost'.
5225
5226 2011-04-13  Jan Hubicka  <jh@suse.cz>
5227
5228         * ipa-inline.h: New file.
5229         * ipa-inline-analysis.c: New file. Broken out of ...
5230         * ipa-inline.c: ... this file; update toplevel comment;
5231         include ipa-inline.h
5232         (inline_summary): Move to ipa-inline.h
5233         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5234         ipa-inline-analysis.c.
5235         (cgraph_estimate_time_after_inlining): Rename to
5236         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5237         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5238         to estimate_edge_growth.
5239         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5240         rename to estimate_size_after_inlining.
5241         (cgraph_mark_inline_edge): Update for new naming convention.
5242         (cgraph_check_inline_limits): Likewise.
5243         (cgraph_edge_badness): Likewise.
5244         (cgraph_decide_recursive_inlining): Likewise.
5245         (cgraph_decide_inlining_of_small_functions): Likewise.
5246         (cgraph_decide_inlining_incrementally): Likewise.
5247         (cgraph_estimate_growth): Rename to estimate_growth; move to
5248         ipa-inline-analysis.c.
5249         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5250         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5251         (compute_inline_parameters): Likewise.
5252         (compute_inline_parameters_for_current): Likewise.
5253         (pass_inline_parameters): Likewise.
5254         (inline_indirect_intraprocedural_analysis): Likewise.
5255         (analyze_function): Rename to inline_analyze_function; likewise.
5256         (add_new_function): Move to ipa-inline-analysis.c.
5257         (inline_generate_summary): Likewise.
5258         (inline_read_summary): Likewise.
5259         (inline_write_summary): Likewise.
5260         * Makefile.in (ipa-inline-analysis.c): New file.
5261
5262 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5263
5264         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5265         * configure: Regenerate.
5266
5267 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5268
5269         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5270         instead of tree_common.
5271         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5272         Likewise.
5273         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5274         TS_TYPED rather than TS_COMMON.
5275         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5276
5277 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5278
5279         PR target/45263
5280         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5281         r20 around calls of __tablejump_elpm__
5282
5283 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5284
5285         PR middle-end/48591
5286         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5287         NULL.
5288         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5289
5290 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5291
5292         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5293         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5294         (cfi_vec): New typedef.
5295         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5296         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5297         (cie_cfi_vec): New static variable.
5298         (cie_cfi_head): Delete.
5299         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5300         declaration changed. Use vector rather than list operations.
5301         (new_cfi): Don't initialize the dw_cfi_next field.
5302         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5303         rather than list operations.
5304         (lookup_cfa): Use vector rather than list operations.
5305         (output_cfis): New argument upto. Accept a cfi_vec rather than
5306         a dw_cfi_ref list head as argument. All callers changed.
5307         Iterate over the vector using upto as a maximum index.
5308         (output_all_cfis): New static function.
5309         (output_fde): Use vector rather than list operations. Use the
5310         new upto argument for output_cfis rather than manipulating a
5311         list.
5312         (dwarf2out_begin_prologue): Change initializations to match
5313         new struct members.
5314         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5315         from the vector length rather than searching for the end of a list.
5316         Use output_all_cfis.
5317         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5318
5319 2011-04-13  Nick Clifton  <nickc@redhat.com>
5320
5321         * config/rx/rx.md (movmemsi): Do not use this pattern when
5322         volatile pointers are involved.
5323
5324 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5325
5326         * config/i386/sse.md (pinsrbits): Remove.
5327         (sse2_packsswb): Merge with *avx_packsswb.
5328         (sse2_packssdw): Merge with *avx_packssdw.
5329         (sse2_packuswb): Merge with *avx_packuswb.
5330         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5331         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5332         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5333         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5334         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5335         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5336         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5337         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5338         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5339         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5340         (sse2_loadld): Merge with *avx_loadld.
5341         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5342         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5343         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5344         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5345         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5346
5347 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5348
5349         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5350         calling TREE_CHAIN.
5351         * print-tree.c (print_node): Likewise.
5352         * tree-inline.c (copy_tree_r): Likewise.
5353         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5354         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5355         instead of TS_COMMON.
5356         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5357         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5358         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5359         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5360         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5361         ...and these...
5362         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5363         * tree.h: ...here.
5364         (TREE_CHAIN): Check for a TS_COMMON structure.
5365         (TREE_TYPE): Check for a TS_TYPED structure.
5366
5367 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5368
5369         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5370         cgraph_get_create_node instead of cgraph_node.
5371
5372 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5373
5374         * c-parser.c (c_parser_initelt): Updated call to
5375         objc_build_message_expr.
5376         (c_parser_postfix_expression): Likewise.
5377
5378 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5379
5380         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5381         MASK_MS_BITFIELD_LAYOUT bit.
5382
5383 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5384
5385         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5386         assert it is always true.
5387         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5388         moves.
5389
5390 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5391
5392         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5393         compiling Objective-C to be more efficient.
5394
5395 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5396
5397         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5398         argv_copied.
5399
5400 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5401
5402         * recog.h, genoutput.c, optabs.c: Revert last patch.
5403
5404 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5405
5406         PR target/48090
5407         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5408
5409 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5410
5411         * recog.h (insn_operand_data): Add an "allows_mem" field.
5412         * genoutput.c (output_operand_data): Initialize it.
5413         * optabs.c (maybe_legitimize_operand_same_code): New function.
5414         (maybe_legitimize_operand): Use it when matching the original
5415         op->value.
5416
5417 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5418
5419         * genpreds.c (process_define_predicate): Move most processing
5420         to gensupport.c.  Continue to validate the expression.
5421         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5422         (process_define_predicate): Move processing to gensupport.c.
5423         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5424         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5425         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5426         argument.
5427         (valid_predicate_name_p): New function, split out from old
5428         genpreds.c:process_define_predicate.
5429         (process_define_predicate): New function, combining code from
5430         old genpreds.c and genrecog.c functions.
5431         (process_rtx): Call it for DEFINE_PREDICATE and
5432         DEFINE_SPECIAL_PREDICATE.
5433
5434 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5435
5436         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5437         size of a '%A' memory reference.
5438         (T_DREG, T_QREG): New neon_builtin_type_bits.
5439         (arm_init_neon_builtins): Assert that the load and store operands
5440         are neon_struct_operands.
5441         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5442         (NEON_ARG_MEMORY): New builtin_arg.
5443         (neon_dereference_pointer): New function.
5444         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5445         Handle NEON_ARG_MEMORY.
5446         (arm_expand_neon_builtin): Update after above interface changes.
5447         Use NEON_ARG_MEMORY for loads and stores.
5448         * config/arm/predicates.md (neon_struct_operand): New predicate.
5449         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5450         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5451         (V_four_elem): Tweak formatting.
5452         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5453         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5454         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5455         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5456         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5457         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5458         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5459         Use %A in the output template.
5460         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5461         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5462         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5463         the width of the memory access.  Remove post-increment.
5464         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5465
5466 2011-04-12  Nick Clifton  <nickc@redhat.com>
5467
5468         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5469         instruction for interrupt handlers if the target is the basic V850
5470         architecture.
5471         (expand_epilogue): Likewise.
5472
5473 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5474
5475         PR rtl-optimization/48549
5476         * combine.c (propagate_for_debug): Also stop after BB_END of
5477         this_basic_block.  Process LAST and just stop processing after it.
5478         (combine_instructions): If last_combined_insn has been deleted,
5479         set last_combined_insn to its PREV_INSN.
5480
5481 2011-04-12  Richard Guenther  <rguenther@suse.de>
5482
5483         PR tree-optimization/46076
5484         * gimple.h (struct gimple_statement_call): Add fntype field.
5485         (gimple_call_fntype): Adjust.
5486         (gimple_call_set_fntype): New function.
5487         * gimple.c (gimple_build_call_1): Set the call function type.
5488         * gimplify.c (gimplify_call_expr): Preserve the function
5489         type the frontend used for the call.
5490         (gimplify_modify_expr): Likewise.
5491         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5492         function type.
5493         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5494         function type.
5495         * tree-ssa.c (useless_type_conversion_p): Function pointer
5496         conversions are useless.
5497
5498 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5499
5500         * cgraph.h (cgraph_node): Remove function declaration.
5501         (cgraph_create_node): Declare.
5502         (cgraph_get_create_node): Likewise.
5503         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5504         Updated all callers.
5505         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5506         the decl does not already exist.  Call cgraph_get_create_node instead
5507         of cgraph_node.
5508         (cgraph_get_create_node): New function.
5509         (cgraph_same_body_alias): Update comment.
5510         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5511         assert it does not return NULL.
5512         (cgraph_update_edges_for_call_stmt): Likewise.
5513         (cgraph_clone_edge): Likewise.
5514         (cgraph_create_virtual_clone): Likewise.
5515         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5516         instead of cgraph_node.
5517         (cgraph_add_new_function): Call cgraph_create_node or
5518         cgraph_get_create_node instead of cgraph_node.
5519         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5520         instead of cgraph_node.
5521         (record_eh_tables): Likewise.
5522         (mark_address): Likewise.
5523         (mark_load): Likewise.
5524         (build_cgraph_edges): Call cgraph_get_create_node instead
5525         of cgraph_node.
5526         (rebuild_cgraph_edges): Likewise.
5527         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5528         instead of cgraph_node.
5529         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5530         cgraph_node.
5531         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5532         cgraph_create_node instead of cgraph_node.
5533         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5534         of cgraph_node.
5535         * lto-cgraph.c (input_node): Likewise.
5536         * lto-streamer-in.c (input_function): Likewise.
5537         * varasm.c (mark_decl_referenced): Likewise.
5538         (assemble_alias): Likewise.
5539
5540 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5541
5542         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5543         instead of cgraph_node and assert it does not return NULL.
5544         * lto-streamer-in.c (lto_read_body): Likewise.
5545         * omp-low.c (new_omp_context): Likewise.
5546         (create_task_copyfn): Likewise.
5547         * tree-emutls.c (lower_emutls_function_body): Likewise.
5548         * matrix-reorg.c (transform_allocation_sites): Likewise.
5549
5550 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5551
5552         PR c/48552
5553         * c-typeck.c (build_asm_expr): Error out on attempts to use
5554         void type outputs or inputs for constraints that allow reg or
5555         don't allow memory.
5556
5557 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5558             Richard Earnshaw  <rearnsha@arm.com>
5559
5560         PR target/48250
5561         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5562         to use sign-magnitude offsets. Reject unsupported unaligned
5563         cases. Add detailed description in comments.
5564         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5565         condition from TARGET_32BIT to TARGET_ARM.
5566
5567 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5568
5569         * tree.h (struct typed_tree): New.
5570         (struct tree_common): Include it instead of tree_base.
5571         (TREE_TYPE): Update for new location of type field.
5572         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5573         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5574         (union tree_node): Add typed field.
5575         * treestruct.def (TS_TYPED): New.
5576         * lto-streamer.c (check_handled_ts_structures): Handle it.
5577         * tree.c (MARK_TS_TYPED): New macro.
5578         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5579
5580 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5581
5582         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5583         (force_nonfallthru): Do not alter the loop nest if no basic block
5584         was created.
5585
5586 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5587
5588         * config/i386/sse.md (VI): New mode iterator.
5589         (SSEMODEI): Remove.
5590         (AVX256MODEI): Ditto.
5591         (AVXMODEF4P): Ditto.
5592         (avxvecpsmode): Ditto.
5593         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5594         (sse2_andnot<mode>3): New expander.
5595         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5596         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5597         (<any_logic:code><mode>3): Use VI mode iterator.
5598         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5599         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5600         (*andnottf3): Handle AVX three-operand constraints.
5601         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5602
5603 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5604             Robert Millan  <rmh@gnu.org>
5605
5606         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5607         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5608         GNU_USER_DYNAMIC_LINKER64): Define.
5609         (REG_NAME): Don't undefine.
5610         (MD_UNWIND_SUPPORT): Undefine.
5611         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5612         (REG_NAME): Don't undefine.
5613         (MD_UNWIND_SUPPORT): Undefine.
5614         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5615
5616 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5617
5618         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5619         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5620
5621 2011-04-11  Xinliang David Li  <davidxl@google.com>
5622
5623         * value-profile.c (check_ic_target): New function.
5624         (gimple_ic_transform): Sanity check indirect call target.
5625         * gimple-low.c (gimple_check_call_args): Interface change.
5626         (gimple_check_call_matching_types): New function.
5627         * tree-inline.c (tree_can_inline_p): Call new function.
5628
5629 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5630
5631         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5632         tree-pretty-print.h & realmpfr.h.
5633
5634 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5635
5636         PR middle-end/48464
5637         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5638         (setup_allocno_and_important_classes): Ditto.
5639
5640 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5641
5642         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5643         GNU_USER_DYNAMIC_LINKER.
5644         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5645         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5646         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5647         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5648         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5649         GNU_USER_TARGET_OS_CPP_BUILTINS.
5650         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5651         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5652         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5653         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5654         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5655         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5656         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5657         GNU_USER_TARGET_OS_CPP_BUILTINS.
5658         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5659         GNU_USER_DYNAMIC_LINKER.
5660         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5661         GNU_USER_TARGET_OS_CPP_BUILTINS.
5662         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5663         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5664         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5665         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5666         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5667         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5668         GNU_USER_DYNAMIC_LINKER64): Remove.
5669         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5670         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5671         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5672         GNU_USER_DYNAMIC_LINKER.
5673         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5674         GNU_USER_TARGET_OS_CPP_BUILTINS.
5675         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5676         GNU_USER_TARGET_OS_CPP_BUILTINS.
5677         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5678         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5679         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5680         GNU_USER_TARGET_OS_CPP_BUILTINS.
5681         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5682         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5683         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5684         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5685         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5686         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5687         GNU_USER_DYNAMIC_LINKER.
5688         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5689         GNU_USER_TARGET_OS_CPP_BUILTINS.
5690         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5692         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5693         GNU_USER_DYNAMIC_LINKER.
5694         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5695         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5696         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5697         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5698         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5699         GNU_USER_DYNAMIC_LINKER.
5700         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5701         GNU_USER_DYNAMIC_LINKERN32.
5702         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5703         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5704         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5705         GNU_USER_DYNAMIC_LINKER32.
5706         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5707         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5708         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5709         GNU_USER_DYNAMIC_LINKER.
5710         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5711         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5712         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5713         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5714         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5715         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5716         GNU_USER_DYNAMIC_LINKER32.
5717         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5718         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5719         GNU_USER_DYNAMIC_LINKER.
5720         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5721         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5722         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5723         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5724         GNU_USER_DYNAMIC_LINKER64.
5725         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5726         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5727         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5728         GNU_USER_DYNAMIC_LINKER.
5729         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5730         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5731         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5732         GNU_USER_DYNAMIC_LINKER.
5733         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5734         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5735         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5736         GNU_USER_DYNAMIC_LINKER32.
5737         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5738         GNU_USER_DYNAMIC_LINKER64.
5739         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5740         GNU_USER_DYNAMIC_LINKER64.
5741         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5742         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5743         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5744         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5745         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5746
5747 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5748
5749         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5750         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5751         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5752         GNU_USER_DYNAMIC_LINKER.
5753         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5754         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5755         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5756         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5757         GNU_USER_DYNAMIC_LINKER64.
5758         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5759         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5760         GNU_USER_LINK_EMULATION.
5761         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5762         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5763         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5764         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5765         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5766         CPP_SPEC, CC1_SPEC): Remove.
5767         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5768         (GNU_USER_DYNAMIC_LINKER): Define.
5769         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5770         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5771         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5772         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5773         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5774         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5775         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5776         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5777         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5778         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5779         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5780         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5781         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5782         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5783         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5784         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5785         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5786         GNU_USER_DYNAMIC_LINKER.
5787         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5788         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5789         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5790         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5791         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5792         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5793         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5794         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5795         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5796         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5797
5798 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5799
5800         PR target/9601
5801         PR target/11772
5802         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5803         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5804         comment.
5805         (ix86_is_msabi_thiscall): Removed.
5806         (ix86_is_type_thiscall): Likewise.
5807         (ix86_get_callcvt): New function.
5808         (ix86_comp_type_attributes): Simplify check.
5809         (ix86_function_regparm): Use ix86_get_callcvt for calling
5810         convention attribute checks.
5811         (ix86_return_pops_args): Likewise.
5812         (ix86_static_chain): Likewise.
5813         (x86_this_parameter): Likewise.
5814         (x86_output_mi_thunk): Likewise.
5815         (ix86_function_type_abi): Optimize check for types without attributes.
5816         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5817         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5818         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5819         by flag-values.
5820         (IX86_BASE_CALLCVT): Helper macro.
5821         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5822         Use ix86_get_callcvt for calling convention attribute checks and avoid
5823         symbol-decoration for stdcall in TARGET_RTD case.
5824         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5825         Likewise.
5826         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5827         for declaration.
5828
5829 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5830
5831         * config/i386/sse.md (VI_128): New mode iterator.
5832         (VI12_128): Rename from SSEMODE12.
5833         (VI14_128): Rename from SSEMODE14.
5834         (VI124_128): New mode iterator.
5835         (VI24_128): Rename from SSEMODE248.
5836         (VI248_128): Rename from SSEMODE248.
5837         (SSEMODE124C8): Remove.
5838         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5839         (*sse2_<plusminus_insn><mode>3): Merge with
5840         *avx_<plusminus_insn><mode>3.
5841         (*mulv8hi3): Merge with *avx_mulv8hi3.
5842         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5843         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5844         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5845         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5846         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5847         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5848         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5849         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5850         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5851         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5852         (*<smaxmin:code>v8hi3): Ditto.
5853         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5854         (*<smaxmin:code>v16qi3): Ditto.
5855         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5856         (*sse2_eq<mode>3): Ditto.
5857         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5858         (*sse2_gt<mode>3): Ditto.
5859         (vcondv2di): Split out of vcond<mode>.
5860         (vconduv2di): Split out of vcondu<mode>.
5861
5862 2011-04-11  Richard Guenther  <rguenther@suse.de>
5863
5864         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5865         before calling tree_low_cst.
5866
5867 2011-04-11  Richard Guenther  <rguenther@suse.de>
5868
5869         * stor-layout.c (layout_type): Compute all array index size operations
5870         in the original type.
5871         (initialize_sizetypes): Add comment.
5872         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5873
5874 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5875
5876         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5877
5878 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5879
5880         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5881         of cgraph_node, handle NULL return value.
5882         (cgraph_global_info): Likewise.
5883         (cgraph_rtl_info): Likewise.
5884         * tree-inline.c (estimate_num_insns): Likewise.
5885         * gimplify.c (unshare_body): Likewise.
5886         (unvisit_body): Likewise.
5887         (gimplify_body): Likewise.
5888         * predict.c (optimize_function_for_size_p): Likewise.
5889         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5890         (call_may_clobber_ref_p_1): Likewise.
5891         * varasm.c (function_section_1): Likewise.
5892         (assemble_start_function): Likewise.
5893
5894 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5895
5896         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5897         of cgraph_node.
5898         * final.c (rest_of_clean_state): Likewise.
5899         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5900         * passes.c (pass_init_dump_file): Likewise.
5901         (execute_all_ipa_transforms): Likewise.
5902         (function_called_by_processed_nodes_p): Likewise.
5903         * predict.c (maybe_hot_frequency_p): Likewise.
5904         (probably_never_executed_bb_p): Likewise.
5905         (compute_function_frequency): Likewise.
5906         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5907         (unnest_nesting_tree_1): Likewise.
5908         (lower_nested_functions): Likewise.
5909         * tree-optimize.c (execute_fixup_cfg): Likewise.
5910         (tree_rest_of_compilation): Likewise.
5911         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5912         * tree-sra.c (ipa_early_sra): Likewise.
5913         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5914         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5915         * ipa.c (record_cdtor_fn): Likewise.
5916         * ipa-inline.c (cgraph_early_inlining): Likewise.
5917         (compute_inline_parameters_for_current): Likewise.
5918         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5919         * ipa-pure-const.c (local_pure_const): Likewise.
5920         * ipa-split.c (split_function): Likewise.
5921         (execute_split_functions): Likewise.
5922         * cgraphbuild.c (build_cgraph_edges): Likewise.
5923         (rebuild_cgraph_edges): Likewise.
5924         (cgraph_rebuild_references): Likewise.
5925         (remove_cgraph_callee_edges): Likewise.
5926         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5927         (verify_cgraph_node): Likewise.
5928         (cgraph_analyze_functions): Likewise.
5929         (cgraph_preserve_function_body_p): Likewise.
5930         (save_inline_function_body): Likewise.
5931         (save_inline_function_body): Likewise.
5932         * tree-inline.c (copy_bb): Likewise.
5933         (optimize_inline_calls): Likewise.
5934
5935 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5936
5937         PR tree-optimization/48195
5938         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5939         ipa_check_create_edge_args.
5940         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5941         ipa_check_create_edge_args.
5942         * ipa-inline.c (inline_generate_summary): Do not call
5943         ipa_check_create_node_params and ipa_check_create_edge_args.
5944         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5945         ipa_check_create_edge_args.
5946
5947 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5948
5949         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5950         instead of loop.
5951         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5952         * function.c (record_hard_reg_sets): Likewise.
5953         * ira.c (compute_regs_asm_clobbered): Likewise.
5954         * sched-deps.c (sched_analyze_1): Likewise.
5955         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5956
5957 2011-04-09  Xinliang David Li  <davidxl@google.com>
5958
5959         PR tree-optimization/PR48484
5960         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5961         has_valid_pred lazily
5962
5963 2011-04-09  Duncan Sands  <baldrick@free.fr>
5964
5965         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5966
5967 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5968
5969         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5970         cost of I0 to zero at the end, if any.
5971
5972 2011-04-08  Xinliang David Li  <davidxl@google.com>
5973
5974         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5975         to insane profile data.
5976
5977 2011-04-08  Xinliang David Li  <davidxl@google.com>
5978
5979         * ipa-cp.c (ipcp_update_profiling): Correct
5980          negative scale factor due to insane profile data.
5981
5982 2011-04-08  Xinliang David Li  <davidxl@google.com>
5983
5984         * final.c (dump_basic_block_info): New function.
5985         (final): Dump basic block.
5986         (final_scan_insn): Remove old dump.
5987
5988 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5989
5990         PR target/47829
5991         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5992         crtbegin/crtend.
5993
5994 2011-04-08  Michael Matz  <matz@suse.de>
5995
5996         PR middle-end/48389
5997         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5998         functions.
5999         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6000         * rtl.h (rebuild_jump_labels_chain): Declare.
6001         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6002         insns inserted on edges.
6003
6004 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6005
6006         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6007         * config/arm/arm-arches.def: New.
6008         * config/arm/arm-opts.h: New.
6009         * config/arm/genopt.sh: New.
6010         * config/arm/arm-tables.opt: New (generated).
6011         * config/arm/arm.c (arm_handle_option, arm_target_help,
6012         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6013         (all_architectures): Get most table contents from arm-arches.def.
6014         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6015         arm_selected_tune here.
6016         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6017         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6018         (march=, mcpu=, mtune=): Use Enum and Var.
6019         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6020         (arm.o): Update dependencies.
6021
6022 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6023
6024         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6025         of header_file.
6026         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6027         (write_typed_alloc_defns): Likewise.
6028         (main): Calls write_typed_alloc_defns with output_header.
6029
6030 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6031
6032         PR inline-asm/48435
6033         * ira-color.c (setup_profitable_hard_regs): Add comments.
6034         Don't take prohibited hard regs into account.
6035         (setup_conflict_profitable_regs): Rename to
6036         get_conflict_profitable_regs.
6037         (check_hard_reg_p): Check prohibited hard regs.
6038
6039 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6040
6041         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6042         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6043         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6044
6045 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6046
6047         PR target/48366
6048         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6049         move from floating point to shift amount register.
6050         (emit_move_sequence): Remove secondary reload support for floating
6051         point to shift amount amount register copies.
6052         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6053         amount register copies.
6054         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6055         register, return false if mode isn't a scalar integer mode.
6056         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6057
6058 2011-04-08  Richard Guenther  <rguenther@suse.de>
6059
6060         * gimple.c (gimple_call_flags): Remove kludge.
6061
6062 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6063
6064         * sel-sched.c (sel_region_init): Move call to
6065         sel_setup_region_sched_flags after setup_current_loop_nest.
6066
6067 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6068
6069         PR rtl-optimization/48272
6070         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6071         init_insn_reg_pressure_info.  Adjust a caller.
6072         * sched-int.h (init_insn_reg_pressure_info): Declare.
6073         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6074         when sched-pressure is enabled.
6075
6076 2011-04-08  Richard Guenther  <rguenther@suse.de>
6077
6078         * gimple.c (gimple_set_modified): Do not queue calls to
6079         MODIFIED_NORETURN_CALLS here ...
6080         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6081
6082 2011-04-08  Richard Guenther  <rguenther@suse.de>
6083
6084         PR lto/48467
6085         * toplev.c (lang_dependent_init): Do not open asm_out_file
6086         in WPA mode, nor perform debug machinery initialization.
6087         (finalize): Do not unlink asm_out_file in WPA mode.
6088
6089 2011-04-08  Richard Guenther  <rguenther@suse.de>
6090
6091         * gimple.h (gimple_call_fntype): New function.
6092         (gimple_call_return_type): Use it.
6093         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6094         * gimple-low.c (gimple_check_call_args): Likewise.
6095         * gimple.c (gimple_call_flags): Likewise.
6096         (gimple_call_arg_flags): Likewise.
6097         (gimple_call_return_flags): Likewise.
6098         * tree-cfg.c (verify_gimple_call): Likewise.
6099         (do_warn_unused_result): Likewise.
6100         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6101         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6102
6103 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6104
6105         PR rtl-optimization/48235
6106         * sel-sched.c (code_motion_process_successors): Recompute the last
6107         insn in basic block if control flow changed.
6108         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6109         Update condition for ilist_remove.
6110
6111 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6112
6113         PR rtl-optimization/48302
6114         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6115         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6116         it to record added preheader blocks.
6117         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6118         on to sel_add_loop_preheaders.
6119         (sel_region_init): Move call to setup_current_loop_nest after
6120         sel_init_bbs.
6121
6122 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6123
6124         PR target/48273
6125         * cfgloop.h (loop_has_exit_edges): New helper.
6126         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6127         non-clonable.
6128         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6129         that have no exit edges.
6130
6131 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6132
6133         PR rtl-optimization/48442
6134         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6135         all callers.  Adjust assert.
6136
6137 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6138
6139         PR tree-optimization/48377
6140         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6141         is_packed to true even for types with smaller TYPE_ALIGN than
6142         TYPE_SIZE.
6143
6144 2011-04-08  Richard Guenther  <rguenther@suse.de>
6145
6146         PR bootstrap/48513
6147         * doc/tm.texi: Re-generate.
6148
6149 2011-04-08  Wei Guozhi  <carrot@google.com>
6150
6151         PR target/47855
6152         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6153         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6154         * config/arm/arm.md (*push_multi): Change the length computation to
6155         call a C function.
6156
6157 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6158
6159         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6160         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6161         * doc/tm.texi: Regenerate.
6162         * system.h (ASM_OUTPUT_BSS): Poison.
6163         * varasm.c (asm_output_bss): Remove function.
6164         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6165
6166         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6167         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6168         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6169         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6170         Likewise.
6171         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6172         Likewise.
6173         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6174         Likewise.
6175         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6176
6177 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6178
6179         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6180         EnumValue lines.
6181
6182 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6183
6184         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6185         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6186         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6187         OPT_mcpu32.
6188         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6189         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6190         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6191         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6192         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6193         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6194         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6195         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6196         options.  Don't map other m68k options manually.  Don't handle
6197         old-style options as canonical.
6198         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6199         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6200
6201 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6202
6203         * basic-block.h (force_nonfallthru): Move to...
6204         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6205         (force_nonfallthru): ...here.
6206         * cfghooks.c (force_nonfallthru): New function.
6207         * cfgrtl.c (force_nonfallthru): Rename into...
6208         (rtl_force_nonfallthru): ...this.
6209         (commit_one_edge_insertion): Do not set AUX field.
6210         (commit_edge_insertions): Do not discover new basic blocks.
6211         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6212         (cfg_layout_rtl_cfg_hooks): Likewise.
6213         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6214         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6215         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6216
6217 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6218
6219         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6220         Remove macros.
6221
6222 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6223
6224         * config/i386/sse.md: Update copyright year.
6225         (avxcvtvecmode): Remove.
6226         (sse_movhlps): Merge with *avx_movhlps.
6227         (sse_movlhps): Merge with *avx_movlhps.
6228         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6229         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6230         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6231         (sse_loadhps): Merge with *avx_loadhps.
6232         (sse_storelps): Merge with *avx_storelps.
6233         (sse_loadlps): Merge with *avx_loadlps.
6234         (sse_movss): Merge with *avx_movss.
6235         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6236         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6237         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6238         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6239         (vec_set<mode>_0): Ditto.
6240         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6241         (sse4_1_insertps): Merge with *avx_insertps.
6242         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6243         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6244         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6245         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6246         (sse2_storehpd): Merge with *avx_storehpd.
6247         (sse2_loadhpd): Merge with *avx_loadhpd.
6248         (sse2_loadlpd): Merge with *avx_loadlpd.
6249         (sse2_movsd): Merge with *avx_movsd.
6250         (*vec_concatv2df): Merge with *vec_concatv2df.
6251
6252 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6253
6254         PR debug/48343
6255         * combine.c (combine_instructions): Add last_combined_insn,
6256         update it if insn is after it, pass it to all try_combine calls.
6257         (try_combine): Add last_combined_insn parameter, pass it instead of
6258         i3 to propagate_for_debug.
6259
6260 2011-04-07  Nick Clifton  <nickc@redhat.com>
6261
6262         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6263         to handle MDR <-> data register transfers.
6264         (movhi_internal): Likewise.
6265
6266 2011-04-07  Alan Modra  <amodra@gmail.com>
6267
6268         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6269         previous stack info.
6270
6271 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6272
6273         PR target/43920
6274         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6275         flow_find_cross_jump.  Swap variables to implement backward replacement.
6276         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6277
6278 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6279
6280         PR target/43920
6281         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6282         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6283         and bb2.
6284         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6285         src1 or src2.  Redirect edges to the last basic block.  Update
6286         frequency and count on multiple basic blocks in case of fallthru.
6287
6288 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6289
6290         PR target/43920
6291         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6292         function.
6293         (old_insns_match_p): Change return type.  Replace return false/true
6294         with return dir_none/dir_both.  Use can_replace_by.
6295         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6296         direction from dir_p.  Register replacement direction in dir, last_dir
6297         and afterlast_dir.  Handle new return type of old_insns_match_p using
6298         merge_dir.  Return replacement direction in dir_p.
6299         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6300         return type of old_insns_match_p.
6301         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6302         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6303         flow_find_cross_jump.
6304         * basic-block.h (enum replace_direction): New type.
6305         (flow_find_cross_jump): Add parameter to declaration.
6306
6307 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6308
6309         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6310         (AVXMODEDCVTPS2DQ): Ditto.
6311         (VEC_FLOAT_MODE): Ditto.
6312         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6313         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6314         (<any_logic:code><mode>3): Use VF mode iterator.
6315         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6316         Use VF mode iterator.
6317         (copysign<mode>3): Use VF mode iterator.
6318         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6319         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6320         (*<any_logic:code><MODEF:mode>3): Merge with
6321         *avx_<any_logic:code><MODEF:mode>3.
6322         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6323         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6324         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6325         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6326         (sse2_cvtdq2ps): Use %v modifier.
6327         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6328         (avx_cvtps2dq<avxmodesuffix>): Remove.
6329         (sse2_cvtps2dq): Use %v modifier.
6330         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6331         (avx_cvttps2dq<avxmodesuffix>): Remove.
6332         (sse2_cvttps2dq): Use %v modifier.
6333         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6334         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6335         (sse2_cvtsd2siq): Fix insn template.
6336         (sse2_cvtsd2siq_2): Ditto.
6337         (sse2_cvttsd2siq): Ditto.
6338         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6339         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6340
6341 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6342
6343         * gcov-io.c: Use GCC Runtime Library Exception.
6344
6345 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6346
6347         PR debug/48466
6348         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6349         as base_reg whatever register reg has been eliminated to, instead
6350         of hardcoding STACK_POINTER_REGNUM.
6351
6352 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6353
6354         * doc/tm.texi.in: Document C target hooks as separate from general
6355         target hooks.
6356         * doc/tm.texi: Regenerate.
6357         * genhooks.c (struct hook_desc): Add docname field.
6358         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6359         docname field.
6360         (hook_array): Include c-target.def.
6361         (emit_documentation): Use docname field in output.
6362         (emit_init_macros): Take docname argument.  Only emit definitions
6363         for hooks matching docname.
6364         (main): Expect additional arguments in all cases.  Pass argument
6365         to emit_init_macros.
6366         * target.def: Move initial macro definitions and comments to
6367         target-hooks-macros.h.
6368         (gcc_targetcm): Move to c-family/c-target.def.
6369         * target.h (targetcm): Move declaration to c-family/c-target.h.
6370         * targhooks.c (default_handle_c_option): Move to
6371         c-family/c-opts.c.
6372         * targhooks.h (default_handle_c_option): Move declaration to
6373         c-family/c-common.h.
6374         * target-hooks-macros.h: New file.
6375         * config.gcc (target_has_targetcm): Define and use to add to
6376         c_target_objs and cxx_target_objs.
6377         * config/default-c.c: New file.
6378         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6379         of target.h and target-def.h.
6380         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6381         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6382         darwin_check_cfstring_format_arg): Make static.
6383         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6384         TARGET_STRING_OBJECT_REF_TYPE_P,
6385         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6386         * config/darwin-protos.h (darwin_objc_construct_string,
6387         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6388         declare.
6389         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6390         TARGET_STRING_OBJECT_REF_TYPE_P,
6391         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6392         * config/t-darwin (darwin-c.o): Update dependencies.
6393         * system.h (TARGET_HAS_TARGETCM): Poison.
6394         * Makefile.in (TARGET_H): Update.
6395         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6396         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6397         (default-c.o): New target.
6398         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6399         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6400         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6401         c-target.def.
6402         (build/genhooks.o): Update dependencies.
6403
6404 2011-04-06  Richard Guenther  <rguenther@suse.de>
6405
6406         * ipa-inline.c (enum inlining_mode): Remove.
6407         (cgraph_flatten): Use some other token.
6408         (cgraph_edge_early_inlinable_p): New function, split out from ...
6409         (cgraph_perform_always_inlining): New function, split out from ...
6410         (cgraph_decide_inlining_incrementally): ... here.
6411         (cgraph_mark_inline_edge): Adjust.
6412         (cgraph_early_inlining): Re-structure.
6413         (pass_early_inline): Require SSA form.
6414
6415 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6416             Julian Brown  <julian@codesourcery.com>
6417             Mark Shinwell  <shinwell@codesourcery.com>
6418
6419         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6420         LO_REGS only for Thumb-1.
6421         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6422         be used in short instructions when optimising for size on Thumb-2.
6423
6424 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6425
6426         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6427         associated with user returns to be preserved.
6428
6429 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6430
6431         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6432         symbol_queue_size, DBXOUT_DECR_NESTING,
6433         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6434         if XCOFF_DEBUGGING_INFO.
6435
6436 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6437
6438         * config/i386/i386.md (attribute isa): New.
6439         (attribute enabled): New.
6440         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6441         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6442         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6443         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6444         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6445         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6446         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6447         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6448
6449         * config/i386/sse.md (VF): New mode iterator.
6450         (VF1): Ditto.
6451         (VF2): Ditto.
6452         (VF_128): Ditto.
6453         (SSEMODEF4): Remove.
6454         (attribute sse): Handle V8SF and V4DF modes.
6455         (<absneg:code><mode>2): Use VF mode iterator.
6456         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6457         mode iterator.
6458         (<plusminus_insn><mode>3): Use VF mode iterator.
6459         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6460         Use VF mode iterator.
6461         (<sse>_vm<plusminus_insn><mode>3): Merge with
6462         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6463         (mul<mode>3): Use VF mode iterator.
6464         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6465         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6466         mode iterator.
6467         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6468         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6469         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6470         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6471         mode iterator.
6472         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6473         Use VF1 mode iterator.
6474         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6475         (sqrt<VF2:mode>2): New expander.
6476         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6477         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6478         and sqrtv2df2.  Use VF mode iterator.
6479         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6480         mode iterator.
6481         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6482         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6483         Use VF1 mode iterator.
6484         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6485         (<smaxmin:code><mode>3): Use VF mode iterator.
6486         (*<smaxmin:code><mode>3_finite): Merge with
6487         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6488         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6489         (<sse>_vm<smaxmin:code><mode>2): Merge with
6490         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6491         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6492         mode iterator.
6493         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6494         mode iterator.
6495         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6496         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6497         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6498         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6499         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6500         VF mode iterator.
6501         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6502         Use VF_128 mode iterator.
6503         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6504         mode iterator.
6505         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6506         VF_128 mode iterator.
6507         (vcond<mode>): Use VF mode iterator.
6508         * config/i386/predicates.md (sse_comparison_operator): Merge with
6509         avx_comparison_float_operator.  Do not declare as special_predicate.
6510         * config/i386/i386.c (struct builtin_description): Update for renamed
6511         compare patterns.
6512         (ix86_expand_args_builtin): Ditto.
6513         (ix86_expand_sse_compare_mask): Ditto.
6514
6515 2011-04-06  Richard Guenther  <rguenther@suse.de>
6516
6517         * tree-inline.c (estimate_num_insns): For calls simply account
6518         for all passed arguments and a used return value.
6519
6520 2011-04-06  Richard Guenther  <rguenther@suse.de>
6521
6522         PR tree-optimization/47663
6523         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6524         call_stmt_time fields.
6525         (cgraph_edge_inlinable_p): Declare.
6526         (cgraph_edge_recursive_p): New inline function.
6527         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6528         (cgraph_clone_edge): Copy it.
6529         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6530         Account for call stmt time.
6531         (cgraph_estimate_time_after_inlining): Take edge argument.
6532         (cgraph_estimate_edge_growth): Account call stmt size.
6533         (cgraph_estimate_size_after_inlining): Take edge argument.
6534         (cgraph_mark_inline_edge): Adjust.
6535         (cgraph_check_inline_limits): Likewise.
6536         (cgraph_recursive_inlining_p): Remove.
6537         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6538         (cgraph_decide_recursive_inlining): Take edge argument and
6539         adjust.
6540         (cgraph_decide_inlining_of_small_functions): Do not avoid
6541         diags for recursive inlining here.
6542         (cgraph_flatten): Adjust.
6543         (cgraph_decide_inlining_incrementally): Likewise.
6544         (estimate_function_body_sizes): Remove call cost handling.
6545         (compute_inline_parameters): Initialize caller edge call costs.
6546         (cgraph_estimate_edge_growth): New function.
6547         (cgraph_estimate_growth): Use it.
6548         (cgraph_edge_badness): Likewise.
6549         (cgraph_check_inline_limits): Take an edge argument.
6550         (cgraph_decide_inlining_of_small_functions): Adjust.
6551         (cgraph_decide_inlining): Likewise.
6552         * tree-inline.c (estimate_num_insns): Only account for call
6553         return value if it is used.
6554         (expand_call_inline): Avoid diagnostics on recursive inline
6555         functions here.
6556         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6557         (input_edge): Input edge call costs.
6558
6559 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6560
6561         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6562
6563 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6564
6565         * doc/invoke.texi (Spec Files): Fix typo.
6566
6567 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6568
6569         * profile.c (branch_prob): Move declaration of local variable.  Remove
6570         obsolete ??? comment.  Expand the location explicitly instead of using
6571         the LOCATION_FILE and LOCATION_LINE macros.
6572
6573 2011-04-06  Wei Guozhi  <carrot@google.com>
6574
6575         PR target/47855
6576         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6577         (arm_cond_branch): Likewise.
6578         (arm_cond_branch_reversed): Likewise.
6579         (arm_jump): Likewise.
6580         (push_multi): Likewise.
6581         * config/arm/constraints.md (Py): New constraint.
6582
6583 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6584
6585         PR bootstrap/48471
6586         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6587         Move these...
6588         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6589         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6590         #ifdef DBX_DEBUGGING_INFO.
6591
6592 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6593
6594         PR bootstrap/48403
6595         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6596         if old and new states differ.
6597
6598 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6599
6600         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6601         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6602         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6603         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6604         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6605         mcfv4e): Use Alias.
6606         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6607         ColdFire options to -mcpu= options.
6608
6609 2011-04-05  Jeff Law  <law@redhat.com>
6610
6611         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6612         check if BB is a successor of LOOP->header and return
6613         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6614
6615 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6616
6617         * cprop.c (struct reg_use): Remove.
6618         (reg_use_table): Make an array of RTX.
6619         (find_used_regs, constprop_register, local_cprop_pass,
6620         bypass_block): Simplify users of reg_use_table.
6621         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6622         on one of the uses found by find_used_regs.
6623
6624 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6625
6626         PR bootstrap/48469
6627         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6628         declaration.
6629
6630 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6631
6632         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6633         as an rtx.
6634         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6635
6636 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6637
6638         PR middle-end/48441
6639         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6640
6641 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6642
6643         * combine.c: Include obstack.h.
6644         (struct insn_link): Define.
6645         (uid_log_links): Adjust type.
6646         (FOR_EACH_LOG_LINK): New macro.
6647         (insn_link_obstack): Declare.
6648         (alloc_insn_link): Define.
6649         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6650         type of link variables.
6651         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6652         (try_combine, record_promoted_values, distribute_notes): Likewise.
6653         (distribute_links): Likewise.  Tweak prototype.
6654         (clear_log_links): Delete.
6655         (adjust_for_new_dest): Call alloc_insn_link.
6656         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6657
6658 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6659
6660         * gcse.c (modify_mem_list): Convert to an array of VECs.
6661         (canon_modify_mem_list, compute_transp): Tweak formatting.
6662         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6663         (load_killed_in_block_p): Likewise.
6664         (record_last_mem_set_info): Likewise.
6665         (clear_modify_mem_tables): Likewise.
6666
6667 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6668
6669         PR middle-end/48461
6670         * function.c (emit_use_return_register_into_block): Only define if
6671         HAVE_return.
6672
6673 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6674
6675         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6676
6677 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6678
6679         * config/rx/rx-opts.h: New.
6680         * config/rx/rx.c (rx_cpu_type): Remove.
6681         (rx_handle_option): Don't assert that global structures are in
6682         use.  Access variables via opts pointer.  Defer most handling of
6683         OPT_mint_register_.  Use error_at.
6684         (rx_option_override): Handle deferred OPT_mint_register_ here.
6685         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6686         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6687         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6688         (rx_cpu_types): New Enum and EnumValue entries.
6689         (mint-register=): Use Defer and use Var accordingly.
6690
6691 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6692
6693         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6694         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6695         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6696         Move these...
6697         (debug_free_queue, debug_nesting, symbol_queue_index):
6698         ...and these...
6699         * dbxout.c: ...to here.  Make static.
6700
6701 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6702
6703         * gcse.c (modify_pair): Define.  Define a VEC of it.
6704         (canon_modify_mem_list): Convert to an array of VECs.
6705         (free_insn_expr_list_list): Delete.
6706         (clear_modify_mem_tables): Call VEC_free instead.
6707         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6708         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6709         (canon_list_insert, compute_transp): Likewise.
6710
6711 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6712
6713         PR target/43920
6714         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6715         for size.
6716
6717 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6718
6719         PR target/43920
6720         * function.c (emit_use_return_register_into_block): New function.
6721         (thread_prologue_and_epilogue_insns): Use
6722         emit_use_return_register_into_block.
6723
6724 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6725
6726         PR target/43920
6727         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6728         insn.
6729
6730 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6731
6732         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6733
6734 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6735
6736         * config/arm/arm.md (define_constants for unspec): Replace with
6737         define_c_enum.
6738         (define_constants for unspecv): Replace with define_c_enum.
6739         * config/arm/neon.md (define_constants for unspec): Replace with
6740         define_c_enum.
6741
6742 2011-04-04  Richard Henderson  <rth@redhat.com>
6743
6744         PR bootstrap/48400
6745         * dwarf2out.c (output_line_info): Always emit line info from
6746         at least one section.
6747         (dwarf2out_init): Create text_section_line_info here ...
6748         (set_cur_line_info_table): ... not here.
6749
6750 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6751
6752         PR target/48380
6753         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6754         not called.
6755
6756         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6757
6758 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6759
6760         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6761         (expr_equiv_p): Remove.
6762         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6763         (hash_scan_set): Update call to insert_set_in_table.
6764         (dump_hash_table): Dump <dest, src> pair.
6765         (lookup_set): Simplify.  Lookup <dest, src> pair.
6766         (compute_transp): Remove, fold heavily simplified code into...
6767         (compute_local_properties): ...here.  Expect COMP and TRANSP
6768         unconditionally.
6769         (find_avail_set): Take set directly from struct expr.
6770         (find_bypass-set): Likewise.
6771         (bypass_block): Likewise.
6772         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6773
6774         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6775         checks on form of COND from find_implicit_sets to here.
6776         (find_implicit_sets): Cleanup control flow. Split critical edges
6777         if it exposes implicit sets.  Allocate/resize implicit_sets as
6778         necessary.
6779         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6780         changed something.  Run df_analyze after find_implicit_sets if any
6781         edges were split.  Do not allocate implicit_sets here.
6782
6783         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6784         (gcse_obstack): Renamed to cprop_obstack.
6785         (GNEW, GNEWVEC, GNEWVAR): Remove.
6786         (gmalloc): Remove.
6787         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6788         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6789         (gcse_alloc): Likewise, and rename to cprop_alloc.
6790         (alloc_gcse_men, free_gcse_mem): Remove.
6791         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6792         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6793         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6794
6795         * cprop.c (oprs_not_set_p): Remove.
6796         (mark_set, mark_clobber): Remove.
6797         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6798         (reg_not_set_p): New function.
6799         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6800         (cprop_insn): Likewise.
6801         (cprop_jump): Use FOR_EACH_EDGE.
6802
6803 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6804
6805         PR bootstrap/48403
6806         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6807         (rank_for_schedule): Use scheduled_insns vector instead of
6808         last_scheduled_insn.
6809         (ok_for_early_queue_removal): Likewise.
6810         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6811         we have a dbg_cnt.
6812         (choose_ready): Likewise.
6813         (commit_schedule): Use VEC_iterate.
6814         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6815         a dbg_cnt, use it and ensure the first insn is in the ready list.
6816         (haifa_sched_init): Allocate scheduled_insns.
6817         (sched_extend_ready_list): Don't allocate it; reserve space.
6818         (haifa_sched_finish): Free it.
6819
6820 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6821
6822         * optc-gen.awk: Always remove type from Variable entry before
6823         recording in var_seen.
6824
6825 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6826
6827         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6828         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6829         call to tidy_fallthru_edges.
6830
6831 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6832
6833         * doc/options.texi (ToLower): Document.
6834         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6835         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6836         * opts.h (cl_option): Add cl_tolower field.
6837         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6838         arguments with lowercase strings.
6839         * config/rx/rx.opt (mcpu=): Add ToLower.
6840         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6841         argument.
6842
6843 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6844
6845         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6846
6847 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6848
6849         * config/vax/vax.c: Include reload.h.
6850
6851 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6852
6853         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6854         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6855         (sparc_preferred_reload_class): New function.
6856
6857 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6858
6859         PR debug/48401
6860         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6861         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6862
6863 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6864
6865         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6866         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6867
6868 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6869
6870         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6871         (ASM_OUTPUT_ALIGNED_BSS): Define.
6872
6873 2011-04-03  Michael Matz  <matz@suse.de>
6874
6875         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6876         and next_slot members.
6877         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6878         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6879         (lto_streamer_cache_append): Declare.
6880         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6881         unsigned index, remove offset parameter, ensure that we append
6882         or update existing entries.
6883         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6884         parameter, update next_slot for append.
6885         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6886         parameter.
6887         (lto_streamer_cache_insert_at): Likewise.
6888         (lto_streamer_cache_append): New function.
6889         (lto_streamer_cache_lookup): Use unsigned index.
6890         (lto_streamer_cache_get): Likewise.
6891         (lto_record_common_node): Don't test tree_node_can_be_shared.
6892         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6893         (lto_streamer_cache_delete): Don't free offsets member.
6894         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6895         (lto_output_string_with_length): Use lto_output_data_stream.
6896         (lto_output_tree_header): Remove ix parameter, don't write it.
6897         (lto_output_builtin_tree): Likewise.
6898         (lto_write_tree): Adjust callers to above, don't track and write
6899         offset, write unsigned index.
6900         (output_unreferenced_globals): Don't emit all global vars.
6901         (write_global_references): Use unsigned indices.
6902         (lto_output_decl_state_refs): Likewise.
6903         (write_symbol): Likewise.
6904         * lto-streamer-in.c (lto_input_chain): Move earlier.
6905         (input_function): Use unsigned index.
6906         (input_alias_pairs): Don't read and then ignore all global vars.
6907         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6908         don't pass it back, use lto_streamer_cache_append.
6909         (lto_register_var_decl_in_symtab): Use unsigned index.
6910         (lto_register_function_decl_in_symtab): Likewise.
6911         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6912         index.
6913         (lto_get_builtin_tree): Don't read index, use
6914         lto_streamer_cache_append.
6915         (lto_read_tree): Adjust call to lto_materialize_tree.
6916
6917         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6918         don't use function calls in arguments to MIN.
6919
6920         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6921         twice.
6922
6923         * gimple.c (gimple_type_leader_entry): Mark deletable.
6924
6925 2011-04-03  Alan Modra  <amodra@gmail.com>
6926
6927         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6928
6929 2011-04-03  Michael Matz  <matz@suse.de>
6930
6931         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6932         an integer.
6933         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6934
6935 2011-04-03  Michael Matz  <matz@suse.de>
6936
6937         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6938         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6939         without function context.
6940         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6941         current_function_decl and cfun.
6942
6943 2011-04-03  Michael Matz  <matz@suse.de>
6944
6945         * tree.c (decl_init_priority_insert): Don't create entry for
6946         default priority.
6947         (decl_fini_priority_insert): Ditto.
6948         (fields_compatible_p, find_compatible_field): Remove.
6949         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6950         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6951
6952 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6953
6954         * combine.c (try_combine): Remove useless local variable.
6955
6956 2011-04-03  Richard Guenther  <rguenther@suse.de>
6957             Ira Rosen  <ira.rosen@linaro.org>
6958
6959         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6960         non-variable offsets and compare the remaining bases of the two
6961         accesses instead of looking for exact same data-ref.
6962
6963 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6964
6965         PR target/48416
6966         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6967
6968         * i386.c (ix86_is_msabi_thiscall): New helper function.
6969         (ix86_is_type_thiscall): New helper function.
6970         (ix86_comp_type_attributes): Handle thiscall for method-functions
6971         special.
6972         (init_cumulative_args): Likewise.
6973         (find_drap_reg): Likewise.
6974         (ix86_static_chain): Likewise.
6975         (x86_this_parameter): Likewise.
6976         (x86_output_mi_thunk): Likewise.
6977
6978 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6979             Nicolas Setton  <setton@adacore.com>
6980             Eric Botcazou  <ebotcazou@adacore.com>
6981
6982         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6983         (add_gnat_descriptive_type_attribute): New function.
6984         (gen_array_type_die): Call it.
6985         (gen_enumeration_type_die): Likewise.
6986         (gen_struct_or_union_type_die): Likewise.
6987         (modified_type_die): Likewise.
6988         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6989         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6990         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6991
6992 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6993
6994         PR bootstrap/48148
6995         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6996         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6997
6998         Revert:
6999         2011-03-17  Richard Guenther  <rguenther@suse.de>
7000
7001         PR bootstrap/48148
7002         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7003         origin for decls in other ltrans units.
7004         (input_varpool_node): Likewise.
7005
7006 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7007
7008         PR middle-end/48335
7009         * expr.c (expand_assignment): Handle all possibilities
7010         if TO_RTX is CONCAT.
7011         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7012         (store_split_bit_field): If SUBREG_REG (op0) or
7013         op0 itself has smaller mode than word, return it
7014         for offset 0 and const0_rtx for out-of-bounds stores.
7015         If word is const0_rtx, skip it.
7016
7017 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7018
7019         * config/h8300/h8300.c (print_operand_address): Rename to...
7020         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7021         Call h8300_print_operand and h8300_print_operand_address instead of
7022         print_operand and print_operand_address. Declare.
7023         (print_operand): Renake to...
7024         (h8300_print_operand): ...this. Make static. Adjust comments.
7025         Call h8300_print_operand instead of print_operand. Declare.
7026         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7027         (h8300_register_move_cost): Likewise.
7028         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7029         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7030         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7031         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7032         * config/h8300/h8300-protos.h (print_operand): Delete.
7033         (print_operand_address): Delete.
7034
7035 2011-04-01  Richard Henderson  <rth@redhat.com>
7036
7037         PR 48400
7038         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7039         in strict mode before dwarf4.  Re-order tests to early out
7040         before switching sections.
7041
7042 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7043
7044         * config/h8300/constraints.md: New file.
7045         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7046         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7047         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7048         * config/h8300/predicates.md (bit_operand): Likewise.
7049         (incdec_operand): Use satisfies_constraint_M and
7050         satisfies_constraint_O.  Don't use C code block.
7051         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7052         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7053         (compute_mov_length): Use satisfies_constraint_G.
7054         (fix_bit_operand): Use satisfies_constraint_U.
7055         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7056         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7057         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7058         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7059         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7060         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7061         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7062         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7063         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7064         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7065         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7066         (EXTRA_MEMORY_CONSTRAINT): Delete.
7067
7068 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7069             Michael Meissner  <meissner@linux.vnet.ibm.com>
7070
7071         PR target/48262
7072         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7073         operands, as per the specifications.
7074
7075         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7076         (vec_extract_evenv4sf): Ditto.
7077         (vec_extract_evenv8hi): Ditto.
7078         (vec_extract_evenv16qi): Ditto.
7079         (vec_extract_oddv4si): Ditto.
7080
7081 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7082
7083         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7084         high_pc attribute if the CU has no associated code. Only output
7085         DW_AT_entry_pc for CU if not generating strict dwarf and
7086         dwarf_version < 4.
7087
7088 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7089
7090         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7091         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7092         out of ...
7093         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7094         * final.c (final_start_function): Call the new function rather
7095         than using a NULL argument for dwarf2out_frame_debug.
7096
7097         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7098         that contains the prologue.
7099
7100         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7101         changed.  Print it in debugging output.
7102
7103         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7104
7105         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7106         Split most of the code into...
7107         (begin_move_insn): ... here.  New function.
7108         (ebb_sched_info): Add a pointer to it.
7109         * haifa-sched.c (scheduled_insns): New static variable.
7110         (sched_extend_ready_list): Allocate it.
7111         (schedule_block): Use it to record the order of scheduled insns.
7112         Perform RTL changes to move insns only after all scheduling
7113         decisions have been made.
7114         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7115         begin_move_insn field.
7116         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7117         * sched-int.h (struct haifa_sched_info): Remove second argument
7118         from begin_schedule_ready hook.  Add new member begin_move_insn.
7119         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7120         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7121
7122         * haifa-sched.c (prune_ready_list): New function, broken out of
7123         schedule_block.
7124         (schedule_block): Use it.
7125
7126 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7127
7128         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7129
7130 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7131
7132         * config.gcc (*-*-mingw*): Allow as option the
7133         posix threading model.
7134         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7135         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7136         definition.
7137         (CPP_SPEC): Add pthread/no-pthread handling.
7138         (LIB_SPEC): Likewise.
7139         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7140         (LIB_SPEC): Likewise.
7141         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7142         flag to pass -pthread option for shared libgcc build.
7143         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7144         for shared libgcc build.
7145         * config/i386/t-mingw-pthread: New file.
7146         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7147         New define to enable use of library pthread by default.
7148         * config/i386/mingw.opt (pthread): New driver option.
7149         (no-pthread): New driver option.
7150         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7151         * config/i386/mingw-w64.opt: Likewise.
7152
7153 2011-04-01  Gary Funck  <gary@intrepid.com>
7154
7155         * c-decl.c (grokdeclarator): Fix formatting.
7156
7157 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7158
7159         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7160         instead of n_operands.
7161         (set_storage_via_setmem): Likewise.
7162         * optabs.c (maybe_gen_insn): Likewise.
7163         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7164         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7165         (mips_expand_builtin_direct): Likewise.
7166         * config/spu/spu.c (expand_builtin_args): Likewise.
7167
7168 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7169
7170         * recog.h (insn_data_d): Add n_generator_args.
7171         * genoutput.c (data): Likewise.
7172         (output_insn_data): Print it.
7173         (max_opno, num_dups): Delete.
7174         (scan_operands): Just fill in "d->operand[...]".
7175         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7176
7177 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7178
7179         * gensupport.h (pattern_stats): New structure.
7180         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7181         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7182         (max_operand_1, max_operand_vec): Delete.
7183         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7184
7185 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7186
7187         * emit-rtl.c (emit_pattern_after_setloc): New function.
7188         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7189         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7190         (emit_pattern_after): New function.
7191         (emit_insn_after, emit_jump_insn_after): Call it.
7192         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7193         (emit_pattern_before_setloc): New function.
7194         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7195         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7196         Likewise.
7197         (emit_pattern_before): New function.
7198         (emit_insn_before, emit_jump_insn_before): Call it.
7199         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7200
7201 2011-03-31  Richard Henderson  <rth@redhat.com>
7202
7203         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7204         (dw_separate_line_info_entry): Remove.
7205         (enum dw_line_info_opcode): New.
7206         (dw_line_info_entry): Use it.
7207         (dw_line_info_table, dw_line_info_table_p): New.
7208         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7209         (line_info_table, line_info_label_num): Remove.
7210         (line_info_table_in_use): Remove.
7211         (separate_line_info_table): Remove.
7212         (separate_line_info_table_allocated): Remove.
7213         (separate_line_info_table_in_use): Remove.
7214         (LINE_INFO_TABLE_INCREMENT): Remove.
7215         (line_info_label_num): New.
7216         (cur_line_info_table): New.
7217         (text_section_line_info, cold_text_section_line_info): New.
7218         (separate_line_info): New.
7219         (SEPARATE_LINE_CODE_LABEL): Remove.
7220         (print_dwarf_line_table): Remove.
7221         (debug_dwarf): Don't dump it.
7222         (output_one_line_info_table): New.
7223         (output_line_info): Use it.
7224         (new_line_info_table): New.
7225         (set_cur_line_info_table): New.
7226         (dwarf2out_switch_text_section): Use it.
7227         (dwarf2out_begin_function): Likewise.
7228         (push_dw_line_info_entry): New.
7229         (dwarf2out_source_line): Rewrite for new line info tables.
7230         (dwarf2out_init): Remove dead initailizations.
7231
7232 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7233
7234         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7235         various flags.
7236         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7237         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7238         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7239         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7240         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7241         * opt-functions.awk (flag_init, switch_bit_fields): New.
7242         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7243         generate CL_MISSING_OK or CL_SAVE.
7244         * optc-gen.awk: Update to generate bit-field output as well as
7245         flags field.
7246         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7247         bit-field instead of CL_REJECT_DRIVER flag.
7248         * opts-common.c (generate_canonical_option,
7249         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7250         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7251         instead of CL_REJECT_NEGATIVE flag.
7252         * toplev.c (print_switch_values): Use cl_report bit-field instead
7253         of CL_REPORT flag.
7254
7255 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7256
7257         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7258         a zero minimum index only if it is redundant.
7259
7260 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7261
7262         PR rtl-optimization/48381
7263         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7264         instead of ira_class_hard_reg_index for calculating conflicting
7265         hard registers.
7266
7267 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7268
7269         * cprop.c: Clean up hash table building.
7270         (reg_avail_info): Remove.
7271         (oprs_available_p): Remove.
7272         (record_last_reg_set_info): Remove.
7273         (record_last_set_info): Remove.
7274         (reg_available_p): New function.
7275         (gcse_constant_p): Do not treat unfolded conditions as constants.
7276         (make_set_regs_unavailable): New function.
7277         (hash_scan_set): Simplify with new reg_available_p.
7278         (compute_hash_table_work): Traverse insns stream only once.
7279         Do not compute reg_avail_info. Traverse insns in reverse order.
7280         Record implicit sets after recording explicit sets from the block.
7281
7282 2011-03-31  Michael Matz  <matz@suse.de>
7283
7284         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7285
7286 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7287
7288         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7289         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7290         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7291         (h8300_mode_dependent_address_p): New function.
7292         (h8300_get_index): Make static.
7293
7294 2011-03-31  Jeff Law  <law@redhat.com>
7295
7296         * reload1.c (elimination_effects): Fix typo in recent change.
7297
7298         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7299         typo potentially leading to null pointer dereference.
7300
7301         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7302         (setup_save_areas): Corresponding changes to avoid useless
7303         assignments.
7304
7305         * jump.c (reversed_comparison_code_parts): Avoid successive return
7306         statements when REVERSE_CONDITION is defined.
7307
7308         * expr.c (expand_assignment): Avoid useless assignments.
7309         (expand_expr_real_1): Likewise.
7310         (expand_expr_real_2): Avoid useless statements.
7311
7312         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7313
7314         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7315
7316         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7317         statements.
7318
7319         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7320
7321 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7322
7323         PR target/47109
7324         * doc/tm.texi.in (TARGET_VERSION): Remove.
7325         * doc/tm.texi: Regenerate.
7326         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7327         * collect2.c (main): Don't use TARGET_VERSION.
7328         * mips-tdump.c (main): Don't use TARGET_VERSION.
7329         * mips-tfile.c (main): Don't use TARGET_VERSION.
7330         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7331         * config/rs6000/vxworksae.h: Remove.
7332         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7333         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7334         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7335         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7336         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7337         * config/arm/arm.h (TARGET_VERSION): Remove.
7338         * config/arm/coff.h (TARGET_VERSION): Remove.
7339         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7340         * config/arm/elf.h (TARGET_VERSION): Remove.
7341         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7342         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7343         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7344         * config/arm/pe.h (TARGET_VERSION): Remove.
7345         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7346         * config/arm/semi.h (TARGET_VERSION): Remove.
7347         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7348         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7349         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7350         * config/avr/avr.h (TARGET_VERSION): Remove.
7351         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7352         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7353         * config/frv/frv.h (TARGET_VERSION): Remove.
7354         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7355         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7356         * config/i386/darwin.h (TARGET_VERSION): Remove.
7357         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7358         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7359         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7360         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7361         * config/i386/gnu.h (TARGET_VERSION): Remove.
7362         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7363         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7364         * config/i386/linux.h (TARGET_VERSION): Remove.
7365         * config/i386/linux64.h (TARGET_VERSION): Remove.
7366         * config/i386/lynx.h (TARGET_VERSION): Remove.
7367         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7368         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7369         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7370         * config/i386/netware.h (TARGET_VERSION): Remove.
7371         * config/i386/nto.h (TARGET_VERSION): Remove.
7372         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7373         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7374         * config/ia64/elf.h (TARGET_VERSION): Remove.
7375         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7376         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7377         * config/ia64/linux.h (TARGET_VERSION): Remove.
7378         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7379         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7380         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7381         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7382         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7383         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7384         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7385         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7386         * config/m68k/linux.h (TARGET_VERSION): Remove.
7387         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7388         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7389         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7390         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7391         * config/mep/mep.h (TARGET_VERSION): Remove.
7392         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7393         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7394         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7395         * config/mips/linux.h (TARGET_VERSION): Remove.
7396         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7397         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7398         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7399         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7400         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7401         * config/pa/pa.h (TARGET_VERSION): Remove.
7402         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7403         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7404         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7405         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7406         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7407         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7408         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7409         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7410         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7411         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7412         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7413         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7414         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7415         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7416         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7417         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7418         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7419         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7420         * config/s390/linux.h (TARGET_VERSION): Remove.
7421         * config/s390/s390.h (TARGET_VERSION): Remove.
7422         * config/s390/tpf.h (TARGET_VERSION): Remove.
7423         * config/score/score.h (TARGET_VERSION): Remove.
7424         * config/sh/linux.h (TARGET_VERSION): Remove.
7425         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7426         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7427         * config/sh/sh.h (TARGET_VERSION): Remove.
7428         * config/sh/sh64.h (TARGET_VERSION): Remove.
7429         * config/sh/superh.h (TARGET_VERSION): Remove.
7430         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7431         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7432         * config/sparc/linux.h (TARGET_VERSION): Remove.
7433         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7434         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7435         TARGET_NAME32, TARGET_NAME): Remove.
7436         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7437         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7438         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7439         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7440         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7441         * config/spu/spu.h (TARGET_VERSION): Remove.
7442         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7443         * config/v850/v850.h (TARGET_VERSION): Remove.
7444         * config/vax/linux.h (TARGET_VERSION): Remove.
7445         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7446         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7447         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7448
7449 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7450
7451         PR target/48142
7452         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7453         frame-related from frame-unrelated adjustments to the stack pointer.
7454
7455 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7456
7457         * common.opt (fdebug-types-section): Move earlier.
7458         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7459
7460 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7461
7462         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7463         var.
7464
7465 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7466
7467         * tree.h (CASE_CHAIN): Define.
7468         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7469         (gimple_redirect_edge_and_branch): Likewise.
7470
7471 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7472
7473         PR middle-end/48367
7474         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7475         calculation.
7476
7477 2011-03-30  Jeff Law  <law@redhat.com>
7478
7479         * PR bootstrap/48371
7480         * reload1.c (reload): Fix botch in last change.
7481
7482         * reload.h (struct reload): Fix typo introduced in last change.
7483
7484 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7485
7486         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7487         Undocumented.  Remove help text.
7488         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7489         -mhard-float.
7490
7491 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7492
7493         * doc/options.texi (NegativeAlias): Document.
7494         (Alias): Mention NegativeAlias.
7495         * opt-functions.awk: Handle NegativeAlias.
7496         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7497         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7498         * opts.h (CL_NEGATIVE_ALIAS): Define.
7499         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7500         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7501         OPT_mspe_.
7502         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7503         Alias entries.
7504         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7505         mno-spe and mno-isel instead of mspe=no and -misel=no.
7506
7507 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7508
7509         * common.opt (fdebug-types-section): New flag.
7510         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7511         * dwarf2out.c (use_debug_types): New define.
7512         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7513         (print_die): Guard output of type unit signatures using
7514         use_debug_types.
7515         (build_abbrev_table): Replace assert of dwarf_version >= 4
7516         with assert on use_debug_types.
7517         (size_of_die): Likewise.
7518         (unmark_dies): Likewise.
7519         (value_format): Decide AT_ref_external form on use_debug_types.
7520         (output_die): Replace dwarf_version version check guard with
7521         use_debug_types where appropriate.
7522         (modified_type_die): Likewise.
7523         (gen_reference_type_die): Likewise.
7524         (dwarf2out_start_source_file): Likewise.
7525         (dwarf2out_end_source_file): Likewise.
7526         (prune_unused_types_walk_attribs): Likewise.
7527         (dwarf2out_finish): Likewise.
7528
7529 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7530
7531         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7532
7533 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7534
7535         PR rtl-optimization/48332
7536         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7537         mode of input operand N and modeN to its actual mode.
7538
7539 2011-03-30  Jeff Law  <law@redhat.com>
7540
7541         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7542         define accessor macro.
7543         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7544         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7545         (reg_equiv_init): Likewise.
7546         (reg_equivs_size): New variable.
7547         (reg_equiv_init_size): Remove.
7548         (allocate_initial_values): Move prototype to here from....
7549         * integrate.h (allocate_initial_values): Remove prototype.
7550         * integrate.c: Include reload.h.
7551         (allocate_initial_values): Corresponding changes.
7552         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7553         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7554         (update_equiv_regs): Corresponding changes.
7555         (ira): Corresponding changes.
7556         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7557         (push_secondary_reload): Corresponding changes.
7558         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7559         (make_memloc, find_reloads_address): Corresponding changes.
7560         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7561         (find_reloads_address_1): Corresponding changes.
7562         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7563         (refers_to_regno_for_reload_p): Corresponding changes.
7564         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7565         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7566         * reload1.c: Include ggc.h.
7567         (grow_reg_equivs): New function.
7568         (replace_pseudos_in, reload): Corresponding changes.
7569         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7570         (eliminate_regs_1, elimination_effects): Corresponding changes.
7571         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7572         (delete_output_reload): Likewise.
7573         * caller-save.c (mark_referenced_regs): Corresponding changes.
7574         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7575         * frv/predicates.md (frv_load_operand): Corresponding changes.
7576         * microblaze/microblaze.c (double_memory_operand): Corresponding
7577         changes.
7578         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7579         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7580         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7581         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7582         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7583         changes.
7584         * pa/pa.c (emit_move_sequence): Corresponding changes.
7585         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7586
7587 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7588
7589         PR target/47551
7590         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7591         structure modes.  Don't check neon_vector_mem_operand for
7592         vector or structure modes.
7593
7594 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7595             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7596
7597         PR target/43590
7598         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7599         operand 1 and reshuffle the operands to match.
7600         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7601
7602 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7603
7604         PR driver/48208
7605         * config/c.opt (F): Added 'Driver' to -F option.
7606
7607         PR driver/48260
7608         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7609           handler function.
7610         * config/darwin.opt: Added '-arch' option.
7611
7612 2011-03-30  Nick Clifton  <nickc@redhat.com>
7613
7614         * config/rx/rx.md: Add peepholes and patterns to combine
7615         extending loads and simple arithmetic instructions.
7616         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7617         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7618         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7619         modes to use pre-decrement and post-increment addressing.
7620         (rx_is_restricted_memory_address): Add range checking of REG+INT
7621         addresses.
7622         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7623         (rx_memory_move_cost): Adjust cost of stores.
7624         (rx_adjust_insn_length): New function.
7625
7626 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7627
7628         PR c/48305
7629         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7630         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7631         matching arg00/arg01 types.
7632
7633 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7634
7635         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7636         last_location to UNKNOWN_LOCATION.
7637
7638 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7639
7640         PR target/48349
7641         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7642         FLOAT_SSE_REGS.
7643
7644 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7645             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7646
7647         PR bootstrap/48337
7648         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7649         Init(PROCESSOR_V7).
7650         (sparc_cpu): Likewise.
7651         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7652         PROCESSOR_V7.
7653
7654 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7655
7656         PR target/48336
7657         PR middle-end/48342
7658         PR rtl-optimization/48345
7659         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7660         hard regs for given mode from profitable regs when doing secondary
7661         allocation.
7662
7663 2011-03-29  Jeff Law  <law@redhat.com>
7664
7665         PR bootstrap/48327
7666         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7667         do_not_duplicate field.
7668         (lookup_redirection_data): Corresponding changes.
7669         (create_duplicates): Always create a template block.
7670         (redirect_edges): Remove code which reused the original block
7671         when it was going to become unreachable code.
7672         (thread_block): Don't set do_not_duplicate field.
7673
7674 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7675
7676         * lto-opts.c (register_user_option_p, lto_register_user_option):
7677         Make type argument unsigned.
7678         * lto-streamer.h (lto_register_user_option): Make type argument
7679         unsigned.
7680         * opth-gen.awk: Make CL_* macros unsigned.
7681         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7682         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7683         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7684         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7685         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7686         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7687         (find_opt): Make lang_mask argument unsigned.
7688
7689 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7690
7691         PR rtl-optimization/48331
7692         PR rtl-optimization/48334
7693         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7694         for any used algorithm.
7695
7696 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7697
7698         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7699         to parent_max.
7700
7701 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7702
7703         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7704         (alpha_option_override): Don't set alpha_sr_alias_set.
7705         (emit_frame_store_1): Use gen_frame_mem rather than calling
7706         set_mem_alias_set.
7707         (alpha_expand_epilogue): Ditto.
7708
7709 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7710
7711         PR tree-optimization/48290
7712         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7713         vectorization, check that relevant phis in the basic block after
7714         the inner loop are really inner loop's exit phis.
7715
7716 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7717
7718         PR debug/48190
7719         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7720         (cached_dw_loc_list_def): New structure.
7721         (cached_dw_loc_list): New typedef.
7722         (cached_dw_loc_list_table): New variable.
7723         (cached_dw_loc_list_table_hash): New function.
7724         (cached_dw_loc_list_table_eq): Likewise.
7725         (add_location_or_const_value_attribute): Take a bool cache_p.
7726         Cache the list when the parameter is true.
7727         (gen_formal_parameter_die): Update caller.
7728         (gen_variable_die): Likewise.
7729         (dwarf2out_finish): Likewise.
7730         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7731         while generating debug info for the decl.
7732         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7733         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7734         (resolve_addr): Cache the result of resolving a chain of
7735         location lists.
7736
7737 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7738
7739         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7740         conflict object hard regset nodes have intersecting hard reg sets.
7741
7742         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7743         after regstat_init_n_sets_and_refs.
7744
7745         * ira.c: Add more comments at the top.
7746         (setup_stack_reg_pressure_class, setup_pressure_classes):
7747         Add comments how we compute the register pressure classes.
7748         (setup_allocno_and_important_classes): Add more comments.
7749         (setup_class_translate_array, reorder_important_classes)
7750         (setup_reg_class_relations): Add comments.
7751
7752         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7753         start of the file.
7754
7755         * ira-color.c: Add 2011 to the Copyright line.
7756         (assign_hard_reg):  Add more comments.
7757         (improve_allocation): Ditto.
7758
7759         * ira-costs.c: Add 2011 to the Copyright line.
7760         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7761         comments.
7762         (setup_regno_cost_classes_by_mode): Ditto.
7763
7764         Initial patches from ira-improv branch:
7765
7766         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7767
7768         * ira-build.c (ira_create_object): Remove initialization of
7769         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7770         (ira_create_allocno): Remove initialization of
7771         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7772         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7773         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7774         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7775         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7776         Initialize ALLOCNO_ADD_DATA.
7777         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7778         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7779         ALLOCNO_REG.
7780         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7781         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7782
7783         * ira.c (ira_reallocate): Remove.
7784         (setup_pressure_classes): Call
7785         ira_init_register_move_cost_if_necessary.  Use
7786         ira_register_move_cost instead of ira_get_register_move_cost.
7787         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7788         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7789
7790         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7791         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7792         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7793         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7794         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7795         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7796         Fix formatting.
7797         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7798         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7799         (struct allocno_color_data): New.
7800         (allocno_color_data_t): New typedef.
7801         (allocno_color_data): New definition.
7802         (ALLOCNO_COLOR_DATA): New macro.
7803         (struct object_color_data): New.
7804         (object_color_data_t): New typedef.
7805         (object_color_data): New definition.
7806         (OBJECT_COLOR_DATA): New macro.
7807         (update_copy_costs, calculate_allocno_spill_cost): Call
7808         ira_init_register_move_cost_if_necessary.  Use
7809         ira_register_move_cost instead of ira_get_register_move_cost.
7810         (move_spill_restore, update_curr_costs): Ditto.
7811         (allocno_spill_priority): Make it inline.
7812         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7813         (struct coalesce_data, coalesce_data_t): New.
7814         (allocno_coalesce_data): New definition.
7815         (ALLOCNO_COALESCE_DATA): New macro.
7816         (merge_allocnos, coalesced_allocno_conflict_p): Use
7817         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7818         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7819         (coalesce_allocnos): Ditto.
7820         (setup_coalesced_allocno_costs_and_nums): Ditto.
7821         (collect_spilled_coalesced_allocnos): Ditto.
7822         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7823         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7824         (coalesce_spill_slots): Ditto.
7825         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7826         free allocno_coalesce_data.
7827
7828         * ira-conflicts.c: Fix formatting.
7829         (process_regs_for_copy): Call
7830         ira_init_register_move_cost_if_necessary.  Use
7831         ira_register_move_cost instead of ira_get_register_move_cost.
7832         (build_object_conflicts): Optimize.
7833
7834         * ira-costs.c (record_reg_classes): Optimize.  Call
7835         ira_init_register_move_cost_if_necessary.  Use
7836         ira_register_move_cost, ira_may_move_in_cost, and
7837         ira_may_move_out_cost instead of ira_get_register_move_cost and
7838         ira_get_may_move_cost.
7839         (record_address_regs): Ditto.
7840         (scan_one_insn): Optimize.
7841         (find_costs_and_classes): Optimize.
7842         (process_bb_node_for_hard_reg_moves): Call
7843         ira_init_register_move_cost_if_necessary.  Use
7844         ira_register_move_cost instead of ira_get_register_move_cost.
7845
7846         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7847         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7848         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7849         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7850         definitions.
7851         (ira_initiate_emit_data, ira_finish_emit_data)
7852         (create_new_allocno): New functions.
7853         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7854         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7855         Use ira_register_move_cost instead of ira_get_register_move_cost.
7856
7857         * ira-int.h: Fix some comments.
7858         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7859         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7860         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7861         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7862         add_data.
7863         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7864         bitfield after mode.  Make hard_regno a short int.  Make
7865         hard_regno short.  Remove first_coalesced_allocno and
7866         next_coalesced_allocno.  Move mem_optimized_dest_p,
7867         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7868         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7869         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7870         temp, colorable_p.  Add new member add_data.
7871         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7872         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7873         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7874         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7875         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7876         (ALLOCNO_ADD_DATA): New macro.
7877         (ira_emit_data_t): New typedef.
7878         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7879         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7880         from struct ira_allocno.
7881         (ALLOCNO_EMIT_DATA): New macro.
7882         (ira_allocno_emit_data, allocno_emit_reg): New.
7883         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7884         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7885         (OBJECT_ADD_DATA): New macro.
7886         (ira_reallocate): Remove.
7887         (ira_initiate_emit_data, ira_finish_emit_data): New.
7888         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7889         (ira_init_register_move_cost_if_necessary): New.
7890         (ira_object_conflict_iter_next): Merge into
7891         ira_object_conflict_iter_cond.
7892         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7893
7894         * ira-live.c (process_single_reg_class_operands): Call
7895         ira_init_register_move_cost_if_necessary.  Use
7896         ira_register_move_cost instead of ira_get_register_move_cost.
7897
7898         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7899
7900         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7901
7902         * ira-costs.c: Fix formatting.
7903         (cost_classes, cost_classes_num): Remove.
7904         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7905         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7906         (cost_classes_del, cost_classes_htab): New.
7907         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7908         (initiate_regno_cost_classes, setup_cost_classes): New.
7909         (setup_regno_cost_classes_by_aclass): New.
7910         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7911         (record_reg_classes): Use regno_cost_classes instead of
7912         cost_classes.  Move checking opposite operand up.
7913         (record_address_regs): Use regno_cost_classes
7914         instead of cost_classes.
7915         (scan_one_insn): Ditto.  Use always general register.
7916         (print_allocno_costs): Use regno_cost_classes instead of
7917         cost_classes.
7918         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7919         (find_costs_and_classes): Set up cost classes for each registers.
7920         Use also their mode for this.  Use regno_cost_classes instead of
7921         cost_classes.
7922         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7923         cost_classes.
7924         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7925         (ira_costs, ira_set_pseudo_classes): Call
7926         initiate_regno_cost_classes and finish_regno_cost_classes.
7927
7928         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7929
7930         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7931
7932         * target.def (ira_cover_classes): Remove.
7933
7934         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7935
7936         * doc/tm.texi.in: Ditto.
7937
7938         * ira-conflicts.c: Remove mentioning cover classes from the file.
7939         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7940         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7941
7942         * targhooks.c (default_ira_cover_classes): Remove.
7943
7944         * targhooks.h (default_ira_cover_classes): Ditto.
7945
7946         * haifa-sched.c: Remove mentioning cover classes from the file.
7947         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7948         ira_pressure_classes and ira_pressure_classes_num instead of
7949         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7950         sched_regno_pressure_class instead of sched_regno_cover_class.
7951         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7952         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7953
7954         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7955         classes from the file.
7956         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7957         (struct object_hard_regs, struct object_hard_regs_node): New.
7958         (struct ira_object): New members profitable_hard_regs,
7959         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7960         (struct ira_allocno): Rename cover_class to aclass.  Rename
7961         cover_class_cost and updated_cover_class_cost to class_cost and
7962         updated_class_cost.  Remove splay_removed_p and
7963         left_conflict_size.  Add new members colorable_p.
7964         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7965         (ALLOCNO_COLORABLE_P): New macro.
7966         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7967         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7968         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7969         (OBJECT_...): Rename parameter C to O.
7970         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7971         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7972         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7973         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7974         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7975         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7976         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7977         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7978         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7979         x_ira_reg_class_subunion.
7980         (ira_max_memory_move_cost, ira_max_register_move_cost)
7981         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7982         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7983         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7984         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7985         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7986         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7987         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7988         (ira_tune_allocno_costs_and_cover_classes): Rename to
7989         ira_tune_allocno_costs.
7990         (ira_debug_hard_regs_forest): New.
7991         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7992         (ira_object_conflict_iter_next): Fix comments.
7993         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7994         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7995         cover_class to aclass.
7996         (ira_allocate_and_accumulate_costs): Ditto.
7997         (ira_allocate_and_set_or_copy_costs): Ditto.
7998
7999         * opts.c (decode_options): Remove ira_cover_class check.
8000
8001         * ira-color.c: Remove mentioning cover classes from the file.  Use
8002         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8003         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8004         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8005         (splay-tree.h): Remove include.
8006         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8007         before copy_freq_compare_func.
8008         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8009         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8010         New definitions.
8011         (hard_regs_roots, hard_regs_node_vec): Ditto.
8012         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8013         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8014         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8015         (create_new_object_hard_regs_node): Ditto.
8016         (add_new_object_hard_regs_node_to_forest): Ditto.
8017         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8018         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8019         Ditto.
8020         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8021         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8022         (remove_unused_object_hard_regs_nodes): Ditto.
8023         (enumerate_object_hard_regs_nodes): Ditto.
8024         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8025         (object_hard_regs_subnode_t): Ditto.
8026         (struct object_hard_regs_subnode): Ditto.
8027         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8028         (setup_object_hard_regs_subnode_index): Ditto.
8029         (get_object_hard_regs_subnodes_num): Ditto.
8030         (form_object_hard_regs_nodes_forest): Ditto.
8031         (finish_object_hard_regs_nodes_tree): Ditto.
8032         (finish_object_hard_regs_nodes_forest): Ditto.
8033         (allocnos_have_intersected_live_ranges_p): Rename to
8034         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8035         (pseudos_have_intersected_live_ranges_p): Rename to
8036         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8037         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8038         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8039         (update_copy_costs): Remove assert.  Skip cost update if the hard
8040         reg does not belong the class.
8041         (assign_hard_reg): Process only profitable hard regs.
8042         (uncolorable_allocnos_num): Make it scalar.
8043         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8044         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8045         and ira_reg_class_max_nregs.
8046         (bucket_allocno_compare_func): Check frequency first.
8047         (sort_bucket): Add compare function as a parameter.
8048         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8049         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8050         (push_allocno_to_stack): Rewrite for checking new allocno
8051         colorability.
8052         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8053         (push_only_colorable): Pass new parameter to sort_bucket.
8054         (push_allocno_to_spill): Remove.
8055         (allocno_spill_priority_compare): Make it inline and rewrite.
8056         (splay_tree_allocate, splay_tree_free): Remove.
8057         (allocno_spill_sort_compare): New function.
8058         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8059         build and use splay tree.  Choose first allocno in uncolorable
8060         allocno bucket to spill.  Remove setting spill cost.
8061         (all_conflicting_hard_regs): Remove.
8062         (setup_allocno_available_regs_num): Check only profitable hard
8063         regs.  Print info about hard regs nodes.
8064         (setup_allocno_left_conflicts_size): Remove.
8065         (put_allocno_into_bucket): Don't call
8066         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8067         (improve_allocation): New.
8068         (color_allocnos): Call setup_profitable_hard_regs,
8069         form_object_hard_regs_nodes_forest, improve_allocation,
8070         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8071         (print_loop_title): Use pressure classes.
8072         (color_allocnso): Ditto.
8073         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8074         and allocnos_for_spilling.
8075         (ira_sort_regnos_for_alter_reg): Don't setup members
8076         {first,next}_coalesced_allocno.
8077         (color): Remove allocating and freeing removed_splay_allocno_vec.
8078         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8079         prohibited_class_mode_regs.
8080
8081         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8082         formatting.
8083         (update_allocno_pressure_excess_length): Use pressure classes.
8084         (inc_register_pressure, dec_register_pressure): Check for pressure
8085         class.
8086         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8087         pressure class.  Use ira_reg_class_nregs instead of
8088         ira_reg_class_max_nregs.
8089         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8090         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8091         (single_reg_class): Use ira_reg_class_nregs instead of
8092         ira_reg_class_max_nregs.
8093         (process_bb_node_lives): Use pressure classes.
8094
8095         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8096         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8097         (change_loop): Use pressure classes.
8098         (modify_move_list): Call ira_set_allocno_class instead of
8099         ira_set_allocno_cover_class.
8100
8101         * ira-build.c: Remove mentioning cover classes from the file.  Use
8102         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8103         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8104         ALLOCNO_UPDATED_CLASS_COST instead of
8105         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8106         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8107         (ira_create_allocno): Remove initialization of
8108         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8109         ALLOCNO_COLORABLE_P.
8110         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8111         Update conflict regs for the objects.
8112         (create_cap_allocno): Remove assert.  Don't propagate
8113         ALLOCNO_AVAILABLE_REGS_NUM.
8114         (ira_free_allocno_costs): New function.
8115         (finish_allocno): Change a part of code into call of
8116         ira_free_allocno_costs.
8117         (low_pressure_loop_node_p): Use pressure classes.
8118         (object_range_compare_func): Don't compare classes.
8119         (setup_min_max_conflict_allocno_ids): Ditto.
8120
8121         * loop-invariant.c: Remove mentioning cover classes from the file.
8122         Use ira_pressure_classes and ira_pressure_classes_num instead of
8123         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8124         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8125         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8126         Use reg_allocno_class instead of reg_cover_class.
8127         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8128         STACK_REG_COVER_CLASS.
8129         (get_regno_cover_class): Rename to get_regno_pressure_class.
8130         (move_loop_invariants): Initialize and finalize regstat.
8131
8132         * ira.c: Remove mentioning cover classes from the file.  Add
8133         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8134         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8135         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8136         setup_class_subset_and_memory_move_costs.
8137         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8138         (setup_cover_and_important_classes): Rename to
8139         setup_allocno_and_important_classes.
8140         (setup_class_translate_array): New.
8141         (setup_class_translate): Call it for allocno and pressure classes.
8142         (cover_class_order): Rename to allocno_class_order.
8143         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8144         of ira_class_translate.
8145         (reorder_important_classes): Set up ira_important_class_nums.
8146         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8147         (print_class_cover): Rename to print_classes.  Add parameter.
8148         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8149         Print pressure classes too.
8150         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8151         setup_reg_subclasses.
8152         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8153         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8154         (setup_prohibited_class_mode_regs): Use
8155         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8156         (clarify_prohibited_class_mode_regs): New function.
8157         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8158         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8159         (ira_init_once): Initialize them.
8160         (free_register_move_costs): Process them.
8161         (ira_init): Move calls of find_reg_classes and
8162         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8163         Call clarify_prohibited_class_mode_regs.
8164         (ira_no_alloc_reg): Remove.
8165         (too_high_register_pressure_p): Use pressure classes.
8166
8167         * sched-deps.c: Remove mentioning cover classes from the file.
8168         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8169         ira_pressure_classes and ira_pressure_classes_num instead of
8170         ira_reg_class_cover_size and ira_reg_class_cover.
8171         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8172         sched_regno_pressure_class instead of sched_regno_cover_class.
8173         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8174         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8175
8176         * ira.h: Add 2010 to Copyright.
8177         (ira_no_alloc_reg): Remove external.
8178         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8179         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8180         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8181         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8182         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8183         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8184         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8185         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8186         x_ira_no_alloc_regs.
8187         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8188         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8189         ira_allocno_classes_num and ira_allocno_classes.
8190         (ira_class_translate): Rename to ira_allocno_class_translate.
8191         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8192         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8193         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8194         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8195         (ira_no_alloc_regs): New.
8196
8197         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8198         classes from the file.  Use ALLOCNO_CLASS instead of
8199         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8200         ALLOCNO_COVER_CLASS_COST.
8201         (regno_cover_class): Rename to regno_aclass.
8202         (record_reg_classes): Use ira_reg_class_subunion instead of
8203         ira_reg_class_union.
8204         (record_address_regs): Check overflow.
8205         (scan_one_insn): Ditto.
8206         (print_allocno_costs): Print total mem cost fore regional allocation.
8207         (print_pseudo_costs): Use REG_N_REFS.
8208         (find_costs_and_classes): Use classes intersected with them on the
8209         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8210         ira_reg_class_union.  Use ira_allocno_class_translate and
8211         regno_aclass instead of ira_class_translate and regno_cover_class.
8212         Modify code for finding regno_aclass.  Setup preferred classes for
8213         the next pass.
8214         (setup_allocno_cover_class_and_costs): Rename to
8215         setup_allocno_class_and_costs.  Use regno_aclass instead of
8216         regno_cover_class.  Use ira_set_allocno_class instead of
8217         ira_set_allocno_cover_class.
8218         (init_costs, finish_costs): Use regno_aclass instead of
8219         regno_cover_class.
8220         (ira_costs): Use setup_allocno_class_and_costs instead of
8221         setup_allocno_cover_class_and_costs.
8222         (ira_tune_allocno_costs_and_cover_classes): Rename to
8223         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8224         by processing objects.  Use ira_reg_class_max_nregs instead of
8225         ira_reg_class_nregs.
8226
8227         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8228
8229         * sched-int.h: Remove mentioning cover classes from the file.
8230         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8231
8232         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8233         classes from the file.
8234         (struct reg_pref): Rename coverclass into allocnoclass.
8235         (reg_cover_class): Rename to reg_allocno_class.
8236
8237         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8238
8239         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8240
8241         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8242
8243         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8244
8245         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8246
8247         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8248
8249         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8250
8251         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8252
8253         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8254
8255         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8256
8257         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8258         (i386_ira_cover_classes): Ditto.
8259
8260         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8261
8262         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8263
8264         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8265
8266         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8267
8268         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8269
8270         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8271
8272         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8273         (mips_ira_cover_classes): Ditto.
8274
8275         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8276
8277         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8278
8279         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8280
8281         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8282
8283         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8284
8285         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8286         (IRA_COVER_CLASSES_VSX): Ditto.
8287
8288         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8289         (rs6000_ira_cover_classes): Ditto.
8290
8291         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8292
8293         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8294
8295         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8296
8297         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8298
8299         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8300
8301         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8302
8303         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8304
8305         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8306
8307         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8308
8309         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8310
8311 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8312
8313         PR debug/48253
8314         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8315         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8316         dw_fde_unlikely_section_end_label, cold_in_std_section,
8317         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8318         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8319         fields.
8320         (output_fde): Use dw_fde_second_{begin,end} if second is
8321         true, otherwise dw_fde_{begin,end}.
8322         (output_call_frame_info): Test dw_fde_second_begin != NULL
8323         instead of dw_fde_switched_sections.
8324         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8325         fields, initialize new fields.  Initialize in_std_section
8326         unconditionally from the first partition.
8327         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8328         dw_fde_second_begin is non-NULL.
8329         (dwarf2out_switch_text_section): Stop initializing removed
8330         dw_fde_struct fields, initialize new fields, initialize
8331         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8332         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8333         (struct var_loc_list_def): Add last_before_switch field.
8334         (arange_table, arange_table_allocated, arange_table_in_use,
8335         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8336         (size_of_aranges): Count !in_std_section and !second_in_std_section
8337         hunks in fdes, instead of looking at arange_table_in_use.
8338         (output_aranges): Add aranges_length argument, don't call
8339         size_of_aranges here.  Instead of using aranges_table*
8340         emit ranges for fdes when !in_std_section resp.
8341         !second_in_std_section.
8342         (dw_loc_list): Break ranges crossing section switch.
8343         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8344         use dw_fde_second_end instead of dw_fde_end as end of last range.
8345         (gen_subprogram_die): Don't call add_arange.  Use
8346         dw_fde_{begin,end} for first partition and if switched
8347         section dw_fde_second_{begin,end} for the second.
8348         (var_location_switch_text_section_1,
8349         var_location_switch_text_section): New functions.
8350         (dwarf2out_begin_function): Initialize cold_text_section even
8351         when function_section () isn't text_section.
8352         (prune_unused_types): Don't walk arange_table.
8353         (dwarf2out_finish): Don't needlessly test
8354         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8355         If info_section_emitted, call size_of_aranges and if it indicates
8356         non-empty .debug_aranges, call output_aranges with the computed
8357         size.  Stop using removed dw_fde_struct fields, use
8358         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8359         for second.
8360
8361         PR debug/48203
8362         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8363         create ENTRY_VALUE if incoming or address of incoming's MEM
8364         is a hard REG.
8365         * dwarf2out.c (mem_loc_descriptor): Don't emit
8366         DW_OP_GNU_entry_value of DW_OP_fbreg.
8367         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8368         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8369         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8370         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8371         ENTRY_VALUE_EXPs.
8372         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8373         is a REG_P or MEM_P with REG_P address, compute hash directly
8374         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8375         (preserve_only_constants): Don't clear VALUES forwaring
8376         ENTRY_VALUE to some other VALUE.
8377
8378 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8379
8380         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8381         instead of GEN_INT.
8382
8383 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8384
8385         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8386         block before expanding the statement.
8387         (expand_gimple_stmt_1): Likewise.  Set them here...
8388         (expand_gimple_stmt): ...and not here.  Tidy.
8389         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8390         unknown.
8391
8392 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8393
8394         * Makefile.in: New rule for cprop.o.
8395         * gcse.c: Move constant/copy propagation to cprop.c.
8396         (compute_local_properties): Only handle expression tables.
8397         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8398         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8399         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8400         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8401         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8402         compute_cprop_data, find_used_regs, try_replace_reg,
8403         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8404         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8405         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8406         find_bypass_set, reg_killed_on_edge, bypass_block,
8407         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8408         execute_rtl_cprop, pass_rtl_cprop): Move to...
8409         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8410         moved from gcse.c to here with minor cleanups in duplicated code.
8411
8412 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8413
8414         * config/i386/i386.c (flag_opts): Fix a typo in
8415         -mavx256-split-unaligned-store.
8416
8417 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8418
8419         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8420         LIBCALL_VALUE): Remove macros.
8421         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8422         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8423         (h8300_function_value, h8300_libcall_value,
8424         h8300_function_value_regno_p): New functions.
8425
8426 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8427
8428         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8429
8430 2011-03-28  Jeff Law  <law@redhat.com>
8431
8432         * tree-ssa-threadupdate.c (redirect_edges): Call
8433         create_edge_and_update_destination_phis as needed.
8434         (create_edge_and_update_destination_phis): Accept new BB argument.
8435         All callers updated.
8436         (thread_block): Do not update the profile when threading around
8437         intermediate blocks.
8438         (thread_single_edge): Likewise.
8439         (determine_bb_domination_status): If BB is not a successor of the
8440         loop header, return NONDOMINATING.
8441         (register_jump_thread): Note when we register a jump thread around
8442         an intermediate block.
8443         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8444         (thread_across_edge): Use it.
8445
8446 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8447
8448         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8449         when for_return is 2.
8450
8451 2011-03-28  Jeff Law  <law@redhat.com>
8452
8453         * var-tracking.c (canonicalize_values_mark): Delete unused
8454         lhs assignment.
8455         (canonicalize_values_star, set_variable_part): Likewise.
8456         (clobber_variable_part, delete_variable_part): Likewise.
8457
8458 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8459
8460         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8461
8462 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8463
8464         * tree-inline.c (expand_call_inline): Do not check that destination
8465         node is analyzed.
8466         (optimize_inline_calls): Assert that destination node is analyzed.
8467         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8468         not call tree_lowering_passes.
8469         * cgraph.h (cgraph_analyze_function): Declare.
8470         * cgraphunit.c (cgraph_analyze_function): Make public.
8471
8472 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8473
8474         * config/sparc/sparc-opts.h: New.
8475         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8476         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8477         (sparc_option_override): Store processor_type enumeration rather
8478         than string in cpu_default.  Remove name and enumeration from
8479         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8480         without using sparc_select.  Use target_flags_explicit instead of
8481         fpu_option_set.
8482         * config/sparc/sparc.h (enum processor_type): Move to
8483         sparc-opts.h.
8484         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8485         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8486         HeaderInclude entry.
8487         (mcpu=, mtune=): Use Var and Enum.
8488         (sparc_processor_type): New Enum and EnumValue entries.
8489
8490 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8491             Iain Sandoe  <iains@gcc.gnu.org>
8492
8493         PR target/48245
8494         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8495
8496 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8497
8498         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8499         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8500         Insert new statements at it in lieu of STMT.
8501         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8502         * tree-vect-stmts.c (vectorizable_store): Likewise.
8503         (vectorizable_load): Likewise.
8504
8505 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8506
8507         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8508         (divtf3): Ditto.
8509         (multf3): Ditto.
8510         (subtf3): Ditto.
8511
8512 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8513
8514         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8515         unaligned 256bit load/store.
8516         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8517         (*avx_movdqu<avxmodesuffix>): Likewise.
8518
8519 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8520
8521         PR target/48288
8522         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8523         * config/pa/pa.md (iordi3): Use new predicate in expander.
8524         (iorsi3): Likewise.
8525
8526 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8527
8528         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8529         FUNCTION_VALUE_REGNO_P): Remove macros.
8530         * config/mips/mips-protos.h (mips_function_value): Remove.
8531         * config/mips/mips.c (mips_function_value): Rename to...
8532         (mips_function_value_1): ... this. Make static.  Handle receiving
8533         the function type in 'fn_decl_or_type' argument.
8534         (mips_function_value, mips_libcall_value,
8535         mips_function_value_regno_p): New function.
8536         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8537         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8538
8539 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8540
8541         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8542         and -mavx256-split-unaligned-store.
8543         (ix86_option_override_internal): Split 32-byte AVX unaligned
8544         load/store by default.
8545         (ix86_avx256_split_vector_move_misalign): New.
8546         (ix86_expand_vector_move_misalign): Use it.
8547
8548         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8549         -mavx256-split-unaligned-store.
8550
8551         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8552         256bit load/store.  Generate unaligned store on misaligned memory
8553         operand.
8554         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8555         256bit load/store.
8556         (*avx_movdqu<avxmodesuffix>): Likewise.
8557
8558         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8559         -mavx256-split-unaligned-store.
8560
8561 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8562
8563         PR target/38598
8564         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8565         Update commentary.
8566
8567 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8568
8569         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8570         opno arguments with an expand_operand.  Use create_input_operand.
8571         (mips_prepare_builtin_target): Delete.
8572         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8573         functions.
8574         (mips_expand_builtin_direct): Use create_output_operand and
8575         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8576         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8577         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8578
8579 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8580
8581         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8582         function.
8583         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8584
8585 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8586
8587         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8588         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8589         basic blocks and call commit_edge_insertions directly.
8590         (fixup_abnormal_edges): Move from here to...
8591         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8592         on the edges and return whether some have actually been inserted.
8593         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8594         compensation code.
8595
8596 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8597
8598         PR rtl-optimization/48144
8599         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8600         (merge_expr_data): ... here.
8601         (av_set_intersect): Rename to av_set_code_motion_filter.
8602         Update all callers.  Call merge_history_vect when an expression
8603         is found in both sets.
8604         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8605
8606 2011-03-26  Alan Modra  <amodra@gmail.com>
8607
8608         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8609         cmodel medium addresses.
8610         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8611         64-bit gpr loads and stores.
8612         (rs6000_secondary_reload_ppc64): New function.
8613         * config/rs6000/rs6000-protos.h: Declare it.
8614         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8615
8616 2011-03-26  Alan Modra  <amodra@gmail.com>
8617
8618         PR target/47487
8619         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8620         GNU Go in traceback table.
8621
8622 2011-03-25  Richard Henderson  <rth@redhat.com>
8623
8624         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8625         if there are exactly 6 operands.
8626         (set_storage_via_setmem): Similarly.
8627
8628 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8629
8630         * collect2.c (write_c_file_stat): Handle backslash
8631         as right-hand directory separator.
8632         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8633         checking just for slash.
8634         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8635         instead of checking for trailing slash.
8636         * gcc.c (record_temp_file): Use filename_cmp instead
8637         of strcmp.
8638         (do_spec_1): Likewise.
8639         (replace_outfile_spec_function): Likewise.
8640         (is_directory): Use filename_ncmp instead of strncmp.
8641         (print_multilib_info): Likewise.
8642         * gcov.c (find_source): Use filename_cmp instead
8643         instead of strcmp.
8644         (make_gcov_file_name): Fix order of slash/backslash
8645         checks.
8646         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8647         (add_standard_paths): Likewise.
8648         * mips-tfile.c (saber_stop): Handle backslash.
8649         * prefix.c (update_path): Use filename_ncmp instead of
8650         strncmp.
8651         * profile.c (output_location): Use filename_cmp instead
8652         of strcmp.
8653         * read-md.c (handle_toplevel_file): Handle backslash.
8654         * tlink.c (frob_extension):  Likewise.
8655         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8656         strcmp.
8657         * tree-dump.c (dequeue_and_dump): Handle backslash.
8658         * tree.c (get_file_function_name): Likewise.
8659         * gengtype.c (read_input_list): Likewise.
8660         (get_file_realbasename): Likewise.
8661         (get_output_file_with_visibility): Use filename_cmp
8662         instead of strcmp.
8663
8664 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8665
8666         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8667         case to VFPv1.
8668
8669 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8670
8671         * fold-const.c (expr_location_or): New function.
8672         (fold_truth_not_expr): Call it.
8673
8674 2011-03-25  Jeff Law  <law@redhat.com>
8675
8676         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8677         va_end.
8678         * c-family/c-common.c (def_fn_type): Likewise.
8679         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8680         * emit-rtl.c (gen_rtvec): Likewise.
8681         * lto/lto-lang.c (def_fn_type): Likewise.
8682
8683 2011-03-25  Richard Guenther  <rguenther@suse.de>
8684
8685         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8686         also generate copies.
8687         (fini_copy_prop): Handle constant values properly.
8688
8689 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8690
8691         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8692         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8693         (hash_loc_operands, compare_loc_operands): Handle
8694         DW_OP_GNU_entry_value.
8695
8696 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8697
8698         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8699         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8700         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8701         comment and use macro TARGET_64BIT_MS_ABI instead.
8702         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8703         and change default behavior for 32-bit MS_ABI.
8704         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8705         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8706         32-bit, too.
8707         (ix86_cfun_abi): Likewise.
8708         (ix86_maybe_switch_abi): Adjust comment.
8709         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8710         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8711         instead of checking for SYSV_ABI.
8712         (ix86_nsaved_sseregs): Likewise.
8713         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8714         to 16 bytes.
8715         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8716         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8717         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8718         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8719         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8720
8721 2011-03-25  Richard Guenther  <rguenther@suse.de>
8722
8723         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8724         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8725         (verify_gimple): Remove.
8726         * tree-cfg.c (verify_gimple_call): Merge verification
8727         from verify_stmts.
8728         (verify_gimple_phi): Merge verification from verify_stmts.
8729         (verify_gimple_label): New function.
8730         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8731         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8732         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8733         (verify_stmts): Rename to verify_gimple_in_cfg.
8734         (verify_gimple_in_cfg): New function.
8735         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8736         * tree-ssa.c (verify_ssa): Likewise.
8737         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8738
8739 2011-03-25  Richard Guenther  <rguenther@suse.de>
8740
8741         * passes.c (init_optimization_passes): Add FRE pass after
8742         early SRA.
8743
8744 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8745             Andrew Stubbs  <ams@codesourcery.com>
8746
8747         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8748         for Cortex-A8.
8749         (arm_movdi_vfp_cortexa8): New pattern.
8750         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8751         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8752         instructions when tuning for Cortex-A8.  Set attribute "arch".
8753         * config/arm/arm.md: Move include arm-tune.md up a bit.
8754         (define_attr "arch"): Add "onlya8" and "nota8" values.
8755         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8756
8757 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8758
8759         PR bootstrap/48282
8760         Revert:
8761         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8762
8763         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8764         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8765         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8766         * passes.c (init_optimization_passes): Move
8767         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8768
8769 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8770
8771         * c-typeck.c (comptypes_internal): Replace target
8772         hook call of comp_type_attributes by version in tree.c file.
8773         * gimple.c (gimple_types_compatible_p_1): Likewise.
8774         * tree-ssa.c (useless_type_conversion_p): Likewise.
8775         * tree.c (build_type_attribute_qual_variant): Likewise.
8776         (attribute_value_equal): New static helper function.
8777         (comp_type_attributes): New function.
8778         (merge_attributes): Use attribute_value_equal for comparison.
8779         (attribute_list_contained): Likewise.
8780         * tree.h (comp_type_attributes): New prototype.
8781
8782 2011-03-25  Richard Guenther  <rguenther@suse.de>
8783
8784         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8785         of complex types at -O0.
8786         (verify_gimple_assign_binary): Likewise.
8787         (verify_gimple_assign_ternary): Likewise.
8788
8789 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8790
8791         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8792         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8793
8794 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8795
8796         PR debug/48041
8797         * dwarf2out.c (output_abbrev_section): Only write table when
8798         abbrev_die_table_in_use > 1.
8799
8800 2011-02-24  Richard Henderson  <rth@redhat.com>
8801
8802         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8803         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8804         (alpha_expand_unaligned_load_words): Use extql.
8805         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8806         (emit_insxl): Handle all modes for consistency.
8807
8808 2011-02-24  Richard Henderson  <rth@redhat.com>
8809
8810         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8811         (alpha_expand_unaligned_load): Likewise.
8812         (alpha_expand_unaligned_store): Likewise.
8813         (alpha_expand_unaligned_load_words): Likewise.
8814         (alpha_expand_unaligned_store_words): Likewise.
8815         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8816         (alpha_split_lock_test_and_set_12): Likewise.
8817         (print_operand, alpha_fold_builtin_extxx): Likewise.
8818         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8819         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8820         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8821         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8822         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8823         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8824         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8825         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8826         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8827         (extwl, extll, extql): Similarly.
8828         (inswh, inslh, insqh): Similarly.
8829         (mskbl, mskwl, mskll, mskql): Similarly.
8830         (mskwh, msklh, mskqh): Similarly.
8831
8832 2011-02-24  Richard Henderson  <rth@redhat.com>
8833
8834         * config/alpha/alpha.md (attribute isa): Add er, ner.
8835         (attribute enabled): Handle them.
8836         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8837
8838 2011-02-24  Richard Henderson  <rth@redhat.com>
8839
8840         * config/alpha/alpha.md (attribute isa): Add vms.
8841         (attribute enabled): Handle it.
8842         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8843         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8844         (*movtf): Rename from *movtf_internal for consistency.
8845         (*movsi): Merge with *movsi_nt_vms.
8846         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8847         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8848         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8849         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8850
8851 2011-02-24  Richard Henderson  <rth@redhat.com>
8852
8853         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8854         (extendqisi2, extendhisi2): Likewise.
8855         (extendqidi2): Simplify BWX/non-BWX expansions.
8856         (extendhidi2): Similarly.
8857
8858 2011-02-24  Richard Henderson  <rth@redhat.com>
8859
8860         * config/alpha/alpha.md (attribute isa): New.
8861         (attribute enabled): New.
8862         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8863         (zero_extendqisi2, zero_extendqidi2): Similarly.
8864         (zero_extendhisi2, zero_extendhidi2): Similarly.
8865         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8866
8867 2011-02-24  Richard Henderson  <rth@redhat.com>
8868
8869         * config/alpha/predicates.md (input_operand): Revert last change;
8870         update comment to mention 32-bit VMS rather than Windows.
8871
8872 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8873
8874         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8875         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8876         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8877         * passes.c (init_optimization_passes): Move
8878         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8879
8880 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8881
8882         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8883
8884 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8885
8886         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8887         correctly.
8888
8889 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8890
8891         PR debug/48204
8892         * simplify-rtx.c (simplify_const_unary_operation): Call
8893         real_convert when changing mode class with FLOAT_EXTEND.
8894
8895 2011-03-24  Nick Clifton  <nickc@redhat.com>
8896
8897         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8898         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8899         * config/rx/rx.c (rx_option_override): Set align_jumps,
8900         align_loops and align_labels if not set by the user.
8901         (rx_align_for_label): New function.
8902         (rx_max_skip_for_label): New function.
8903         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8904         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8905         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8906         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8907         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8908
8909 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8910
8911         PR rtl-optimization/48263
8912         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8913         and original commutative_p handling.  Use maybe_gen_insn.
8914
8915 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8916
8917         * reload.c (find_reloads_subreg_address): Add address_reloaded
8918         parameter and return true there if the full address has been
8919         reloaded.
8920         (find_reloads_toplev): Pass address_reloaded flag.
8921         (find_reloads_address_1): Don't use address_reloaded parameter.
8922
8923 2011-03-24  Jeff Law  <law@redhat.com>
8924
8925         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8926         unused variable "ann".
8927         (remove_unused_locals): Likewise.
8928
8929         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8930         statement.
8931
8932         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8933         after it is freed.
8934
8935 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8936
8937         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8938         for invalid symbolic addresses.
8939         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8940         larl operands.
8941
8942 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8943
8944         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8945         the argument in calls to fold_truth_not_expr.
8946
8947 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8948
8949         * tree.c (record_node_allocation_statistics): New function.
8950         (make_node_stat, copy_node_stat, build_string): Call it.
8951         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8952         (build1_stat, build_omp_clause): Likewise.
8953
8954 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8955
8956         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8957         last commit.
8958
8959 2011-03-24  Richard Guenther  <rguenther@suse.de>
8960
8961         PR tree-optimization/48271
8962         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8963         blocks that still exist.
8964
8965 2011-03-24  Richard Guenther  <rguenther@suse.de>
8966
8967         PR tree-optimization/48270
8968         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8969         not free datarefs before ddrs.
8970
8971 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8972
8973         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8974         from the address built for a reference with variable offset.
8975
8976 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8977
8978         PR target/48237
8979         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8980         alternatives that can be handled with movq or movabsq insn.
8981         (*movdf_internal): Disable for !TARGET_64BIT.
8982         (*movdf_internal_nointeger): Ditto.
8983         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8984
8985 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8986
8987         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8988         (FUNCTION_ARG_ADVANCE): Likewise.
8989         * tm.texi.in: Change references to them to hook references.
8990         * tm.texi: Regenerate.
8991         * targhooks.c (default_function_arg): Eliminate check for target macro.
8992         (default_function_incoming_arg): Likewise.
8993         (default_function_arg_advance): Likewise.
8994         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8995         (function_arg_advance): Likewise.
8996         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8997
8998 2011-03-24  Richard Guenther  <rguenther@suse.de>
8999
9000         PR middle-end/48269
9001         * tree-object-size.c (addr_object_size): Do not double-account
9002         for MEM_REF offsets.
9003
9004 2011-03-24  Diego Novillo  <dnovillo@google.com>
9005
9006         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9007         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9008         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9009         Update all users.
9010         (lto_input_string): Rename from input_string.  Make extern.
9011         Update all users.
9012         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9013         output_string_with_length.
9014         Output 0 to indicate a non-NULL string.  Update all callers to
9015         not emit 0.
9016         (lto_output_string): Rename from output_string.  Make extern.
9017         Update all users.
9018         (lto_output_decl_state_streams): Make extern.
9019         (lto_output_decl_state_refs): Make extern.
9020         * lto-streamer.h (lto_input_string): Declare.
9021         (lto_input_data_block): Declare.
9022         (lto_output_string): Declare.
9023         (lto_output_string_with_length): Declare.
9024         (lto_output_decl_state_streams): Declare.
9025         (lto_output_decl_state_refs): Declare.
9026
9027 2011-03-24  Richard Guenther  <rguenther@suse.de>
9028
9029         PR tree-optimization/46562
9030         * tree.c (build_invariant_address): New function.
9031         * tree.h (build_invariant_address): Declare.
9032         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9033         a renamed function moved ...
9034         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9035         Take valueization callback parameter.
9036         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9037         * gimple-fold.h: New file.
9038         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9039         (ccp_fold, fold_const_aggregate_ref,
9040         fold_ctor_reference, fold_nonarray_ctor_reference,
9041         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9042         get_base_constructor): Move ...
9043         * gimple-fold.c: ... here.
9044         (gimple_fold_stmt_to_constant_1): New function
9045         split out from ccp_fold.  Take a valueization callback parameter.
9046         Valueize all operands.
9047         (gimple_fold_stmt_to_constant): New wrapper function.
9048         (fold_const_aggregate_ref_1): New function split out from
9049         fold_const_aggregate_ref.  Take a valueization callback parameter.
9050         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9051         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9052         invariant POINTER_PLUS_EXPRs to invariant form.
9053         (vn_valueize): New function.
9054         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9055         * tree-vrp.c (vrp_valueize): New function.
9056         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9057         to fold statements to constants.
9058         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9059         function declarations.
9060         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9061         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9062
9063 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9064
9065         * config/h8300/predicates.md (jump_address_operand): Fix register
9066         mode check.
9067
9068 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9069
9070         * doc/invoke.texi (max-stores-to-sink): Document.
9071         * params.h (MAX_STORES_TO_SINK): Define.
9072         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9073         if either vectorization or if-conversion is disabled.
9074         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9075         tree-vect-data-refs.c vect_equal_offsets.
9076         (dr_equal_offsets_p): New function.
9077         (find_data_references_in_bb): Remove static.
9078         * tree-data-ref.h (find_data_references_in_bb): Declare.
9079         (dr_equal_offsets_p): Likewise.
9080         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9081         (vect_drs_dependent_in_basic_block): Update calls to
9082         vect_equal_offsets.
9083         (vect_check_interleaving): Likewise.
9084         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9085         (cond_if_else_store_replacement): Rename to...
9086         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9087         documentation.
9088         (cond_if_else_store_replacement): New function.
9089         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9090         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9091
9092 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9093
9094         PR target/46934
9095         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9096         to subtract lower bound instead of GEN_INT().
9097
9098 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9099
9100         PR other/48179
9101         PR other/48221
9102         PR other/48234
9103         * doc/extend.texi (Alignment): Move section to match order in TOC.
9104         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9105         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9106
9107 2011-03-23  Jeff Law  <law@redhat.com>
9108
9109         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9110         before removing the edge.
9111
9112         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9113         it may have been freed by redirect_branch_edge or
9114         redirect_edge_succ_nodup.
9115
9116 2011-03-23  Richard Guenther  <rguenther@suse.de>
9117
9118         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9119         (check_va_list_escapes): Likewise.
9120         (check_all_va_list_escapes): Likewise.
9121
9122 2011-03-23  Richard Guenther  <rguenther@suse.de>
9123
9124         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9125         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9126         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9127         (alias.o): Likewise.
9128         (ipa-type-escape.o): Remove.
9129         (ipa-struct-reorg.o): Likewise.
9130         (GTFILES): Remove ipa-struct-reorg.c.
9131         * alias.c: Do not include ipa-type-escape.h.
9132         * tree-ssa-alias.c: Likewise.
9133         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9134         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9135         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9136         and ipa-type-escape passes.
9137         * tree-pass.h (pass_ipa_type_escape): Remove.
9138         (pass_ipa_struct_reorg): Likewise.
9139         * ipa-struct-reorg.h: Remove.
9140         * ipa-struct-reorg.c: Likewise.
9141         * ipa-type-escape.h: Likewise.
9142         * ipa-type-escape.c: Likewise.
9143         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9144         (--param struct-reorg-cold-struct-ratio): Likewise.
9145         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9146         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9147         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9148
9149 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9150
9151         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9152         cpu attribute value.
9153         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9154         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9155         * config/s390/s390.c (processor_flags_table): New constant array.
9156         (s390_handle_arch_option): Remove.
9157         (s390_handle_option): Remove s390_handle_arch_option invocations
9158         and OPT_mwarn_framesize_ handling.
9159         (s390_option_override): Remove s390_handle_arch_option invocation.
9160         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9161         warnings.
9162         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9163         * config/s390/s390.opt (s390_tune, s390_arch)
9164         (march=): Replace s390_arch_option enum and values with
9165         processor_type.  Set variable name to s390_arch.  Set
9166         initialization value.
9167         (mtune=): Replace s390_arch_option with processor_type.  Set
9168         variable name to s390_tune.  Set initialization value.
9169
9170 2011-03-23  Julian Brown  <julian@codesourcery.com>
9171
9172         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9173         accesses which are not naturally aligned.
9174
9175 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9176
9177         PR target/47553
9178         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9179
9180 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9181
9182         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9183         parameter from "int" to "enum insn_code".
9184         (expand_operand_type): New enum.
9185         (expand_operand): New structure.
9186         (create_expand_operand): New function.
9187         (create_fixed_operand, create_output_operand): Likewise
9188         (create_input_operand, create_convert_operand_to): Likewise.
9189         (create_convert_operand_from, create_address_operand): Likewise.
9190         (create_integer_operand): Likewise.
9191         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9192         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9193         (expand_insn, expand_jump_insn): Likewise.
9194         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9195         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9196         (expand_movstr, expand_builtin___clear_cache): Likewise.
9197         (expand_builtin_lock_release): Likewise.
9198         * explow.c (allocate_dynamic_stack_space): Likewise.
9199         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9200         and use the default handling in that case.
9201         * expmed.c (check_predicate_volatile_ok): Delete.
9202         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9203         (emit_cstore): Likewise.
9204         * expr.c (emit_block_move_via_movmem): Likewise.
9205         (set_storage_via_setmem, expand_assignment): Likewise.
9206         (emit_storent_insn, try_casesi): Likewise.
9207         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9208         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9209         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9210         (expand_twoval_unop, expand_twoval_binop): Likewise.
9211         (expand_unop_direct, emit_indirect_jump): Likewise.
9212         (emit_conditional_move, vector_compare_rtx): Likewise.
9213         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9214         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9215         (expand_sync_lock_test_and_set): Likewise.
9216         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9217         (emit_unop_insn): Likewise.
9218         (expand_copysign_absneg): Change icode to an insn_code.
9219         (create_convert_operand_from_type): New function.
9220         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9221         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9222         (expand_insn, expand_jump_insn): Likewise.
9223         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9224         than const_int_operand for operand 2.
9225
9226 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9227
9228         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9229         if possible.
9230
9231 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9232
9233         * emit-rtl.c (emit_pattern_before_noloc): New function.
9234         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9235         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9236         (emit_pattern_after_noloc): New function.
9237         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9238         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9239
9240 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9241
9242         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9243         (__ffsDI2): Likewise.
9244
9245 2011-03-22  Richard Henderson  <rth@redhat.com>
9246
9247         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9248         of !TARGET_ABI_OPEN_VMS.
9249         (alpha_trampoline_init, alpha_start_function): Likewise.
9250         (alpha_expand_epilogue, alpha_file_start): Likewise.
9251         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9252         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9253         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9254         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9255         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9256
9257 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9258
9259         * config/s390/s390-opts.h: New.
9260         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9261         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9262         s390_stack_guard): Remove.
9263         (s390_handle_arch_option): Return void.  Take enum
9264         s390_arch_option value instead of string and searching array.
9265         (s390_handle_option): Don't assert that global structures are in
9266         use.  Access variables via opts pointer.  Use error_at.  Don't use
9267         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9268         s390_handle_arch_option.
9269         (s390_option_override): Update call to s390_handle_arch_option.
9270         (s390_emit_prologue): Use %d format for s390_stack_size in
9271         diagnostic.  Use %wd for HOST_WIDE_INT.
9272         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9273         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9274         * config/s390/s390.opt (config/s390/s390-opts.h): New
9275         HeaderInclude entry.
9276         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9277         s390_arch_flags, s390_warn_framesize): New Variable entries.
9278         (s390_arch_option): New Enum and EnumValue entries.
9279         (march=): Use Enum instead of Var.
9280         (mstack-guard=, mstack-size=): Use UInteger and Var.
9281         (mtune=): Use Enum.
9282
9283 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9284
9285         * config/score/score.c (score_handle_option): Don't assert that
9286         global structures are in use.  Access target_flags via opts
9287         pointer.  Use value of -march= option to determine target_flags
9288         settings.
9289         * config/score/score.opt (march=): Use Enum.
9290         (score_arch): New Enum and EnumValue entries.
9291
9292 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9293
9294         * config/mep/mep.c (option_mtiny_specified): Remove.
9295         (mep_option_override): Move register handling for -mivc2 from
9296         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9297         instead of option_mtiny_specified.
9298         (mep_handle_option): Access target_flags via opts pointer.  Don't
9299         assert that global structures are in use.  Defer part of -mivc2
9300         handling and move it to mep_option_override.
9301         * config/mep/mep.opt (IVC2): New Mask entry.
9302         (mivc2): Use Var and Defer instead of Mask.
9303
9304 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9305
9306         * config/v850/v850-opts.h: New.
9307         * config/v850/v850.c (small_memory): Replace with
9308         small_memory_physical_max array.  Make that array static const.
9309         (v850_handle_memory_option): Take integer value of argument.  Take
9310         gcc_options pointer, option text and location.  Return void.
9311         Update for changes to small memory structures.
9312         (v850_handle_option): Access target_flags via opts pointer.  Don't
9313         assert that global structures are in use.  Update calls to
9314         v850_handle_memory_option.
9315         (v850_encode_data_area): Update references to small memory settings.
9316         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9317         (enum small_memory_type): Move to v850-opts.h.
9318         * config/v850/v850.opt (config/v850/v850-opts.h): New
9319         HeaderInclude entry.
9320         (small_memory_max): New Variable entry.
9321         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9322         (mtda, mzda): Likewise.
9323
9324 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9325
9326         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9327         pointer.  Don't assert that global structures are in use.
9328
9329 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9330
9331         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9332         via opts pointer.  Don't assert that global structures are in use.
9333
9334 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9335
9336         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9337         (munix=93): Use Var.
9338         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9339         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9340         * config/pa/pa-opts.h: New.
9341         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9342         (pa_handle_option): Don't assert that global structures are in
9343         use.  Access target_flags via opts pointer.  Don't handle
9344         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9345         OPT_munix_98 here.
9346         (pa_option_override): Handle deferred OPT_mfixed_range_.
9347
9348 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * config/mn10300/mn10300-opts.h: New.
9351         * config/mn10300/mn10300.c (mn10300_processor,
9352         mn10300_tune_string): Remove.
9353         (mn10300_handle_option): Don't assert that global structures are
9354         in use.  Access mn10300_processor via opts pointer.  Don't handle
9355         OPT_mtune_ here.
9356         * config/mn10300/mn10300.h (enum processor_type): Move to
9357         mn10300-opts.h.
9358         (mn10300_processor): Remove.
9359         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9360         HeaderInclude entry.
9361         (mn10300_processor): New Variable entry.
9362         (mtune=): Use Var.
9363
9364 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9365
9366         * config/microblaze/microblaze.c: Don't include opts.h.
9367         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9368         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9369         (mno-clearbss): Use Var and Warn.
9370
9371 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9372
9373         * config/m32r/m32r-opts.h: New.
9374         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9375         (m32r_handle_option): Don't assert that global structures are in
9376         use.  Access target_flags and m32r_cache_flush_func via opts
9377         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9378         OPT_mno_flush_trap here.
9379         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9380         include of m32r-opts.h.
9381         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9382         HeaderInclude entry.
9383         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9384         (mmodel=): Use Enum and Var.
9385         (m32r_model): New Enum and EnumValue entries.
9386         (mno-flush-trap): Use Var.
9387         (msdata=): Use Enum and Var.
9388         (m32r_sdata): New Enum and EnumValue entries.
9389
9390 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9391
9392         * config/m32c/m32c.c: Don't include opts.h.
9393         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9394         m32c_handle_option): Remove.
9395         (m32c_option_override): Check global_options_set.x_target_memregs
9396         instead of target_memregs_set.
9397         * config/m32c/m32c.h (target_memregs): Remove.
9398         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9399         variable.
9400
9401 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9402
9403         * config/iq2000/iq2000-opts.h: New.
9404         * config/iq2000/iq2000.c: Don't include opts.h.
9405         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9406         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9407         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9408         HeaderInclude entry.
9409         (iq2000_tune): New Variable entry.
9410         (march=): Add comment.  Use Enum.
9411         (iq2000_arch): New Enum and EnumValue entries.
9412         (mcpu=): Use Enum and Var.
9413         (iq2000_tune): New Enum and EnumValue entries.
9414
9415 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9416
9417         * config/ia64/ia64-opts.h: New.
9418         * config/ia64/ia64.c (ia64_tune): Remove.
9419         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9420         here.  Use error_at.
9421         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9422         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9423         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9424         HeaderInclude entry.
9425         (ia64_tune): New Variable entry.
9426         (mfixed-range=): Use Defer and Var.
9427         (mtune=): Use Enum and Var.
9428         (ia64_tune): New Enum and EnumValue entries.
9429
9430 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9431
9432         * config/frv/frv-opts.h: New.
9433         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9434         frv-opts.h.
9435         (frv_cpu_type): Remove.
9436         * config/frv/frv.c: Don't include opts.h.
9437         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9438         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9439         (frv_cpu_type): New Variable entry.
9440         (frv_cpu): New Enum and EnumValue entries.
9441
9442 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9443
9444         * config/cris/cris.c (cris_handle_option): Access target_flags via
9445         opts pointer.  Don't assert that global structures are in use.
9446         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9447         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9448
9449 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9450
9451         * config/bfin/bfin-opts.h: New.
9452         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9453         bfin_si_revision, bfin_workarounds): Remove.
9454         (bfin_cpus): Make static const.
9455         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9456         not bfin_lib_id_given.
9457         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9458         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9459         pointer. Use error_at.  Don't assert that global structures are in use.
9460         * config/bfin/bfin.h: Include bfin-opts.h.
9461         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9462         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9463         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9464         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9465         entries.
9466
9467 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9468
9469         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9470         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9471         or -msoft-float here.
9472         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9473         -msoft-float and -mhard-float.
9474         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9475         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9476         msoft-float.
9477         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9478         -msoft-float.
9479         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9480         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9481         not mhard-float.
9482         (LIBGCC_SPEC): Don't handle -msoft-float.
9483         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9484         -mhard-float.
9485         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9486         msoft-float.
9487         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9488         -mfloat-abi=*, not -msoft-float and -mhard-float.
9489         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9490         -msoft-float.
9491         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9492         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9493         mhard-float and msoft-float.
9494         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9495         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9496         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9497         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9498         mhard-float.
9499         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9500         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9501         msoft-float.
9502         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9503         not mhard-float.
9504         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9505         not msoft-float.
9506
9507 2011-03-22  Richard Henderson  <rth@redhat.com>
9508
9509         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9510         TARGET_ABI_WINDOWS_NT.
9511         (alpha_output_function_end_prologue): Likewise.
9512         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9513         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9514         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9515         (trap, *movsi_nt_vms): Likewise.
9516         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9517         (*tablejump_osf_nt_internal): Remove.
9518         * config/alpha/predicates.md (input_operand): Only test Pmode.
9519
9520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9521
9522         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9523         via opts pointer.  Use error_at.  Don't assert that global
9524         structures are in use.
9525
9526 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9527
9528         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9529         (ix86_handle_option): Access ix86_isa_flags and
9530         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9531         global structures are in use.
9532         (ix86_function_specific_save, ix86_function_specific_restore):
9533         Update ix86_isa_flags_explicit field name.
9534         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9535         (ix86_isa_flags_explicit): Rename TargetSave entry to
9536         x_ix86_isa_flags_explicit.
9537
9538 2011-03-22  Richard Henderson  <rth@redhat.com>
9539
9540         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9541         (alpha_option_override, direct_return): Likewise.
9542         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9543         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9544         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9545         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9546         (alpha_expand_epilogue, alpha_end_function): Likewise.
9547         (alpha_init_libfuncs): Likewise.
9548         (struct machine_function): Remove unicosmk members.
9549         (print_operand) ['t']: Remove.
9550         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9551         unicosmk_output_module_name, unicosmk_output_common,
9552         current_section_align, unicosmk_output_text_section_asm_op,
9553         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9554         unicosmk_section_type_flags, unicosmk_unique_section,
9555         unicosmk_asm_named_section, unicosmk_insert_attributes,
9556         unicosmk_output_align, unicosmk_defer_case_vector,
9557         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9558         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9559         unicosmk_output_ssib, unicosmk_add_call_info_word,
9560         unicosmk_extern_head, unicosmk_output_default_externs,
9561         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9562         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9563         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9564         * config/alpha/alpha-protos.h: Update.
9565         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9566         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9567         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9568         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9569         (*mulsi_se, mulvsi3): Likewise.
9570         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9571         (*divmodsi_internal, call, call_value, realign): Likewise.
9572         (moddi3, umoddi3): Likewise; remove duplicate expander.
9573         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9574         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9575         (*movdi_nofix): Remove r/U alternative.
9576         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9577         * config/alpha/constraints.md ("U"): Remove.
9578         * config/alpha/predicates.md (call_operand"): Don't test
9579         TARGET_ABI_UNICOSMK.
9580
9581 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9582
9583         * target.def (handle_option): Take gcc_options and
9584         cl_decoded_option pointers and location_t.
9585         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9586         * doc/tm.texi: Regenerate.
9587         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9588         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9589         * lto-opts.c (lto_reissue_options): Generate option structure for
9590         targetm.handle_option call.
9591         * opts.c (target_handle_option): Update call to
9592         targetm.handle_option.  Remove assertions about values now passed
9593         down to hook.
9594         * targhooks.c (default_target_handle_option): New.
9595         * targhooks.h (default_target_handle_option): Declare.
9596         * config/alpha/alpha.c: Include opts.h.
9597         (alpha_handle_option): Update to new hook interface.
9598         * config/arm/arm.c: Include opts.h.
9599         (arm_handle_option): Update to new hook interface.
9600         * config/arm/t-arm (arm.o): Update dependencies.
9601         * config/bfin/bfin.c: Include opts.h.
9602         (bfin_handle_option): Update to new hook interface.
9603         * config/cris/cris.c: Include opts.h.
9604         (cris_handle_option): Update to new hook interface.
9605         * config/frv/frv.c: Include opts.h.
9606         (frv_handle_option): Update to new hook interface.
9607         * config/i386/i386.c: Include opts.h.
9608         (ix86_handle_option): Update to new hook interface.
9609         (ix86_valid_target_attribute_inner_p): Generate option structure
9610         for call to ix86_handle_option.
9611         * config/i386/t-i386 (i386.o): Update dependencies.
9612         * config/ia64/ia64.c: Include opts.h.
9613         (ia64_handle_option): Update to new hook interface.
9614         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9615         * config/iq2000/iq2000.c: Include opts.h.
9616         (iq2000_handle_option): Update to new hook interface.
9617         * config/m32c/m32c.c: Include opts.h.
9618         (m32c_handle_option): Update to new hook interface.
9619         * config/m32r/m32r.c: Include opts.h.
9620         (m32r_handle_option): Update to new hook interface.
9621         * config/m68k/m68k.c: Include opts.h.
9622         (m68k_handle_option): Update to new hook interface.
9623         * config/mep/mep.c: Include opts.h.
9624         (mep_handle_option): Update to new hook interface.
9625         * config/microblaze/microblaze.c: Include opts.h.
9626         (microblaze_handle_option): Update to new hook interface.
9627         * config/mips/mips.c: Include opts.h.
9628         (mips_handle_option): Update to new hook interface.
9629         * config/mn10300/mn10300.c: Include opts.h.
9630         (mn10300_handle_option): Update to new hook interface.
9631         * config/pa/pa.c: Include opts.h.
9632         (pa_handle_option): Update to new hook interface.
9633         * config/pdp11/pdp11.c: Include opts.h.
9634         (pdp11_handle_option): Update to new hook interface.
9635         * config/rs6000/rs6000.c: Include opts.h.
9636         (rs6000_handle_option): Update to new hook interface.
9637         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9638         * config/rx/rx.c: Include opts.h.
9639         (rx_handle_option): Update to new hook interface.
9640         * config/s390/s390.c: Include opts.h.
9641         (s390_handle_option): Update to new hook interface.
9642         * config/score/score.c: Include opts.h.
9643         (score_handle_option): Update to new hook interface.
9644         * config/sh/sh.c: Include opts.h.
9645         (sh_handle_option): Update to new hook interface.
9646         * config/sparc/sparc.c: Include opts.h.
9647         (sparc_handle_option): Update to new hook interface.
9648         * config/v850/v850.c: Include opts.h.
9649         (v850_handle_option): Update to new hook interface.
9650
9651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * gcc.c (driver_unknown_option_callback): Only permit and save
9654         unknown -Wno- options.
9655         (driver_wrong_lang_callback): Save options directly instead of via
9656         driver_unknown_option_callback.
9657
9658 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9659
9660         * combine.c (simplify_set): Try harder to find the best CC mode when
9661         simplifying a nested COMPARE on the RHS.
9662
9663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9664
9665         * config/alpha/gnu.h: Remove.
9666         * config/arc: Remove directory.
9667         * config/arm/netbsd.h: Remove.
9668         * config/arm/t-pe: Remove.
9669         * config/crx: Remove directory.
9670         * config/i386/netbsd.h: Remove.
9671         * config/m68hc11: Remove directory.
9672         * config/m68k/uclinux-oldabi.h: Remove.
9673         * config/mcore/mcore-pe.h: Remove.
9674         * config/mcore/t-mcore-pe: Remove.
9675         * config/netbsd-aout.h: Remove.
9676         * config/rs6000/gnu.h: Remove.
9677         * config/sh/sh-symbian.h: Remove.
9678         * config/sh/symbian-base.c: Remove.
9679         * config/sh/symbian-c.c: Remove.
9680         * config/sh/symbian-cxx.c: Remove.
9681         * config/sh/symbian-post.h: Remove.
9682         * config/sh/symbian-pre.h: Remove.
9683         * config/sh/t-symbian: Remove.
9684         * config/svr3.h: Remove.
9685         * config/vax/netbsd.h: Remove.
9686         * config.build: Don't handle i[34567]86-*-pe.
9687         * config.gcc: Remove handling of deprecations for most deprecated
9688         targets.
9689         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9690         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9691         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9692         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9693         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9694         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9695         Remove cases.
9696         * config.host: Don't handle i[34567]86-*-pe.
9697         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9698         (ASM_SPEC32): Don't handle -mcall-gnu.
9699         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9700         -mcall-gnu.
9701         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9702         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9703         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9704         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9705         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9706         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9707         conditional on SYMBIAN.
9708         * configure.ac: Don't handle powerpc*-*-gnu*.
9709         * configure: Regenerate.
9710         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9711         * doc/install-old.texi (m6811, m6812): Don't mention.
9712         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9713         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9714         (m68k-uclinuxoldabi): Don't mention.
9715         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9716         Remove.
9717         (-mcall-gnu): Remove.
9718         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9719         families): Remove constraint documentation.
9720
9721 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9722
9723         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9724         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9725         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9726
9727 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9728
9729         PR target/48226
9730         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9731         vector when peeking at the next token for vector, don't expand the
9732         keywords.
9733
9734 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9735
9736         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9737         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9738         * config/avr/avr.c (init_cumulative_args)
9739         (avr_function_arg_advance): Use it.
9740         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9741         sibcall epilogues.
9742         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9743         (avr_function_ok_for_sibcall): ...this new function.
9744         (avr_lookup_function_attribute1): New static Function.
9745         (avr_naked_function_p, interrupt_function_p)
9746         (signal_function_p, avr_OS_task_function_p)
9747         (avr_OS_main_function_p): Use it.
9748         * config/avr/avr.md ("sibcall", "sibcall_value")
9749         ("sibcall_epilogue"): New expander.
9750         ("*call_insn", "*call_value_insn"): New insn.
9751         ("call_insn", "call_value_insn"): Remove
9752         ("call", "call_value", "epilogue"): Change expander to handle
9753         sibling calls.
9754
9755 2011-03-21  Nick Clifton  <nickc@redhat.com>
9756
9757         * doc/invoke.texi (Overall Options): Move closing brace to end of
9758         options list.
9759         (Optimization Options): Add missing @gol.
9760         (Directory Options): Likewise.
9761         (i386 and x86-64 Options): Likewise.
9762         (RS6000 and PowerPC Options): Likewise.
9763         (i386 and x86-64 Windows Options): Likewise.
9764         (V850 Options): Add text missing from descriptions.
9765
9766 2011-03-22  Richard Henderson  <rth@redhat.com>
9767
9768         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9769         (avr_incoming_return_addr_rtx): New.
9770         (emit_push_byte): New.
9771         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9772         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9773         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9774         (emit_pop_byte): New.
9775         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9776         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9777         (INCOMING_RETURN_ADDR_RTX): New.
9778         (INCOMING_FRAME_SP_OFFSET): New.
9779         (ARG_POINTER_CFA_OFFSET): New.
9780         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9781         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9782         (pophi): Remove.
9783
9784         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9785
9786 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9787
9788         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9789         (FUNCTION_ARG_ADVANCE): Likewise.
9790         * tm.texi.in: Change references to them to hook references.
9791         * tm.texi: Regenerate.
9792         * targhooks.c (default_function_arg): Eliminate check for target
9793         macro.
9794         (default_function_incoming_arg): Likewise.
9795         (default_function_arg_advance): Likewise.
9796         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9797         (function_arg_advance): Likewise.
9798         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9799
9800 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9801
9802         * tree.c (build_call_1): New function.
9803         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9804
9805 2011-03-22  Richard Guenther  <rguenther@suse.de>
9806
9807         PR tree-optimization/48228
9808         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9809         for single-arg PHIs.
9810
9811 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9812
9813         PR rtl-optimization/48143
9814         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9815         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9816         sse2_cvtps2pd): Likewise.
9817
9818 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9819
9820         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9821
9822 2011-03-22  Richard Guenther  <rguenther@suse.de>
9823
9824         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9825         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9826         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9827         and REALIGN_LOAD_EXPR.
9828         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9829         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9830         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9831         DOT_PROD_EXPR case ...
9832         (expand_expr_real_2): ... here.
9833         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9834         and REALIGN_LOAD_EXPR.
9835         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9836         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9837         (vect_create_epilog_for_reduction): Likewise.
9838         (vectorizable_reduction): Likewise.
9839         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9840         * tree-vect-stmts.c (vectorizable_load): Likewise.
9841
9842 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9843
9844         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9845
9846 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9847
9848         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9849         handling for PLTOFF/GOTOFF.
9850
9851 2011-03-22  Nick Clifton  <nickc@redhat.com>
9852
9853         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9854         trailing backslash from the end of the macro definition.
9855
9856 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9857
9858         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9859         and PLT unspecs.
9860
9861 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9862
9863         * expr.h (prepare_operand): Move to...
9864         * optabs.h (prepare_operand): ...here and change the insn code
9865         parameter from "int" to "enum insn_code".
9866         (insn_operand_matches): Declare.
9867         * expr.c (init_expr_target): Use insn_operand_matches.
9868         (compress_float_constant): Likewise.
9869         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9870         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9871         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9872         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9873         Likewise.
9874         (gen_cond_trap): Likewise.
9875         (prepare_operand): Likewise.  Change icode to an insn_code.
9876         (insn_operand_matches): New function.
9877         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9878         * reload1.c (gen_reload): Likewise.
9879         * targhooks.c (default_secondary_reload): Likewise.
9880
9881 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9882
9883         * config/alpha/alpha.md (unspec): New define_c_enum.
9884         (unspecv): Ditto.
9885
9886 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9887
9888         PR debug/48214
9889         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9890         between a call and its CALL_ARG_LOCATION note.
9891
9892 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9893
9894         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9895
9896 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9897
9898         PR c/42544
9899         PR c/48197
9900         * c-common.c (shorten_compare): If primopN is first sign-extended
9901         to opN and then zero-extended to result type, set primopN to opN.
9902
9903 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9904
9905         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9906         for barrier handlers.
9907
9908 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9909
9910         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9911         UNSPEC constants to be in the unspec enumeration, and redefine
9912         all UNSPECV constants to be in the unspecv enumeration, so that
9913         dumps print which unspec/unspec_volatile this is.
9914         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9915         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9916         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9917         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9918         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9919
9920         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9921         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9922         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9923         * config/rs6000/sync.md (isync, lwsync): Ditto.
9924
9925 2011-03-21  Richard Guenther  <rguenther@suse.de>
9926
9927         * params.def (lto-min-partition): Fix typo.
9928
9929 2011-03-21  Richard Guenther  <rguenther@suse.de>
9930
9931         PR c/47939
9932         * c-decl.c (grokdeclarator): Drop to the main variant only
9933         for array types.  Drop flag_gen_aux_info check.
9934
9935 2011-03-21  Richard Guenther  <rguenther@suse.de>
9936
9937         PR translation/47911
9938         * params.def (lto-partitions): Fix typo.
9939         (lto-min-partition): Fix wording.
9940
9941 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9942
9943         * config/rs6000/t-freebsd: Remove duplication from file.
9944
9945 2011-03-21  Richard Guenther  <rguenther@suse.de>
9946
9947         PR middle-end/47661
9948         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9949
9950 2011-03-21  Richard Guenther  <rguenther@suse.de>
9951
9952         PR lto/48210
9953         * params.def (lto-partitions): Require at least 1 partition.
9954
9955 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9956
9957         * gthr-solaris.h: Remove.
9958         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9959         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9960         (LIB_SPEC): Likewise.
9961         * config/sol2.opt (threads): Remove.
9962         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9963         (sparc*-*-solaris2*): Likewise.
9964         * configure.ac (enable_threads): Enable solaris support.
9965         * configure: Regenerate.
9966         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9967         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9968         solaris.
9969
9970 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9971
9972         * config.gcc: Obsolete *-*-solaris2.8*.
9973         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9974
9975 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9976
9977         PR bootstrap/48135
9978         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9979         reference.  Solaris 8 perl works.
9980
9981 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9982
9983         PR bootstrap/48135
9984         * doc/install.texi (Prerequisites): Move jar etc. up.
9985         Explain support library version requirements.
9986
9987 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9988
9989         PR bootstrap/48135
9990         * doc/install.texi (Prerequisites): Move Perl to build
9991         requirements.  Always necessary on Solaris 2 with Sun ld.
9992
9993 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9994
9995         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9996         binutils 2.21.
9997         (Specific, i?86-*-solaris2.[89]): Likewise.
9998         (Specific, i?86-*-solaris2.10): Likewise.
9999         (Specific, mips-sgi-irix6): Likewise.
10000         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10001         Update for binutils 2.21.
10002
10003 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10004
10005         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10006         Allow -fuse-linker-plugin for non-default plugin linker.
10007         * configure: Regenerate.
10008
10009 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10010
10011         PR bootstrap/48167
10012         * gengtype.c (files_rules): Added rule for cp/parser.h.
10013
10014 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10015
10016         PR target/48213
10017         * config/s390/s390.c (s390_delegitimize_address): Don't call
10018         lowpart_subreg if orig_x has BLKmode.
10019
10020 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10021
10022         PR target/12171
10023         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10024         * tree.h (attribute_spec): Add new member affects_type_identity.
10025         * attribs.c (empty_attribute_table): Adjust attribute_spec
10026         initializers.
10027         * config/alpha/alpha.c: Likewise.
10028         * config/arc/arc.c: Likewise.
10029         * config/arm/arm.c: Likewise.
10030         * config/avr/avr.c: Likewise.
10031         * config/bfin/bfin.c: Likewise.
10032         * config/crx/crx.c: Likewise.
10033         * config/darwin.h: Likewise.
10034         * config/h8300/h8300.c: Likewise.
10035         * config/i386/cygming.h: Likewise.
10036         * config/i386/i386.c: Likewise.
10037         * config/ia64/ia64.c: Likewise.
10038         * config/m32c/m32c.c: Likewise.
10039         * config/m32r/m32r.c: Likewise.
10040         * config/m68hc11/m68hc11.c: Likewise.
10041         * config/m68k/m68k.c: Likewise.
10042         * config/mcore/mcore.c: Likewise.
10043         * config/mep/mep.c: Likewise.
10044         * config/microblaze/microblaze.c: Likewise.
10045         * config/mips/mips.c: Likewise.
10046         * config/rs6000/rs6000.c: Likewise.
10047         * config/rx/rx.c: Likewise.
10048         * config/sh/sh.c: Likewise.
10049         * config/sol2.h: Likewise.
10050         * config/sparc/sparc.c: Likewise.
10051         * config/spu/spu.c: Likewise.
10052         * config/stormy16/stormy16.c: Likewise.
10053         * config/v850/v850.c: Likewise.
10054
10055 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10056
10057         * simplify-rtx.c (simplify_binary_operation_1): Handle
10058         (xor (and A B) C) case when B and C are both constants.
10059
10060 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10061
10062         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10063
10064 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10065
10066         PR bootstrap/48168
10067         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10068
10069 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10070
10071         PR rtl-optimization/48156
10072         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10073         assume df and df_lr are not NULL.
10074
10075 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10076
10077         PR debug/48023
10078         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10079         between a call and its CALL_ARG_LOCATION note.
10080
10081 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10082
10083         PR debug/48178
10084         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10085         between a call and its corresponding CALL_ARG_LOCATION note.
10086
10087 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10088
10089         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10090         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10091         * haifa-sched.c (setup_ref_regs): Ditto.
10092         * caller-save.c (add_used_regs_1): Ditto.
10093         * dse.c (look_for_hardregs): Ditto.
10094         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10095         * sched-rgn.c (check_live_1): Ditto.
10096
10097 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10098
10099         * c-decl.c (diagnose_mismatched_decls): Give an error for
10100         redefining a typedef with variably modified type.
10101
10102 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10103
10104         * c-decl.c (grokfield): Don't allow typedefs for structures or
10105         unions with no tag by default.
10106         * doc/extend.texi (Unnamed Fields): Update.
10107
10108 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10109
10110         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10111         Rewrite using indirect functions.
10112         (lwp_slwpcb): Ditto.
10113         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10114         (avx_vinsertf128<mode>): Ditto.
10115
10116 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10117
10118         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10119         unspecs.
10120
10121 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10122
10123         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10124         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10125
10126 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10127
10128         PR rtl-optimization/48170
10129         * gcse.c (hoist_code): Remove bogus asserts.
10130
10131 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10132
10133         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10134         computation for prologue/epilogue.
10135
10136 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10137
10138         * Makefile.in (check-consistency): Remove.
10139
10140 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10141
10142         PR debug/48176
10143         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10144         arange_table_in_use is 0, but either text_section_used or
10145         cold_text_section_used is true.  Don't call it if
10146         !info_section_emitted.
10147
10148 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10149
10150         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10151         FUNCTION_VALUE_REGNO_P): Remove.
10152         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10153         Remove.
10154         * config/avr/avr.c (avr_ret_register): Make static inline.
10155         (avr_function_value_regno_p): New function.
10156         (avr_libcall_value): Make static. Add 'func' argument.
10157         (avr_function_value): Make static. Rename 'func' argument to
10158         'fn_decl_or_type', forward it to avr_libcall_value. Call
10159         avr_ret_register function instead of RET_REGISTER macro.
10160         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10161
10162 2011-03-18  Jason Merrill  <jason@redhat.com>
10163
10164         PR c++/23372
10165         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10166
10167 2011-03-18  Richard Guenther  <rguenther@suse.de>
10168
10169         * doc/install.texi (--enable-gold): Remove.
10170         (--with-plugin-ld): Document.
10171         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10172
10173 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10174
10175         PR middle-end/47790
10176         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10177         again after expansion changes.
10178
10179 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10180
10181         * combine.c (try_combine): Do simplification only call of
10182         subst() on i2 even when i1 is present. Update comments.
10183
10184 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10185
10186         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10187         and UNSPEC_PCREL_SYMOFF.
10188
10189 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10190
10191         * config/s390/s390.md: Use define_c_enum for the unspec constant
10192         definitions.
10193
10194 2011-03-18  Richard Henderson  <rth@redhat.com>
10195             Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR bootstrap/48161
10198         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10199         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10200
10201 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10202
10203         PR middle-end/47725
10204         * combine.c (cant_combine_insn_p): Don't check zero/sign
10205         extended hard registers.
10206
10207 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10208
10209         PR middle-end/47725
10210         * combine.c (cant_combine_insn_p): Check zero/sign extended
10211         hard registers.
10212
10213 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10214
10215         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10216         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10217         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10218         Change return type to bool.
10219         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10220
10221 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10222
10223         PR debug/48163
10224         * var-tracking.c (prepare_call_arguments): If CALL target
10225         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10226         pc instead of looking it up using cselib_lookup and use
10227         Pmode for it if x has VOIDmode.
10228         * dwarf2out.c (gen_subprogram_die): If also both first and
10229         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10230
10231         PR debug/48163
10232         * function.c (assign_parms): For data.passed_pointer parms
10233         use MEM of data.entry_parm instead of data.entry_parm itself
10234         as DECL_INCOMING_RTL.
10235         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10236         also when passed and declared mode is the same, DECL_RTL
10237         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10238         a MEM too.
10239
10240 2011-03-16  Jeff Law  <law@redhat.com>
10241
10242         PR rtl-optimization/37273
10243         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10244         handle them like argument loads from stack slots.  Do not double
10245         count memory for memory constants and argument loads from stack slots.
10246
10247 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10248
10249         PR debug/48160
10250         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10251
10252 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10253
10254         PR target/48171
10255         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10256
10257 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10258
10259         PR bootstrap/48153
10260         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10261         if dwarf_strict.
10262         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10263         Clear call_arg_locations and call_arg_loc_last always.
10264
10265         PR middle-end/48152
10266         * var-tracking.c (prepare_call_arguments): If argument needs to be
10267         passed by reference, adjust argtype and mode.
10268
10269 2011-03-17  Richard Guenther  <rguenther@suse.de>
10270
10271         PR middle-end/48134
10272         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10273         a value make sure to fold the statement.
10274
10275 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10276
10277         PR target/43872
10278         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10279         return condition with !cfun->calls_alloca.
10280
10281 2011-03-17  Richard Guenther  <rguenther@suse.de>
10282
10283         PR bootstrap/48148
10284         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10285         origin for decls in other ltrans units.
10286         (input_varpool_node): Likewise.
10287
10288 2011-03-17  Richard Guenther  <rguenther@suse.de>
10289
10290         PR middle-end/48165
10291         * tree-object-size.c (compute_object_offset): Properly return
10292         the offset operand of MEM_REFs as sizetype.
10293
10294 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10295
10296         PR rtl-optimization/48141
10297         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10298         * dse.c: Include params.h.
10299         (active_local_stores_len): New variable.
10300         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10301         to NULL.
10302         (record_store, check_mem_read_rtx): Decrease it when removing
10303         from the chain.
10304         (scan_insn): Likewise.  Increase it when adding to chain, if it
10305         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10306         set active_local_stores to NULL before the addition.
10307         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10308
10309         PR rtl-optimization/48141
10310         * dse.c (record_store): If no positions are needed in an insn
10311         that cannot be deleted, at least unchain it from active_local_stores.
10312
10313 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10314
10315         PR debug/47510
10316         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10317         (lookup_type_die_strip_naming_typedef): ... here.
10318         (get_context_die): Use it.
10319         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10320         the anonymous struct named by the naming typedef.
10321
10322 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10323
10324         PR target/48154
10325         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10326         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10327
10328 2011-03-16  Jeff Law  <law@redhat.com>
10329
10330         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10331         check for operands of conditional.  Allow type to be a pointer.
10332
10333 2011-03-16  Richard Guenther  <rguenther@suse.de>
10334
10335         PR tree-optimization/48149
10336         * fold-const.c (fold_binary_loc): Fold
10337         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10338
10339 2011-03-16  Richard Guenther  <rguenther@suse.de>
10340
10341         PR tree-optimization/26134
10342         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10343         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10344         (non_rewritable_mem_ref_base): Handle complex type component
10345         accesses, constrain offsets for vector and complex extracts
10346         more properly.
10347
10348 2011-03-16  Richard Guenther  <rguenther@suse.de>
10349
10350         PR tree-optimization/48146
10351         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10352         operands avoiding the need for renaming.
10353
10354 2011-03-16  Richard Guenther  <rguenther@suse.de>
10355
10356         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10357         constant folding.  Move MEM_REF canonicalization first.
10358         Rely on fold_const_aggregate_ref for initializer folding.
10359         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10360
10361 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10362
10363         PR middle-end/48136
10364         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10365         arg0/arg1 or their arguments are always fold converted to matching
10366         types.
10367
10368         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10369         to nargs.
10370
10371 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10372
10373         PR lto/46944
10374         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10375         Handle in-tree gold.
10376         (ld_vers): Extract binutils version for gold.
10377         (gcc_cv_ld_hidden): Handle gold here.
10378         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10379         * configure: Regenerate.
10380         * config.in: Regenerate.
10381         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10382         -fuse-linker-plugin otherwise.
10383         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10384         (LINK_COMMAND_SPEC): Use it.
10385         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10386
10387 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10388
10389         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10390         * calls.c: Remove debug.h include.
10391         (emit_call_1): Don't call virtual_call_token debug hook.
10392         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10393         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10394         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10395         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10396         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10397         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10398         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10399         dwarf2out_virtual_call): Remove.
10400         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10401         copy_call_info and virtual_call hooks.
10402         (dwarf2out_init): Don't initialize vcall_insn_table,
10403         debug_dcall_section and debug_vcall_section.
10404         (prune_unused_types): Don't mark nodes from dcall_table.
10405         (dwarf2out_finish): Don't output dcall or vcall tables.
10406         * final.c (final_scan_insn): Don't call direct_call or
10407         virtual_call debug hooks.
10408         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10409         virtual_call_token, copy_call_info and virtual_call hooks.
10410         (debug_nothing_uid): Remove prototype.
10411         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10412         copy_call_info and virtual_call hooks.
10413         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10414         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10415         * debug.c (do_nothing_debug_hooks): Likewise.
10416         (debug_nothing_uid): Remove.
10417         * doc/invoke.texi (-fenable-icf-debug): Remove.
10418         * common.opt (-fenable-icf-debug): Likewise.
10419
10420         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10421         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10422         call's MEM.  Handle functions returning aggregate through a hidden
10423         first pointer.  For virtual calls add clobbered pc to call arguments
10424         chain.
10425         * dwarf2out.c (gen_subprogram_die): Emit
10426         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10427         can't be emitted.
10428
10429         PR debug/45882
10430         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10431         * rtl.h (ENTRY_VALUE_EXP): Define.
10432         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10433         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10434         * print-rtl.c (print_rtx): Likewise.
10435         * gengtype.c (adjust_field_rtx_def): Likewise.
10436         * var-tracking.c (vt_add_function_parameter): Adjust
10437         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10438         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10439         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10440         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10441         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10442
10443         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10444         Call var_location debug hook even on CALL_INSNs.
10445         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10446         * rtl.def (ENTRY_VALUE): New.
10447         * dwarf2out.c: Include cfglayout.h.
10448         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10449         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10450         (struct call_arg_loc_node): New type.
10451         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10452         tail_call_site_count): New variables.
10453         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10454         DW_TAG_GNU_call_site_parameter.
10455         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10456         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10457         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10458         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10459         and DW_AT_GNU_all_source_call_sites.
10460         (mem_loc_descriptor): Handle ENTRY_VALUE.
10461         (add_src_coords_attributes): Don't add enything if
10462         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10463         (dwarf2out_abstract_function): Save and clear call_arg_location,
10464         call_site_count and tail_call_site_count around dwarf2out_decl call.
10465         (gen_call_site_die): New function.
10466         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10467         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10468         (dwarf2out_function_decl): Clear call_arg_locations,
10469         call_arg_loc_last, set call_site_count and tail_call_site_count
10470         to -1 and free block_map.
10471         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10472         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10473         followed by any real instructions.
10474         (dwarf2out_begin_function): Set call_site_count and
10475         tail_call_site_count to 0.
10476         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10477         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10478         attempt to force a DIE for it and worst case remove the attribute.
10479         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10480         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10481         the decl itself.
10482         * var-tracking.c: Include tm_p.h.
10483         (vt_stack_adjustments): For calls call note_register_arguments.
10484         (argument_reg_set): New variable.
10485         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10486         ensure the VALUE is resolved.
10487         (call_arguments): New variable.
10488         (prepare_call_arguments): New function.
10489         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10490         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10491         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10492         always use the best expression.
10493         (vt_expand_loc): Add ignore_cur_loc argument.
10494         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10495         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10496         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10497         note for all calls.
10498         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10499         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10500         argument.  Don't call cselib_preserve_only_values and
10501         cselib_reset_table.
10502         (note_register_arguments): New function.
10503         (vt_initialize): Compute argument_reg_set.  Call
10504         vt_add_function_parameters before processing basic blocks instead of
10505         afterwards.  For calls call prepare_call_arguments before calling
10506         cselib_process_insn.
10507         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10508         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10509         (var-tracking.o): Depend on $(TM_P_H).
10510         * cfglayout.h (insn_scope): New prototype.
10511         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10512         * cfglayout.c (insn_scope): No longer static.
10513         * insn-notes.def (CALL_ARG_LOCATION): New.
10514         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10515         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10516         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10517         nothing for DECL_EXTERNAL BLOCK_VARS.
10518
10519 2011-03-16  Alan Modra  <amodra@gmail.com>
10520
10521         PR target/45844
10522         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10523         create invalid offset address for vsx splat insn.
10524         * config/rs6000/predicates.md (splat_input_operand): New.
10525         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10526
10527 2011-03-15  Xinliang David Li  <davidxl@google.com>
10528
10529         PR c/47837
10530         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10531         (normalize_preds): New function.
10532         (is_use_properly_guarded): Normalize def predicates.
10533
10534 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10535
10536         PR target/46788
10537         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10538         in the output template.
10539
10540 2011-03-15  Richard Guenther  <rguenther@suse.de>
10541
10542         PR middle-end/47650
10543         * tree-pretty-print.c (dump_function_declaration): Properly
10544         dump unprototyped and varargs function types.
10545
10546 2011-03-15  Richard Guenther  <rguenther@suse.de>
10547
10548         PR tree-optimization/13954
10549         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10550         and friends.
10551
10552 2011-03-15  Richard Guenther  <rguenther@suse.de>
10553
10554         PR tree-optimization/48037
10555         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10556         selects into BIT_FIELD_REFs.
10557         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10558         vector select.
10559
10560 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10561
10562         PR tree-optimization/48129
10563         * builtins.c (fold_builtin_snprintf): Convert to type of
10564         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10565         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10566
10567 2011-03-15  Richard Guenther  <rguenther@suse.de>
10568
10569         PR tree-optimization/41490
10570         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10571         value but with VUSE.
10572         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10573         return statements.
10574         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10575         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10576         * tree-tailcall.c (find_tail_calls): Ignore returns.
10577
10578 2011-03-15  Richard Guenther  <rguenther@suse.de>
10579
10580         PR middle-end/48031
10581         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10582         or variable-indexed array accesses when in gimple form.
10583
10584 2011-03-15  Richard Guenther  <rguenther@suse.de>
10585
10586         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10587
10588 2011-03-15  Alan Modra  <amodra@gmail.com>
10589
10590         PR target/48032
10591         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10592         presume symbol_refs without a symbol_ref_decl are suitably
10593         aligned, nor other trees we may see here.  Handle anchor symbols.
10594         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10595         Check cmodel=medium addresses.  Adjust all calls.
10596         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10597         creating cmodel=medium optimized access to locals.
10598         * config/rs6000/constraints.md (R): Pass QImode to
10599         legitimate_constant_pool_address_p.
10600         * config/rs6000/predicates.md (input_operand): Pass mode to
10601         legitimate_constant_pool_address_p.
10602         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10603         Update prototype.
10604
10605 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10606
10607         PR target/48053
10608         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10609         64-bit constants being loaded into registers other than GPRs such
10610         as loading 0 into a VSX register.
10611
10612 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10613
10614         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10615
10616 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10617
10618         PR middle-end/47917
10619         * builtins.c (fold_builtin_snprintf): New function.
10620         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10621         (fold_builtin_4): Likewise.
10622
10623         PR middle-end/38878
10624         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10625         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10626         and C - X == X also strip nops from +/-/p+ operand.
10627         When optimizing -X == C, fold C to arg0's type.
10628
10629         PR debug/47946
10630         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10631         emit it as add_AT_int instead of add_AT_unsigned.
10632
10633 2011-03-14  Tom Tromey  <tromey@redhat.com>
10634
10635         * unwind-dw2.c: Include sys/sdt.h if it exists.
10636         (_Unwind_DebugHook): Use STAP_PROBE2.
10637         * config.in, configure: Rebuild.
10638         * configure.ac: Check for sys/sdt.h.
10639
10640 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10641
10642         * config/i386/i386.md (ROUND_FLOOR): New constant.
10643         (ROUND_CEIL): Ditto.
10644         (ROUND_TRUNC): Ditto.
10645         (ROUND_MXCSR): Ditto.
10646         (ROUND_NO_EXC): Ditto.
10647         (rint<mode>2): Use new defines instead of numerical constants.
10648         (floor<mode>2): Ditto.
10649         (ceil<mode>2): Ditto.
10650         (btrunc<mode>2): Ditto.
10651         * config/i386/i386-builtin-types.def: Define ROUND function type
10652         aliases.
10653         * config/i386/i386.c (enum ix86_builtins): Add
10654         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10655         (struct builtin_description): Add
10656         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10657         (ix86_expand_sse_round): New static function.
10658         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10659         function types.
10660         (ix86_builtin_vectorized_function): Handle
10661         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10662
10663 2011-03-14  Tom Tromey  <tromey@redhat.com>
10664
10665         * c-parser.c (c_parser_asm_string_literal): Clear
10666         warn_overlength_strings.
10667
10668 2011-03-14  Tom Tromey  <tromey@redhat.com>
10669
10670         * c-parser.c (disable_extension_diagnostics): Save
10671         warn_overlength_strings.
10672         (restore_extension_diagnostics): Restore warn_overlength_strings.
10673
10674 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10675
10676         * BASE-VER: Change to 4.7.0.
10677
10678 2011-03-14  Richard Guenther  <rguenther@suse.de>
10679
10680         PR middle-end/48098
10681         * tree.c (build_vector_from_val): Adjust assert to requirements
10682         and reality.
10683
10684 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10685
10686         PR bootstrap/48102
10687         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10688
10689 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10690
10691         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10692         terms of target_flags_explicit. Adjust copyright year.
10693
10694         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10695         * config/rs6000/t-freebsd: New file. Add override for
10696         LIB2FUNCS_EXTRA.
10697
10698 2011-03-13  Chris Demetriou  <cgd@google.com>
10699
10700         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10701         (-fno-diagnostics-show-option): this, to reflect current default.
10702         (-Werror=): Update text about -fno-diagnostics-show-option.
10703
10704 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10705
10706         PR target/48053
10707         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10708         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10709         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10710         mode is not V2DImode or V2DFmode.
10711         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10712         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10713         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10714         registers to 0.
10715         (movdi_internal64): Likewise.
10716
10717 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10718
10719         PR tree-optimization/47127
10720         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10721         parameter.
10722         (set_cloog_options): Same.
10723         (scop_to_clast): Same.
10724         (print_clast_stmt): Do not call cloog_state_malloc and
10725         cloog_state_free.
10726         (print_generated_program): Same.
10727         (gloog): Same.
10728         * graphite-clast-to-gimple.h (cloog_state): Declared.
10729         (scop_to_clast): Adjust declaration.
10730         * graphite.c (cloog_state): Defined here.
10731         (graphite_initialize): Call cloog_state_malloc.
10732         (graphite_finalize): Call cloog_state_free.
10733
10734 2011-03-11  Jason Merrill  <jason@redhat.com>
10735
10736         * attribs.c (lookup_attribute_spec): Take const_tree.
10737         * tree.h: Adjust.
10738
10739 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10740
10741         * config/sparc/sparc.c (sparc_option_override): Use
10742         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10743
10744 2011-03-11  Richard Guenther  <rguenther@suse.de>
10745
10746         PR tree-optimization/48067
10747         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10748         multiplication result will be only used once on the target
10749         stmt.
10750
10751 2011-03-11  Richard Guenther  <rguenther@suse.de>
10752
10753         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10754
10755 2011-03-11  Richard Guenther  <rguenther@suse.de>
10756
10757         PR lto/48073
10758         * tree.c (find_decls_types_r): Do not walk types only reachable
10759         from IDENTIFIER_NODEs.
10760
10761 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10762
10763         PR middle-end/48044
10764         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10765         all vnode->force_output nodes as needed.
10766
10767 2011-03-11  Jason Merrill  <jason@redhat.com>
10768
10769         PR c++/48069
10770         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10771         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10772
10773 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10774
10775         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10776         cgraph_node.
10777
10778 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10779
10780         PR tree-optimization/48063
10781         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10782         inline functions called once if !tree_can_inline_p (node->callers).
10783
10784 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10785
10786         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10787         extra_objs.
10788         * config/score/score3.c: Delete.
10789         * config/score/score3.h: Delete.
10790         * config/score/mul-div.S: Delete.
10791         * config/score/sfp-machine.h: Add new file.
10792         * config/score/constraints.md: Add new file.
10793         * config/score/t-score-softfp: Add new file.
10794         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10795         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10796         (score7_extra_constraint): Delete.
10797         (score7_option_override): Remove unused code.
10798         * config/score/score.c: Remove score3 and score5 define and code.
10799         * config/score/score.h: Remove score3 and score5 define and code.
10800         * config/score/score.md: Remove score3 template and unusual insn.
10801         * config/score/score.opt: Remove score3 and score5 options.
10802
10803 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10804
10805         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10806         when _HPUX_SOURCE is defined.
10807         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10808
10809 2011-03-10  Jason Merrill  <jason@redhat.com>
10810
10811         PR c++/48029
10812         * stor-layout.c (layout_type): Don't set structural equality
10813         on arrays of incomplete type.
10814         * tree.c (type_hash_eq): Handle comparing them properly.
10815
10816 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10817
10818         PR debug/48043
10819         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10820         result mode matches original rtl mode.
10821
10822 2011-03-10  Nick Clifton  <nickc@redhat.com>
10823
10824         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10825         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10826
10827 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10828
10829         PR rtl-optimization/47866
10830         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10831         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10832         if target wasn't scalar.
10833         * function.c (assign_stack_temp_for_type): Assert that neither
10834         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10835         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10836         macro.
10837         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10838
10839 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10840
10841         * config/s390/s390-protos.h (s390_label_align): New prototype.
10842         * config/s390/s390.c (s390_label_align): New function.
10843         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10844
10845 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10846
10847         PR target/47755
10848         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10849         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10850         (output_vec_const_move): Ditto.
10851
10852 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10853
10854         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10855         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10856         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10857         Change 'rclass' argument and result type to reg_class_t.
10858         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10859
10860 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10861
10862         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10863         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10864         (TARGET_MEMORY_MOVE_COST): Define.
10865         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10866
10867 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10868
10869         PR debug/47881
10870         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10871         removed anything.
10872
10873         PR tree-optimization/48022
10874         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10875         for EQ/NE_EXPR.
10876
10877 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10878
10879         PR debug/47991
10880         * var-tracking.c (find_use_val): Return NULL for
10881         cui->sets && cui->store_p BLKmode MEMs.
10882
10883 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10884
10885         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10886         Remove.
10887         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10888         xstormy16_print_operand_address): Remove.
10889         * config/stormy16/stormy16.c (xstormy16_print_operand,
10890         xstormy16_print_operand_address): Make static.
10891         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10892
10893 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10894
10895         PR target/47862
10896         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10897         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10898         before definition.
10899
10900 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10901
10902         PR bootstrap/48000
10903         * cfgloopmanip.c (fix_bb_placements): Return immediately
10904         if FROM is BASE_LOOP's header.
10905
10906 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10907
10908         * gimplify.c (gimplify_function_tree): Fix building calls
10909         to __builtin_return_address.
10910
10911 2011-03-07  Alan Modra  <amodra@gmail.com>
10912
10913         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10914         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10915         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10916         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10917         return_mode args.
10918         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10919         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10920         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10921         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10922         * config/rs6000/rs6000.c
10923         (rs6000_elf_end_indicate_exec_stack): Rename to..
10924         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10925         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10926         (rs6000_file_start): ..here.
10927         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10928         file scope variables.
10929         (call_ABI_of_interest): New function.
10930         (init_cumulative_args): Set above vars when function return value
10931         is a float, vector, or small struct.
10932         (rs6000_function_arg_advance_1): Likewise for function args.
10933         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10934         references float args.
10935
10936 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10937
10938         * doc/cfg.texi: Remove "See" before @ref.
10939         * doc/invoke.texi: Likewise.
10940
10941 2011-03-05  Jason Merrill  <jason@redhat.com>
10942
10943         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10944
10945 2011-03-05  Anthony Green  <green@moxielogic.com>
10946
10947         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10948
10949 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10950
10951         PR rtl-optimization/47899
10952         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10953         to flow_loop_nested_p when moving the loop upward.
10954
10955 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10956
10957         PR target/47719
10958         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10959
10960 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10961
10962         PR tree-optimization/47967
10963         * ipa-cp.c (build_const_val): Return NULL instead of creating
10964         VIEW_CONVERT_EXPR for mismatching sizes.
10965         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10966         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10967         give up on versioning.
10968
10969 2011-03-05  Alan Modra  <amodra@gmail.com>
10970
10971         PR target/47986
10972         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10973         full cmodel medium/large lo_sum + high addresses.
10974
10975 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10976
10977         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10978         pool references in UNSPEC_LTREL_OFFSET.
10979
10980 2011-03-04  Jan Hubicka  <jh@suse.cz>
10981
10982         PR lto/47497
10983         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10984         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10985         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10986         Add node pointers.
10987         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10988         cgraph_add_thunk): Add node pointers.
10989         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10990         associated to right node.
10991         (input_node): Update use of cgraph_same_body_alias
10992         and cgraph_add_thunk.
10993
10994 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10995
10996         * config/i386/i386.opt (mprefer-avx128): New flag.
10997         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10998         modes when the flag -mprefer-avx128 is on.
10999
11000 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11001
11002         * dwarf2out.c (compare_loc_operands): Fix address handling.
11003
11004 2011-03-04  Alan Modra  <amodra@gmail.com>
11005
11006         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11007
11008 2011-03-04  Richard Guenther  <rguenther@suse.de>
11009
11010         PR middle-end/47968
11011         * expmed.c (extract_bit_field_1): Prefer vector modes that
11012         vec_extract patterns can handle.
11013
11014 2011-03-04  Richard Guenther  <rguenther@suse.de>
11015
11016         PR middle-end/47975
11017         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11018
11019 2011-03-04  Richard Henderson  <rth@redhat.com>
11020
11021         * explow.c (emit_stack_save): Remove 'after' parameter.
11022         (emit_stack_restore): Likewise.
11023         * expr.h: Update to match.
11024         * builtins.c, calls.c, stmt.c: Likewise.
11025         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11026         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11027         * function.c (expand_function_end): Insert the emit_stack_save
11028         sequence before parm_birth_insn instead of after.
11029
11030 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11031
11032         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11033         (ssse3_pmaddubsw128): Ditto.
11034         (ssse3_pmaddubsw): Ditto.
11035
11036 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11037
11038         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11039
11040 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11041
11042         PR c/47963
11043         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11044         on TYPE_SIZE_UNIT if it is a DECL.
11045
11046         PR debug/47283
11047         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11048         first operand is not is_gimple_mem_ref_addr, try to fold it.
11049         If the operand still isn't is_gimple_mem_ref_addr, clear
11050         MEM_EXPR on op0.
11051
11052 2011-03-03  Richard Guenther  <rguenther@suse.de>
11053
11054         PR middle-end/47283
11055         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11056         match comment.
11057         (refs_may_alias_p_1): For release branches return true if
11058         we are confused by our input.
11059
11060 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11061
11062         * config/s390/s390.c (s390_function_value): Rename to ...
11063         (s390_function_and_libcall_value): ... this.
11064         (s390_function_value): New function.
11065         (s390_libcall_value): New function.
11066         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11067         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11068         target macro definitions.
11069         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11070
11071 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11072
11073         * config/i386/freebsd64.h (CC1_SPEC): Define.
11074         * config/i386/linux64.h (CC1_SPEC): Define.
11075         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11076
11077 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11078
11079         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11080         Remove.
11081         * config/stormy16/stormy16.c: Include reload.h.
11082         (xstormy16_memory_move_cost): New function.
11083         (TARGET_MEMORY_MOVE_COST): Define.
11084
11085 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11086
11087         PR rtl-optimization/47925
11088         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11089         with side effects.  Remove the more-specific check for volatile asms.
11090
11091 2011-03-02  Alan Modra  <amodra@gmail.com>
11092
11093         PR target/47935
11094         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11095         toc relative addresses for valid offsets.
11096
11097 2011-03-01  Richard Guenther  <rguenther@suse.de>
11098
11099         PR tree-optimization/47890
11100         * tree-vect-loop.c (get_initial_def_for_induction): Set
11101         related stmt properly.
11102
11103 2011-03-01  Richard Guenther  <rguenther@suse.de>
11104
11105         PR lto/47924
11106         * lto-streamer.c (lto_record_common_node): Also register
11107         the canonical type.
11108
11109 2011-03-01  Richard Guenther  <rguenther@suse.de>
11110
11111         PR lto/46911
11112         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11113         Do not stream DECL_ABSTRACT_ORIGIN.
11114         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11115         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11116         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11117         Do not stream DECL_ABSTRACT_ORIGIN.
11118         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11119         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11120
11121 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11122
11123         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11124         FUNCTION_VALUE_REGNO_P): Remove.
11125         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11126         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11127         Add 'outgoing' argument.
11128         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11129         function.
11130         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11131         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11132
11133 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11134
11135         PR debug/28047
11136         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11137         (lookup_filename): Likewise.
11138         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11139
11140 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11141             Jakub Jelinek  <jakub@redhat.com>
11142
11143         PR middle-end/47893
11144         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11145         (assign_stack_local_1): Change last argument type to int.
11146         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11147         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11148         don't record padding space into frame_space_list nor use those areas.
11149         (assign_stack_local): Adjust caller.
11150         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11151         of assign_stack_local, pass 0 as last argument.
11152         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11153         callers.
11154
11155 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11156
11157         PR debug/47283
11158         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11159         Use target address_mode and pointer_mode hooks instead of hardcoded
11160         Pmode and ptr_mode.  Handle some simple cases of extending if
11161         POINTERS_EXTEND_UNSIGNED < 0.
11162         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11163         Call convert_debug_memory_address.
11164         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11165         convert_debug_memory_address.
11166
11167         PR middle-end/46790
11168         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11169         * configure: Regenerated.
11170         * config.in: Regenerated.
11171         * varasm.c (default_function_section): Return NULL
11172         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11173
11174 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11175
11176         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11177         the description to match the printed values.
11178
11179 2011-02-28  Richard Guenther  <rguenther@suse.de>
11180
11181         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11182         of the copied scope tree.
11183
11184 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11185
11186         * doc/extend.texi (Function Attributes): Avoid deeply (and
11187         wrongly) nested tables.
11188
11189 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11190
11191         PR middle-end/47903
11192         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11193         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11194         r isn't op0 nor op1.
11195
11196 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11197
11198         * config/avr/avr.md: Remove magic comment for emacs.
11199
11200 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11201
11202         PR target/45261
11203         * config/avr/avr.c (avr_option_override): Use error on bad options.
11204         (avr_help): New function.
11205         (TARGET_HELP): Define.
11206
11207 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11208
11209         PR target/42240
11210         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11211         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11212
11213 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11214
11215         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11216         (ARM Options): Ditto.
11217         (i386 and x86-64 Options): Ditto.
11218         (RX Options): Ditto.
11219         (SPARC Options): Ditto.
11220
11221 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11222
11223         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11224         FreeBSD 6 and later.  Generally use cpu generic.
11225
11226 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11227
11228         * doc/cpp.texi: Update copyright years.
11229
11230 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11231
11232         PR target/46898
11233         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11234
11235 2011-02-25  Jon Beniston  <jon@beniston.com>
11236
11237         PR target/46898
11238         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11239         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11240         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11241         (lm32_block_move_inline): Add type cast to remove warning.
11242         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11243         (gen_int_relational): Move declarations to start of function.
11244
11245 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11246
11247         PR tree-optimization/45470
11248         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11249         can throw internally only.
11250         * tree-vect-stmts.c (vectorizable_call): Likewise.
11251
11252 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11253
11254         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11255         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11256         * config/stormy16/stormy16-protos.h
11257         (xstormy16_preferred_reload_class): Remove.
11258         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11259         static. Change 'rclass' argument and return type to reg_class_t.
11260         (TARGET_PREFERRED_RELOAD_CLASS,
11261         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11262
11263 2011-02-24  Richard Guenther  <rguenther@suse.de>
11264
11265         * lto-streamer-in.c (input_bb): Do not find referenced vars
11266         in debug statements.
11267
11268 2011-02-23  Jason Merrill  <jason@redhat.com>
11269
11270         * common.opt (fabi-version): Document v5 and v6.
11271
11272 2011-02-23  Richard Guenther  <rguenther@suse.de>
11273
11274         PR tree-optimization/47849
11275         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11276
11277 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11278
11279         * opts-common.c (decode_cmdline_option): Print empty string
11280         argument as "" in decoded->orig_option_with_args_text.
11281         * gcc.c (execute): Print empty string argument as ""
11282         in the verbose output.
11283         (do_spec_1): Keep empty string argument.
11284
11285 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11286
11287         * config.gcc: Declare score-* and crx-* obsolete.
11288
11289 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11290
11291         PR rtl-optimization/47763
11292         * web.c (web_main): Ignore naked clobber when replacing register.
11293
11294 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11295
11296         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11297         Remove.
11298
11299 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11300
11301         PR doc/47848
11302         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11303
11304 2011-02-22  Mike Stump  <mikestump@comcast.net>
11305
11306         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11307         assembler.
11308         * configure: Regenerate.
11309
11310 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11311
11312         PR rtl-optimization/46002
11313         * ira-color.c (update_copy_costs): Change class intersection
11314         test to reg_class_contents[] test of 'hard_regno'.
11315
11316 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11317
11318         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11319         than Driver option.
11320         * config/hpux11.opt (mt): Likewise.
11321         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11322         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11323         * config/vax/elf.opt (mno-asm-pic): Likewise.
11324         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11325
11326 2011-02-21  Mike Stump  <mikestump@comcast.net>
11327
11328         PR target/47822
11329         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11330         tree so we can get save the type.
11331         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11332         for CFString instead of trying to use past the end of the builtins.
11333         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11334         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11335         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11336         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11337         Rename to darwin_builtin_cfstring.
11338         (darwin_init_cfstring_builtins): Return the built type.
11339
11340 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11341
11342         PR target/47840
11343         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11344         (_mm256_insert_epi64): Use _mm_insert_epi64.
11345
11346 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11347
11348         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11349         * config/stormy16/stormy16-protos.h
11350         (xstormy16_mode_dependent_address_p): Remove.
11351         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11352         Make static. Change return type to bool. Change argument type to
11353         const_rtx. Remove dead code.
11354         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11355
11356 2011-02-21  Richard Guenther  <rguenther@suse.de>
11357
11358         PR lto/47820
11359         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11360         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11361         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11362         TUs context.
11363         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11364         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11365
11366 2011-02-20  Richard Guenther  <rguenther@suse.de>
11367
11368         PR lto/47822
11369         * tree.c (free_lang_data_in_decl): Clean builtins from
11370         the TU decl BLOCK_VARS.
11371
11372 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11373
11374         PR debug/47620
11375         PR debug/47630
11376         * haifa-sched.c (fix_tick_ready): Skip tick computation
11377         for debug insns.
11378
11379 2011-02-19  Richard Guenther  <rguenther@suse.de>
11380
11381         PR lto/47647
11382         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11383         Remove lazy BLOCK_VARS streaming.
11384         (lto_input_ts_block_tree_pointers): Likewise.
11385         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11386
11387 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11388
11389         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11390
11391 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11392
11393         * config/i386/biarch32.h, config/i386/mach.h,
11394         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11395
11396 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11397
11398         PR target/47800
11399         * config/i386/i386.md (peephole2 for shift and plus): Use
11400         operands[1] original mode in the first insn.
11401
11402 2011-02-18  Mike Stump  <mikestump@comcast.net>
11403
11404         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11405
11406 2011-02-18  Jan Hubicka  <jh@suse.cz>
11407
11408         PR middle-end/47788
11409         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11410         to zero when the function is not inlinable at all.
11411
11412 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11413
11414         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11415         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11416         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11417         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11418         * config/pa/t-pa64: Likewise.
11419         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11420
11421 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11422
11423         PR driver/47787
11424         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11425
11426 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11427
11428         PR target/47792
11429         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11430
11431 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11432
11433         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11434         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11435         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11436         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11437         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11438         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11439         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11440         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11441         m32r_legitimate_address_p): New functions.
11442         * config/m32r/constraints.md (constraint "S"): Don't use
11443         STORE_PREINC_PREDEC_P.
11444         (constraint "U"): Don't use LOAD_POSTINC_P.
11445
11446 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11447
11448         PR rtl-optimization/46178
11449         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11450         compute ira_hard_regno_cover_class[].
11451
11452 2011-02-18  Richard Guenther  <rguenther@suse.de>
11453
11454         PR lto/47798
11455         * lto-streamer.h (lto_global_var_decls): Declare.
11456         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11457         statics for global var processing.
11458
11459 2011-02-18  Richard Guenther  <rguenther@suse.de>
11460
11461         PR tree-optimization/47737
11462         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11463         edge dominance check.
11464
11465 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11466
11467         PR debug/47780
11468         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11469         avoid invalid rtx sharing.
11470
11471 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11472
11473         * doc/cpp.texi (Obsolete Features): Add background on the
11474         origin of assertions.
11475
11476 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11477
11478         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11479         objc_abi == 2.
11480         * config/darwin.c (output_objc_section_asm_op): Added support for
11481         ABI v1 and v2.
11482         (is_objc_metadata): New.
11483         (darwin_objc2_section): New.
11484         (darwin_objc1_section): New.
11485         (machopic_select_section): Added support for ABI v1 and v2.
11486         (darwin_emit_objc_zeroed): New.
11487         (darwin_output_aligned_bss): Detect objc metadata and treat it
11488         appropriately.
11489         (darwin_asm_output_aligned_decl_common): Same.
11490         (darwin_asm_output_aligned_decl_local): Same.
11491         * config/darwin-sections.def: Updated for ABI v1 and v2.
11492         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11493         compiling Objective-C code for the NeXT runtime, default to using
11494         ABI version 0 for 32-bit, and version 2 for 64-bit.
11495
11496 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11497
11498         * common.opt (optimize_fast): New Variable.
11499         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11500         instead of local variable ofast.
11501
11502 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11503
11504         * doc/invoke.texi (fobjc-abi-version): Documented.
11505         (fobjc-nilcheck): Documented.
11506         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11507         version.
11508
11509 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11510
11511         PR driver/47390
11512         * common.opt (export-dynamic): New Driver option.
11513         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11514
11515 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11516
11517         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11518
11519 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11520             Jan Hubicka  <jh@suse.cz>
11521
11522         PR debug/47106
11523         PR debug/47402
11524         * cfgexpand.c (account_used_vars_for_block): Remove.
11525         (estimated_stack_frame_size): Use referenced vars.
11526         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11527         that were referenced in the original function.  Test src_fn
11528         rather than cfun.  Drop redundant get_var_ann.
11529         (setup_one_parameter): Drop redundant get_var_ann.
11530         (declare_return_variable): Likewise.
11531         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11532         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11533         * ipa-inline.c (compute_inline_parameters): Do not compute
11534         disregard_inline_limits here.
11535         (compute_inlinable_for_current, pass_inlinable): New.
11536         (pass_inline_parameters): Require PROP_referenced_vars.
11537         * cgraphunit.c (cgraph_process_new_functions): Don't run
11538         compute_inline_parameters explicitly unless function is in SSA form.
11539         (cgraph_analyze_function): Set .disregard_inline_limits.
11540         * tree-sra.c (convert_callers): Compute inliner parameters
11541         only for functions already in SSA form.
11542
11543 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11544
11545         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11546         -mlittle-endian-data.
11547
11548 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11549
11550         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11551         -mno-fpu, not -fpu and -no-fpu.
11552         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11553         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11554
11555 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11556
11557         PR target/43653
11558         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11559         input reload with PLUS RTX.
11560
11561 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11562
11563         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11564         of InverseVar(MDMX).
11565
11566 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11567
11568         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11569         --m4-340.
11570
11571 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11572
11573         * config/mn10300/mn10300.opt (mno-crt0): New.
11574
11575 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11576
11577         * config/m68k/uclinux.opt (static-libc): New Driver option.
11578
11579 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11580
11581         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11582
11583 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11584
11585         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11586         %{muser-extend-enabled}.
11587
11588 2011-02-16  Richard Guenther  <rguenther@suse.de>
11589
11590         PR tree-optimization/47738
11591         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11592         the TODO from tree_predictive_commoning.
11593
11594 2011-02-15  Jeff Law  <law@redhat.com>
11595
11596         Revert
11597         2011-01-25  Jeff Law  <law@redhat.com>
11598
11599         PR rtl-optimization/37273
11600         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11601         handle them like argument loads from stack slots.  Do not double
11602         count memory for memory constants and argument loads from stack slots.
11603
11604 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11605
11606         PR middle-end/47725
11607         * combine.c (cant_combine_insn_p): Revert the last change.
11608
11609 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11610
11611         PR target/47755
11612         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11613         mode for vector constants.  Remove code that checks for TImode.
11614
11615 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11616
11617         PR debug/47106
11618         PR debug/47402
11619         * cgraph.h (compute_inline_parameters): Return void.
11620         * ipa-inline.c (compute_inline_parameters): Adjust.
11621
11622 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11623
11624         PR debug/47106
11625         PR debug/47402
11626         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11627         rather than decl.
11628         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11629         * ipa-inline.c (compute_inline_parameters): Adjust.
11630
11631 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11632
11633         PR debug/47106
11634         PR debug/47402
11635         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11636         Adjust all users.  Pass FN to...
11637         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11638         fn argument.
11639         * ipa-struct-reorg.c: Adjust.
11640         * tree-dfa.c: Adjust.
11641         * tree-into-ssa.c: Adjust.
11642         * tree-sra.c: Adjust.
11643         * tree-ssa-alias.c: Adjust.
11644         * tree-ssa-live.c: Adjust.
11645         * tree-ssa.c: Adjust.
11646         * tree-ssanames.c: Adjust.
11647         * tree-tailcall.c: Adjust.
11648
11649 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11650
11651         PR debug/47106
11652         PR debug/47402
11653         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11654         Adjust all callers.
11655         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11656         * tree-flow-inline.h: Adjust.
11657         * gimple-pretty-print.c: Adjust.
11658         * tree-into-ssa.c: Adjust.
11659         * tree-ssa.c: Adjust.
11660         * cfgexpand.c: Adjust.
11661
11662 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11663
11664         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11665         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11666         (EXTRA_CONSTRAINT): Delete.
11667         * config/iq2000/constraints.md: New file.
11668         * config/iq2000/iq2000.md: Include it.
11669         (define_insn ""): Delete.
11670         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11671         unsupported constraint letters from patterns.
11672         (call_value, call_value_internal1): Likewise.
11673         (call_value_multiple_internal1): Likewise.
11674
11675 2011-02-15  Nick Clifton  <nickc@redhat.com>
11676
11677         * config/mn10300/mn10300.c: Include tm-constrs.h.
11678         (struct liw_data): New data structure describing an LIW candidate
11679         instruction.
11680         (extract_bundle): Use struct liw_data.  Allow small integer
11681         operands for some instructions.
11682         (check_liw_constraints): Use struct liw_data.  Remove swapped
11683         parameter.  Add comments describing the checks.  Fix bug when
11684         assigning the source of liw1 to the source of liw2.
11685         (liw_candidate): Delete.  Code moved into extract_bundle.
11686         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11687         before swapping.
11688         * config/mn10300/predicates.md (liw_operand): New predicate.
11689         Allows registers and small integer constants.
11690         * config/mn10300/constraints.md (O): New constraint.  Accetps
11691         integers in the range -8 to +7 inclusive.
11692         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11693         for moving a small integer into a register.  Give this alternative
11694         LIW attributes.
11695         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11696         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11697         using the J,K,L and M constraints,
11698         (liw): Remove SI mode on second operands to allow for HI and QI
11699         mode values.
11700         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11701         instruction.
11702
11703 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11704
11705         PR middle-end/47725
11706         * combine.c (cant_combine_insn_p): Check zero/sign extended
11707         hard registers.
11708
11709 2011-02-15  Richard Guenther  <rguenther@suse.de>
11710
11711         PR tree-optimization/47743
11712         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11713         for a non-type-compatible VN lookup bail out.
11714
11715 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11716
11717         * config/fr30/constraints.md: New file.
11718         * config/fr30/fr30.md: Include it.
11719         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11720         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11721         (EXTRA_CONSTRAINT): Delete.
11722
11723 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11724
11725         * config/frv/constraints.md: New file.
11726         * config/frv/predicates.md: Include it.
11727         * config/frv/frv.c (reg_class_from_letter): Delete.
11728         (frv_option_override): Don't initialize it.
11729         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11730         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11731         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11732         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11733         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11734         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11735         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11736         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11737         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11738         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11739         (REG_CLASS_FROM_CONSTRAINT): Delete.
11740
11741 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11742
11743         PR middle-end/47581
11744         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11745         if frame size is 0 in a leaf function.
11746
11747 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11748
11749         PR pch/14940
11750         * config/alpha/host-osf.c: New file.
11751         * config/alpha/x-osf: New file.
11752         * config.host (alpha*-dec-osf*): Use it.
11753
11754 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11755
11756         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11757         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11758         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11759         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11760         type to const_rtx.
11761         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11762
11763 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11764
11765         * config/stormy16/constraints.md: New file.
11766         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11767         Use satisfies_constraint_Q and satisfies_constraint_R.
11768         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11769         Delete.
11770         (xstormy16_legitiamte_address_p): Declare.
11771         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11772         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11773         (EXTRA_CONSTRAINT): Delete.
11774         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11775         Un-staticize.
11776         (xstormy16_extra_constraint_p): Delete.
11777
11778 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11779
11780         PR tree-optimization/46494
11781         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11782         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11783         (pass_rtl_loop_done): Add TODO_verify_flow.
11784         * fwprop.c (pass_rtl_fwprop): Likewise.
11785         * modulo-sched.c (pass_sms): Likewise.
11786         * tree-ssa-dom.c (pass_dominator): Likewise.
11787         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11788         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11789         (pass_tree_loop_done): Likewise.
11790         * tree-ssa-pre.c (execute_pre): Likewise.
11791         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11792         * tree-ssa-sink.c (pass_sink_code): Likewise.
11793         * tree-vrp.c (pass_vrp): Likewise.
11794
11795 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11796
11797         * config/v850/constraints.md: New file.
11798         * config/v850/v850.md: Include it.
11799         * config/v850/predicates.md (reg_or_0_operand): Use
11800         satisfies_constraint_G.
11801         (special_symbolref_operand): Use satisfies_constraint_K.
11802         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11803         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11804         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11805         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11806         (EXTRA_CONSTRAINT): Delete.
11807         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11808         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11809         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11810
11811 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11812
11813         PR target/47696
11814         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11815         description.
11816
11817 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11818
11819         * config/mcore/constraints.md: New file.
11820         * config/mcore/mcore.md: Include it.
11821         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11822         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11823         (REG_CLASS_FROM_LETTER): Delete.
11824         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11825         insn_const_int_ok_for_constraint.
11826         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11827         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11828         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11829         (EXTRA_CONSTRAINT): Delete.
11830
11831 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11832
11833         PR ada/41929
11834         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11835         (IS_SIGHANDLER): Define.
11836         (sparc64_is_sighandler): New function, split off from
11837         sparc64_fallback_frame_state.
11838         (sparc_is_sighandler): New function, split off from
11839         sparc_fallback_frame_state.
11840         (sparc64_fallback_frame_state): Merge with ...
11841         (sparc_fallback_frame_state): ... this into ...
11842         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11843         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11844         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11845         stack instead of hardcoded offsets.
11846
11847 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11848
11849         PR target/45808
11850         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11851
11852 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11853
11854         * configure: Regenerate.
11855
11856 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11857
11858         PR driver/45731
11859         * gcc.c (asm_options): Correct spec matching --target-help.
11860
11861 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11862
11863         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11864         to gimple call error.
11865
11866 2011-02-12  Mike Stump  <mikestump@comcast.net>
11867
11868         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11869         comments in backslash regions.
11870
11871 2011-02-12  Mike Stump  <mikestump@comcast.net>
11872             Jakub Jelinek  <jakub@redhat.com>
11873             Iain Sandoe  <iains@gcc.gnu.org>
11874
11875         PR target/47324
11876         * dwarf2out.c (output_cfa_loc): When required, apply the
11877         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11878         (output_loc_sequence): Likewise.
11879         (output_loc_operands_raw): Likewise.
11880         (output_loc_sequence_raw): Likewise.
11881         (output_cfa_loc): Likewise.
11882         (output_loc_list): Suppress register number adjustment when
11883         calling output_loc_sequence()
11884         (output_die): Likewise.
11885
11886 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11887
11888         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11889         Remove macros.
11890         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11891         xtensa_memory_move_cost): New functions.
11892         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11893
11894 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11895
11896         PR lto/47225
11897         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11898         in the current directory.
11899         * configure: Rebuilt.
11900
11901 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11902
11903         * config/darwin.c (darwin_override_options): Add a hunk missed
11904         from the commit of r168571.  Trim comment line lengths and
11905         correct indents of the preceding block.
11906
11907 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11908
11909         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11910         the switch.
11911
11912 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * common.opt (nostartfiles): New Driver option.
11915
11916 2011-02-11  Xinliang David Li  <davidxl@google.com>
11917
11918         PR tree-optimization/47707
11919         * tree-chrec.c (convert_affine_scev): Keep type precision.
11920
11921 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11922
11923         PR tree-optimization/47420
11924         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11925
11926 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11927
11928         PR rtl-optimization/47614
11929         * rtl.h (check_for_inc_dec): Declare.
11930         * dse.c (check_for_inc_dec): Externalize...
11931         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11932         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11933
11934 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11935
11936         PR driver/47678
11937         * gcc.c (main): Do not compile inputs if there were errors in
11938         option handling.
11939         * opts-common.c (read_cmdline_option): Check for wrong language
11940         after other error checks.
11941
11942 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11943
11944         * cgraph.c: Fix comment typos.
11945         * cgraph.h: Likewise.
11946         * cgraphunit.c: Likewise.
11947         * ipa-cp.c: Likewise.
11948         * ipa-inline.c: Likewise.
11949         * ipa-prop.c: Likewise.
11950         * ipa-pure-const.c: Likewise.
11951         * ipa-ref.c: Likewise.
11952         * ipa-reference.c: Likewise.
11953
11954 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11955
11956         PR debug/47684
11957         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11958
11959 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11960
11961         PR testsuite/47400
11962         * doc/sourcebuild.texi (Require Support): Document
11963         dg-require-ascii-locale.
11964
11965 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11966
11967         * doc/lto.texi (Write summary): Fix missing parentheses.
11968
11969 2011-02-10  DJ Delorie  <dj@redhat.com>
11970
11971         * config/m32c/m32c.c (m32c_option_override): Disable
11972         -fcombine-stack-adjustments until flag value tracking and compare
11973         optimization can be rewritten.
11974
11975 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11976
11977         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11978         PROCESSOR_POWER7.
11979         (PROCESSOR_DEFAULT64): Likewise.
11980
11981 2011-02-10  Richard Henderson  <rth@redhat.com>
11982
11983         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11984         change from 2011-02-03.
11985         * config/rx/rx.c (flags_from_code): Likewise.
11986         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11987         is valid, n/pz otherwise.
11988         (rx_select_cc_mode): Return CCmode if Y is not zero.
11989
11990 2011-02-10  Richard Guenther  <rguenther@suse.de>
11991
11992         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11993
11994 2011-02-10  Richard Guenther  <rguenther@suse.de>
11995
11996         PR tree-optimization/47677
11997         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11998
11999 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12000
12001         PR target/47665
12002         * combine.c (make_compound_operation): Only change shifts into
12003         multiplication for SCALAR_INT_MODE_P.
12004
12005 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12006
12007         PR testsuite/47622
12008         Revert
12009         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12010         PR debug/42631
12011         * web.c (entry_register): Don't clobber the number of the
12012         first uninitialized reference in used[].
12013
12014 2011-02-09  Richard Guenther  <rguenther@suse.de>
12015
12016         PR tree-optimization/47664
12017         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12018         all edges again.
12019
12020 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12021
12022         PR target/46481
12023         PR target/47032
12024         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12025         PROCESSOR_POWER7.
12026         (PROCESSOR_DEFAULT64): Same.
12027         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12028
12029 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12030
12031         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12032
12033 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12034
12035         PR middle-end/45505
12036         * tree-sra.c (struct access): New flags grp_scalar_read and
12037         grp_scalar_write.  Changed description of assignment read and write
12038         flags.
12039         (dump_access): Dump new flags, reorder all of them.
12040         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12041         to detect multiple scalar reads.
12042         (analyze_access_subtree): Use the new scalar read write flags instead
12043         of the old flags.  Adjusted comments.
12044
12045 2011-02-08  DJ Delorie  <dj@redhat.com>
12046
12047         PR target/47548
12048         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12049         patterns.
12050
12051 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12052
12053         * config/m68k/uclinux.opt: New.
12054         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12055
12056 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12057
12058         * config/cris/elf.opt (sim): New Driver option.
12059
12060 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * config/xtensa/elf.opt: New.
12063         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12064
12065 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12066
12067         * config/vax/elf.opt: New.
12068         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12069
12070 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12071
12072         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12073
12074 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12075
12076         * config/gnu-user.opt: New.
12077         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12078         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12079         *-*-uclinux*): Use gnu-user.opt.
12080
12081 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12082
12083         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12084         * config/i386/gnu.h (CPP_SPEC): Likewise.
12085
12086 2011-02-08  Ian Lance Taylor  <iant@google.com>
12087
12088         * common.opt (fcx-limited-range): Add SetByCombined flag.
12089         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12090         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12091         (fassociative-math, freciprocal-math): Likewise.
12092         (funsafe-math-optimizations): Likewise.
12093         * opth-gen.awk: Handle SetByCombined.
12094         * optc-gen.awk: Likewise.
12095         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12096         (set_unsafe_math_optimizations_flags): Likewise.
12097         * doc/options.texi (Option properties): Document SetByCombined.
12098
12099 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12100
12101         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12102         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12103         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12104         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12105         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12106
12107 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12108
12109         PR tree-optimization/46834
12110         PR tree-optimization/46994
12111         PR tree-optimization/46995
12112         * graphite-sese-to-poly.c (used_outside_reduction): New.
12113         (detect_commutative_reduction): Call used_outside_reduction.
12114         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12115         translate_scalar_reduction_to_array only when at least one
12116         loop-phi/close-phi tuple has been detected.
12117
12118 2011-02-08  Richard Guenther  <rguenther@suse.de>
12119
12120         PR middle-end/47639
12121         * tree-vect-generic.c (expand_vector_operations_1): Update
12122         stmts here ...
12123         (expand_vector_operations): ... not here.  Cleanup EH info
12124         and the CFG if required.
12125
12126 2011-02-08  Richard Guenther  <rguenther@suse.de>
12127
12128         PR tree-optimization/47641
12129         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12130         require type compatibility.
12131
12132 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12133
12134         * gimple-low.c (lower_function_body): Don't remove the location of
12135         the return statement here.
12136         (lower_gimple_return): Do it here instead but only if the return
12137         statement is actually used twice.
12138
12139 2011-02-08  Richard Guenther  <rguenther@suse.de>
12140
12141         PR tree-optimization/47632
12142         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12143         unused up_to_stmt parameter, return whether cfg-cleanup is
12144         necessary, remove EH info properly.
12145         (forward_propagate_into_gimple_cond): Adjust caller.
12146         (forward_propagate_into_cond): Likewise.
12147         (forward_propagate_comparison): Likewise.
12148         (tree_ssa_forward_propagate_single_use_vars): Make
12149         forward_propagate_comparison case similar to the two others.
12150
12151 2011-02-08  Nick Clifton  <nickc@redhat.com>
12152
12153         * config/mn10300/mn10300.opt (mliw): New command line option.
12154         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12155         (liw_bundling): New automaton.
12156         (liw): New attribute.
12157         (liw_op): New attribute.
12158         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12159         (movsi_internal): Add LIW attributes.
12160         (andsi3): Likewise.
12161         (iorsi3): Likewise.
12162         (xorsi3): Likewise.
12163         (addsi3): Separate register and immediate alternatives.
12164         Add LIW attributes.
12165         (subsi3): Likewise.
12166         (cmpsi): Likewise.
12167         (aslsi3): Likewise.
12168         (lshrsi3): Likewise.
12169         (ashrsi3): Likewise.
12170         (liw): New pattern.
12171         * config/mn10300/mn10300.c (liw_op_names): New
12172         (mn10300_print_operand): Handle 'W' operand descriptor.
12173         (extract_bundle): New function.
12174         (check_liw_constraints): New function.
12175         (liw_candidate): New function.
12176         (mn10300_bundle_liw): New function.
12177         (mn10300_reorg): New function.
12178         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12179         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12180         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12181         __LIW__ or __NO_LIW__.
12182         * doc/invoke.texi: Describe the -mliw command line option.
12183
12184 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12185
12186         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12187         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12188         pthread_mutex_unlock): Remove.
12189         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12190         * config/pa/t-pa64: Likewise.
12191         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12192         shared libc if not linking against libpthread.
12193         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12194
12195 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12196
12197         PR target/47558
12198         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12199         on 10.6 and later to ensure that we always use the unwinder from
12200         the system.  Only add -no_compact_unwind when tarteting darwin
12201         10.6 or later.
12202
12203 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12204
12205         PR target/46997
12206         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12207         (vec_interleave_lowv2sf): Ditto.
12208         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12209         (vec_extract_oddv2sf): Ditto.
12210
12211 2011-02-07  Mike Stump  <mikestump@comcast.net>
12212
12213         PR target/42333
12214         Add __ieee_divdc3 entry point.
12215         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12216         entry point.
12217         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12218         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12219         * config/darwin.c (darwin_rename_builtins): Add.
12220         * config/darwin-protos.h (darwin_rename_builtins): Add.
12221
12222 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12223
12224         PR target/47636
12225         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12226         for the condition.
12227
12228 2011-02-07  Mike Stump  <mikestump@comcast.net>
12229
12230         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12231
12232 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12233
12234         PR target/47534
12235         * config/avr/libgcc.S (exit): Move .endfunc
12236
12237 2011-02-07  Richard Guenther  <rguenther@suse.de>
12238
12239         PR tree-optimization/47615
12240         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12241         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12242         (run_scc_vn): Initialize it.
12243         (visit_reference_op_load): Use it.
12244         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12245
12246 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12247
12248         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12249         DImode trapping arithmetic libfuncs.
12250
12251 2011-02-07  Richard Guenther  <rguenther@suse.de>
12252
12253         PR tree-optimization/47621
12254         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12255         two duplicates ...
12256         (execute_update_addresses_taken): ... here.  Make it more
12257         conservative in what we accept.
12258
12259 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12260
12261         * config/sparc/freebsd.h (ASM_SPEC): Define.
12262         * config/sparc/vxworks.h (ASM_SPEC): Define.
12263
12264 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12265
12266         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12267
12268 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12269
12270         * doc/invoke.texi: Remove reference to compiler internals from
12271         user documentation.
12272
12273         * reg-notes.def: Remove REG_VALUE_PROFILE.
12274         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12275
12276 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12277
12278         PR middle-end/47610
12279         * varasm.c (default_section_type_flags): If decl is NULL,
12280         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12281
12282 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12283
12284         PR debug/42631
12285         * web.c (entry_register): Don't clobber the number of the
12286         first uninitialized reference in used[].
12287
12288 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12289
12290         PR tree-optimization/46194
12291         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12292         (build_classic_dist_vector_1): Do not represent classic distance
12293         vectors when the access functions are variating in different loops.
12294
12295 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12296
12297         * config/mips/iris6.opt: New.
12298         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12299
12300 2011-02-04  Richard Henderson  <rth@redhat.com>
12301             Steve Ellcey  <sje@cup.hp.com>
12302
12303         PR target/46997
12304         * config/ia64/predicates.md (mux1_brcst_element): New.
12305         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12306         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12307         (ia64_unpack_sign): New.
12308         (ia64_expand_unpack): Rewrite using new routines.
12309         (ia64_expand_widen_sum): Ditto.
12310         (ia64_expand_dot_prod_v8qi): Ditto.
12311         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12312         routines, add endian check.
12313         (pmpy2_even): Rename from pmpy2_r, add endian check.
12314         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12315         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12316         (vec_widen_smult_hi_v4hi): Ditto.
12317         (vec_widen_umult_lo_v4hi): Ditto.
12318         (vec_widen_umult_hi_v4hi): Ditto.
12319         (mulv2si3): Change endian checks.
12320         (sdot_prodv4hi): Rewrite with new calls.
12321         (udot_prodv4hi): New.
12322         (vec_pack_ssat_v4hi): Add endian check.
12323         (vec_pack_usat_v4hi): Ditto.
12324         (vec_pack_ssat_v2si): Ditto.
12325         (max1_even): Rename from max1_r, add endian check.
12326         (max1_odd): Rename from max1_l, add endian check.
12327         (*mux1_rev): Format change.
12328         (*mux1_mix): Ditto.
12329         (*mux1_shuf): Ditto.
12330         (*mux1_alt): Ditto.
12331         (*mux1_brcst_v8qi): Use new predicate.
12332         (vec_extract_evenv8qi): Remove endian check.
12333         (vec_extract_oddv8qi): Ditto.
12334         (vec_interleave_lowv4hi): Format change.
12335         (vec_interleave_highv4hi): Ditto.
12336         (mix2_even): Rename from mix2_r, add endian check.
12337         (mix2_odd): Rename from mux2_l, add endian check.
12338         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12339         (vec_extract_evenodd_helper): Format change.
12340         (vec_extract_evenv4hi): Remove endian check.
12341         (vec_extract_oddv4hi): Remove endian check.
12342         (vec_interleave_lowv2si): Format change.
12343         (vec_interleave_highv2si): Format change.
12344         (vec_initv2si): Remove endian check.
12345         (vecinit_v2si): Add endian check.
12346         (reduc_splus_v2sf): Add endian check.
12347         (reduc_smax_v2sf): Ditto.
12348         (reduc_smin_v2sf): Ditto.
12349         (vec_initv2sf): Remove endian check.
12350         (fpack): Add endian check.
12351         (fswap): Add endian check.
12352         (vec_interleave_highv2sf): Add endian check.
12353         (vec_interleave_lowv2sf): Add endian check.
12354         (fmix_lr): Add endian check.
12355         (vec_setv2sf): Format change.
12356         (*vec_extractv2sf_0_be): Use shift to extract operand.
12357         (*vec_extractv2sf_1_be): New.
12358         (vec_pack_trunc_v4hi): Add endian check.
12359         (vec_pack_trunc_v2si): Format change.
12360
12361 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12362
12363         PR inline-asm/23200
12364         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12365         do bb, locus and block comparison and disallow loads if it is not set.
12366         (stmt_is_replaceable_p): New function.
12367         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12368         callers.
12369         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12370         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12371         SSA_NAME_DEF_STMT.
12372         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12373
12374 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12375
12376         * config/rs6000/xilinx.opt: New.
12377         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12378
12379 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12380
12381         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12382
12383 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12384
12385         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12386         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12387         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12388         secondary_reload_info, xtensa_secondary_reload): Remove.
12389         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12390         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12391         (xtensa_preferred_reload_class): Make static. Change return and
12392         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12393         Use CONST_DOUBLE_P predicate.
12394         (xtensa_preferred_output_reload_class): New function.
12395         (xtensa_secondary_reload): Make static.
12396
12397 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12398
12399         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12400         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12401         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12402
12403 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12404
12405         PR middle-end/31490
12406         * output.h (SECTION_RELRO): Define.
12407         (SECTION_MACH_DEP): Adjust.
12408         (get_variable_section): New prototype.
12409         * varpool.c (varpool_finalize_named_section_flags): New function.
12410         (varpool_assemble_pending_decls): Call it.
12411         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12412         * cgraphunit.c (cgraph_output_in_order): Call
12413         varpool_finalize_named_section_flags.
12414         * varasm.c (get_section): Allow section flags conflicts between
12415         relro and read-only sections if the section hasn't been declared yet.
12416         Set SECTION_OVERRIDE after diagnosing section type conflict.
12417         (get_variable_section): No longer static.
12418         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12419         readonly sections that need relocations.
12420         (decl_readonly_section_1): New function.
12421         (decl_readonly_section): Use it.
12422
12423         Revert:
12424         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12425                     Steve Ellcey  <sje@cup.hp.com>
12426
12427         PR middle-end/31490
12428         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12429         if section attribute used.
12430
12431 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12432
12433         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12434         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12435         (darwin_init_sections): Remove assertion.
12436
12437 2011-02-03  Nick Clifton  <nickc@redhat.com>
12438
12439         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12440         lt and ge.
12441         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12442         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12443         instead of "n" and "pz".
12444         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12445         CC_FLAG_S.
12446
12447 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12448
12449         PR target/47312
12450         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12451         fma, expand FMA_EXPR as fma{,f,l} call.
12452
12453         PR lto/47274
12454         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12455         copy them into a unsigned char variable and pass address of it to
12456         lto_output_data_stream.
12457
12458         PR target/47564
12459         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12460         around backend_init_target and lang_dependent_init_target calls.
12461         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12462         (verify_cgraph_node): Don't call set_cfun here.  Use
12463         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12464         Set error_found for incorrectly represented calls to thunks.
12465
12466 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12467
12468         PR debug/43092
12469         PR rtl-optimization/43494
12470         * rtl.h (for_each_inc_dec_fn): New type.
12471         (for_each_inc_dec): Declare.
12472         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12473         (for_each_inc_dec_find_inc_dec): New fn.
12474         (for_each_inc_dec_find_mem): New fn.
12475         (for_each_inc_dec): New fn.
12476         * dse.c (struct insn_size): Remove.
12477         (replace_inc_dec, replace_inc_dec_mem): Remove.
12478         (emit_inc_dec_insn_before): New fn.
12479         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12480         (canon_address): Pass mem modes to cselib_lookup.
12481         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12482         (cselib_lookup_from_insn): Likewise.
12483         (cselib_subst_to_values): Likewise.
12484         * cselib.c (find_slot_memmode): New var.
12485         (cselib_find_slot): New fn.  Use it instead of
12486         htab_find_slot_with_hash everywhere.
12487         (entry_and_rtx_equal_p): Use find_slot_memmode.
12488         (autoinc_split): New fn.
12489         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12490         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12491         Deal with autoinc.  Special-case recursion into MEMs.
12492         (cselib_hash_rtx): Likewise.
12493         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12494         address and MEM modes.
12495         (cselib_subst_to_values): Add memmode, pass it on.
12496         Deal with autoinc.
12497         (cselib_lookup): Add memmode argument, pass it on.
12498         (cselib_lookup_from_insn): Add memmode.
12499         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12500         (struct cselib_record_autoinc_data): New.
12501         (cselib_record_autoinc_cb): New fn.
12502         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12503         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12504         (cselib_process_insn): ... here.
12505         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12506         to cselib_lookup.
12507         (add_uses): Likewise, also to cselib_subst_to_values.
12508         (add_stores): Likewise.
12509         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12510         cselib_subst_to_values.
12511         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12512         * gcse.c (do_local_cprop): Adjusted.
12513         * postreload.c (reload_cse_simplify_set): Adjusted.
12514         (reload_cse_simplify_operands): Adjusted.
12515         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12516
12517 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12518
12519         PR tree-optimization/45122
12520         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12521         unsafe assumptions when there's more than one loop exit.
12522
12523 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12524
12525         PR target/47272
12526         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12527         Document using vector double with the load/store builtins, and
12528         that the load/store builtins always use Altivec instructions.
12529
12530         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12531         to use altivec memory instructions, even on VSX.
12532         (vector_altivec_store_<mode>): Ditto.
12533
12534         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12535         function.
12536
12537         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12538         V2DF, V2DI support to load/store overloaded builtins.
12539
12540         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12541         altivec load/store builtins for V2DF/V2DI types.
12542
12543         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12544         set avoid indexed addresses on power6 if -maltivec.
12545         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12546         vector_altivec_load/vector_altivec_store builtins.
12547         (altivec_expand_st_builtin): Ditto.
12548         (altivec_expand_builtin): Add VSX memory builtins.
12549         (rs6000_init_builtins): Add V2DI types to internal types.
12550         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12551         load/store builtins.
12552         (rs6000_address_for_altivec): Insure memory address is appropriate
12553         for Altivec.
12554
12555         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12556         vec_vsx_ld and vec_vsx_st.
12557         (vsx_store_<mode>): Ditto.
12558
12559         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12560         variables to hold long long types for VSX vector memory builtins.
12561         (RS6000_BTI_unsigned_long_long): Ditto.
12562         (long_long_integer_type_internal_node): Ditti.
12563         (long_long_unsigned_type_internal_node): Ditti.
12564
12565         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12566         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12567         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12568
12569         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12570         short cuts.
12571         (vec_vsx_st): Ditto.
12572
12573 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12574
12575         * config/pa/pa-hpux10.opt: New.
12576         * config/hpux11.opt (pthread): New Driver option.
12577         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12578         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12579
12580 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12581
12582         * config/ia64/vms.opt: New.
12583         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12584
12585 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12586
12587         PR target/47580
12588         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12589         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12590         generator functions.
12591         (vsx_floatuns<VSi><mode>2): Ditto.
12592         (vsx_fix_trunc<mode><VSi>2): Ditto.
12593         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12594
12595 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12596
12597         * config/i386/djgpp.opt (posix): New Driver option.
12598
12599 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12600
12601         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12602         Move to the unsupported targets list.
12603
12604 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12605
12606         PR rtl-optimization/47525
12607         * df-scan.c: Update copyright years.
12608         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12609         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12610
12611 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12612
12613         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12614         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12615         (ASM_OUTPUT_ASCII): Remove.
12616         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12617
12618 2011-02-02  Jeff Law  <law@redhat.com>
12619
12620         PR middle-end/47543
12621         * reload.c (find_reloads_address): Handle reg+d address where both
12622         components are invalid by reloading the entire address.
12623
12624 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12625             Richard Guenther  <rguenther@suse.de>
12626
12627         PR tree-optimization/40979
12628         PR bootstrap/47044
12629         * passes.c (init_optimization_passes): After LIM call copy_prop
12630         and DCE to clean up.
12631         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12632
12633 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12634
12635         PR tree-optimization/47576
12636         PR tree-optimization/47555
12637         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12638         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12639         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12640         * tree-scalar-evolution.c (follow_ssa_edge): Use
12641         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12642
12643 2011-02-02  Richard Guenther  <rguenther@suse.de>
12644
12645         PR tree-optimization/47566
12646         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12647
12648 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12649
12650         PR debug/47106
12651         PR debug/47402
12652         * tree-inline.c (declare_return_variable): Remove unused caller
12653         variable.
12654
12655         PR debug/47106
12656         PR debug/47402
12657         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12658         * cfgexpand.c (account_used_vars_for_block): Use them.
12659         * tree-nrv.c (tree_nrv): Likewise.
12660         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12661         (dump_scope_block): Likewise.
12662         (remove_unused_locals): Likewise.
12663
12664         PR debug/47106
12665         PR debug/47402
12666         * tree-inline.c (declare_return_variable): Add result decl to
12667         local decls only once.
12668         * gimple-low.c (record_vars_into): Mark newly-created variables
12669         as referenced.
12670
12671 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12672
12673         PR debug/47498
12674         PR debug/47501
12675         PR debug/45136
12676         PR debug/45130
12677         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12678         debug insns.
12679         (no_real_insns_p, schedule_block, set_priorities): Drop special
12680         treatment of boundary debug insns.
12681         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12682         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12683         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12684         (BOUNDARY_DEBUG_INSN_P): Likewise.
12685         (SCHEDULE_DEBUG_INSN_P): Likewise.
12686         * sched-rgn.c (init_ready_list): Drop special treatment of
12687         boundary debug insns.
12688         * final.c (rest_of_clean_state): Clear notes' BB.
12689
12690 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12691
12692         * config/openbsd.opt (assert=): New Driver option.
12693
12694 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * config/i386/nto.opt: New.
12697         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12698
12699 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12700
12701         * config/i386/netware.opt: New.
12702         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12703
12704 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12705
12706         * config/interix.opt (posix): New Driver option.
12707
12708 2011-02-01  DJ Delorie  <dj@redhat.com>
12709
12710         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12711
12712         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12713         class for A0/A1.
12714
12715 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12716
12717         PR tree-optimization/47561
12718         * toplev.c (process_options): Print the Graphite flags.  Add
12719         flag_loop_flatten to the list of options requiring Graphite.
12720
12721 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12722
12723         * config/i386/cygming.opt (posix): New Driver option.
12724
12725 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12726
12727         * config/arm/vxworks.opt: New.
12728         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12729
12730 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12731
12732         * config/alpha/elf.opt: New.
12733         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12734         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12735
12736 2011-02-01  Richard Guenther  <rguenther@suse.de>
12737
12738         PR tree-optimization/47559
12739         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12740         store-motion on references that can throw.
12741
12742 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12743
12744         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12745         * tree-pass.h (TDF_CSELIB): New macro.
12746         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12747         cselib_lookup): Check for it rather than for TDF_DETAILS.
12748
12749 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12750
12751         PR driver/47547
12752         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12753         is HOST_BIT_BUCKET.
12754
12755         * opts.c (finish_options): Don't add x_aux_base_name if it is
12756         HOST_BIT_BUCKET.
12757
12758 2011-02-01  Richard Guenther  <rguenther@suse.de>
12759
12760         PR tree-optimization/47555
12761         Revert
12762         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12763
12764         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12765
12766 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12767
12768         PR gcc/46692
12769         * config/lm32/t-lm32: Add multilib for all CPU options.
12770
12771 2011-02-01  Richard Guenther  <rguenther@suse.de>
12772
12773         PR tree-optimization/47541
12774         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12775         sure to have a field at offset zero.
12776
12777 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12778
12779         * config/arc/arc.opt (EB, EL): New Driver options.
12780
12781 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12782
12783         * config/alpha/osf5.opt: New.
12784         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12785
12786 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12787
12788         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12789
12790 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12791
12792         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12793         -floop-interchange.
12794         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12795         is an alias of -floop-interchange and that it requires the
12796         Graphite infrastructure.
12797         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12798         flag_loop_interchange based on the value of flag_tree_loop_linear.
12799
12800 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12801             Richard Guenther  <rguenther@suse.de>
12802
12803         PR tree-optimization/47538
12804         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12805         type instead of r1type, except for comparisons.  For right
12806         shifts and comparisons punt if there are mismatches in
12807         sizetype vs. non-sizetype types.
12808
12809 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12810
12811         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12812         avx_runtime.
12813
12814 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12815
12816         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12817         version number.
12818         * configure: Regenerate.
12819
12820 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12821
12822         * configure.ac (gcc_cv_ld_static_option): Define.
12823         (gcc_cv_ld_dynamic_option): Define.
12824         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12825         instead.
12826         (HAVE_LD_STATIC_DYNAMIC): Update message.
12827         (LD_STATIC_OPTION): Define.
12828         (LD_DYNAMIC_OPTION): Define.
12829         * configure: Regenerate.
12830         * config.in: Regenerate.
12831         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12832         HAVE_LD_STATIC_DYNAMIC]: Use them.
12833
12834 2011-01-31  Nick Clifton  <nickc@redhat.com>
12835
12836         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12837         registers inside interrupt handlers if the handler is not a leaf
12838         function.
12839
12840 2011-01-31  Nick Clifton  <nickc@redhat.com>
12841
12842         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12843         reg_renumber returning an INVALID_REGNUM.
12844
12845 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12846
12847         PR libgcj/44341
12848         * doc/install.texi: Document host options discarded when cross
12849         configuring target libraries.
12850
12851 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12852
12853         Reverted:
12854         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12855         PR debug/45136
12856         PR debug/45130
12857         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12858         debug insns.
12859         (no_real_insns_p, schedule_block, set_priorities): Drop special
12860         treatment of boundary debug insns.
12861         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12862         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12863         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12864         (BOUNDARY_DEBUG_INSN_P): Likewise.
12865         (SCHEDULE_DEBUG_INSN_P): Likewise.
12866         * sched-rgn.c (init_ready_list): Drop special treatment of
12867         boundary debug insns.
12868         * final.c (rest_of_clean-state): Clear notes' BB.
12869
12870 2011-01-31  Alan Modra  <amodra@gmail.com>
12871
12872         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12873         toc relative expressions as we do in print_operand_address.
12874
12875 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12876
12877         * doc/extend.texi: Follow spelling conventions.
12878         * doc/invoke.texi: Fix a typo.
12879
12880 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12881
12882         * config/hpux11.opt: New.
12883         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12884         ia64*-*-hpux*): Use hpux11.opt.
12885
12886 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12887
12888         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12889         to tmake_file.
12890
12891 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12892
12893         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12894         support sites.
12895
12896 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12897
12898         * doc/install.texi (Binaries): Remove outdated reference for
12899         Motorola 68HC11/68HC12 downloads.
12900
12901 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12902
12903         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12904         Drepper's paper.
12905
12906 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12907
12908         PR bootstrap/47147
12909         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12910         used by NetBSD.
12911
12912 2011-01-28  Ahmad Sharif  <asharif@google.com>
12913
12914         * value-prof.c (check_counter): Corrected error message.
12915
12916 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12917
12918         * config/arm/arm.c (arm_legitimize_reload_address): New.
12919         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12920         arm_legitimize_reload_address.
12921         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12922
12923 2011-01-28  Ian Lance Taylor  <iant@google.com>
12924
12925         * godump.c (go_define): Ignore macros whose definitions include
12926         two adjacent operands.
12927
12928 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12929
12930         PR target/42894
12931         * varasm.c (force_const_mem): Store copy of x in desc->constant
12932         instead of x itself.
12933         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12934         itself into REG_EQUAL note.
12935
12936 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12937
12938         * config/freebsd.opt (posix, rdynamic): New Driver options.
12939
12940 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12941
12942         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12943         -Bstatic/-Bdynamic.
12944         * configure: Regenerate.
12945
12946 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12947
12948         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12949         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12950
12951 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12952
12953         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12954         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12955         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12956         (s390_preferred_reload_class): Make static. Change return and
12957         'rclass' argument type to reg_class_t.
12958
12959 2011-01-27  Jan Hubicka  <jh@suse.cz>
12960
12961         PR middle-end/46949
12962         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12963         (process_function_and_variable_attributes): Check defined weakrefs.
12964
12965 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12966
12967         PR tree-optimization/47228
12968         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12969         build_ref_for_offset.
12970
12971 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12972
12973         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12974
12975 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12976
12977         PR rtl-optimization/46856
12978         * postreload.c (reload_combine_recognize_const_pattern): Do not
12979         separate cc0 setter and user on cc0 targets.
12980
12981 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12982
12983         PR c/43082
12984         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12985         passed a VOID_TYPE expression, immediately emit an error and
12986         return error_mark_node.
12987
12988 2011-01-26  Jeff Law  <law@redhat.com>
12989
12990         PR rtl-optimization/47464
12991         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12992         rather than may_trap_p as needed.
12993
12994 2011-01-26  DJ Delorie  <dj@redhat.com>
12995
12996         PR rtl-optimization/46878
12997         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12998         setter/user dependency as well.
12999
13000 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13001
13002         PR rtl-optimization/44469
13003         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13004         after removing trivially dead basic blocks.
13005
13006 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13007
13008         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13009         * config/frv/frv.h (LINK_SPEC): Likewise.
13010         * config/i386/netware.h (LINK_SPEC): Likewise.
13011         * config/m68k/linux.h (ASM_SPEC): Likewise.
13012         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13013         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13014         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13015         * config/sparc/linux.h (ASM_SPEC): Likewise.
13016         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13017         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13018
13019 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13020
13021         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13022         * config/frv/frv.h (ASM_SPEC): Likewise.
13023         * config/m68k/linux.h (ASM_SPEC): Likewise.
13024         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13025         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13026         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13027         * config/sparc/linux.h (ASM_SPEC): Likewise.
13028         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13029         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13030
13031 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13032
13033         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13034         * config/frv/frv.h (LINK_SPEC): Likewise.
13035         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13036
13037 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13038
13039         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13040         * config/frv/frv.h (ASM_SPEC): Likewise.
13041         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13042         * config/m68k/linux.h (ASM_SPEC): Likewise.
13043         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13044         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13045         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13046         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13047         * config/sparc/linux.h (ASM_SPEC): Likewise.
13048         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13049         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13050         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13051
13052 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13053
13054         PR target/46997
13055         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13056         (*mux2): Ditto.
13057         (vec_extract_evenodd_help): Ditto.
13058         (vec_extract_evenv4hi): Ditto.
13059         (vec_extract_oddv4hi): Ditto.
13060         (vec_interleave_lowv2si): Ditto.
13061         (vec_interleave_highv2si): Ditto.
13062         (vec_extract_evenv2si): Ditto.
13063         (vec_extract_oddv2si: Ditto.
13064         (vec_pack_trunc_v2si): Ditto.
13065
13066 2011-01-22  Jan Hubicka  <jh@suse.cz>
13067
13068         PR target/47237
13069         * cgraph.h (cgraph_local_info): New field can_change_signature.
13070         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13071         signature can change.
13072         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13073         can change.
13074         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13075         (cgraph_function_versioning): We can not change signature of functions
13076         that don't allow that.
13077         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13078         (lto_input_node): Likewise.
13079         * ipa-inline.c (compute_inline_parameters): Compute
13080         local.can_change_signature.
13081         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13082         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13083         functions that can not change signature.
13084         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13085         init_cumulative_args): Do not use local calling conventions
13086         for functions that can not change signature.
13087
13088 2011-01-22  Jan Hubicka  <jh@suse.cz>
13089
13090         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13091
13092 2011-01-26  Richard Guenther  <rguenther@suse.de>
13093
13094         PR tree-optimization/47190
13095         * cgraphunit.c (process_common_attributes): New function.
13096         (process_function_and_variable_attributes): Use it.
13097
13098 2011-01-26  Richard Guenther  <rguenther@suse.de>
13099
13100         PR lto/47423
13101         * cgraphbuild.c (record_eh_tables): Record reference to personality
13102         function.
13103
13104 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13105
13106         PR debug/45454
13107         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13108         non-debug insns from moving up.
13109
13110 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13111
13112         PR target/40125
13113         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13114         t-dlldir{,-x} fragment for build and add it to tmake_file.
13115         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13116         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13117         * config/i386/t-dlldir: New file.
13118         (SHLIB_DLLDIR): Define.
13119         * config/i386/t-dlldir-x: New file.
13120         (SHLIB_DLLDIR): Define.
13121         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13122         (SHLIB_INSTALL): Use it.
13123
13124 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13125
13126         PR target/47246
13127         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13128         lower bound of the allowed Thumb-2 coprocessor load/store
13129         index range to -256. Add explaining comment.
13130
13131 2011-01-25  Ian Lance Taylor  <iant@google.com>
13132
13133         * godump.c (go_define): Improve lexing of macro expansion to only
13134         accept expressions which match Go spec.
13135
13136 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13137
13138         PR c++/43601
13139         * tree.c (handle_dll_attribute): Handle it.
13140         * doc/extend.texi (@item dllexport): Mention it.
13141         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13142
13143 2011-01-25  Ian Lance Taylor  <iant@google.com>
13144
13145         PR tree-optimization/26854
13146         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13147         (decl_jump_unsafe): Move higher in file, with no other change.
13148         (bind): Set has_jump_unsafe_decl if appropriate.
13149         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13150         (check_earlier_gotos): Likewise.
13151         (c_check_switch_jump_warnings): Likewise.
13152
13153 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13154
13155         * doc/invoke.texi (Warning Options): Add missing hyphen.
13156         (-fprofile-dir): Minor grammatical fixes.
13157         (-fbranch-probabilities): Likewise.
13158
13159 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13160
13161         PR debug/45136
13162         PR debug/45130
13163         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13164         debug insns.
13165         (no_real_insns_p, schedule_block, set_priorities): Drop special
13166         treatment of boundary debug insns.
13167         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13168         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13169         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13170         (BOUNDARY_DEBUG_INSN_P): Likewise.
13171         (SCHEDULE_DEBUG_INSN_P): Likewise.
13172         * sched-rgn.c (init_ready_list): Drop special treatment of
13173         boundary debug insns.
13174         * final.c (rest_of_clean-state): Clear notes' BB.
13175
13176 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13177
13178         * Makefile.in (LAMBDA_H): Removed.
13179         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13180         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13181         lambda-trans.o, and tree-loop-linear.o.
13182         (lto-symtab.o): Remove dependence on LAMBDA_H.
13183         (tree-loop-linear.o): Remove rule.
13184         (lambda-mat.o): Same.
13185         (lambda-trans.o): Same.
13186         (lambda-code.o): Same.
13187         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13188         (tree-vect-slp.o): Same.
13189         * hwint.h (gcd): Moved here.
13190         (least_common_multiple): Same.
13191         * lambda-code.c: Removed.
13192         * lambda-mat.c: Removed.
13193         * lambda-trans.c: Removed.
13194         * lambda.h: Removed.
13195         * tree-loop-linear.c: Removed.
13196         * lto-symtab.c: Do not include lambda.h.
13197         * omega.c (gcd): Removed.
13198         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13199         * tree-data-ref.c (print_lambda_vector): Moved here.
13200         (lambda_vector_copy): Same.
13201         (lambda_matrix_copy): Same.
13202         (lambda_matrix_id): Same.
13203         (lambda_vector_first_nz): Same.
13204         (lambda_matrix_row_add): Same.
13205         (lambda_matrix_row_exchange): Same.
13206         (lambda_vector_mult_const): Same.
13207         (lambda_vector_negate): Same.
13208         (lambda_matrix_row_negate): Same.
13209         (lambda_vector_equal): Same.
13210         (lambda_matrix_right_hermite): Same.
13211         * tree-data-ref.h: Do not include lambda.h.
13212         (lambda_vector): Moved here.
13213         (lambda_matrix): Same.
13214         (dependence_level): Same.
13215         (lambda_transform_legal_p): Removed declaration.
13216         (lambda_collect_parameters): Same.
13217         (lambda_compute_access_matrices): Same.
13218         (lambda_vector_gcd): Same.
13219         (lambda_vector_new): Same.
13220         (lambda_vector_clear): Same.
13221         (lambda_vector_lexico_pos): Same.
13222         (lambda_vector_zerop): Same.
13223         (lambda_matrix_new): Same.
13224         * tree-flow.h (least_common_multiple): Removed declaration.
13225         * tree-parloops.c (lambda_trans_matrix): Moved here.
13226         (LTM_MATRIX): Same.
13227         (LTM_ROWSIZE): Same.
13228         (LTM_COLSIZE): Same.
13229         (LTM_DENOMINATOR): Same.
13230         (lambda_trans_matrix_new): Same.
13231         (lambda_matrix_vector_mult): Same.
13232         (lambda_transform_legal_p): Same.
13233         * tree-pass.h (pass_linear_transform): Removed declaration.
13234         * tree-ssa-loop.c (tree_linear_transform): Removed.
13235         (gate_tree_linear_transform): Removed.
13236         (pass_linear_transform): Removed.
13237         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13238         flag_loop_interchange.
13239
13240 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13241
13242         PR tree-optimization/47265
13243         PR tree-optimization/47443
13244         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13245         if name still has some uses.
13246
13247 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13248
13249         PR tree-optimization/47382
13250         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13251         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13252
13253 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13254
13255         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13256         sjlj_except_unwind_info.
13257
13258 2011-01-25  Richard Guenther  <rguenther@suse.de>
13259
13260         PR tree-optimization/47426
13261         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13262         visible functions results escape.
13263
13264 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13265
13266         PR target/45701
13267         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13268         (arm_get_frame_offsets): Use it.
13269
13270 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13271             Jakub Jelinek  <jakub@redhat.com>
13272
13273         PR tree-optimization/47271
13274         * tree-if-conv.c (bb_postdominates_preds): New.
13275         (if_convertible_bb_p): Call bb_postdominates_preds.
13276         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13277         (predicate_scalar_phi): Call bb_postdominates_preds.
13278
13279 2011-01-25  Nick Clifton  <nickc@redhat.com>
13280
13281         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13282         * config/rx/rx.c (rx_function_value): Likewise.
13283         (rx_promote_function_mode): Likewise.
13284         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13285         in order to make it legitimate.
13286         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13287         make sure that the first operand is the same as the result register.
13288         (addsi3_unspec): Delete.
13289         (subdi3): Do not accept immediate operands.
13290         (subdi3_internal): Likewise.
13291
13292 2011-01-25  Jeff Law  <law@redhat.com>
13293
13294         PR rtl-optimization/37273
13295         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13296         handle them like argument loads from stack slots.  Do not double
13297         count memory for memory constants and argument loads from stack slots.
13298
13299 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13300
13301         PR tree-optimization/47427
13302         PR tree-optimization/47428
13303         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13304         coalesce if the new root var would be TREE_READONLY.
13305
13306 2011-01-25  Richard Guenther  <rguenther@suse.de>
13307
13308         PR middle-end/47414
13309         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13310         correct type for TBAA.
13311
13312 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13313
13314         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13315         (close_phi_written_to_memory): Call for_each_index with
13316         dr_indices_valid_in_loop.
13317
13318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13319
13320         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13321         when it is initialized.
13322
13323 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13324
13325         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13326         call to graphite_find_data_references_in_stmt.
13327         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13328         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13329         call to graphite_find_data_references_in_stmt.
13330         (analyze_drs_in_stmts): Same.
13331         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13332         in which the scalar analysis of indices is performed.
13333         (create_data_ref): Same.  Update call to dr_analyze_indices.
13334         (find_data_references_in_stmt): Update call to create_data_ref.
13335         (graphite_find_data_references_in_stmt): Same.
13336         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13337         declaration.
13338         (create_data_ref): Same.
13339         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13340         call to create_data_ref.
13341
13342 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13343
13344         * graphite-sese-to-poly.c (build_poly_scop): Move
13345         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13346
13347 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13348
13349         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13350         VAR_DECL, PARM_DECL, and RESULT_DECL.
13351
13352 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13353
13354         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13355         in a reduction PBB.
13356         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13357         that have already been marked as PBB_IS_REDUCTION.
13358
13359 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13360
13361         * graphite-scop-detection.c (same_close_phi_node): New.
13362         (remove_duplicate_close_phi): New.
13363         (make_close_phi_nodes_unique): New.
13364         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13365
13366 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13367
13368         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13369         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13370         of both data references to be the same.
13371
13372 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13373
13374         * graphite-dependences.c (build_lexicographical_constraint): Remove
13375         the gdim parameter.
13376         (build_lexicographical_constraint): Adjust call to
13377         ppl_powerset_is_empty.
13378         (dependence_polyhedron): Same.
13379         (graphite_legal_transform_dr): Same.
13380         (graphite_carried_dependence_level_k): Same.
13381         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13382         parameter.
13383         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13384
13385 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13386
13387         * graphite-sese-to-poly.c
13388         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13389         (close_phi_written_to_memory): New.
13390         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13391         and unshare_expr.
13392
13393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13394
13395         * doc/install.texi: Update the expected version number of PPL to 0.11.
13396         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13397         #if PPL_VERSION_MINOR < 11.
13398
13399 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13400
13401         * graphite-dependences.c: Include graphite-cloog-util.h.
13402         (new_poly_ddr): Inlined into dependence_polyhedron.
13403         (free_poly_ddr): Moved close by new_poly_ddr.
13404         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13405         Early return NULL when ppl_powerset_is_empty returns true.
13406         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13407         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13408         (graphite_legal_transform_dr): Call new_poly_ddr.
13409         (graphite_carried_dependence_level_k): Same.
13410         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13411         (dot_transformed_deps_stmt_1): Removed.
13412         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13413         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13414         (dot_deps_1): Call dot_deps_2.
13415         * Makefile.in (graphite-dependences.o): Add missing dependence on
13416         graphite-cloog-util.h.
13417
13418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13419
13420         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13421         (build_lexicographical_constraint): Same.
13422         (dependence_polyhedron_1): Same.
13423         (graphite_legal_transform_dr): Same.
13424         (graphite_carried_dependence_level_k): Same.
13425         * graphite-ppl.c (ppl_powerset_is_empty): New.
13426         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13427         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13428
13429 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13430
13431         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13432         the "a followed by b" relation and document it.
13433
13434 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13435
13436         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13437         iteration when the bag of constraints is empty.
13438
13439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13440
13441         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13442
13443 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13444
13445         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13446         nest and two loop depths as parameters.
13447         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13448         lst_perfect_nestify.
13449
13450 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13451
13452         * graphite-dependences.c (print_pddr): Call
13453         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13454
13455 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13456
13457         * graphite-ppl.c (debug_gmp_value): New.
13458         * graphite-ppl.h (debug_gmp_value): Declared.
13459
13460 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13461
13462         * doc/install.texi: Document availability of cloog-0.16.
13463
13464 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13465
13466         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13467         invalid postdominance info.
13468
13469 2011-01-24  Jan Hubicka  <jh@suse.cz>
13470
13471         PR c/21659
13472         * doc/extend.texi (weak pragma): Drop claim that it must
13473         appear before definition.
13474         * varasm.c (merge_weak, declare_weak): Only sanity check
13475         that DECL is not output at a time it is declared weak.
13476
13477 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13478
13479         * machmode.def: Fixed comments.
13480
13481 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13482
13483         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13484
13485 2011-01-24  Paul Koning  <ni1d@arrl.net>
13486
13487         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13488         WORDS_BIG_ENDIAN.
13489
13490 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13491
13492         PR target/46519
13493         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13494         (block_info): Add scanned and prev.
13495         (move_or_delete_vzeroupper_2): Return if the basic block
13496         has been scanned and the upper 128bit state is unchanged
13497         from the last scan.
13498         (move_or_delete_vzeroupper_1): Return true if the exit
13499         state is changed.
13500         (move_or_delete_vzeroupper): Visit basic blocks using the
13501         work-list based algorithm based on vt_find_locations in
13502         var-tracking.c.
13503
13504         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13505
13506 2011-01-24  Nick Clifton  <nickc@redhat.com>
13507
13508         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13509         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13510         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13511         then define __v850e1__.
13512         * doc/invoke.texi: Document -mv850es.
13513
13514 2011-01-24  Richard Henderson  <rth@redhat.com>
13515
13516         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13517         compound unordered comparisons.
13518         * config/rx/rx.c (rx_split_fp_compare): Remove.
13519         * config/rx/rx-protos.h: Update.
13520         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13521         (cbranchsf4): Don't call rx_split_fp_compare.
13522         (*cbranchsf4): Use rx_split_cbranch.
13523         (*cmpsf): Don't accept "i" constraint.
13524         (*conditional_branch): Only valid after reload.
13525         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13526
13527 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13528
13529         PR target/47385
13530         * config/rs6000/altivec.md (vector constant splitters): Add
13531         support for creating vector single precision constants if -mvsx is
13532         used and we would create the constant using Altivec primitives.
13533
13534 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13535             Richard Sandiford  <rdsandiford@googlemail.com>
13536
13537         PR rtl-optimization/47166
13538         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13539         mechanism for PRE_MODIFY and POST_MODIFY.
13540         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13541         reloadreg.
13542
13543 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13544
13545         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13546
13547 2011-01-22  Jan Hubicka  <jh@suse.cz>
13548
13549         PR lto/47333
13550         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13551
13552 2011-01-22  Jan Hubicka  <jh@suse.cz>
13553
13554         PR tree-optimization/43884
13555         PR lto/44334
13556         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13557         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13558
13559 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13560
13561         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13562         * config/s390/s390.c (s390_register_move_cost,
13563         s390_memory_move_cost): New.
13564         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13565
13566 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13567
13568         PR middle-end/47401
13569         * except.c (sjlj_assign_call_site_values): Move setting the
13570         crtl->uses_eh_lsda flag to ...
13571         (sjlj_mark_call_sites): ... here.
13572         (sjlj_emit_function_enter): Support NULL dispatch label.
13573         (sjlj_build_landing_pads): In a function with no landing pads
13574         that still has must-not-throw regions, generate code to register
13575         a personality function with empty LSDA.
13576
13577 2011-01-21  Richard Henderson  <rth@redhat.com>
13578
13579         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13580
13581         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13582
13583         * compare-elim.c: New file.
13584         * Makefile.in (OBJS-common): Add it.
13585         (compare-elim.o): New.
13586         * common.opt (fcompare-elim): New.
13587         * opts.c (default_options_table): Add OPT_fcompare_elim.
13588         * tree-pass.h (pass_compare_elim_after_reload): New.
13589         * passes.c (init_optimization_passes): Add it.
13590         * recog.h: Protect against re-inclusion.
13591         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13592         * doc/invoke.texi (-fcompare-elim): Document it.
13593         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13594         * doc/tm.texi: Rebuild.
13595
13596 2011-01-22  Nick Clifton  <nickc@redhat.com>
13597
13598         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13599         rx_split_fp_compare.
13600
13601 2011-01-22  Nick Clifton  <nickc@redhat.com>
13602
13603         * config/rx/rx.md (UNSPEC_CONST): New.
13604         (deallocate_and_return): Wrap the amount popped off the stack in
13605         an UNSPEC_CONST in order to stop it being rejected by
13606         -mmax-constant-size.
13607         (pop_and_return): Add a "(return)" rtx.
13608         (call): Drop the immediate operand.
13609         (call_internal): Likewise.
13610         (call_value): Likewise.
13611         (call_value_internal): Likewise.
13612         (sibcall_internal): Likewise.
13613         (sibcall_value_internal): Likewise.
13614         (sibcall): Likewise.  Generate an explicit call using
13615         sibcall_internal.
13616         (sibcall_value): Likewise.
13617         (mov<>): FAIL if a constant operand is not legitimate.
13618         (addsi3_unpsec): New pattern.
13619
13620         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13621         (ok_for_max_constant): New function.
13622         (gen_safe_add): New function.
13623         (rx_expand_prologue): Use gen_safe_add.
13624         (rx_expand_epilogue): Likewise.
13625         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13626         UNSPEC CONSTs.
13627
13628 2011-01-21  Jeff Law  <law@redhat.com>
13629
13630         PR tree-optimization/47053
13631         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13632         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13633         statements are deleted.
13634         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13635         is nonempty, then purge dead edges and cleanup the CFG.
13636
13637 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13638
13639         PR debug/47402
13640         Temporarily revert:
13641         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13642         PR debug/47106
13643         * tree-dfa.c (create_var_ann): Mark variable as used.
13644
13645 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13646
13647         PR middle-end/45566
13648         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13649         notes from other section in hot/cold partitioning even if
13650         last_action is -3.  Increment call_site_base.
13651
13652         PR rtl-optimization/47366
13653         * fwprop.c (forward_propagate_into): Return bool.  If
13654         any changes are made, -fnon-call-exceptions is used and
13655         REG_EH_REGION note is present, call purge_dead_edges
13656         and return true if it purged anything.
13657         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13658         any EH edges were purged.
13659
13660 2011-01-21  Jeff Law  <law@redhat.com>
13661
13662         PR rtl-optimization/41619
13663         * caller-save.c (setup_save_areas): Break out code to determine
13664         which hard regs are live across calls by examining the reload chains
13665         so that it is always used.
13666         Eliminate code which checked REG_N_CALLS_CROSSED.
13667
13668 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13669
13670         PR tree-optimization/47355
13671         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13672         NOP has non-debug uses beyond PHIs in new_bb.
13673
13674 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13675
13676         PR debug/47106
13677         * cfgexpand.c (account_used_vars_for_block): Only account vars
13678         that are annotated as used.
13679         (estimated_stack_frame_size): Don't set TREE_USED.
13680         * tree-dfa.c (create_var_ann): Mark variable as used.
13681
13682 2011-01-21  Richard Guenther  <rguenther@suse.de>
13683
13684         PR middle-end/47395
13685         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13686
13687 2011-01-21  Richard Guenther  <rguenther@suse.de>
13688
13689         PR tree-optimization/47365
13690         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13691         (vn_reference_lookup_pieces): Adjust.
13692         (vn_reference_lookup): Likewise.
13693         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13694         (vn_reference_lookup_3): Only look through kills if in
13695         VN_WALKREWRITE mode.
13696         (vn_reference_lookup_pieces): Adjust.
13697         (vn_reference_lookup): Likewise.
13698         (visit_reference_op_load): Likewise.
13699         (visit_reference_op_store): Likewise.
13700         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13701         (compute_avail): Likewise.
13702         (eliminate): Likewise.
13703
13704 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13705
13706         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13707         DECL_IGNORED_P non-reg vars if they are used.
13708
13709         PR tree-optimization/47391
13710         * varpool.c (const_value_known_p): Return false if
13711         decl is volatile.
13712
13713 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13714
13715         PR bootstrap/47215
13716         * config/i386/i386.c (ix86_local_alignment): Handle
13717         case for va_list_type_node is nil.
13718         (ix86_canonical_va_list_type): Likewise.
13719
13720 2011-01-21  Alan Modra  <amodra@gmail.com>
13721
13722         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13723         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13724
13725 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13726
13727         * config/arm/arm.md (define_attr type): Rename f_load
13728         and f_store to f_fpa_load and f_fpa_store. Update.
13729         (write_conflict): Deal with rename fallout.
13730         (*push_fp_multi): Likewise.
13731         * config/arm/fpa.md (f_load): Use f_fpa_load.
13732         (f_store): Use f_fpa_store.
13733         (*movsf_fpa): Likewise.
13734         (*movdf_fpa): Likewise.
13735         (*movxf_fpa): Likewise.
13736         (*thumb2_movsf_fpa): Likewise.
13737         (*thumb2_movdf_fpa): Likewise.
13738         (*thumb2_movxf_fpa): Likewise.
13739         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13740         f_loadd and f_stored.
13741         (*thumb2_movdi_vfp): Likewise.
13742         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13743         (*thumb2_movsi_vfp): Likewise.
13744         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13745         Use f_loads instead of f_load.
13746         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13747
13748 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13749
13750         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13751         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13752         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13753         (xtensa_mode_dependent_address_p): New function.
13754         (constantpool_address_p): Make static. Change return type to bool.
13755         Change argument type to const_rtx. Use CONST_INT_P predicate.
13756
13757 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13758
13759         PR debug/46583
13760         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13761
13762 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13763
13764         PR debug/47283
13765         * cfgexpand.c (expand_debug_expr): Instead of generating
13766         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13767         etc. handling.
13768
13769 2011-01-20  Richard Guenther  <rguenther@suse.de>
13770
13771         PR middle-end/47370
13772         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13773         the pointer operand of MEM_REFs.
13774
13775 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13776
13777         PR tree-optimization/46130
13778         * ipa-split.c (consider_split): If return_bb contains non-virtual
13779         PHIs other than for retval or if split_function would not adjust it,
13780         refuse to split.
13781
13782 2011-01-20  Richard Guenther  <rguenther@suse.de>
13783
13784         PR tree-optimization/47167
13785         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13786         Revert previous change, only avoid enumeral type changes.
13787
13788 2011-01-19  Mike Stump  <mikestump@comcast.net>
13789
13790         * doc/tm.texi.in (BRANCH_COST): Englishify.
13791         * doc/tm.texi (BRANCH_COST): Likewise.
13792
13793 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13794
13795         PR c++/47291
13796         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13797         (gen_scheduled_generic_parms_dies): New functions.
13798         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13799         generation for the end of CU compilation.
13800         (dwarf2out_finish): Generate template parameters DIEs here.
13801
13802 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13803
13804         PR debug/46240
13805         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13806         debug bind stmt on merge edges.
13807
13808 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13809
13810         PR debug/47079
13811         PR debug/46724
13812         * function.c (instantiate_expr): Instantiate incoming rtl of
13813         implicit arguments, and recurse on VALUE_EXPRs.
13814         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13815         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13816
13817 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13818
13819         * c-parser.c (c_parser_for_statement): Initialize
13820         collection_expression.
13821
13822 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13823
13824         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13825
13826 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13827
13828         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13829         (LINK_SHLIB_SPEC): Don't use %(link_path).
13830         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13831
13832 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13833
13834         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13835         (NO_SHARED_LIB_SUPPORT): Remove.
13836         (LINK_SHLIB_SPEC): Remove one conditional definition.
13837
13838 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13839
13840         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13841         %{call_shared}.
13842         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13843         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13844         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13845         %{call_shared} and conditionals on these options not being passed.
13846         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13847         %{call_shared}.
13848
13849 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13850
13851         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13852         simplify.
13853
13854         * ipa-split.c: Spelling fixes.
13855
13856 2011-01-19  Richard Henderson  <rth@redhat.com>
13857
13858         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13859         (*mulsi3): Likewise.
13860
13861         * longlong.h [__mn10300__] (count_leading_zeros): New.
13862         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13863         [__mn10300__] (add_ssaaaa, subddmmss): New.
13864         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13865         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13866
13867 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13868
13869         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13870
13871 2011-01-19  Richard Henderson  <rth@redhat.com>
13872
13873         * config/mn10300/mn10300.md (addsi3_flags): New.
13874         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13875         (subsi3_flags, subc_internal, subdi3): New.
13876         (subdi3_internal, *subdi3_degenerate): New.
13877         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13878
13879         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13880         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13881         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13882         * config/mn10300/mn10300-protos.h: Update.
13883         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13884         (return_ret): Likewise.  Rename from return_internal_regs.
13885         (return_internal): Remove.
13886
13887         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13888         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13889         (mn10300_legitimate_constant_p): Likewise.
13890         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13891         (mn10300_frame_size): New.
13892         (mn10300_expand_prologue): Use it.
13893         (mn10300_expand_epilogue): Likewise.
13894         (mn10300_initial_offset): Likewise.
13895         * config/mn10300/mn10300-protos.h: Update.
13896         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13897         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13898         (prologue, epilogue, return_internal): Tidy output code.
13899         (mn10300_store_multiple_operation, return): Likewise.
13900         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13901         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13902         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13903         (load_pic, am33_load_pic): New.
13904         (mn10300_load_pic0, mn10300_load_pic1): New.
13905
13906         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13907         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13908         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13909         (cc_flags_for_mode, cc_flags_for_code): New.
13910         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13911         overflow flag is not valid.  Validate that the flags we need
13912         for the comparison are valid.
13913         (mn10300_output_cmp): Remove.
13914         (mn10300_output_add): New.
13915         (mn10300_select_cc_mode): Use cc_flags_for_code.
13916         (mn10300_split_cbranch): New.
13917         (mn10300_match_ccmode): New.
13918         (mn10300_split_and_operand_count): New.
13919         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13920         to the function.
13921         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13922         (addsi3): ... here.  Use mn10300_output_add.
13923         (*addsi3_flags): New.
13924         (*am33_subsi3, *mn10300_subsi3): Merge...
13925         (subsi3): ... here.  Use attribute isa.
13926         (*subsi3_flags): New.
13927         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13928         when possible.
13929         (*am33_andsi3, *mn10300_andsi3): Merge...
13930         (andsi3): ... here.
13931         (*andsi3_flags): New.
13932         (andsi3 splitters): New.
13933         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13934         (iorsi3): ... here.
13935         (*iorsi3_flags): New.
13936         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13937         (xorsi3): ... here.
13938         (*xorsi3_flags): New.
13939         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13940         (one_cmplsi2): ... here.
13941         (*one_cmplsi2_flags): New.
13942         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13943         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13944         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13945         use matching constraints to eliminate a self-comparison.
13946         (*integer_conditional_branch): Rename from integer_conditional_branch.
13947         Use int_mode_flags to match CC_REG.
13948         (*cbranchsi4_btst, *btstsi): New.
13949         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13950         mn10300_split_cbranch.
13951         (*am33_cmpsf): Rename from am33_cmpsf.
13952         (*float_conditional_branch): Rename from float_conditional_branch.
13953         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13954         (zero_extendqisi2): ... here.
13955         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13956         (zero_extendhisi2): ... here.
13957         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13958         (extendqisi2): ... here.
13959         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13960         (extendhisi2): ... here.
13961         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13962         (ashlsi3): ... here.
13963         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13964         (lshrsi3): ... here.
13965         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13966         (ashrsi3): ... here.
13967         (consecutive add peephole): Remove.
13968         * config/mn10300/predicates.md (label_ref_operand): New.
13969         (int_mode_flags): New.
13970         (CCZN_comparison_operator): New.
13971
13972         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13973         (throughput_42_latency_43): New reservation.
13974         (mulsidi3, umulsidi3): New expanders.
13975         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13976         the MDR register to allocation; separately allocate the low and
13977         high parts of the DImode result.
13978         (umulsidi3_internal): Similarly.
13979         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13980         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13981         (udivsi3, umodsi3): Remove.
13982         (udivmodsi4, divmodsi4): New expanders.
13983         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13984         (*divmodsi4): Simiarly.
13985         (ext_internal): New.
13986
13987         * config/mn10300/constraints.md ("z"): New constraint.
13988         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13989         (FIXED_REGISTERS): Don't fix MDR.
13990         (CALL_USED_REGSITERS): Reformat nicely.
13991         (REG_ALLOC_ORDER): Add MDR.
13992         (enum regclass): Add MDR_REGS.
13993         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13994         (IRA_COVER_CLASSES): Add MDR_REGS.
13995         (REGNO_REG_CLASS): Handle MDR_REG.
13996         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13997         (mn10300_register_move_cost): Likewise.
13998         * config/mn10300/mn10300.md (MDR_REG): New.
13999         (*movsi_internal): Handle moves to/from MDR_REGS.
14000
14001         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14002         POST_MODIFY.
14003         (mn10300_secondary_reload): Tidy combination reload classes.
14004         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14005         addresses for AM33.  Allow symbolic offsets for reg+imm.
14006         (mn10300_regno_in_class_p): New.
14007         (mn10300_legitimize_reload_address): New.
14008         * config/mn10300/mn10300.h (enum reg_class): Remove
14009         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14010         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14011         SP_OR_GENERAL_REGS.
14012         (REG_CLASS_NAMES): Update to match.
14013         (REG_CLASS_CONTENTS): Likewise.
14014         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14015         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14016         (REGNO_IN_RANGE_P): Remove.
14017         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14018         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14019         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14020         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14021         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14022         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14023         (REGNO_GENERAL_P): New.
14024         (HAVE_POST_MODIFY_DISP): New.
14025         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14026         (LEGITIMIZE_RELOAD_ADDRESS): New.
14027         * config/mn10300/mn10300-protos.h: Update.
14028
14029         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14030         DATA_REGS for AM33 stack-pointer destination.
14031         (mn10300_preferred_output_reload_class): Likewise.
14032         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14033         into a form appropriate for ...
14034         (TARGET_SECONDARY_RELOAD): New.
14035         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14036         * config/mn10300/mn10300-protos.h: Update.
14037         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14038         reload_insi; use the "A" constraint for the scratch; handle AM33
14039         moves of sp to non-address registers.
14040
14041         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14042         (*movqi_internal): ... here.
14043         (*am33_movhi, *mn10300_movhi): Merge into...
14044         (*movhi_internal): ... here.
14045         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14046         as the source/destination of moves from/to SP.
14047         (movsf): Only allow for AM33-2.
14048         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14049         any integer constant constraint.  Only allow for AM33-2.  Tidy
14050         all of the alternative outputs.
14051         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14052         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14053         for MN103.
14054         (udivsi3, umodsi3): New patterns for MN103 only.
14055
14056 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14057
14058         * doc/tm.texi.in: Spell out that a lack of register class unions
14059         can lead to ICEs.
14060         * doc/tm.texi: Regenerate.
14061
14062 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14063
14064         PR rtl-optimization/47337
14065         * dce.c (check_argument_store): New function.
14066         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14067
14068         PR tree-optimization/47290
14069         * tree-eh.c (infinite_empty_loop_p): New function.
14070         (cleanup_empty_eh): Use it.
14071
14072 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14073
14074         PR target/46997
14075         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14076         (a64_expand_widen_sum): Ditto.
14077         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14078         (vec_extract_evenodd_help): Ditto.
14079         (vec_extract_evenv4hi): Ditto.
14080         (vec_extract_oddv4hi): Ditto.
14081         (vec_extract_evenv2si): Ditto.
14082         (vec_extract_oddv2si): Ditto.
14083         (vec_extract_evenv2sf): Ditto.
14084         (vec_extract_oddv2sf): Ditto.
14085         (vec_pack_trunc_v4hi: Ditto.
14086         (vec_pack_trunc_v2si): Ditto.
14087         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14088         (vec_interleave_highv8qi): Ditto.
14089         (mix1_r): Ditto.
14090         (vec_extract_oddv8qi): Ditto.
14091         (vec_interleave_lowv4hi): Ditto.
14092         (vec_interleave_highv4hi): Ditto.
14093         (vec_interleave_lowv2si): Ditto.
14094         (vec_interleave_highv2si): Ditto.
14095
14096 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14097
14098         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14099         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14100         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14101         (pa_c_mode_for_suffix): New.
14102         (TARGET_EXPAND_BUILTIN): Define.
14103         (TARGET_C_MODE_FOR_SUFFIX): Define.
14104         (pa_builtins): Define.
14105         (pa_init_builtins): Register __float128 type and init new support
14106         builtins.
14107         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14108         * config/pa/quadlib.c (_U_Qfcopysign): New.
14109
14110 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14111
14112         PR middle-end/46894
14113         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14114         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14115         are defined.
14116
14117 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14118
14119         PR tree-optimization/47179
14120         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14121         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14122
14123 2011-01-18  Richard Guenther  <rguenther@suse.de>
14124
14125         PR rtl-optimization/47216
14126         * emit-rtl.c: Include tree-flow.h.
14127         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14128         of replicating it with different semantics.
14129         * Makefile.in (emit-rtl.o): Adjust.
14130
14131 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14132
14133         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14134         (cortex_a9_dp): Handle neon types correctly.
14135
14136 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14137
14138         PR rtl-optimization/47299
14139         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14140         subtarget.  Use normal multiplication if both operands are constants.
14141         * expmed.c (expand_widening_mult): Don't try to optimize constant
14142         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14143         before using it.
14144
14145 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14146
14147         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14148         spacing after 'e.g.', typos, comma, hyphenation.
14149
14150 2011-01-17  Richard Henderson  <rth@redhat.com>
14151
14152         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14153         (rx_restricted_mem_operand): New.
14154         (rx_shift_operand): Use register_operand.
14155         (rx_source_operand, rx_compare_operand): Likewise.
14156         * config/rx/rx.md (addsi3_flags): New expander.
14157         (adddi3): Rewrite as expander.
14158         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14159         (subsi3_flags): New expander.
14160         (subdi3): Rewrite as expander.
14161         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14162
14163         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14164         (rx_init_builtins): Remove sat builtin.
14165         (rx_expand_builtin): Likewise.
14166         * config/rx/rx.md (ssaddsi3): New.
14167         (*sat): Rename from sat.  Represent the CC_REG input.
14168
14169         * config/rx/predicates.md (rshift_operator): New.
14170         * config/rx/rx.c (rx_expand_insv): Remove.
14171         * config/rx/rx-protos.h: Update.
14172         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14173         operand to the canonical position.
14174         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14175         (*bitclr, *bitclr_in_memory): Similarly.
14176         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14177         (insv): Retain the zero_extract in the expansion.
14178
14179         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14180         (bswaphi2, bitinvert, revw): Likewise.
14181
14182         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14183         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14184         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14185         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14186         (bitset, bitset_in_memory): Likewise.
14187         (bitinvert, bitinvert_in_memory): Likewise.
14188         (bitclr, bitclr_in_memory): Likewise.
14189         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14190         (rx_strend, rx_cmpstrn): Likewise.
14191         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14192         (bitop peep2 patterns): Remove.
14193
14194         * config/rx/rx.c (rx_match_ccmode): New.
14195         * config/rx/rx-protos.h: Update.
14196         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14197         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14198         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14199         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14200         (fix_truncsfsi2, floatsisf2): Likewise.
14201         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14202         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14203         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14204         (*subsi3_flags, *xorsi3_flags): New.
14205
14206         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14207
14208         * config/rx/rx.c (rx_print_operand): Remove workaround for
14209         unsplit comparison operations.
14210
14211         * config/rx/rx.md (movsicc): Split after reload.
14212         (*movsicc): Merge *movsieq and *movsine via match_operator.
14213         (*stcc): New pattern.
14214
14215         * config/rx/rx.c (rx_float_compare_mode): Remove.
14216         * config/rx/rx.h (rx_float_compare_mode): Remove.
14217         * config/rx/rx.md (cstoresi4): Split after reload.
14218         (*sccc): New pattern.
14219
14220         * config/rx/predicates.md (label_ref_operand): New.
14221         (rx_z_comparison_operator): New.
14222         (rx_zs_comparison_operator): New.
14223         (rx_fp_comparison_operator): New.
14224         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14225         Validate that the flags are set properly for the comparison.
14226         (rx_gen_cond_branch_template): Remove.
14227         (rx_cc_modes_compatible): Remove.
14228         (mode_from_flags): New.
14229         (flags_from_code): Rename from flags_needed_for_conditional.
14230         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14231         (rx_select_cc_mode): Likewise.
14232         (rx_split_fp_compare): New.
14233         (rx_split_cbranch): New.
14234         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14235         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14236         (*cbranchsf4): Similarly.
14237         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14238         match_operator and rx_split_cbranch.
14239         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14240         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14241         (*cmpsi): Rename from cmpsi.
14242         (*tstsi): Rename from tstsi.
14243         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14244         (*conditional_branch): Rename from conditional_branch.
14245         (*reveresed_conditional_branch): Remove.
14246         (b<code>): Remove expander.
14247         * config/rx/rx-protos.h: Update.
14248
14249         * config/rx/rx.c (rx_compare_redundant): Remove.
14250         * config/rx/rx.md (cmpsi): Don't use it.
14251         * config/rx/rx-protos.h: Update.
14252
14253         * config/rx/rx-modes.def (CC_F): New mode.
14254         * config/rx/rx.c (rx_select_cc_mode): New.
14255         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14256         * config/rx/rx-protos.h: Update.
14257
14258 2011-01-17  Richard Henderson  <rth@redhat.com>
14259
14260         * except.c (dump_eh_tree): Fix stray ; after for statement.
14261
14262 2011-01-17  Richard Guenther  <rguenther@suse.de>
14263
14264         PR tree-optimization/47313
14265         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14266         handling before copying the body.  Properly deal with
14267         by-reference result in SSA form.
14268
14269 2011-01-17  Ian Lance Taylor  <iant@google.com>
14270
14271         PR target/47219
14272         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14273         (struct_value_alias_set): Don't define.
14274         (sparc_option_override): Don't set sparc_sr_alias_set and
14275         struct_value_alias_set.
14276         (save_or_restore_regs): Use gen_frame_mem rather than calling
14277         set_mem_alias_set.
14278         (sparc_struct_value_rtx): Likewise.
14279
14280 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14281
14282         PR target/47318
14283         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14284         (_mm_maskstore_pd): Likewise.
14285         (_mm_maskload_ps): Likewise.
14286         (_mm_maskstore_ps): Likewise.
14287         (_mm256_maskload_pd): Change mask to __m256i.
14288         (_mm256_maskstore_pd): Likewise.
14289         (_mm256_maskload_ps): Likewise.
14290         (_mm256_maskstore_ps): Likewise.
14291
14292         * config/i386/i386-builtin-types.def: Updated.
14293         (ix86_expand_special_args_builtin): Likewise.
14294
14295         * config/i386/i386.c (bdesc_special_args): Update
14296         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14297         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14298         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14299         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14300
14301         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14302         Use <avxpermvecmode> on mask register.
14303         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14304
14305 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14306             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14307             Eric Botcazou  <ebotcazou@adacore.com>
14308
14309         PR target/46655
14310         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14311         if <= USHRT_MAX in 32-bit mode.
14312
14313 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14314
14315         * doc/install.texi (Configuration, Specific): Wrap long
14316         lines in examples.  Allow line wrapping in long options
14317         and URLs where beneficial for PDF output.
14318
14319 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14320
14321         * config/mips/mips.c (mips_classify_symbol): Don't return
14322         SYMBOL_PC_RELATIVE for nonlocal labels.
14323
14324 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14325
14326         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14327
14328 2011-01-15  Jan Hubicka  <jh@suse.cz>
14329
14330         PR tree-optimization/47276
14331         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14332         declarations as needed.
14333
14334 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14335
14336         * common.opt (fdevirtualize): New flag.
14337         * doc/invoke.texi (Option Summary): Document it.
14338         * opts.c (default_options_table): Add devirtualize flag.
14339         * ipa-prop.c (detect_type_change): Return immediately if
14340         devirtualize flag is not set.
14341         (detect_type_change_ssa): Likewise.
14342         (compute_known_type_jump_func): Likewise.
14343         (ipa_analyze_virtual_call_uses): Likewise.
14344
14345 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14346
14347         PR tree-optimization/45934
14348         PR tree-optimization/46302
14349         * ipa-prop.c (type_change_info): New type.
14350         (stmt_may_be_vtbl_ptr_store): New function.
14351         (check_stmt_for_type_change): Likewise.
14352         (detect_type_change): Likewise.
14353         (detect_type_change_ssa): Likewise.
14354         (compute_complex_assign_jump_func): Check for dynamic type change.
14355         (compute_complex_ancestor_jump_func): Likewise.
14356         (compute_known_type_jump_func): Likewise.
14357         (compute_scalar_jump_functions): Likewise.
14358         (ipa_analyze_virtual_call_uses): Likewise.
14359         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14360
14361 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14362
14363         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14364         * config/i386/i386.opt (msse5): New Alias.
14365
14366 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14367
14368         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14369         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14370         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14371         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14372
14373 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14374
14375         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14376         -mcpu options.
14377         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14378         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14379         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14380         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14381         Likewise.
14382         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14383
14384 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14385
14386         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14387
14388 2011-01-14  Mike Stump  <mikestump@comcast.net>
14389
14390         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14391         * config/fr30/fr30.md: Likweise
14392         (movsi_push): Likewise.
14393         (movsi_pop): Likewise.
14394         (enter_func): Likewise.
14395         * config/moxie/moxie.md (movsi_push): Likewise.
14396         (movsi_pop): Likewise.
14397
14398 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14399
14400         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14401         %{no_archive} %{exact_version}.
14402         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14403         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14404         %{no_archive} %{exact_version}.
14405         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14406         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14407         * config/mips/vxworks.h: Likewise.
14408
14409 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14410
14411         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14412
14413 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14414
14415         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14416         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14417
14418 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14419
14420         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14421         -nodefaultlib.
14422
14423 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14424
14425         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14426         for mcpu not cpu.
14427         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14428         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14429         not cpu.
14430         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14431         Don't handle -shlib.
14432
14433 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14434
14435         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14436         (CC1_SPEC): Don't handle -profile.
14437
14438 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14439
14440         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14441         * config/mips/mips.h (CC1_SPEC): Likewise.
14442
14443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14444
14445         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14446         * config/mips/mips.h (CC1_SPEC): Likewise.
14447
14448 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14449
14450         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14451         * config/m32r/linux.h (LINK_SPEC): Likewise.
14452         * config/mips/linux.h (LINK_SPEC): Likewise.
14453         * config/mips/linux64.h (LINK_SPEC): Likewise.
14454         * config/sparc/linux.h (LINK_SPEC): Likewise.
14455         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14456         LINK_SPEC): Likewise.
14457         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14458
14459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14460
14461         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14462         %{version:-v}.
14463         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14464
14465 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14466
14467         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14468         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14469
14470 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14471
14472         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14473
14474 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14475
14476         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14477         supports -Bstatic/-Bdynamic.
14478         * configure: Regenerate.
14479
14480 2011-01-14  Jan Hubicka  <jh@suse.cz>
14481             Jack Howarth  <howarth@bromo.med.uc.edu>
14482
14483         PR target/46037
14484         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14485         when checking debug_info_level. Test write_symbols instead of
14486         debug_hooks->var_location when setting flag_var_tracking_uninit.
14487
14488 2011-01-14  Richard Guenther  <rguenther@suse.de>
14489
14490         PR tree-optimization/47179
14491         * target.def (ref_may_alias_errno): New target hook.
14492         * targhooks.h (default_ref_may_alias_errno): Declare.
14493         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14494         (default_ref_may_alias_errno): New function.
14495         * target.h (struct ao_ref_s): Declare.
14496         * tree-ssa-alias.c: Include target.h.
14497         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14498         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14499         (targhooks.o): Likewise.
14500         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14501         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14502
14503 2011-01-14  Richard Guenther  <rguenther@suse.de>
14504
14505         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14506
14507 2011-01-14  Richard Guenther  <rguenther@suse.de>
14508
14509         PR tree-optimization/47280
14510         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14511         return CFG changes.
14512         (tree_ssa_forward_propagate_single_use_vars): Deal with
14513         CFG changes from associate_plusminus.
14514
14515 2011-01-14  Richard Guenther  <rguenther@suse.de>
14516
14517         PR middle-end/47281
14518         Revert
14519         2011-01-11  Richard Guenther  <rguenther@suse.de>
14520
14521         PR tree-optimization/46076
14522         * tree-ssa.c (useless_type_conversion_p): Conversions from
14523         unprototyped to empty argument list function types are useless.
14524
14525 2011-01-14  Richard Guenther  <rguenther@suse.de>
14526
14527         PR tree-optimization/47286
14528         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14529
14530 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14531
14532         PR middle-end/46823
14533         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14534
14535 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14536
14537         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14538         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14539         * config/xtensa/xtensa.c (xtensa_libcall_value,
14540         xtensa_function_value_regno_p): New functions.
14541         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14542
14543 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14544
14545         PR c++/47213
14546         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14547         PE specific hook.
14548         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14549         New function prototype.
14550         * config/i386/winnt.c (i386_pe_assemble_visibility):
14551         Warn only if attribute was specified by user.
14552
14553 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14554
14555         PR target/47251
14556         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14557         floating point.
14558         (floatunsdidf2_fcfidu): Ditto.
14559
14560 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14561
14562         * config/s390/s390.c (print_operand_address): Replace 'error' with
14563         'output_operand_lossage'.
14564         (print_operand): Likewise.
14565
14566 2011-01-13  Jeff Law  <law@redhat.com>
14567
14568         PR rtl-optimization/39077
14569         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14570         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14571         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14572         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14573         * gcse.c (prune_insertions_deletions): New function.
14574         (compute_pre_data): Use it.
14575
14576 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14577
14578         PR debug/PR46973
14579         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14580         static function.
14581         (prune_unused_types_mark): Use it.
14582
14583 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14584
14585         PR rtl-optimization/45352
14586         * sel-sched.c: Update copyright years.
14587         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14588         in the advancing loop when we have issued issue_rate insns.
14589
14590 2011-01-12  Richard Henderson  <rth@redhat.com>
14591
14592         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14593         (TARGET_MD_ASM_CLOBBERS): New.
14594
14595         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14596         (TARGET_DELEGITIMIZE_ADDRESS): New.
14597
14598         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14599         (clzsi2, *bsch): New patterns.
14600
14601         * config/mn10300/mn10300.md (INT): New mode iterator.
14602         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14603
14604         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14605         flag_split_wide_types.
14606
14607         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14608         (mn10300_trampoline_init): Rewrite without a template, an immediate
14609         load and a direct branch.
14610         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14611
14612 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14613
14614         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14615         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14616         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14617         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14618
14619 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14620
14621         PR debug/47209
14622         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14623         of type.
14624
14625 2011-01-12  Jan Hubicka  <jh@suse.cz>
14626
14627         PR driver/47244
14628         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14629         (PLUGIN_COND_CLOSE): New macro.
14630         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14631
14632 2011-01-12  Richard Guenther  <rguenther@suse.de>
14633
14634         PR lto/47259
14635         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14636         register variables in a MEM_REF.
14637
14638 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14639
14640         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14641         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14642         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14643         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14644         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14645         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14646         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14647         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14648         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14649         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14650         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14651         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14652         * config/gnu-user.h: New.  Copied from linux.h.
14653         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14654         GNU_USER_TARGET_STARTFILE_SPEC.
14655         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14656         GNU_USER_TARGET_ENDFILE_SPEC.
14657         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14658         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14659         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14660         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14661         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14662         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14663         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14664         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14665         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14666         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14667         * config/arm/linux-eabi.h (CC1_SPEC): Use
14668         GNU_USER_TARGET_CC1_SPEC.
14669         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14670         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14671         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14672         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14673         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14674         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14675         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14676         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14677
14678 2011-01-12  Richard Guenther  <rguenther@suse.de>
14679
14680         PR other/46946
14681         * doc/invoke.texi (ffast-math): Document it is turned on
14682         with -Ofast.
14683
14684 2011-01-12  Jan Hubicka  <jh@suse.cz>
14685
14686         PR tree-optimization/47233
14687         * opts.c (common_handle_option): Disable ipa-reference with profile
14688         feedback.
14689
14690 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14691
14692         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14693         error message.
14694
14695 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14696
14697         * c-parser.c (c_lex_one_token): Updated and reindented some
14698         comments.  No changes in code.
14699
14700 2011-01-11  Ian Lance Taylor  <iant@google.com>
14701
14702         * godump.c (go_output_var): Don't output the variable if there is
14703         already a type with the same name.
14704
14705 2011-01-11  Ian Lance Taylor  <iant@google.com>
14706
14707         * godump.c (go_format_type): Don't generate float80.
14708
14709 2011-01-11  Richard Henderson  <rth@redhat.com>
14710
14711         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14712         declaration.  Rewrite for both speed and size.
14713         (mn10300_address_cost_1): Remove.
14714         (mn10300_register_move_cost): New.
14715         (mn10300_memory_move_cost): New.
14716         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14717         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14718         extensions, shifts, BSWAP, CLZ.
14719         (mn10300_wide_const_load_uses_clr): Remove.
14720         (TARGET_REGISTER_MOVE_COST): New.
14721         (TARGET_MEMORY_MOVE_COST): New.
14722         * config/mn10300/mn10300-protos.h: Update.
14723         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14724
14725         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14726         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14727         * config/mn10300/mn10300-protos.h: Update.
14728         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14729         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14730         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14731         (*test_int_bitfield, *test_byte_bitfield): Remove.
14732         (*bit_test, *subreg_bit_test): Remove.
14733         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14734
14735         * config/mn10300/constraints.md ("c"): Rename from "A".
14736         ("A", "D"): New constraint letters.
14737         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14738         (fmssf4, fnmasf4, fnmssf4): Likewise.
14739
14740         * config/mn10300/mn10300.md (isa): New attribute.
14741         (enabled): New attribute.
14742
14743         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14744         (abssf2, negsf2): Define only for hardware fp.
14745         (sqrtsf2): Reformat.
14746         (addsf3, subsf3, mulsf3): Merge expander and insn.
14747
14748         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14749         (DEBUGGER_AUTO_OFFSET): Remove.
14750         (DEBUGGER_ARG_OFFSET): Remove.
14751
14752         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14753         Emit register stores with the same offsets as the hardware.
14754         (mn10300_store_multiple_operation): Don't check that the register
14755         save offsets are monotonic.
14756         * config/mn10300/mn10300-protos.h: Update.
14757
14758         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14759
14760         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14761         in terms of the value on the stack, not the MDR register.
14762
14763 2011-01-11  Jan Hubicka  <jh@suse.cz>
14764
14765         PR lto/45721
14766         PR lto/45375
14767         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14768         (symbol_alias_set_destroy, symbol_alias_set_contains,
14769         propagate_aliases_backward): Declare.
14770         * lto-streamer-out.c (struct sets): New sturcture.
14771         (trivally_defined_alias): New function.
14772         (output_alias_pair_p): Rewrite.
14773         (output_unreferenced_globals): Fix output of alias pairs.
14774         (produce_symtab): Likewise.
14775         * ipa.c (function_and_variable_visibility): Set weak alias destination
14776         as needed in lto.
14777         * varasm.c (symbol_alias_set_t): Remove.
14778         (symbol_alias_set_destroy): Export.
14779         (propagate_aliases_forward, propagate_aliases_backward): New functions
14780         based on ...
14781         (compute_visible_aliases): ... this one; remove.
14782         (trivially_visible_alias): New
14783         (trivially_defined_alias): New.
14784         (remove_unreachable_alias_pairs): Rewrite.
14785         (finish_aliases_1): Reorganize code checking if alias is defined.
14786         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14787         in LTO mode.
14788
14789 2011-01-11  Richard Guenther  <rguenther@suse.de>
14790
14791         PR tree-optimization/46076
14792         * tree-ssa.c (useless_type_conversion_p): Conversions from
14793         unprototyped to empty argument list function types are useless.
14794
14795 2011-01-11  Richard Guenther  <rguenther@suse.de>
14796
14797         PR middle-end/45235
14798         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14799         volatile MEMs as MEM_READONLY_P.
14800
14801 2011-01-11  Richard Guenther  <rguenther@suse.de>
14802
14803         PR tree-optimization/47239
14804         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14805
14806 2011-01-11  Jeff Law  <law@redhat.com>
14807
14808         PR tree-optimization/47086
14809         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14810         IVs from statements that might throw.
14811
14812 2011-01-10  Jan Hubicka  <jh@suse.cz>
14813
14814         PR lto/45375
14815         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14816
14817 2011-01-10  Jan Hubicka  <jh@suse.cz>
14818
14819         PR lto/45375
14820         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14821         when correcting profile.
14822
14823 2011-01-10  Jan Hubicka  <jh@suse.cz>
14824
14825         PR lto/46083
14826         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14827         DECL_FINI_PRIORITY.
14828         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14829         Restore DECL_FINI_PRIORITY.
14830
14831 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14832
14833         * doc/gimple.texi: Fix quoting of multi-word return values in
14834         @deftypefn statements.  Ensure presence of return value.  Wrap
14835         overlong @deftypefn lines.
14836         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14837         descriptions of removed functions.
14838         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14839         of multi-word return value in @deftypefn statement.
14840
14841 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14842
14843         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14844         (Conditional Expressions, Logical Operators)
14845         (Statement and operand traversals): Do not indent smallexample
14846         code.  Fix duplicate function argument in example.
14847
14848 2011-01-10  Jeff Law  <law@redhat.com>
14849
14850         PR tree-optimization/47141
14851         * ipa-split.c (split_function): Handle case where we are
14852         returning a value and the return block has a virtual operand phi.
14853
14854 2011-01-10  Jan Hubicka  <jh@suse.cz>
14855
14856         PR tree-optimization/47234
14857         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14858         (pass_feedback_split_functions): Declare.
14859         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14860         tree-profile.
14861         * ipa-split.c (gate_split_functions): Update comments; disable
14862         split-functions for profile_arc_flag and branch_probabilities.
14863         (gate_feedback_split_functions): New function.
14864         (execute_feedback_split_functions): New function.
14865         (pass_feedback_split_functions): New global var.
14866
14867 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14868
14869         PR lto/46760
14870         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14871         calling gimple_call_set_cannot_inline.
14872
14873 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14874
14875         * config/darwin-sections.def: Remove unused section.
14876
14877 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14878
14879         PR c++/47218
14880         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14881
14882 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14883
14884         PR objc/47232
14885         * c-parser.c (c_parser_declaration_or_fndef): Improved
14886         error message.
14887
14888 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14889
14890         * config/i386/winnt.c (i386_pe_start_function): Make sure
14891         to switch back to function's section.
14892
14893 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14894
14895         PR gcc/46902
14896         PR testsuite/46912
14897         * plugin.c: Move include of dlfcn.h from here...
14898         * system.h: ... to here.
14899
14900 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14901
14902         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14903         file name.
14904         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14905         two extra empty pages in PDF output.
14906
14907 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14908
14909         PR objc/47078
14910         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14911         for error recovery purposes behave as if it was not specified so
14912         that the default type is usd.
14913
14914 2011-01-07  Jan Hubicka  <jh@suse.cz>
14915
14916         PR tree-optmization/46469
14917         * ipa.c (function_and_variable_visibility): Clear needed flags on
14918         nodes with external decls; handle weakrefs merging correctly.
14919
14920 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14921
14922         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14923         not false.
14924
14925 2011-01-07  Jan Hubicka  <jh@suse.cz>
14926
14927         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14928         and no longer claim that gold is required for linker plugin.
14929         * configure: Regenerate.
14930         * gcc.c (PLUGIN_COND): New macro.
14931         (LINK_COMMAND_SPEC): Use it.
14932         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14933         * config.in (HAVE_LTO_PLUGIN): New.
14934         * configure.ac (--with-lto-plugin): New parameter; autodetect
14935         HAVE_LTO_PLUGIN.
14936
14937 2011-01-07  Jan Hubicka  <jh@suse.cz>
14938
14939         PR tree-optimization/46367
14940         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14941         when we can update original.
14942         (cgraph_mark_inline_edge): Sanity check.
14943         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14944
14945 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14946
14947         * config/spu/spu.h (ASM_COMMENT_START): Define.
14948
14949 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14950
14951         PR driver/42445
14952         * gcc.c (%>S): New.
14953         (SWITCH_KEEP_FOR_GCC): Likewise.
14954         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14955         (do_spec_1): Handle "%>".
14956
14957         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14958
14959 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14960
14961         PR target/47201
14962         * config/i386/i386.c (ix86_delegitimize_address): If
14963         simplify_gen_subreg fails, return orig_x.
14964
14965         PR bootstrap/47187
14966         * value-prof.c (gimple_stringop_fixed_value): Handle
14967         lhs of the call properly.
14968
14969 2011-01-07  Jan Hubicka  <jh@suse.cz>
14970
14971         PR lto/45375
14972         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14973
14974 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14975
14976         * target.def (function_switched_text_sections): New hook.
14977         * doc/tm.texi: Regenerated.
14978         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14979         * final.c (default_function_switched_text_sections): New.
14980         (final_scan_insn): Call function_switched_text_sections when a
14981         mid-function section change occurs.
14982         * output.h (default_function_switched_text_sections): Declare.
14983         * config/darwin-protos.h (darwin_function_switched_text_sections):
14984         Likewise.
14985         * config/darwin.c (darwin_function_switched_text_sections): New.
14986         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14987
14988 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14989
14990         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14991         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14992         the secondary code fragment when outputting for DWARF == 2.
14993
14994 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14995
14996         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14997         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14998         Remove.
14999         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15000         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15001
15002 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15003
15004         PR debug/46704
15005         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15006         when it is not empty.
15007
15008 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15009
15010         Bobcat Enablement
15011         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15012         (case ${target}): Add btver1.
15013         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15014         -march=native recognize btver1 processors.
15015         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15016         btver1 def_and_undef
15017         * config/i386/i386.c (struct processor_costs btver1_cost): New
15018         btver1 cost table.
15019         (m_BTVER1): New definition.
15020         (m_AMD_MULTIPLE): Includes m_BTVER1.
15021         (initial_ix86_tune_features): Add btver1 tune.
15022         (processor_target_table): Add btver1 entry.
15023         (static const char *const cpu_names): Add btver1 entry.
15024         (software_prefetching_beneficial_p): Add btver1.
15025         (ix86_option_override_internal): Add btver1 instruction sets.
15026         (ix86_issue_rate): Add btver1.
15027         (ix86_adjust_cost): Add btver1.
15028         * config/i386/i386.h (TARGET_BTVER1): New definition.
15029         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15030         (enum processor_type): Add PROCESSOR_BTVER1.
15031         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15032
15033 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15034
15035         PR target/43309
15036         * config/i386/i386.c (legitimize_tls_address)
15037         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15038         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15039         (tls_initial_exec_64_sun): New pattern.
15040
15041 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15042
15043         * doc/invoke.texi (Overall Options): Improve wording and markup
15044         of the description of -wrapper.
15045
15046 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15047
15048         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15049         rdynamic, threads): New Driver options.
15050
15051 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15052
15053         PR target/38118
15054         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15055         if coming from .tdata.
15056         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15057
15058 2011-01-06  Jan Hubicka  <jh@suse.cz>
15059
15060         PR lto/47188
15061         * collect2.c (main): Do not enable LTOmode when plugin is active.
15062
15063 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15064
15065         PR other/45915
15066         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15067         --version output if supported.
15068         * configure: Regenerate.
15069
15070 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15071
15072         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15073         Driver options.
15074
15075 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15076
15077         PR c/47150
15078         * c-convert.c (convert): When converting a complex expression
15079         other than COMPLEX_EXPR to a different complex type, ensure
15080         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15081         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15082         when converting COMPLEX_TYPE.
15083
15084 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15085
15086         PR tree-optimization/47139
15087         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15088         only the last reduction value is used outside the loop.  Update
15089         documentation.
15090
15091 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15092
15093         * config/rtems.opt: New.
15094         * config.gcc (*-*-rtems*): Use rtems.opt.
15095
15096 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15097
15098         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15099         processors do not support 3DNow instructions.
15100
15101 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15102
15103         * config/spu/spu.c (spu_option_override): Set parameter
15104         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15105
15106 2011-01-05  Jan Hubicka  <jh@suse.cz>
15107
15108         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15109         at the command line.
15110
15111 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15112
15113         PR lto/47162
15114         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15115         deltas on streamed outgoing edges.
15116         (output_node_opt_summary): Output info for outgoing edges only when
15117         the node is in new parameter set.
15118         (output_cgraph_opt_summary): New parameter set, passed to the two
15119         aforementioned functions.  Update its forward declaration and its
15120         callee too.
15121
15122 2011-01-05  Tom Tromey  <tromey@redhat.com>
15123
15124         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15125         operator to c_finish_omp_atomic.
15126         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15127         (build_unary_op): Update.
15128         (build_modify_expr): Update.
15129         (build_asm_expr): Update.
15130
15131 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15132
15133         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15134         newly inserted insns.
15135         (pad_bb): Likewise.
15136         (spu_emit_branch_hint): Likewise.
15137         (insert_hbrp_for_ilb_runout): Likewise.
15138         (spu_machine_dependent_reorg): Call df_finish_pass after
15139         schedule_insns returns.
15140
15141 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15142
15143         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15144
15145 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15146
15147         PR tree-optimization/47005
15148         * tree-sra.c (struct access): Add 'non_addressable' bit.
15149         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15150         (decide_one_param_reduction): Return 0 if the parameter is passed by
15151         reference and one of the accesses in the group is non_addressable.
15152
15153 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15154
15155         PR tree-optimization/47056
15156         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15157         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15158         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15159
15160 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15161
15162         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15163         initializer.  Skip view conversions from aggregate types.
15164
15165 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15166
15167         PR bootstrap/47055
15168         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15169
15170 2011-01-04  Philipp Thomas  <pth@suse.de>
15171
15172         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15173         obvious typo.
15174
15175 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15176
15177         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15178         on empty epilogue sequences.
15179
15180 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15181
15182         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15183         non-static): New Driver options.
15184
15185 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15186
15187         PR driver/47137
15188         * gcc.c (default_compilers[]): Set combinable field to 0
15189         for all assembly languages.
15190
15191 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15192
15193         * config/mips/loongson3a.md: New file.
15194         * config/mips/mips.md: Include loongson3a.md.
15195         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15196         TUNE_LOONGSON_3A.
15197
15198 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15199
15200         PR middle-end/47017
15201         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15202         instead of convert_memory_address_addr_space on the base expression.
15203
15204 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15205
15206         * config/spu/spu.c (spu_option_override): Update error text
15207         for bad -march= / -mtune= values.
15208
15209 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15210
15211         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15212         if branch-hint optimization will be performed.
15213
15214 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15215
15216         PR tree-optimization/47148
15217         * ipa-split.c (split_function): Convert arguments to
15218         DECL_ARG_TYPE if possible.
15219
15220         PR tree-optimization/47155
15221         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15222         when computing uns.
15223
15224         PR rtl-optimization/47157
15225         * combine.c (try_combine): If undobuf.other_insn becomes
15226         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15227         and set *new_direct_jump_p too.
15228
15229 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15230
15231         PR tree-optimization/47021
15232         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15233
15234 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15235
15236         * gcc.c (process_command): Update copyright notice dates.
15237         * gcov.c (print_version): Likewise.
15238         * gcov-dump.c (print_version): Likewise.
15239         * mips-tfile.c (main): Likewise.
15240         * mips-tdump.c (main): Likewise.
15241
15242 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15243
15244         PR tree-optimization/46801
15245         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15246         aggregate fields start at byte boundary instead of the bit-field flag.
15247
15248 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15249
15250         PR driver/47137
15251         * gcc.c (main): Revert revision 168407.
15252
15253 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15254
15255         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15256
15257 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15258
15259         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15260         vector optab to expand vector/scalar shift, update gimple to vector.
15261
15262 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15263
15264         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15265         a thunk.
15266
15267 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15268
15269         PR tree-optimization/46984
15270         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15271         HOST_WIDE_INT.
15272         (cgraph_create_indirect_edge): Fixed line length.
15273         (cgraph_indirect_call_info): Declare.
15274         (cgraph_make_edge_direct) Update declaration.
15275         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15276         (cgraph_create_indirect_edge): Use it.
15277         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15278         callees.
15279         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15280         the new thunk_delta representation.
15281         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15282         HOST_WIDE_INT.
15283         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15284         (ipa_read_indirect_edge_info): Likewise.
15285         * lto-cgraph.c (output_edge_opt_summary): New function.
15286         (output_node_opt_summary): Call it on all outgoing edges.
15287         (input_edge_opt_summary): New function.
15288         (input_node_opt_summary): Call it on all outgoing edges.
15289
15290 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15291
15292         PR driver/47137
15293         * gcc.c (main): Don't check have_o when settting combine_inputs.
15294
15295 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15296
15297         * regrename.c: Add general comment describing the pass.
15298         (struct du_head): Remove 'length' field.
15299         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15300         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15301         Force renaming to the preferred class (if any) in the first pass and do
15302         not consider registers that belong to it in the second pass.
15303         (create_new_chain): Do not set 'length' field.
15304         (scan_rtx_reg): Likewise.
15305
15306 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15307
15308         PR tree-optimization/47140
15309         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15310         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15311         to bit_value_binop.
15312
15313         PR rtl-optimization/47028
15314         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15315         parm_birth_insn instead of at the beginning of first bb.
15316
15317 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15318
15319         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15320         Remove the word "see" before "@pxref".
15321         * doc/rtl.texi: Remove the word "see" before "@pxref".
15322
15323 2011-01-01  Jan Hubicka  <jh@suse.cz>
15324
15325         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15326         memory.
15327
15328 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15329
15330         PR target/38662
15331         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15332
15333 \f
15334 Copyright (C) 2011 Free Software Foundation, Inc.
15335
15336 Copying and distribution of this file, with or without modification,
15337 are permitted in any medium without royalty provided the copyright
15338 notice and this notice are preserved.